/*
 * 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 { ImageQualityAnalysisData$inboundSchema, ImageQualityAnalysisData$outboundSchema, } from "./imagequalityanalysisdata.js";
import { LimitsObject$inboundSchema, LimitsObject$outboundSchema, } from "./limitsobject.js";
/** @internal */
export const AnalyzeImageQualityResponseData$inboundSchema = z.object({
    entity: z.string().optional(),
    analysis: ImageQualityAnalysisData$inboundSchema.optional(),
});
/** @internal */
export const AnalyzeImageQualityResponseData$outboundSchema = z.object({
    entity: z.string().optional(),
    analysis: ImageQualityAnalysisData$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 AnalyzeImageQualityResponseData$;
(function (AnalyzeImageQualityResponseData$) {
    /** @deprecated use `AnalyzeImageQualityResponseData$inboundSchema` instead. */
    AnalyzeImageQualityResponseData$.inboundSchema = AnalyzeImageQualityResponseData$inboundSchema;
    /** @deprecated use `AnalyzeImageQualityResponseData$outboundSchema` instead. */
    AnalyzeImageQualityResponseData$.outboundSchema = AnalyzeImageQualityResponseData$outboundSchema;
})(AnalyzeImageQualityResponseData$ || (AnalyzeImageQualityResponseData$ = {}));
export function analyzeImageQualityResponseDataToJSON(analyzeImageQualityResponseData) {
    return JSON.stringify(AnalyzeImageQualityResponseData$outboundSchema.parse(analyzeImageQualityResponseData));
}
export function analyzeImageQualityResponseDataFromJSON(jsonString) {
    return safeParse(jsonString, (x) => AnalyzeImageQualityResponseData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnalyzeImageQualityResponseData' from JSON`);
}
/** @internal */
export const AnalyzeImageQualityResponse$inboundSchema = z.object({
    limits: z.nullable(LimitsObject$inboundSchema).optional(),
    request_id: z.string().optional(),
    data: z.lazy(() => AnalyzeImageQualityResponseData$inboundSchema).optional(),
}).transform((v) => {
    return remap$(v, {
        "request_id": "requestId",
    });
});
/** @internal */
export const AnalyzeImageQualityResponse$outboundSchema = z.object({
    limits: z.nullable(LimitsObject$outboundSchema).optional(),
    requestId: z.string().optional(),
    data: z.lazy(() => AnalyzeImageQualityResponseData$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 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=analyzeimagequalityresponse.js.map