/*
 * 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";
/** @internal */
export const ImageQualityAnalysisData$inboundSchema = z.object({
    quality: z.string().optional(),
    score: z.number().optional(),
    confidence: z.number().optional(),
    model_version: z.number().int().optional(),
}).transform((v) => {
    return remap$(v, {
        "model_version": "modelVersion",
    });
});
/** @internal */
export const ImageQualityAnalysisData$outboundSchema = z.object({
    quality: z.string().optional(),
    score: z.number().optional(),
    confidence: z.number().optional(),
    modelVersion: z.number().int().optional(),
}).transform((v) => {
    return remap$(v, {
        modelVersion: "model_version",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var ImageQualityAnalysisData$;
(function (ImageQualityAnalysisData$) {
    /** @deprecated use `ImageQualityAnalysisData$inboundSchema` instead. */
    ImageQualityAnalysisData$.inboundSchema = ImageQualityAnalysisData$inboundSchema;
    /** @deprecated use `ImageQualityAnalysisData$outboundSchema` instead. */
    ImageQualityAnalysisData$.outboundSchema = ImageQualityAnalysisData$outboundSchema;
})(ImageQualityAnalysisData$ || (ImageQualityAnalysisData$ = {}));
export function imageQualityAnalysisDataToJSON(imageQualityAnalysisData) {
    return JSON.stringify(ImageQualityAnalysisData$outboundSchema.parse(imageQualityAnalysisData));
}
export function imageQualityAnalysisDataFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ImageQualityAnalysisData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ImageQualityAnalysisData' from JSON`);
}
//# sourceMappingURL=imagequalityanalysisdata.js.map