/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: e688015ab508
 */
import * as z from "zod/v4";
import { remap as remap$ } from "../../lib/primitives.js";
/** @internal */
export const GetSpanFieldOptionsV1ObservabilitySpansFieldsFieldNameOptionsGetRequest$outboundSchema = z.object({
    fieldName: z.string(),
    from: z.nullable(z.date().transform(v => v.toISOString())).optional(),
    to: z.nullable(z.date().transform(v => v.toISOString())).optional(),
}).transform((v) => {
    return remap$(v, {
        fieldName: "field_name",
    });
});
export function getSpanFieldOptionsV1ObservabilitySpansFieldsFieldNameOptionsGetRequestToJSON(getSpanFieldOptionsV1ObservabilitySpansFieldsFieldNameOptionsGetRequest) {
    return JSON.stringify(GetSpanFieldOptionsV1ObservabilitySpansFieldsFieldNameOptionsGetRequest$outboundSchema
        .parse(getSpanFieldOptionsV1ObservabilitySpansFieldsFieldNameOptionsGetRequest));
}
//# sourceMappingURL=getspanfieldoptionsv1observabilityspansfieldsfieldnameoptionsget.js.map