/*
 * 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";
import { CaptioningAnalysisData$inboundSchema, CaptioningAnalysisData$outboundSchema, } from "./captioninganalysisdata.js";
import { LimitsObject$inboundSchema, LimitsObject$outboundSchema, } from "./limitsobject.js";
/** @internal */
export const AnalyzeCaptioningResponseData$inboundSchema = z.object({
    entity: z.string().optional(),
    analysis: CaptioningAnalysisData$inboundSchema.optional(),
});
/** @internal */
export const AnalyzeCaptioningResponseData$outboundSchema = z.object({
    entity: z.string().optional(),
    analysis: CaptioningAnalysisData$outboundSchema.optional(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var AnalyzeCaptioningResponseData$;
(function (AnalyzeCaptioningResponseData$) {
    /** @deprecated use `AnalyzeCaptioningResponseData$inboundSchema` instead. */
    AnalyzeCaptioningResponseData$.inboundSchema = AnalyzeCaptioningResponseData$inboundSchema;
    /** @deprecated use `AnalyzeCaptioningResponseData$outboundSchema` instead. */
    AnalyzeCaptioningResponseData$.outboundSchema = AnalyzeCaptioningResponseData$outboundSchema;
})(AnalyzeCaptioningResponseData$ || (AnalyzeCaptioningResponseData$ = {}));
export function analyzeCaptioningResponseDataToJSON(analyzeCaptioningResponseData) {
    return JSON.stringify(AnalyzeCaptioningResponseData$outboundSchema.parse(analyzeCaptioningResponseData));
}
export function analyzeCaptioningResponseDataFromJSON(jsonString) {
    return safeParse(jsonString, (x) => AnalyzeCaptioningResponseData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnalyzeCaptioningResponseData' from JSON`);
}
/** @internal */
export const AnalyzeCaptioningResponse$inboundSchema = z.object({
    limits: z.nullable(LimitsObject$inboundSchema).optional(),
    request_id: z.string().optional(),
    data: z.lazy(() => AnalyzeCaptioningResponseData$inboundSchema).optional(),
}).transform((v) => {
    return remap$(v, {
        "request_id": "requestId",
    });
});
/** @internal */
export const AnalyzeCaptioningResponse$outboundSchema = z.object({
    limits: z.nullable(LimitsObject$outboundSchema).optional(),
    requestId: z.string().optional(),
    data: z.lazy(() => AnalyzeCaptioningResponseData$outboundSchema).optional(),
}).transform((v) => {
    return remap$(v, {
        requestId: "request_id",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var AnalyzeCaptioningResponse$;
(function (AnalyzeCaptioningResponse$) {
    /** @deprecated use `AnalyzeCaptioningResponse$inboundSchema` instead. */
    AnalyzeCaptioningResponse$.inboundSchema = AnalyzeCaptioningResponse$inboundSchema;
    /** @deprecated use `AnalyzeCaptioningResponse$outboundSchema` instead. */
    AnalyzeCaptioningResponse$.outboundSchema = AnalyzeCaptioningResponse$outboundSchema;
})(AnalyzeCaptioningResponse$ || (AnalyzeCaptioningResponse$ = {}));
export function analyzeCaptioningResponseToJSON(analyzeCaptioningResponse) {
    return JSON.stringify(AnalyzeCaptioningResponse$outboundSchema.parse(analyzeCaptioningResponse));
}
export function analyzeCaptioningResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => AnalyzeCaptioningResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnalyzeCaptioningResponse' from JSON`);
}
//# sourceMappingURL=analyzecaptioningresponse.js.map