"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.Deployments2ImageUrl$inboundSchema = exports.Deployments23$inboundSchema = exports.Deployments2File$inboundSchema = exports.DeploymentsRole$inboundSchema = exports.DeploymentsProvider$inboundSchema = exports.DeploymentsModelParameters$inboundSchema = exports.DeploymentsThinkingLevel$inboundSchema = exports.DeploymentsVerbosity$inboundSchema = exports.DeploymentsReasoningEffort$inboundSchema = exports.DeploymentsEncodingFormat$inboundSchema = exports.DeploymentsPhotoRealVersion$inboundSchema = exports.DeploymentsResponseFormat$inboundSchema = exports.DeploymentsResponseFormat1$inboundSchema = exports.DeploymentsResponseFormatJsonSchema$inboundSchema = exports.DeploymentsResponseFormatDeploymentsResponseType$inboundSchema = exports.DeploymentsResponseFormat2$inboundSchema = exports.DeploymentsResponseFormatType$inboundSchema = exports.DeploymentsResponseFormat3$inboundSchema = exports.DeploymentsResponseFormatDeploymentsType$inboundSchema = exports.DeploymentsResponseFormat4$inboundSchema = exports.DeploymentsResponseFormat5$inboundSchema = exports.DeploymentsResponseFormat6$inboundSchema = exports.DeploymentsFormat$inboundSchema = exports.DeploymentsModelType$inboundSchema = exports.DeploymentsTools$inboundSchema = exports.DeploymentsFunction$inboundSchema = exports.DeploymentsParameters$inboundSchema = exports.DeploymentsDeploymentsResponseType$inboundSchema = exports.DeploymentsType$inboundSchema = exports.DeploymentsObject$inboundSchema = exports.DeploymentsRequest$outboundSchema = exports.DeploymentsDeploymentsType = 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.DeploymentsResponseBody$inboundSchema = exports.DeploymentsData$inboundSchema = exports.DeploymentsPromptConfig$inboundSchema = exports.DeploymentsMessages$inboundSchema = exports.DeploymentsToolCalls$inboundSchema = exports.DeploymentsDeploymentsFunction$inboundSchema = exports.DeploymentsDeploymentsType$inboundSchema = exports.DeploymentsContent$inboundSchema = exports.DeploymentsContent2$inboundSchema = exports.Deployments21$inboundSchema = exports.Deployments22$inboundSchema = void 0;
exports.deploymentsRequestToJSON = deploymentsRequestToJSON;
exports.deploymentsParametersFromJSON = deploymentsParametersFromJSON;
exports.deploymentsFunctionFromJSON = deploymentsFunctionFromJSON;
exports.deploymentsToolsFromJSON = deploymentsToolsFromJSON;
exports.deploymentsResponseFormat3FromJSON = deploymentsResponseFormat3FromJSON;
exports.deploymentsResponseFormat2FromJSON = deploymentsResponseFormat2FromJSON;
exports.deploymentsResponseFormatJsonSchemaFromJSON = deploymentsResponseFormatJsonSchemaFromJSON;
exports.deploymentsResponseFormat1FromJSON = deploymentsResponseFormat1FromJSON;
exports.deploymentsResponseFormatFromJSON = deploymentsResponseFormatFromJSON;
exports.deploymentsModelParametersFromJSON = deploymentsModelParametersFromJSON;
exports.deployments2FileFromJSON = deployments2FileFromJSON;
exports.deployments23FromJSON = deployments23FromJSON;
exports.deployments2ImageUrlFromJSON = deployments2ImageUrlFromJSON;
exports.deployments22FromJSON = deployments22FromJSON;
exports.deployments21FromJSON = deployments21FromJSON;
exports.deploymentsContent2FromJSON = deploymentsContent2FromJSON;
exports.deploymentsContentFromJSON = deploymentsContentFromJSON;
exports.deploymentsDeploymentsFunctionFromJSON = deploymentsDeploymentsFunctionFromJSON;
exports.deploymentsToolCallsFromJSON = deploymentsToolCallsFromJSON;
exports.deploymentsMessagesFromJSON = deploymentsMessagesFromJSON;
exports.deploymentsPromptConfigFromJSON = deploymentsPromptConfigFromJSON;
exports.deploymentsDataFromJSON = deploymentsDataFromJSON;
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",
    Ocr: "ocr",
    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",
    Medium: "medium",
    High: "high",
};
exports.DeploymentsProvider = {
    Openai: "openai",
    Groq: "groq",
    Cohere: "cohere",
    Azure: "azure",
    Aws: "aws",
    Google: "google",
    GoogleAi: "google-ai",
    Huggingface: "huggingface",
    Togetherai: "togetherai",
    Perplexity: "perplexity",
    Anthropic: "anthropic",
    Leonardoai: "leonardoai",
    Fal: "fal",
    Nvidia: "nvidia",
    Jina: "jina",
    Elevenlabs: "elevenlabs",
    Litellm: "litellm",
    Cerebras: "cerebras",
    Openailike: "openailike",
    Bytedance: "bytedance",
    Mistral: "mistral",
    Deepseek: "deepseek",
    Contextualai: "contextualai",
    Moonshotai: "moonshotai",
    Zai: "zai",
    Minimax: "minimax",
    Xai: "xai",
    Alibaba: "alibaba",
    Tensorix: "tensorix",
    Scaleway: "scaleway",
    Hcompany: "hcompany",
    Inceptron: "inceptron",
    Slack: "slack",
    Orq: "orq",
};
/**
 * The role of the prompt message
 */
