"use strict";
/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.DeploymentsResponseFormat3$outboundSchema = exports.DeploymentsResponseFormat3$inboundSchema = exports.DeploymentsResponseFormatDeploymentsType$outboundSchema = exports.DeploymentsResponseFormatDeploymentsType$inboundSchema = exports.DeploymentsResponseFormat4$outboundSchema = exports.DeploymentsResponseFormat4$inboundSchema = exports.DeploymentsResponseFormat5$outboundSchema = exports.DeploymentsResponseFormat5$inboundSchema = exports.DeploymentsResponseFormat6$outboundSchema = exports.DeploymentsResponseFormat6$inboundSchema = exports.DeploymentsFormat$outboundSchema = exports.DeploymentsFormat$inboundSchema = exports.DeploymentsModelType$outboundSchema = exports.DeploymentsModelType$inboundSchema = exports.DeploymentsTools$outboundSchema = exports.DeploymentsTools$inboundSchema = exports.DeploymentsFunction$outboundSchema = exports.DeploymentsFunction$inboundSchema = exports.DeploymentsParameters$outboundSchema = exports.DeploymentsParameters$inboundSchema = exports.DeploymentsDeploymentsResponseType$outboundSchema = exports.DeploymentsDeploymentsResponseType$inboundSchema = exports.DeploymentsType$outboundSchema = exports.DeploymentsType$inboundSchema = exports.DeploymentsObject$outboundSchema = exports.DeploymentsObject$inboundSchema = exports.DeploymentsRequest$outboundSchema = exports.DeploymentsRequest$inboundSchema = exports.DeploymentsDeploymentsType = exports.Deployments2DeploymentsResponseType = exports.Deployments2Type = exports.Deployments2DeploymentsType = exports.DeploymentsRole = exports.DeploymentsProvider = exports.DeploymentsThinkingLevel = exports.DeploymentsVerbosity = exports.DeploymentsReasoningEffort = exports.DeploymentsEncodingFormat = exports.DeploymentsPhotoRealVersion = exports.DeploymentsResponseFormatDeploymentsResponseType = exports.DeploymentsResponseFormatType = exports.DeploymentsResponseFormatDeploymentsType = exports.DeploymentsResponseFormat4 = exports.DeploymentsResponseFormat5 = exports.DeploymentsResponseFormat6 = exports.DeploymentsFormat = exports.DeploymentsModelType = exports.DeploymentsDeploymentsResponseType = exports.DeploymentsType = exports.DeploymentsObject = void 0;
exports.DeploymentsDeploymentsType$outboundSchema = exports.DeploymentsDeploymentsType$inboundSchema = exports.DeploymentsContent$outboundSchema = exports.DeploymentsContent$inboundSchema = exports.DeploymentsContent2$outboundSchema = exports.DeploymentsContent2$inboundSchema = exports.Deployments21$outboundSchema = exports.Deployments21$inboundSchema = exports.Deployments2DeploymentsResponseType$outboundSchema = exports.Deployments2DeploymentsResponseType$inboundSchema = exports.Deployments22$outboundSchema = exports.Deployments22$inboundSchema = exports.Deployments2ImageUrl$outboundSchema = exports.Deployments2ImageUrl$inboundSchema = exports.Deployments2Type$outboundSchema = exports.Deployments2Type$inboundSchema = exports.Deployments23$outboundSchema = exports.Deployments23$inboundSchema = exports.Deployments2File$outboundSchema = exports.Deployments2File$inboundSchema = exports.Deployments2DeploymentsType$outboundSchema = exports.Deployments2DeploymentsType$inboundSchema = exports.DeploymentsRole$outboundSchema = exports.DeploymentsRole$inboundSchema = exports.DeploymentsProvider$outboundSchema = exports.DeploymentsProvider$inboundSchema = exports.DeploymentsModelParameters$outboundSchema = exports.DeploymentsModelParameters$inboundSchema = exports.DeploymentsThinkingLevel$outboundSchema = exports.DeploymentsThinkingLevel$inboundSchema = exports.DeploymentsVerbosity$outboundSchema = exports.DeploymentsVerbosity$inboundSchema = exports.DeploymentsReasoningEffort$outboundSchema = exports.DeploymentsReasoningEffort$inboundSchema = exports.DeploymentsEncodingFormat$outboundSchema = exports.DeploymentsEncodingFormat$inboundSchema = exports.DeploymentsPhotoRealVersion$outboundSchema = exports.DeploymentsPhotoRealVersion$inboundSchema = exports.DeploymentsResponseFormat$outboundSchema = exports.DeploymentsResponseFormat$inboundSchema = exports.DeploymentsResponseFormat1$outboundSchema = exports.DeploymentsResponseFormat1$inboundSchema = exports.DeploymentsResponseFormatJsonSchema$outboundSchema = exports.DeploymentsResponseFormatJsonSchema$inboundSchema = exports.DeploymentsResponseFormatDeploymentsResponseType$outboundSchema = exports.DeploymentsResponseFormatDeploymentsResponseType$inboundSchema = exports.DeploymentsResponseFormat2$outboundSchema = exports.DeploymentsResponseFormat2$inboundSchema = exports.DeploymentsResponseFormatType$outboundSchema = exports.DeploymentsResponseFormatType$inboundSchema = void 0;
exports.DeploymentsResponseBody$outboundSchema = exports.DeploymentsResponseBody$inboundSchema = exports.DeploymentsData$outboundSchema = exports.DeploymentsData$inboundSchema = exports.DeploymentsPromptConfig$outboundSchema = exports.DeploymentsPromptConfig$inboundSchema = exports.DeploymentsMessages$outboundSchema = exports.DeploymentsMessages$inboundSchema = exports.DeploymentsToolCalls$outboundSchema = exports.DeploymentsToolCalls$inboundSchema = exports.DeploymentsDeploymentsFunction$outboundSchema = exports.DeploymentsDeploymentsFunction$inboundSchema = void 0;
exports.deploymentsRequestToJSON = deploymentsRequestToJSON;
exports.deploymentsRequestFromJSON = deploymentsRequestFromJSON;
exports.deploymentsParametersToJSON = deploymentsParametersToJSON;
exports.deploymentsParametersFromJSON = deploymentsParametersFromJSON;
exports.deploymentsFunctionToJSON = deploymentsFunctionToJSON;
exports.deploymentsFunctionFromJSON = deploymentsFunctionFromJSON;
exports.deploymentsToolsToJSON = deploymentsToolsToJSON;
exports.deploymentsToolsFromJSON = deploymentsToolsFromJSON;
exports.deploymentsResponseFormat3ToJSON = deploymentsResponseFormat3ToJSON;
exports.deploymentsResponseFormat3FromJSON = deploymentsResponseFormat3FromJSON;
exports.deploymentsResponseFormat2ToJSON = deploymentsResponseFormat2ToJSON;
exports.deploymentsResponseFormat2FromJSON = deploymentsResponseFormat2FromJSON;
exports.deploymentsResponseFormatJsonSchemaToJSON = deploymentsResponseFormatJsonSchemaToJSON;
exports.deploymentsResponseFormatJsonSchemaFromJSON = deploymentsResponseFormatJsonSchemaFromJSON;
exports.deploymentsResponseFormat1ToJSON = deploymentsResponseFormat1ToJSON;
exports.deploymentsResponseFormat1FromJSON = deploymentsResponseFormat1FromJSON;
exports.deploymentsResponseFormatToJSON = deploymentsResponseFormatToJSON;
exports.deploymentsResponseFormatFromJSON = deploymentsResponseFormatFromJSON;
exports.deploymentsModelParametersToJSON = deploymentsModelParametersToJSON;
exports.deploymentsModelParametersFromJSON = deploymentsModelParametersFromJSON;
exports.deployments2FileToJSON = deployments2FileToJSON;
exports.deployments2FileFromJSON = deployments2FileFromJSON;
exports.deployments23ToJSON = deployments23ToJSON;
exports.deployments23FromJSON = deployments23FromJSON;
exports.deployments2ImageUrlToJSON = deployments2ImageUrlToJSON;
exports.deployments2ImageUrlFromJSON = deployments2ImageUrlFromJSON;
exports.deployments22ToJSON = deployments22ToJSON;
exports.deployments22FromJSON = deployments22FromJSON;
exports.deployments21ToJSON = deployments21ToJSON;
exports.deployments21FromJSON = deployments21FromJSON;
exports.deploymentsContent2ToJSON = deploymentsContent2ToJSON;
exports.deploymentsContent2FromJSON = deploymentsContent2FromJSON;
exports.deploymentsContentToJSON = deploymentsContentToJSON;
exports.deploymentsContentFromJSON = deploymentsContentFromJSON;
exports.deploymentsDeploymentsFunctionToJSON = deploymentsDeploymentsFunctionToJSON;
exports.deploymentsDeploymentsFunctionFromJSON = deploymentsDeploymentsFunctionFromJSON;
exports.deploymentsToolCallsToJSON = deploymentsToolCallsToJSON;
exports.deploymentsToolCallsFromJSON = deploymentsToolCallsFromJSON;
exports.deploymentsMessagesToJSON = deploymentsMessagesToJSON;
exports.deploymentsMessagesFromJSON = deploymentsMessagesFromJSON;
exports.deploymentsPromptConfigToJSON = deploymentsPromptConfigToJSON;
exports.deploymentsPromptConfigFromJSON = deploymentsPromptConfigFromJSON;
exports.deploymentsDataToJSON = deploymentsDataToJSON;
exports.deploymentsDataFromJSON = deploymentsDataFromJSON;
exports.deploymentsResponseBodyToJSON = deploymentsResponseBodyToJSON;
exports.deploymentsResponseBodyFromJSON = deploymentsResponseBodyFromJSON;
const z = __importStar(require("zod/v3"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
exports.DeploymentsObject = {
    List: "list",
};
/**
 * The type of the tool. Currently, only `function` is supported.
 */
exports.DeploymentsType = {
    Function: "function",
};
exports.DeploymentsDeploymentsResponseType = {
    Object: "object",
};
/**
 * The modality of the model
 */
exports.DeploymentsModelType = {
    Chat: "chat",
    Completion: "completion",
    Embedding: "embedding",
    Image: "image",
    Tts: "tts",
    Stt: "stt",
    Rerank: "rerank",
    Moderation: "moderation",
    Vision: "vision",
};
/**
 * Only supported on `image` models.
 */
exports.DeploymentsFormat = {
    Url: "url",
    B64Json: "b64_json",
    Text: "text",
    JsonObject: "json_object",
};
exports.DeploymentsResponseFormat6 = {
    Json: "json",
    Text: "text",
    Srt: "srt",
    VerboseJson: "verbose_json",
    Vtt: "vtt",
};
exports.DeploymentsResponseFormat5 = {
    Url: "url",
    Base64Json: "base64_json",
};
exports.DeploymentsResponseFormat4 = {
    Mp3: "mp3",
    Opus: "opus",
    Aac: "aac",
    Flac: "flac",
    Wav: "wav",
    Pcm: "pcm",
};
exports.DeploymentsResponseFormatDeploymentsType = {
    Text: "text",
};
exports.DeploymentsResponseFormatType = {
    JsonObject: "json_object",
};
exports.DeploymentsResponseFormatDeploymentsResponseType = {
    JsonSchema: "json_schema",
};
/**
 * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
 */
exports.DeploymentsPhotoRealVersion = {
    V1: "v1",
    V2: "v2",
};
/**
 * The format to return the embeddings
 */
exports.DeploymentsEncodingFormat = {
    Float: "float",
    Base64: "base64",
};
/**
 * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
 */
exports.DeploymentsReasoningEffort = {
    None: "none",
    Disable: "disable",
    Minimal: "minimal",
    Low: "low",
    Medium: "medium",
    High: "high",
};
/**
 * Controls the verbosity of the model output.
 */
exports.DeploymentsVerbosity = {
    Low: "low",
    Medium: "medium",
    High: "high",
};
/**
 * The level of thinking to use for the model. Only supported by `Google AI`
 */
exports.DeploymentsThinkingLevel = {
    Low: "low",
    High: "high",
};
exports.DeploymentsProvider = {
    Cohere: "cohere",
    Openai: "openai",
    Anthropic: "anthropic",
    Huggingface: "huggingface",
    Replicate: "replicate",
    Google: "google",
    GoogleAi: "google-ai",
    Azure: "azure",
    Aws: "aws",
    Anyscale: "anyscale",
    Perplexity: "perplexity",
    Groq: "groq",
    Fal: "fal",
    Leonardoai: "leonardoai",
    Nvidia: "nvidia",
    Jina: "jina",
    Togetherai: "togetherai",
    Elevenlabs: "elevenlabs",
    Litellm: "litellm",
    Openailike: "openailike",
    Cerebras: "cerebras",
    Bytedance: "bytedance",
    Mistral: "mistral",
};
/**
 * The role of the prompt message
 */
exports.DeploymentsRole = {
    System: "system",
    Assistant: "assistant",
    User: "user",
    Exception: "exception",
    Tool: "tool",
    Prompt: "prompt",
    Correction: "correction",
    ExpectedOutput: "expected_output",
};
/**
 * The type of the content part. Always `file`.
 */
exports.Deployments2DeploymentsType = {
    File: "file",
};
exports.Deployments2Type = {
    ImageUrl: "image_url",
};
exports.Deployments2DeploymentsResponseType = {
    Text: "text",
};
exports.DeploymentsDeploymentsType = {
    Function: "function",
};
/** @internal */
exports.DeploymentsRequest$inboundSchema = z.object({
    limit: z.number().default(10),
    starting_after: z.string().optional(),
    ending_before: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "starting_after": "startingAfter",
        "ending_before": "endingBefore",
    });
});
/** @internal */
exports.DeploymentsRequest$outboundSchema = z.object({
    limit: z.number().default(10),
    startingAfter: z.string().optional(),
    endingBefore: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        startingAfter: "starting_after",
        endingBefore: "ending_before",
    });
});
function deploymentsRequestToJSON(deploymentsRequest) {
    return JSON.stringify(exports.DeploymentsRequest$outboundSchema.parse(deploymentsRequest));
}
function deploymentsRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentsRequest' from JSON`);
}
/** @internal */
exports.DeploymentsObject$inboundSchema = z.nativeEnum(exports.DeploymentsObject);
/** @internal */
exports.DeploymentsObject$outboundSchema = exports.DeploymentsObject$inboundSchema;
/** @internal */
exports.DeploymentsType$inboundSchema = z.nativeEnum(exports.DeploymentsType);
/** @internal */
exports.DeploymentsType$outboundSchema = exports.DeploymentsType$inboundSchema;
/** @internal */
exports.DeploymentsDeploymentsResponseType$inboundSchema = z.nativeEnum(exports.DeploymentsDeploymentsResponseType);
/** @internal */
exports.DeploymentsDeploymentsResponseType$outboundSchema = exports.DeploymentsDeploymentsResponseType$inboundSchema;
/** @internal */
exports.DeploymentsParameters$inboundSchema = z.object({
    type: exports.DeploymentsDeploymentsResponseType$inboundSchema,
    properties: z.record(z.any()),
    required: z.array(z.string()).optional(),
    additionalProperties: z.boolean().optional(),
});
/** @internal */
exports.DeploymentsParameters$outboundSchema = z.object({
    type: exports.DeploymentsDeploymentsResponseType$outboundSchema,
    properties: z.record(z.any()),
    required: z.array(z.string()).optional(),
    additionalProperties: z.boolean().optional(),
});
function deploymentsParametersToJSON(deploymentsParameters) {
    return JSON.stringify(exports.DeploymentsParameters$outboundSchema.parse(deploymentsParameters));
}
function deploymentsParametersFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentsParameters$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentsParameters' from JSON`);
}
/** @internal */
exports.DeploymentsFunction$inboundSchema = z.object({
    name: z.string(),
    description: z.string().optional(),
    strict: z.boolean().optional(),
    parameters: z.lazy(() => exports.DeploymentsParameters$inboundSchema),
});
/** @internal */
exports.DeploymentsFunction$outboundSchema = z.object({
    name: z.string(),
    description: z.string().optional(),
    strict: z.boolean().optional(),
    parameters: z.lazy(() => exports.DeploymentsParameters$outboundSchema),
});
function deploymentsFunctionToJSON(deploymentsFunction) {
    return JSON.stringify(exports.DeploymentsFunction$outboundSchema.parse(deploymentsFunction));
}
function deploymentsFunctionFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentsFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentsFunction' from JSON`);
}
/** @internal */
exports.DeploymentsTools$inboundSchema = z.object({
    display_name: z.string().optional(),
    type: exports.DeploymentsType$inboundSchema,
    function: z.lazy(() => exports.DeploymentsFunction$inboundSchema),
    id: z.number().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "display_name": "displayName",
    });
});
/** @internal */
exports.DeploymentsTools$outboundSchema = z.object({
    displayName: z.string().optional(),
    type: exports.DeploymentsType$outboundSchema,
    function: z.lazy(() => exports.DeploymentsFunction$outboundSchema),
    id: z.number().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        displayName: "display_name",
    });
});
function deploymentsToolsToJSON(deploymentsTools) {
    return JSON.stringify(exports.DeploymentsTools$outboundSchema.parse(deploymentsTools));
}
function deploymentsToolsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentsTools$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentsTools' from JSON`);
}
/** @internal */
exports.DeploymentsModelType$inboundSchema = z.nativeEnum(exports.DeploymentsModelType);
/** @internal */
exports.DeploymentsModelType$outboundSchema = exports.DeploymentsModelType$inboundSchema;
/** @internal */
exports.DeploymentsFormat$inboundSchema = z.nativeEnum(exports.DeploymentsFormat);
/** @internal */
exports.DeploymentsFormat$outboundSchema = exports.DeploymentsFormat$inboundSchema;
/** @internal */
exports.DeploymentsResponseFormat6$inboundSchema = z.nativeEnum(exports.DeploymentsResponseFormat6);
/** @internal */
exports.DeploymentsResponseFormat6$outboundSchema = exports.DeploymentsResponseFormat6$inboundSchema;
/** @internal */
exports.DeploymentsResponseFormat5$inboundSchema = z.nativeEnum(exports.DeploymentsResponseFormat5);
/** @internal */
exports.DeploymentsResponseFormat5$outboundSchema = exports.DeploymentsResponseFormat5$inboundSchema;
/** @internal */
exports.DeploymentsResponseFormat4$inboundSchema = z.nativeEnum(exports.DeploymentsResponseFormat4);
/** @internal */
exports.DeploymentsResponseFormat4$outboundSchema = exports.DeploymentsResponseFormat4$inboundSchema;
/** @internal */
exports.DeploymentsResponseFormatDeploymentsType$inboundSchema = z
    .nativeEnum(exports.DeploymentsResponseFormatDeploymentsType);
