/*
 * 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 AnalyzeImageQualityResponse$inboundSchema = z.union([
    components.AsyncOperationAcceptedResponse$inboundSchema,
    components.AnalyzeImageQualityResponse$inboundSchema,
]);
/** @internal */
export const AnalyzeImageQualityResponse$outboundSchema = z.union([
    components.AsyncOperationAcceptedResponse$outboundSchema,
    components.AnalyzeImageQualityResponse$outboundSchema,
]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var AnalyzeImageQualityResponse$;
(function (AnalyzeImageQualityResponse$) {
    /** @deprecated use `AnalyzeImageQualityResponse$inboundSchema` instead. */
    AnalyzeImageQualityResponse$.inboundSchema = AnalyzeImageQualityResponse$inboundSchema;
    /** @deprecated use `AnalyzeImageQualityResponse$outboundSchema` instead. */
    AnalyzeImageQualityResponse$.outboundSchema = AnalyzeImageQualityResponse$outboundSchema;
})(AnalyzeImageQualityResponse$ || (AnalyzeImageQualityResponse$ = {}));
export function analyzeImageQualityResponseToJSON(analyzeImageQualityResponse) {
    return JSON.stringify(AnalyzeImageQualityResponse$outboundSchema.parse(analyzeImageQualityResponse));
}
export function analyzeImageQualityResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => AnalyzeImageQualityResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnalyzeImageQualityResponse' from JSON`);
}
//# sourceMappingURL=analyzeimagequality.js.map