/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 3383d23e2c2e
 */
import * as z from "zod/v4";
import { remap as remap$ } from "../../lib/primitives.js";
/** @internal */
export const GetTraceSpansV1ObservabilityTracesTraceIdSpansGetRequest$outboundSchema = z.object({
    traceId: z.string(),
    from: z.nullable(z.date().transform(v => v.toISOString())).optional(),
    to: z.nullable(z.date().transform(v => v.toISOString())).optional(),
    pageSize: z.int().default(50),
    cursor: z.nullable(z.string()).optional(),
}).transform((v) => {
    return remap$(v, {
        traceId: "trace_id",
        pageSize: "page_size",
    });
});
export function getTraceSpansV1ObservabilityTracesTraceIdSpansGetRequestToJSON(getTraceSpansV1ObservabilityTracesTraceIdSpansGetRequest) {
    return JSON.stringify(GetTraceSpansV1ObservabilityTracesTraceIdSpansGetRequest$outboundSchema
        .parse(getTraceSpansV1ObservabilityTracesTraceIdSpansGetRequest));
}
//# sourceMappingURL=gettracespansv1observabilitytracestraceidspansget.js.map