/** @internal */
exports.DeploymentsResponseFormatDeploymentsType$outboundSchema = exports.DeploymentsResponseFormatDeploymentsType$inboundSchema;
/** @internal */
exports.DeploymentsResponseFormat3$inboundSchema = z.object({
    type: exports.DeploymentsResponseFormatDeploymentsType$inboundSchema,
});
/** @internal */
exports.DeploymentsResponseFormat3$outboundSchema = z.object({
    type: exports.DeploymentsResponseFormatDeploymentsType$outboundSchema,
});
function deploymentsResponseFormat3ToJSON(deploymentsResponseFormat3) {
    return JSON.stringify(exports.DeploymentsResponseFormat3$outboundSchema.parse(deploymentsResponseFormat3));
}
function deploymentsResponseFormat3FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentsResponseFormat3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentsResponseFormat3' from JSON`);
}
/** @internal */
exports.DeploymentsResponseFormatType$inboundSchema = z.nativeEnum(exports.DeploymentsResponseFormatType);
/** @internal */
exports.DeploymentsResponseFormatType$outboundSchema = exports.DeploymentsResponseFormatType$inboundSchema;
/** @internal */
exports.DeploymentsResponseFormat2$inboundSchema = z.object({
    type: exports.DeploymentsResponseFormatType$inboundSchema,
});
/** @internal */
exports.DeploymentsResponseFormat2$outboundSchema = z.object({
    type: exports.DeploymentsResponseFormatType$outboundSchema,
});
function deploymentsResponseFormat2ToJSON(deploymentsResponseFormat2) {
    return JSON.stringify(exports.DeploymentsResponseFormat2$outboundSchema.parse(deploymentsResponseFormat2));
}
function deploymentsResponseFormat2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentsResponseFormat2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentsResponseFormat2' from JSON`);
}
/** @internal */
exports.DeploymentsResponseFormatDeploymentsResponseType$inboundSchema = z
    .nativeEnum(exports.DeploymentsResponseFormatDeploymentsResponseType);
