/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { safeParse } from "../../lib/schemas.js";
import * as components from "../components/index.js";
/** @internal */
export const AnalyzeWatermarkDetectionResponse$inboundSchema = z.union([
    components.AnalyzeWatermarkDetectionResponse$inboundSchema,
    components.AsyncOperationAcceptedResponse$inboundSchema,
]);
/** @internal */
export const AnalyzeWatermarkDetectionResponse$outboundSchema = z.union([
    components.AnalyzeWatermarkDetectionResponse$outboundSchema,
    components.AsyncOperationAcceptedResponse$outboundSchema,
]);
/**
 * @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=analyzewatermarkdetection.js.map