/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
/** @internal */
export const CaptioningAnalysisDataData$inboundSchema = z.object({
    caption: z.string(),
});
/** @internal */
export const CaptioningAnalysisDataData$outboundSchema = z.object({
    caption: z.string(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var CaptioningAnalysisDataData$;
(function (CaptioningAnalysisDataData$) {
    /** @deprecated use `CaptioningAnalysisDataData$inboundSchema` instead. */
    CaptioningAnalysisDataData$.inboundSchema = CaptioningAnalysisDataData$inboundSchema;
    /** @deprecated use `CaptioningAnalysisDataData$outboundSchema` instead. */
    CaptioningAnalysisDataData$.outboundSchema = CaptioningAnalysisDataData$outboundSchema;
})(CaptioningAnalysisDataData$ || (CaptioningAnalysisDataData$ = {}));
export function captioningAnalysisDataDataToJSON(captioningAnalysisDataData) {
    return JSON.stringify(CaptioningAnalysisDataData$outboundSchema.parse(captioningAnalysisDataData));
}
export function captioningAnalysisDataDataFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CaptioningAnalysisDataData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CaptioningAnalysisDataData' from JSON`);
}
/** @internal */
export const CaptioningAnalysisData$inboundSchema = z.object({
    data: z.lazy(() => CaptioningAnalysisDataData$inboundSchema),
    model_version: z.number().int().optional(),
}).transform((v) => {
    return remap$(v, {
        "model_version": "modelVersion",
    });
});
/** @internal */
export const CaptioningAnalysisData$outboundSchema = z.object({
    data: z.lazy(() => CaptioningAnalysisDataData$outboundSchema),
    modelVersion: z.number().int().optional(),
}).transform((v) => {
    return remap$(v, {
        modelVersion: "model_version",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var CaptioningAnalysisData$;
(function (CaptioningAnalysisData$) {
    /** @deprecated use `CaptioningAnalysisData$inboundSchema` instead. */
    CaptioningAnalysisData$.inboundSchema = CaptioningAnalysisData$inboundSchema;
    /** @deprecated use `CaptioningAnalysisData$outboundSchema` instead. */
    CaptioningAnalysisData$.outboundSchema = CaptioningAnalysisData$outboundSchema;
})(CaptioningAnalysisData$ || (CaptioningAnalysisData$ = {}));
export function captioningAnalysisDataToJSON(captioningAnalysisData) {
    return JSON.stringify(CaptioningAnalysisData$outboundSchema.parse(captioningAnalysisData));
}
export function captioningAnalysisDataFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CaptioningAnalysisData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CaptioningAnalysisData' from JSON`);
}
//# sourceMappingURL=captioninganalysisdata.js.map