/** @internal */
exports.DeploymentsResponseFormatDeploymentsResponseType$outboundSchema = exports.DeploymentsResponseFormatDeploymentsResponseType$inboundSchema;
/** @internal */
exports.DeploymentsResponseFormatJsonSchema$inboundSchema = z.object({
    name: z.string(),
    description: z.string().optional(),
    strict: z.boolean().optional(),
    schema: z.record(z.any()),
});
/** @internal */
exports.DeploymentsResponseFormatJsonSchema$outboundSchema = z.object({
    name: z.string(),
    description: z.string().optional(),
    strict: z.boolean().optional(),
    schema: z.record(z.any()),
});
function deploymentsResponseFormatJsonSchemaToJSON(deploymentsResponseFormatJsonSchema) {
    return JSON.stringify(exports.DeploymentsResponseFormatJsonSchema$outboundSchema.parse(deploymentsResponseFormatJsonSchema));
}
function deploymentsResponseFormatJsonSchemaFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentsResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentsResponseFormatJsonSchema' from JSON`);
}
/** @internal */
exports.DeploymentsResponseFormat1$inboundSchema = z.object({
    type: exports.DeploymentsResponseFormatDeploymentsResponseType$inboundSchema,
    display_name: z.string().optional(),
    json_schema: z.lazy(() => exports.DeploymentsResponseFormatJsonSchema$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "display_name": "displayName",
        "json_schema": "jsonSchema",
    });
});
/** @internal */
exports.DeploymentsResponseFormat1$outboundSchema = z.object({
    type: exports.DeploymentsResponseFormatDeploymentsResponseType$outboundSchema,
    displayName: z.string().optional(),
    jsonSchema: z.lazy(() => exports.DeploymentsResponseFormatJsonSchema$outboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        displayName: "display_name",
        jsonSchema: "json_schema",
    });
});
function deploymentsResponseFormat1ToJSON(deploymentsResponseFormat1) {
    return JSON.stringify(exports.DeploymentsResponseFormat1$outboundSchema.parse(deploymentsResponseFormat1));
}
function deploymentsResponseFormat1FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentsResponseFormat1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentsResponseFormat1' from JSON`);
}
/** @internal */
exports.DeploymentsResponseFormat$inboundSchema = z.union([
    z.lazy(() => exports.DeploymentsResponseFormat1$inboundSchema),
    z.lazy(() => exports.DeploymentsResponseFormat2$inboundSchema),
    z.lazy(() => exports.DeploymentsResponseFormat3$inboundSchema),
    exports.DeploymentsResponseFormat4$inboundSchema,
    exports.DeploymentsResponseFormat5$inboundSchema,
    exports.DeploymentsResponseFormat6$inboundSchema,
]);
/** @internal */
exports.DeploymentsResponseFormat$outboundSchema = z.union([
    z.lazy(() => exports.DeploymentsResponseFormat1$outboundSchema),
    z.lazy(() => exports.DeploymentsResponseFormat2$outboundSchema),
    z.lazy(() => exports.DeploymentsResponseFormat3$outboundSchema),
    exports.DeploymentsResponseFormat4$outboundSchema,
    exports.DeploymentsResponseFormat5$outboundSchema,
    exports.DeploymentsResponseFormat6$outboundSchema,
]);
function deploymentsResponseFormatToJSON(deploymentsResponseFormat) {
    return JSON.stringify(exports.DeploymentsResponseFormat$outboundSchema.parse(deploymentsResponseFormat));
}
function deploymentsResponseFormatFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentsResponseFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentsResponseFormat' from JSON`);
}
/** @internal */
exports.DeploymentsPhotoRealVersion$inboundSchema = z.nativeEnum(exports.DeploymentsPhotoRealVersion);
/** @internal */
exports.DeploymentsPhotoRealVersion$outboundSchema = exports.DeploymentsPhotoRealVersion$inboundSchema;
/** @internal */
exports.DeploymentsEncodingFormat$inboundSchema = z.nativeEnum(exports.DeploymentsEncodingFormat);
/** @internal */
exports.DeploymentsEncodingFormat$outboundSchema = exports.DeploymentsEncodingFormat$inboundSchema;
/** @internal */
exports.DeploymentsReasoningEffort$inboundSchema = z.nativeEnum(exports.DeploymentsReasoningEffort);
/** @internal */
exports.DeploymentsReasoningEffort$outboundSchema = exports.DeploymentsReasoningEffort$inboundSchema;
/** @internal */
exports.DeploymentsVerbosity$inboundSchema = z.nativeEnum(exports.DeploymentsVerbosity);
/** @internal */
exports.DeploymentsVerbosity$outboundSchema = exports.DeploymentsVerbosity$inboundSchema;
/** @internal */
exports.DeploymentsThinkingLevel$inboundSchema = z.nativeEnum(exports.DeploymentsThinkingLevel);
/** @internal */
exports.DeploymentsThinkingLevel$outboundSchema = exports.DeploymentsThinkingLevel$inboundSchema;
/** @internal */
exports.DeploymentsModelParameters$inboundSchema = z.object({
    temperature: z.number().optional(),
    maxTokens: z.number().optional(),
    topK: z.number().optional(),
    topP: z.number().optional(),
    frequencyPenalty: z.number().optional(),
    presencePenalty: z.number().optional(),
    numImages: z.number().optional(),
    seed: z.number().optional(),
    format: exports.DeploymentsFormat$inboundSchema.optional(),
    dimensions: z.string().optional(),
    quality: z.string().optional(),
    style: z.string().optional(),
    responseFormat: z.nullable(z.union([
        z.lazy(() => exports.DeploymentsResponseFormat1$inboundSchema),
        z.lazy(() => exports.DeploymentsResponseFormat2$inboundSchema),
        z.lazy(() => exports.DeploymentsResponseFormat3$inboundSchema),
        exports.DeploymentsResponseFormat4$inboundSchema,
        exports.DeploymentsResponseFormat5$inboundSchema,
        exports.DeploymentsResponseFormat6$inboundSchema,
    ])).optional(),
    photoRealVersion: exports.DeploymentsPhotoRealVersion$inboundSchema.optional(),
    encoding_format: exports.DeploymentsEncodingFormat$inboundSchema.optional(),
    reasoningEffort: exports.DeploymentsReasoningEffort$inboundSchema.optional(),
    budgetTokens: z.number().optional(),
    verbosity: exports.DeploymentsVerbosity$inboundSchema.optional(),
    thinkingLevel: exports.DeploymentsThinkingLevel$inboundSchema.optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "encoding_format": "encodingFormat",
    });
});
/** @internal */
exports.DeploymentsModelParameters$outboundSchema = z.object({
    temperature: z.number().optional(),
    maxTokens: z.number().optional(),
    topK: z.number().optional(),
    topP: z.number().optional(),
    frequencyPenalty: z.number().optional(),
    presencePenalty: z.number().optional(),
    numImages: z.number().optional(),
    seed: z.number().optional(),
    format: exports.DeploymentsFormat$outboundSchema.optional(),
    dimensions: z.string().optional(),
    quality: z.string().optional(),
    style: z.string().optional(),
    responseFormat: z.nullable(z.union([
        z.lazy(() => exports.DeploymentsResponseFormat1$outboundSchema),
        z.lazy(() => exports.DeploymentsResponseFormat2$outboundSchema),
        z.lazy(() => exports.DeploymentsResponseFormat3$outboundSchema),
        exports.DeploymentsResponseFormat4$outboundSchema,
        exports.DeploymentsResponseFormat5$outboundSchema,
        exports.DeploymentsResponseFormat6$outboundSchema,
    ])).optional(),
    photoRealVersion: exports.DeploymentsPhotoRealVersion$outboundSchema.optional(),
    encodingFormat: exports.DeploymentsEncodingFormat$outboundSchema.optional(),
    reasoningEffort: exports.DeploymentsReasoningEffort$outboundSchema.optional(),
    budgetTokens: z.number().optional(),
    verbosity: exports.DeploymentsVerbosity$outboundSchema.optional(),
    thinkingLevel: exports.DeploymentsThinkingLevel$outboundSchema.optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        encodingFormat: "encoding_format",
    });
});
function deploymentsModelParametersToJSON(deploymentsModelParameters) {
    return JSON.stringify(exports.DeploymentsModelParameters$outboundSchema.parse(deploymentsModelParameters));
}
function deploymentsModelParametersFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentsModelParameters$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentsModelParameters' from JSON`);
}
/** @internal */
exports.DeploymentsProvider$inboundSchema = z.nativeEnum(exports.DeploymentsProvider);
/** @internal */
exports.DeploymentsProvider$outboundSchema = exports.DeploymentsProvider$inboundSchema;
/** @internal */
exports.DeploymentsRole$inboundSchema = z.nativeEnum(exports.DeploymentsRole);
/** @internal */
exports.DeploymentsRole$outboundSchema = exports.DeploymentsRole$inboundSchema;
/** @internal */
exports.Deployments2DeploymentsType$inboundSchema = z.nativeEnum(exports.Deployments2DeploymentsType);
/** @internal */
exports.Deployments2DeploymentsType$outboundSchema = exports.Deployments2DeploymentsType$inboundSchema;
/** @internal */
exports.Deployments2File$inboundSchema = z.object({
    file_data: z.string().optional(),
    uri: z.string().optional(),
    mimeType: z.string().optional(),
    filename: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "file_data": "fileData",
    });
});
/** @internal */
exports.Deployments2File$outboundSchema = z.object({
    fileData: z.string().optional(),
    uri: z.string().optional(),
    mimeType: z.string().optional(),
    filename: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        fileData: "file_data",
    });
});
function deployments2FileToJSON(deployments2File) {
    return JSON.stringify(exports.Deployments2File$outboundSchema.parse(deployments2File));
}
function deployments2FileFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Deployments2File$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Deployments2File' from JSON`);
}
/** @internal */
exports.Deployments23$inboundSchema = z.object({
    type: exports.Deployments2DeploymentsType$inboundSchema,
    file: z.lazy(() => exports.Deployments2File$inboundSchema),
});
/** @internal */
exports.Deployments23$outboundSchema = z.object({
    type: exports.Deployments2DeploymentsType$outboundSchema,
    file: z.lazy(() => exports.Deployments2File$outboundSchema),
});
function deployments23ToJSON(deployments23) {
    return JSON.stringify(exports.Deployments23$outboundSchema.parse(deployments23));
}
function deployments23FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Deployments23$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Deployments23' from JSON`);
}
/** @internal */
exports.Deployments2Type$inboundSchema = z.nativeEnum(exports.Deployments2Type);
/** @internal */
exports.Deployments2Type$outboundSchema = exports.Deployments2Type$inboundSchema;
/** @internal */
exports.Deployments2ImageUrl$inboundSchema = z.object({
    id: z.string().optional(),
    url: z.string(),
    detail: z.string().optional(),
});
/** @internal */
exports.Deployments2ImageUrl$outboundSchema = z.object({
    id: z.string().optional(),
    url: z.string(),
    detail: z.string().optional(),
});
function deployments2ImageUrlToJSON(deployments2ImageUrl) {
    return JSON.stringify(exports.Deployments2ImageUrl$outboundSchema.parse(deployments2ImageUrl));
}
function deployments2ImageUrlFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Deployments2ImageUrl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Deployments2ImageUrl' from JSON`);
}
/** @internal */
exports.Deployments22$inboundSchema = z.object({
    type: exports.Deployments2Type$inboundSchema,
    image_url: z.lazy(() => exports.Deployments2ImageUrl$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "image_url": "imageUrl",
    });
});
/** @internal */
exports.Deployments22$outboundSchema = z.object({
    type: exports.Deployments2Type$outboundSchema,
    imageUrl: z.lazy(() => exports.Deployments2ImageUrl$outboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        imageUrl: "image_url",
    });
});
function deployments22ToJSON(deployments22) {
    return JSON.stringify(exports.Deployments22$outboundSchema.parse(deployments22));
}
function deployments22FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Deployments22$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Deployments22' from JSON`);
}
/** @internal */
exports.Deployments2DeploymentsResponseType$inboundSchema = z.nativeEnum(exports.Deployments2DeploymentsResponseType);
/** @internal */
exports.Deployments2DeploymentsResponseType$outboundSchema = exports.Deployments2DeploymentsResponseType$inboundSchema;
/** @internal */
exports.Deployments21$inboundSchema = z.object({
    type: exports.Deployments2DeploymentsResponseType$inboundSchema,
    text: z.string(),
});
/** @internal */
exports.Deployments21$outboundSchema = z.object({
    type: exports.Deployments2DeploymentsResponseType$outboundSchema,
    text: z.string(),
});
function deployments21ToJSON(deployments21) {
    return JSON.stringify(exports.Deployments21$outboundSchema.parse(deployments21));
}
function deployments21FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Deployments21$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Deployments21' from JSON`);
}
/** @internal */
exports.DeploymentsContent2$inboundSchema = z.union([
    z.lazy(() => exports.Deployments21$inboundSchema),
    z.lazy(() => exports.Deployments22$inboundSchema),
    z.lazy(() => exports.Deployments23$inboundSchema),
]);
/** @internal */
exports.DeploymentsContent2$outboundSchema = z.union([
    z.lazy(() => exports.Deployments21$outboundSchema),
    z.lazy(() => exports.Deployments22$outboundSchema),
    z.lazy(() => exports.Deployments23$outboundSchema),
]);
function deploymentsContent2ToJSON(deploymentsContent2) {
    return JSON.stringify(exports.DeploymentsContent2$outboundSchema.parse(deploymentsContent2));
}
function deploymentsContent2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentsContent2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentsContent2' from JSON`);
}
/** @internal */
exports.DeploymentsContent$inboundSchema = z.union([
    z.string(),
    z.array(z.union([
        z.lazy(() => exports.Deployments21$inboundSchema),
        z.lazy(() => exports.Deployments22$inboundSchema),
        z.lazy(() => exports.Deployments23$inboundSchema),
    ])),
]);
/** @internal */
exports.DeploymentsContent$outboundSchema = z.union([
    z.string(),
    z.array(z.union([
        z.lazy(() => exports.Deployments21$outboundSchema),
        z.lazy(() => exports.Deployments22$outboundSchema),
        z.lazy(() => exports.Deployments23$outboundSchema),
    ])),
]);
function deploymentsContentToJSON(deploymentsContent) {
    return JSON.stringify(exports.DeploymentsContent$outboundSchema.parse(deploymentsContent));
}
function deploymentsContentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentsContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentsContent' from JSON`);
}
/** @internal */
exports.DeploymentsDeploymentsType$inboundSchema = z.nativeEnum(exports.DeploymentsDeploymentsType);
/** @internal */
exports.DeploymentsDeploymentsType$outboundSchema = exports.DeploymentsDeploymentsType$inboundSchema;
/** @internal */
exports.DeploymentsDeploymentsFunction$inboundSchema = z.object({
    name: z.string(),
    arguments: z.string(),
});
/** @internal */
exports.DeploymentsDeploymentsFunction$outboundSchema = z.object({
    name: z.string(),
    arguments: z.string(),
});
function deploymentsDeploymentsFunctionToJSON(deploymentsDeploymentsFunction) {
    return JSON.stringify(exports.DeploymentsDeploymentsFunction$outboundSchema.parse(deploymentsDeploymentsFunction));
}
function deploymentsDeploymentsFunctionFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentsDeploymentsFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentsDeploymentsFunction' from JSON`);
}
/** @internal */
exports.DeploymentsToolCalls$inboundSchema = z.object({
    id: z.string().optional(),
    index: z.number().optional(),
    type: exports.DeploymentsDeploymentsType$inboundSchema,
    function: z.lazy(() => exports.DeploymentsDeploymentsFunction$inboundSchema),
});
/** @internal */
exports.DeploymentsToolCalls$outboundSchema = z.object({
    id: z.string().optional(),
    index: z.number().optional(),
    type: exports.DeploymentsDeploymentsType$outboundSchema,
    function: z.lazy(() => exports.DeploymentsDeploymentsFunction$outboundSchema),
});
function deploymentsToolCallsToJSON(deploymentsToolCalls) {
    return JSON.stringify(exports.DeploymentsToolCalls$outboundSchema.parse(deploymentsToolCalls));
}
function deploymentsToolCallsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentsToolCalls$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentsToolCalls' from JSON`);
}
/** @internal */
exports.DeploymentsMessages$inboundSchema = z.object({
    role: exports.DeploymentsRole$inboundSchema,
    content: z.nullable(z.union([
        z.string(),
        z.array(z.union([
            z.lazy(() => exports.Deployments21$inboundSchema),
            z.lazy(() => exports.Deployments22$inboundSchema),
            z.lazy(() => exports.Deployments23$inboundSchema),
        ])),
    ])),
    tool_calls: z.array(z.lazy(() => exports.DeploymentsToolCalls$inboundSchema))
        .optional(),
    tool_call_id: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "tool_calls": "toolCalls",
        "tool_call_id": "toolCallId",
    });
});
/** @internal */
exports.DeploymentsMessages$outboundSchema = z.object({
    role: exports.DeploymentsRole$outboundSchema,
    content: z.nullable(z.union([
        z.string(),
        z.array(z.union([
            z.lazy(() => exports.Deployments21$outboundSchema),
            z.lazy(() => exports.Deployments22$outboundSchema),
            z.lazy(() => exports.Deployments23$outboundSchema),
        ])),
    ])),
    toolCalls: z.array(z.lazy(() => exports.DeploymentsToolCalls$outboundSchema))
        .optional(),
    toolCallId: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        toolCalls: "tool_calls",
        toolCallId: "tool_call_id",
    });
});
function deploymentsMessagesToJSON(deploymentsMessages) {
    return JSON.stringify(exports.DeploymentsMessages$outboundSchema.parse(deploymentsMessages));
}
function deploymentsMessagesFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentsMessages$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentsMessages' from JSON`);
}
/** @internal */
exports.DeploymentsPromptConfig$inboundSchema = z.object({
    tools: z.array(z.lazy(() => exports.DeploymentsTools$inboundSchema)),
    model: z.string(),
    model_type: exports.DeploymentsModelType$inboundSchema,
    model_parameters: z.lazy(() => exports.DeploymentsModelParameters$inboundSchema),
    provider: exports.DeploymentsProvider$inboundSchema,
    messages: z.array(z.lazy(() => exports.DeploymentsMessages$inboundSchema)),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "model_type": "modelType",
        "model_parameters": "modelParameters",
    });
});
/** @internal */
exports.DeploymentsPromptConfig$outboundSchema = z.object({
    tools: z.array(z.lazy(() => exports.DeploymentsTools$outboundSchema)),
    model: z.string(),
    modelType: exports.DeploymentsModelType$outboundSchema,
    modelParameters: z.lazy(() => exports.DeploymentsModelParameters$outboundSchema),
    provider: exports.DeploymentsProvider$outboundSchema,
    messages: z.array(z.lazy(() => exports.DeploymentsMessages$outboundSchema)),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        modelType: "model_type",
        modelParameters: "model_parameters",
    });
});
function deploymentsPromptConfigToJSON(deploymentsPromptConfig) {
    return JSON.stringify(exports.DeploymentsPromptConfig$outboundSchema.parse(deploymentsPromptConfig));
}
function deploymentsPromptConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentsPromptConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentsPromptConfig' from JSON`);
}
/** @internal */
exports.DeploymentsData$inboundSchema = z.object({
    id: z.string(),
    created: z.string(),
    updated: z.string(),
    key: z.string(),
    description: z.string(),
    prompt_config: z.lazy(() => exports.DeploymentsPromptConfig$inboundSchema),
    version: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "prompt_config": "promptConfig",
    });
});
/** @internal */
exports.DeploymentsData$outboundSchema = z.object({
    id: z.string(),
    created: z.string(),
    updated: z.string(),
    key: z.string(),
    description: z.string(),
    promptConfig: z.lazy(() => exports.DeploymentsPromptConfig$outboundSchema),
    version: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        promptConfig: "prompt_config",
    });
});
function deploymentsDataToJSON(deploymentsData) {
    return JSON.stringify(exports.DeploymentsData$outboundSchema.parse(deploymentsData));
}
function deploymentsDataFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentsData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentsData' from JSON`);
}
/** @internal */
exports.DeploymentsResponseBody$inboundSchema = z.object({
    object: exports.DeploymentsObject$inboundSchema,
    data: z.array(z.lazy(() => exports.DeploymentsData$inboundSchema)),
    has_more: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "has_more": "hasMore",
    });
});
/** @internal */
exports.DeploymentsResponseBody$outboundSchema = z.object({
    object: exports.DeploymentsObject$outboundSchema,
    data: z.array(z.lazy(() => exports.DeploymentsData$outboundSchema)),
    hasMore: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        hasMore: "has_more",
    });
});
function deploymentsResponseBodyToJSON(deploymentsResponseBody) {
    return JSON.stringify(exports.DeploymentsResponseBody$outboundSchema.parse(deploymentsResponseBody));
}
function deploymentsResponseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentsResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentsResponseBody' from JSON`);
}
//# sourceMappingURL=deployments.js.map