/*
 * 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 { LimitsObject$inboundSchema, LimitsObject$outboundSchema, } from "./limitsobject.js";
import { WatermarkDetectionAnalysisData$inboundSchema, WatermarkDetectionAnalysisData$outboundSchema, } from "./watermarkdetectionanalysisdata.js";
/** @internal */
export const AnalyzeWatermarkDetectionResponseData$inboundSchema = z.object({
    entity: z.string().optional(),
    analysis: WatermarkDetectionAnalysisData$inboundSchema.optional(),
});
/** @internal */
export const AnalyzeWatermarkDetectionResponseData$outboundSchema = z.object({
    entity: z.string().optional(),
    analysis: WatermarkDetectionAnalysisData$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 AnalyzeWatermarkDetectionResponseData$;
(function (AnalyzeWatermarkDetectionResponseData$) {
    /** @deprecated use `AnalyzeWatermarkDetectionResponseData$inboundSchema` instead. */
    AnalyzeWatermarkDetectionResponseData$.inboundSchema = AnalyzeWatermarkDetectionResponseData$inboundSchema;
    /** @deprecated use `AnalyzeWatermarkDetectionResponseData$outboundSchema` instead. */
    AnalyzeWatermarkDetectionResponseData$.outboundSchema = AnalyzeWatermarkDetectionResponseData$outboundSchema;
})(AnalyzeWatermarkDetectionResponseData$ || (AnalyzeWatermarkDetectionResponseData$ = {}));
export function analyzeWatermarkDetectionResponseDataToJSON(analyzeWatermarkDetectionResponseData) {
    return JSON.stringify(AnalyzeWatermarkDetectionResponseData$outboundSchema.parse(analyzeWatermarkDetectionResponseData));
}
export function analyzeWatermarkDetectionResponseDataFromJSON(jsonString) {
    return safeParse(jsonString, (x) => AnalyzeWatermarkDetectionResponseData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnalyzeWatermarkDetectionResponseData' from JSON`);
}
/** @internal */
export const AnalyzeWatermarkDetectionResponse$inboundSchema = z.object({
    limits: z.nullable(LimitsObject$inboundSchema).optional(),
    request_id: z.string().optional(),
    data: z.lazy(() => AnalyzeWatermarkDetectionResponseData$inboundSchema)
        .optional(),
}).transform((v) => {
    return remap$(v, {
        "request_id": "requestId",
    });
});
/** @internal */
export const AnalyzeWatermarkDetectionResponse$outboundSchema = z.object({
    limits: z.nullable(LimitsObject$outboundSchema).optional(),
    requestId: z.string().optional(),
    data: z.lazy(() => AnalyzeWatermarkDetectionResponseData$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 AnalyzeWatermarkDetectionResponse$;
(function (AnalyzeWatermarkDetectionResponse$) {
    /** @deprecated use `AnalyzeWatermarkDetectionResponse$inboundSchema` instead. */
    AnalyzeWatermarkDetectionResponse$.inboundSchema = AnalyzeWatermarkDetectionResponse$inboundSchema;
    /** @deprecated use `AnalyzeWatermarkDetectionResponse$outboundSchema` instead. */
    AnalyzeWatermarkDetectionResponse$.outboundSchema = AnalyzeWatermarkDetectionResponse$outboundSchema;
})(AnalyzeWatermarkDetectionResponse$ || (AnalyzeWatermarkDetectionResponse$ = {}));
export function analyzeWatermarkDetectionResponseToJSON(analyzeWatermarkDetectionResponse) {
    return JSON.stringify(AnalyzeWatermarkDetectionResponse$outboundSchema.parse(analyzeWatermarkDetectionResponse));
}
export function analyzeWatermarkDetectionResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => AnalyzeWatermarkDetectionResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnalyzeWatermarkDetectionResponse' from JSON`);
}
//# sourceMappingURL=analyzewatermarkdetectionresponse.js.map