/*
 * 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 { Source$inboundSchema, Source$outboundSchema, } from "./source.js";
/** @internal */
export const AnalyzeAIVisionModerationRequest$inboundSchema = z.object({
    source: Source$inboundSchema,
    async: z.boolean().optional(),
    notification_url: z.string().optional(),
    rejection_questions: z.array(z.string()).optional(),
}).transform((v) => {
    return remap$(v, {
        "notification_url": "notificationUrl",
        "rejection_questions": "rejectionQuestions",
    });
});
/** @internal */
export const AnalyzeAIVisionModerationRequest$outboundSchema = z.object({
    source: Source$outboundSchema,
    async: z.boolean().optional(),
    notificationUrl: z.string().optional(),
    rejectionQuestions: z.array(z.string()).optional(),
}).transform((v) => {
    return remap$(v, {
        notificationUrl: "notification_url",
        rejectionQuestions: "rejection_questions",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var AnalyzeAIVisionModerationRequest$;
(function (AnalyzeAIVisionModerationRequest$) {
    /** @deprecated use `AnalyzeAIVisionModerationRequest$inboundSchema` instead. */
    AnalyzeAIVisionModerationRequest$.inboundSchema = AnalyzeAIVisionModerationRequest$inboundSchema;
    /** @deprecated use `AnalyzeAIVisionModerationRequest$outboundSchema` instead. */
    AnalyzeAIVisionModerationRequest$.outboundSchema = AnalyzeAIVisionModerationRequest$outboundSchema;
})(AnalyzeAIVisionModerationRequest$ || (AnalyzeAIVisionModerationRequest$ = {}));
export function analyzeAIVisionModerationRequestToJSON(analyzeAIVisionModerationRequest) {
    return JSON.stringify(AnalyzeAIVisionModerationRequest$outboundSchema.parse(analyzeAIVisionModerationRequest));
}
export function analyzeAIVisionModerationRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => AnalyzeAIVisionModerationRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnalyzeAIVisionModerationRequest' from JSON`);
}
//# sourceMappingURL=analyzeaivisionmoderationrequest.js.map