exports.DeploymentsRole = {
    System: "system",
    Developer: "developer",
    Assistant: "assistant",
    User: "user",
    Exception: "exception",
    Tool: "tool",
    Prompt: "prompt",
    Correction: "correction",
    ExpectedOutput: "expected_output",
};
exports.DeploymentsDeploymentsType = {
    Function: "function",
};
/** @internal */
exports.DeploymentsRequest$outboundSchema = z.object({
    limit: z.number().int().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));
}
/** @internal */
exports.DeploymentsObject$inboundSchema = z.nativeEnum(exports.DeploymentsObject);
/** @internal */
exports.DeploymentsType$inboundSchema = z.nativeEnum(exports.DeploymentsType);
/** @internal */
exports.DeploymentsDeploymentsResponseType$inboundSchema = z.nativeEnum(exports.DeploymentsDeploymentsResponseType);
/** @internal */
exports.DeploymentsParameters$inboundSchema = z.object({
    type: exports.DeploymentsDeploymentsResponseType$inboundSchema,
    properties: z.record(z.any()),
    required: z.array(z.string()).optional(),
    additionalProperties: z.literal(false).optional(),
});
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),
});
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",
    });
});
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.DeploymentsFormat$inboundSchema = z.nativeEnum(exports.DeploymentsFormat);
/** @internal */
exports.DeploymentsResponseFormat6$inboundSchema = z.nativeEnum(exports.DeploymentsResponseFormat6);
/** @internal */
exports.DeploymentsResponseFormat5$inboundSchema = z.nativeEnum(exports.DeploymentsResponseFormat5);
/** @internal */
exports.DeploymentsResponseFormat4$inboundSchema = z.nativeEnum(exports.DeploymentsResponseFormat4);
/** @internal */
exports.DeploymentsResponseFormatDeploymentsType$inboundSchema = z
    .nativeEnum(exports.DeploymentsResponseFormatDeploymentsType);
/** @internal */
exports.DeploymentsResponseFormat3$inboundSchema = z.object({
    type: exports.DeploymentsResponseFormatDeploymentsType$inboundSchema,
});
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.DeploymentsResponseFormat2$inboundSchema = z.object({
    type: exports.DeploymentsResponseFormatType$inboundSchema,
});
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.DeploymentsResponseFormatJsonSchema$inboundSchema = z.object({
    name: z.string(),
    description: z.string().optional(),
    strict: z.boolean().optional(),
    schema: z.record(z.any()),
});
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",
    });
});
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,
]);
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.DeploymentsEncodingFormat$inboundSchema = z.nativeEnum(exports.DeploymentsEncodingFormat);
/** @internal */
exports.DeploymentsReasoningEffort$inboundSchema = z.nativeEnum(exports.DeploymentsReasoningEffort);
/** @internal */
exports.DeploymentsVerbosity$inboundSchema = z.nativeEnum(exports.DeploymentsVerbosity);
/** @internal */
exports.DeploymentsThinkingLevel$inboundSchema = z.nativeEnum(exports.DeploymentsThinkingLevel);
/** @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",
    });
});
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.DeploymentsRole$inboundSchema = z.nativeEnum(exports.DeploymentsRole);
/** @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",
    });
});
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: z.literal("file"),
    file: z.lazy(() => exports.Deployments2File$inboundSchema),
});
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.Deployments2ImageUrl$inboundSchema = z.object({
    id: z.string().optional(),
    url: z.string(),
    detail: z.string().optional(),
});
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: z.literal("image_url"),
    image_url: z.lazy(() => exports.Deployments2ImageUrl$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "image_url": "imageUrl",
    });
});
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.Deployments21$inboundSchema = z.object({
    type: z.literal("text"),
    text: z.string(),
});
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),
]);
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),
    ])),
]);
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.DeploymentsDeploymentsFunction$inboundSchema = z.object({
    name: z.string(),
    arguments: z.string(),
});
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),
});
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.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "tool_calls": "toolCalls",
        "tool_call_id": "toolCallId",
    });
});
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",
    });
});
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",
    });
});
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",
    });
});
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