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