"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.GetPromptVersionPromptsReasoningEffort$inboundSchema = exports.GetPromptVersionEncodingFormat$inboundSchema = exports.GetPromptVersionPhotoRealVersion$inboundSchema = exports.GetPromptVersionPromptsResponseFormat$inboundSchema = exports.GetPromptVersionResponseFormat1$inboundSchema = exports.GetPromptVersionResponseFormatPromptsResponseJsonSchema$inboundSchema = exports.GetPromptVersionResponseFormatPromptsResponse200Type$inboundSchema = exports.GetPromptVersionResponseFormat2$inboundSchema = exports.GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema = exports.GetPromptVersionResponseFormat3$inboundSchema = exports.GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema = exports.GetPromptVersionResponseFormat4$inboundSchema = exports.GetPromptVersionResponseFormat5$inboundSchema = exports.GetPromptVersionResponseFormat6$inboundSchema = exports.GetPromptVersionFormat$inboundSchema = exports.GetPromptVersionModelType$inboundSchema = exports.GetPromptVersionRequest$outboundSchema = exports.GetPromptVersionLanguage = exports.GetPromptVersionUseCases = exports.GetPromptVersion2Ttl = exports.GetPromptVersion2PromptsResponse200ApplicationJSONType = exports.GetPromptVersionMessagesType = exports.GetPromptVersionMessagesTtl = exports.GetPromptVersionMessagesPromptsType = exports.GetPromptVersionLoadBalancerType = exports.GetPromptVersionType = exports.GetPromptVersionExecuteOn = exports.GetPromptVersionId1 = exports.GetPromptVersionModalities = exports.GetPromptVersionToolChoice1 = exports.GetPromptVersionToolChoiceType = exports.GetPromptVersionReasoningEffort = exports.GetPromptVersionPromptsFormat = exports.GetPromptVersionVoice = exports.GetPromptVersionPromptsType = exports.GetPromptVersionRole = exports.GetPromptVersionProvider = exports.GetPromptVersionThinkingLevel = exports.GetPromptVersionVerbosity = exports.GetPromptVersionPromptsReasoningEffort = exports.GetPromptVersionEncodingFormat = exports.GetPromptVersionPhotoRealVersion = exports.GetPromptVersionResponseFormatPromptsResponse200Type = exports.GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONType = exports.GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONResponseBodyType = exports.GetPromptVersionResponseFormat4 = exports.GetPromptVersionResponseFormat5 = exports.GetPromptVersionResponseFormat6 = exports.GetPromptVersionFormat = exports.GetPromptVersionModelType = void 0;
exports.GetPromptVersionMessagesPromptsResponse200Content$inboundSchema = exports.GetPromptVersionContentPromptsResponse2002$inboundSchema = exports.GetPromptVersionTimeout$inboundSchema = exports.GetPromptVersionLoadBalancer$inboundSchema = exports.GetPromptVersionLoadBalancer1$inboundSchema = exports.GetPromptVersionLoadBalancerModels$inboundSchema = exports.GetPromptVersionLoadBalancerType$inboundSchema = exports.GetPromptVersionCache$inboundSchema = exports.GetPromptVersionType$inboundSchema = exports.GetPromptVersionRetry$inboundSchema = exports.GetPromptVersionFallbacks$inboundSchema = exports.GetPromptVersionGuardrails$inboundSchema = exports.GetPromptVersionExecuteOn$inboundSchema = exports.GetPromptVersionId$inboundSchema = exports.GetPromptVersionId1$inboundSchema = exports.GetPromptVersionModalities$inboundSchema = exports.GetPromptVersionToolChoice$inboundSchema = exports.GetPromptVersionToolChoice1$inboundSchema = exports.GetPromptVersionToolChoice2$inboundSchema = exports.GetPromptVersionToolChoiceFunction$inboundSchema = exports.GetPromptVersionToolChoiceType$inboundSchema = exports.GetPromptVersionThinking$inboundSchema = exports.GetPromptVersionStreamOptions$inboundSchema = exports.GetPromptVersionStop$inboundSchema = exports.GetPromptVersionReasoningEffort$inboundSchema = exports.GetPromptVersionResponseFormat$inboundSchema = exports.GetPromptVersionResponseFormatText$inboundSchema = exports.GetPromptVersionResponseFormatJSONObject$inboundSchema = exports.GetPromptVersionResponseFormatPromptsJSONSchema$inboundSchema = exports.GetPromptVersionResponseFormatJsonSchema$inboundSchema = exports.GetPromptVersionAudio$inboundSchema = exports.GetPromptVersionPromptsFormat$inboundSchema = exports.GetPromptVersionVoice$inboundSchema = exports.GetPromptVersionPromptConfig$inboundSchema = exports.GetPromptVersionMessages$inboundSchema = exports.GetPromptVersionToolCalls$inboundSchema = exports.GetPromptVersionFunction$inboundSchema = exports.GetPromptVersionPromptsType$inboundSchema = exports.GetPromptVersionContent$inboundSchema = exports.GetPromptVersionContent2$inboundSchema = exports.GetPromptVersion21$inboundSchema = exports.GetPromptVersion22$inboundSchema = exports.GetPromptVersion2ImageUrl$inboundSchema = exports.GetPromptVersion23$inboundSchema = exports.GetPromptVersion2File$inboundSchema = exports.GetPromptVersionRole$inboundSchema = exports.GetPromptVersionProvider$inboundSchema = exports.GetPromptVersionModelParameters$inboundSchema = exports.GetPromptVersionThinkingLevel$inboundSchema = exports.GetPromptVersionVerbosity$inboundSchema = void 0;
exports.GetPromptVersionResponseBody$inboundSchema = exports.GetPromptVersionMetadata$inboundSchema = exports.GetPromptVersionLanguage$inboundSchema = exports.GetPromptVersionUseCases$inboundSchema = exports.GetPromptVersionPromptField$inboundSchema = exports.GetPromptVersionPromptsMessages$inboundSchema = exports.GetPromptVersionMessagesSystemMessage$inboundSchema = exports.GetPromptVersionMessagesContent$inboundSchema = exports.GetPromptVersionMessagesUserMessage$inboundSchema = exports.GetPromptVersionMessagesPromptsContent$inboundSchema = exports.GetPromptVersionContentPrompts2$inboundSchema = exports.GetPromptVersion24$inboundSchema = exports.GetPromptVersion2CacheControl$inboundSchema = exports.GetPromptVersion2Ttl$inboundSchema = exports.GetPromptVersion2PromptsResponse200ApplicationJSONType$inboundSchema = exports.GetPromptVersionMessagesAssistantMessage$inboundSchema = exports.GetPromptVersionMessagesToolCalls$inboundSchema = exports.GetPromptVersionMessagesFunction$inboundSchema = exports.GetPromptVersionMessagesType$inboundSchema = exports.GetPromptVersionMessagesAudio$inboundSchema = exports.GetPromptVersionMessagesPromptsResponseContent$inboundSchema = exports.GetPromptVersionContentPromptsResponse2$inboundSchema = exports.GetPromptVersionMessagesToolMessage$inboundSchema = exports.GetPromptVersionMessagesCacheControl$inboundSchema = exports.GetPromptVersionMessagesTtl$inboundSchema = exports.GetPromptVersionMessagesPromptsType$inboundSchema = void 0;
exports.getPromptVersionRequestToJSON = getPromptVersionRequestToJSON;
exports.getPromptVersionResponseFormat3FromJSON = getPromptVersionResponseFormat3FromJSON;
exports.getPromptVersionResponseFormat2FromJSON = getPromptVersionResponseFormat2FromJSON;
exports.getPromptVersionResponseFormatPromptsResponseJsonSchemaFromJSON = getPromptVersionResponseFormatPromptsResponseJsonSchemaFromJSON;
exports.getPromptVersionResponseFormat1FromJSON = getPromptVersionResponseFormat1FromJSON;
exports.getPromptVersionPromptsResponseFormatFromJSON = getPromptVersionPromptsResponseFormatFromJSON;
exports.getPromptVersionModelParametersFromJSON = getPromptVersionModelParametersFromJSON;
exports.getPromptVersion2FileFromJSON = getPromptVersion2FileFromJSON;
exports.getPromptVersion23FromJSON = getPromptVersion23FromJSON;
exports.getPromptVersion2ImageUrlFromJSON = getPromptVersion2ImageUrlFromJSON;
exports.getPromptVersion22FromJSON = getPromptVersion22FromJSON;
exports.getPromptVersion21FromJSON = getPromptVersion21FromJSON;
exports.getPromptVersionContent2FromJSON = getPromptVersionContent2FromJSON;
exports.getPromptVersionContentFromJSON = getPromptVersionContentFromJSON;
exports.getPromptVersionFunctionFromJSON = getPromptVersionFunctionFromJSON;
exports.getPromptVersionToolCallsFromJSON = getPromptVersionToolCallsFromJSON;
exports.getPromptVersionMessagesFromJSON = getPromptVersionMessagesFromJSON;
exports.getPromptVersionPromptConfigFromJSON = getPromptVersionPromptConfigFromJSON;
exports.getPromptVersionAudioFromJSON = getPromptVersionAudioFromJSON;
exports.getPromptVersionResponseFormatJsonSchemaFromJSON = getPromptVersionResponseFormatJsonSchemaFromJSON;
exports.getPromptVersionResponseFormatPromptsJSONSchemaFromJSON = getPromptVersionResponseFormatPromptsJSONSchemaFromJSON;
exports.getPromptVersionResponseFormatJSONObjectFromJSON = getPromptVersionResponseFormatJSONObjectFromJSON;
exports.getPromptVersionResponseFormatTextFromJSON = getPromptVersionResponseFormatTextFromJSON;
exports.getPromptVersionResponseFormatFromJSON = getPromptVersionResponseFormatFromJSON;
exports.getPromptVersionStopFromJSON = getPromptVersionStopFromJSON;
exports.getPromptVersionStreamOptionsFromJSON = getPromptVersionStreamOptionsFromJSON;
exports.getPromptVersionThinkingFromJSON = getPromptVersionThinkingFromJSON;
exports.getPromptVersionToolChoiceFunctionFromJSON = getPromptVersionToolChoiceFunctionFromJSON;
exports.getPromptVersionToolChoice2FromJSON = getPromptVersionToolChoice2FromJSON;
exports.getPromptVersionToolChoiceFromJSON = getPromptVersionToolChoiceFromJSON;
exports.getPromptVersionIdFromJSON = getPromptVersionIdFromJSON;
exports.getPromptVersionGuardrailsFromJSON = getPromptVersionGuardrailsFromJSON;
exports.getPromptVersionFallbacksFromJSON = getPromptVersionFallbacksFromJSON;
exports.getPromptVersionRetryFromJSON = getPromptVersionRetryFromJSON;
exports.getPromptVersionCacheFromJSON = getPromptVersionCacheFromJSON;
exports.getPromptVersionLoadBalancerModelsFromJSON = getPromptVersionLoadBalancerModelsFromJSON;
exports.getPromptVersionLoadBalancer1FromJSON = getPromptVersionLoadBalancer1FromJSON;
exports.getPromptVersionLoadBalancerFromJSON = getPromptVersionLoadBalancerFromJSON;
exports.getPromptVersionTimeoutFromJSON = getPromptVersionTimeoutFromJSON;
exports.getPromptVersionContentPromptsResponse2002FromJSON = getPromptVersionContentPromptsResponse2002FromJSON;
exports.getPromptVersionMessagesPromptsResponse200ContentFromJSON = getPromptVersionMessagesPromptsResponse200ContentFromJSON;
exports.getPromptVersionMessagesCacheControlFromJSON = getPromptVersionMessagesCacheControlFromJSON;
exports.getPromptVersionMessagesToolMessageFromJSON = getPromptVersionMessagesToolMessageFromJSON;
exports.getPromptVersionContentPromptsResponse2FromJSON = getPromptVersionContentPromptsResponse2FromJSON;
exports.getPromptVersionMessagesPromptsResponseContentFromJSON = getPromptVersionMessagesPromptsResponseContentFromJSON;
exports.getPromptVersionMessagesAudioFromJSON = getPromptVersionMessagesAudioFromJSON;
exports.getPromptVersionMessagesFunctionFromJSON = getPromptVersionMessagesFunctionFromJSON;
exports.getPromptVersionMessagesToolCallsFromJSON = getPromptVersionMessagesToolCallsFromJSON;
exports.getPromptVersionMessagesAssistantMessageFromJSON = getPromptVersionMessagesAssistantMessageFromJSON;
exports.getPromptVersion2CacheControlFromJSON = getPromptVersion2CacheControlFromJSON;
exports.getPromptVersion24FromJSON = getPromptVersion24FromJSON;
exports.getPromptVersionContentPrompts2FromJSON = getPromptVersionContentPrompts2FromJSON;
exports.getPromptVersionMessagesPromptsContentFromJSON = getPromptVersionMessagesPromptsContentFromJSON;
exports.getPromptVersionMessagesUserMessageFromJSON = getPromptVersionMessagesUserMessageFromJSON;
exports.getPromptVersionMessagesContentFromJSON = getPromptVersionMessagesContentFromJSON;
exports.getPromptVersionMessagesSystemMessageFromJSON = getPromptVersionMessagesSystemMessageFromJSON;
exports.getPromptVersionPromptsMessagesFromJSON = getPromptVersionPromptsMessagesFromJSON;
exports.getPromptVersionPromptFieldFromJSON = getPromptVersionPromptFieldFromJSON;
exports.getPromptVersionMetadataFromJSON = getPromptVersionMetadataFromJSON;
exports.getPromptVersionResponseBodyFromJSON = getPromptVersionResponseBodyFromJSON;
const z = __importStar(require("zod/v3"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
const components = __importStar(require("../components/index.js"));
/**
 * The modality of the model
 */
exports.GetPromptVersionModelType = {
    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.GetPromptVersionFormat = {
    Url: "url",
    B64Json: "b64_json",
    Text: "text",
    JsonObject: "json_object",
};
exports.GetPromptVersionResponseFormat6 = {
    Json: "json",
    Text: "text",
    Srt: "srt",
    VerboseJson: "verbose_json",
    Vtt: "vtt",
};
exports.GetPromptVersionResponseFormat5 = {
    Url: "url",
    Base64Json: "base64_json",
};
exports.GetPromptVersionResponseFormat4 = {
    Mp3: "mp3",
    Opus: "opus",
    Aac: "aac",
    Flac: "flac",
    Wav: "wav",
    Pcm: "pcm",
};
exports.GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONResponseBodyType = {
    Text: "text",
};
exports.GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONType = {
    JsonObject: "json_object",
};
exports.GetPromptVersionResponseFormatPromptsResponse200Type = {
    JsonSchema: "json_schema",
};
/**
 * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
 */
exports.GetPromptVersionPhotoRealVersion = {
    V1: "v1",
    V2: "v2",
};
/**
 * The format to return the embeddings
 */
exports.GetPromptVersionEncodingFormat = {
    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.GetPromptVersionPromptsReasoningEffort = {
    None: "none",
    Disable: "disable",
    Minimal: "minimal",
    Low: "low",
    Medium: "medium",
    High: "high",
};
/**
 * Controls the verbosity of the model output.
 */
exports.GetPromptVersionVerbosity = {
    Low: "low",
    Medium: "medium",
    High: "high",
};
/**
 * The level of thinking to use for the model. Only supported by `Google AI`
 */
exports.GetPromptVersionThinkingLevel = {
    Low: "low",
    Medium: "medium",
    High: "high",
};
exports.GetPromptVersionProvider = {
    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",
    Wafer: "wafer",
    Slack: "slack",
    Orq: "orq",
};
/**
 * The role of the prompt message
 */
exports.GetPromptVersionRole = {
    System: "system",
    Developer: "developer",
    Assistant: "assistant",
    User: "user",
    Exception: "exception",
    Tool: "tool",
    Prompt: "prompt",
    Correction: "correction",
    ExpectedOutput: "expected_output",
};
exports.GetPromptVersionPromptsType = {
    Function: "function",
};
/**
 * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
 */
exports.GetPromptVersionVoice = {
    Alloy: "alloy",
    Echo: "echo",
    Fable: "fable",
    Onyx: "onyx",
    Nova: "nova",
    Shimmer: "shimmer",
};
/**
 * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
 */
exports.GetPromptVersionPromptsFormat = {
    Wav: "wav",
    Mp3: "mp3",
    Flac: "flac",
    Opus: "opus",
    Pcm16: "pcm16",
};
/**
 * Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
 *
 * @remarks
 *
 * - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
 * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
 * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
 * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
 *
 * Any of "none", "minimal", "low", "medium", "high", "xhigh".
 */
exports.GetPromptVersionReasoningEffort = {
    None: "none",
    Minimal: "minimal",
    Low: "low",
    Medium: "medium",
    High: "high",
    Xhigh: "xhigh",
};
/**
 * The type of the tool. Currently, only function is supported.
 */
exports.GetPromptVersionToolChoiceType = {
    Function: "function",
};
exports.GetPromptVersionToolChoice1 = {
    None: "none",
    Auto: "auto",
    Required: "required",
};
exports.GetPromptVersionModalities = {
    Text: "text",
    Audio: "audio",
};
/**
 * The key of the guardrail.
 */
exports.GetPromptVersionId1 = {
    OrqPiiDetection: "orq_pii_detection",
    OrqSexualModeration: "orq_sexual_moderation",
    OrqHarmfulModeration: "orq_harmful_moderation",
};
/**
 * Determines whether the guardrail runs on the input (user message) or output (model response).
 */
exports.GetPromptVersionExecuteOn = {
    Input: "input",
    Output: "output",
};
exports.GetPromptVersionType = {
    ExactMatch: "exact_match",
};
exports.GetPromptVersionLoadBalancerType = {
    WeightBased: "weight_based",
};
/**
 * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
 */
exports.GetPromptVersionMessagesPromptsType = {
    Ephemeral: "ephemeral",
};
/**
 * The time-to-live for the cache control breakpoint. This may be one of the following values:
 *
 * @remarks
 *
 * - `5m`: 5 minutes
 * - `1h`: 1 hour
 *
 * Defaults to `5m`. Only supported by `Anthropic` Claude models.
 */
exports.GetPromptVersionMessagesTtl = {
    Fivem: "5m",
    Oneh: "1h",
};
/**
 * The type of the tool. Currently, only `function` is supported.
 */
exports.GetPromptVersionMessagesType = {
    Function: "function",
};
/**
 * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
 */
exports.GetPromptVersion2PromptsResponse200ApplicationJSONType = {
    Ephemeral: "ephemeral",
};
/**
 * The time-to-live for the cache control breakpoint. This may be one of the following values:
 *
 * @remarks
 *
 * - `5m`: 5 minutes
 * - `1h`: 1 hour
 *
 * Defaults to `5m`. Only supported by `Anthropic` Claude models.
 */
exports.GetPromptVersion2Ttl = {
    Fivem: "5m",
    Oneh: "1h",
};
exports.GetPromptVersionUseCases = {
    AgentsSimulations: "Agents simulations",
    Agents: "Agents",
    APIInteraction: "API interaction",
    AutonomousAgents: "Autonomous Agents",
    Chatbots: "Chatbots",
    Classification: "Classification",
    CodeUnderstanding: "Code understanding",
    CodeWriting: "Code writing",
    Conversation: "Conversation",
    DocumentsQA: "Documents QA",
    Evaluation: "Evaluation",
    Extraction: "Extraction",
    MultiModal: "Multi-modal",
    SelfChecking: "Self-checking",
    SentimentAnalysis: "Sentiment analysis",
    Sql: "SQL",
    Summarization: "Summarization",
    Tagging: "Tagging",
    TranslationDocument: "Translation (document)",
    TranslationSentences: "Translation (sentences)",
};
/**
 * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
 */
exports.GetPromptVersionLanguage = {
    Chinese: "Chinese",
    Dutch: "Dutch",
    English: "English",
    French: "French",
    German: "German",
    Russian: "Russian",
    Spanish: "Spanish",
};
/** @internal */
exports.GetPromptVersionRequest$outboundSchema = z.object({
    promptId: z.string(),
    versionId: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        promptId: "prompt_id",
        versionId: "version_id",
    });
});
function getPromptVersionRequestToJSON(getPromptVersionRequest) {
    return JSON.stringify(exports.GetPromptVersionRequest$outboundSchema.parse(getPromptVersionRequest));
}
/** @internal */
exports.GetPromptVersionModelType$inboundSchema = z.nativeEnum(exports.GetPromptVersionModelType);
/** @internal */
exports.GetPromptVersionFormat$inboundSchema = z.nativeEnum(exports.GetPromptVersionFormat);
/** @internal */
exports.GetPromptVersionResponseFormat6$inboundSchema = z.nativeEnum(exports.GetPromptVersionResponseFormat6);
/** @internal */
exports.GetPromptVersionResponseFormat5$inboundSchema = z.nativeEnum(exports.GetPromptVersionResponseFormat5);
/** @internal */
exports.GetPromptVersionResponseFormat4$inboundSchema = z.nativeEnum(exports.GetPromptVersionResponseFormat4);
/** @internal */
exports.GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema = z.nativeEnum(exports.GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONResponseBodyType);
/** @internal */
exports.GetPromptVersionResponseFormat3$inboundSchema = z.object({
    type: exports.GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema,
});
function getPromptVersionResponseFormat3FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionResponseFormat3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionResponseFormat3' from JSON`);
}
/** @internal */
exports.GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema = z.nativeEnum(exports.GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONType);
/** @internal */
exports.GetPromptVersionResponseFormat2$inboundSchema = z.object({
    type: exports.GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema,
});
function getPromptVersionResponseFormat2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionResponseFormat2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionResponseFormat2' from JSON`);
}
/** @internal */
exports.GetPromptVersionResponseFormatPromptsResponse200Type$inboundSchema = z.nativeEnum(exports.GetPromptVersionResponseFormatPromptsResponse200Type);
/** @internal */
exports.GetPromptVersionResponseFormatPromptsResponseJsonSchema$inboundSchema = z.object({
    name: z.string(),
    description: z.string().optional(),
    strict: z.boolean().optional(),
    schema: z.record(z.any()),
});
function getPromptVersionResponseFormatPromptsResponseJsonSchemaFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionResponseFormatPromptsResponseJsonSchema$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionResponseFormatPromptsResponseJsonSchema' from JSON`);
}
/** @internal */
exports.GetPromptVersionResponseFormat1$inboundSchema = z.object({
    type: exports.GetPromptVersionResponseFormatPromptsResponse200Type$inboundSchema,
    display_name: z.string().optional(),
    json_schema: z.lazy(() => exports.GetPromptVersionResponseFormatPromptsResponseJsonSchema$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "display_name": "displayName",
        "json_schema": "jsonSchema",
    });
});
function getPromptVersionResponseFormat1FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionResponseFormat1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionResponseFormat1' from JSON`);
}
/** @internal */
exports.GetPromptVersionPromptsResponseFormat$inboundSchema = z.union([
    z.lazy(() => exports.GetPromptVersionResponseFormat1$inboundSchema),
    z.lazy(() => exports.GetPromptVersionResponseFormat2$inboundSchema),
    z.lazy(() => exports.GetPromptVersionResponseFormat3$inboundSchema),
    exports.GetPromptVersionResponseFormat4$inboundSchema,
    exports.GetPromptVersionResponseFormat5$inboundSchema,
    exports.GetPromptVersionResponseFormat6$inboundSchema,
]);
function getPromptVersionPromptsResponseFormatFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionPromptsResponseFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionPromptsResponseFormat' from JSON`);
}
/** @internal */
exports.GetPromptVersionPhotoRealVersion$inboundSchema = z.nativeEnum(exports.GetPromptVersionPhotoRealVersion);
/** @internal */
exports.GetPromptVersionEncodingFormat$inboundSchema = z.nativeEnum(exports.GetPromptVersionEncodingFormat);
/** @internal */
exports.GetPromptVersionPromptsReasoningEffort$inboundSchema = z.nativeEnum(exports.GetPromptVersionPromptsReasoningEffort);
/** @internal */
exports.GetPromptVersionVerbosity$inboundSchema = z.nativeEnum(exports.GetPromptVersionVerbosity);
/** @internal */
exports.GetPromptVersionThinkingLevel$inboundSchema = z.nativeEnum(exports.GetPromptVersionThinkingLevel);
/** @internal */
exports.GetPromptVersionModelParameters$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.GetPromptVersionFormat$inboundSchema.optional(),
    dimensions: z.string().optional(),
    quality: z.string().optional(),
    style: z.string().optional(),
    responseFormat: z.nullable(z.union([
        z.lazy(() => exports.GetPromptVersionResponseFormat1$inboundSchema),
        z.lazy(() => exports.GetPromptVersionResponseFormat2$inboundSchema),
        z.lazy(() => exports.GetPromptVersionResponseFormat3$inboundSchema),
        exports.GetPromptVersionResponseFormat4$inboundSchema,
        exports.GetPromptVersionResponseFormat5$inboundSchema,
        exports.GetPromptVersionResponseFormat6$inboundSchema,
    ])).optional(),
    photoRealVersion: exports.GetPromptVersionPhotoRealVersion$inboundSchema.optional(),
    encoding_format: exports.GetPromptVersionEncodingFormat$inboundSchema.optional(),
    reasoningEffort: exports.GetPromptVersionPromptsReasoningEffort$inboundSchema
        .optional(),
    budgetTokens: z.number().optional(),
    verbosity: exports.GetPromptVersionVerbosity$inboundSchema.optional(),
    thinkingLevel: exports.GetPromptVersionThinkingLevel$inboundSchema.optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "encoding_format": "encodingFormat",
    });
});
function getPromptVersionModelParametersFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionModelParameters$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionModelParameters' from JSON`);
}
/** @internal */
exports.GetPromptVersionProvider$inboundSchema = z.nativeEnum(exports.GetPromptVersionProvider);
/** @internal */
exports.GetPromptVersionRole$inboundSchema = z.nativeEnum(exports.GetPromptVersionRole);
/** @internal */
exports.GetPromptVersion2File$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 getPromptVersion2FileFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersion2File$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersion2File' from JSON`);
}
/** @internal */
exports.GetPromptVersion23$inboundSchema = z.object({
    type: z.literal("file"),
    file: z.lazy(() => exports.GetPromptVersion2File$inboundSchema),
});
function getPromptVersion23FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersion23$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersion23' from JSON`);
}
/** @internal */
exports.GetPromptVersion2ImageUrl$inboundSchema = z.object({
    id: z.string().optional(),
    url: z.string(),
    detail: z.string().optional(),
});
function getPromptVersion2ImageUrlFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersion2ImageUrl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersion2ImageUrl' from JSON`);
}
/** @internal */
exports.GetPromptVersion22$inboundSchema = z.object({
    type: z.literal("image_url"),
    image_url: z.lazy(() => exports.GetPromptVersion2ImageUrl$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "image_url": "imageUrl",
    });
});
function getPromptVersion22FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersion22$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersion22' from JSON`);
}
/** @internal */
exports.GetPromptVersion21$inboundSchema = z.object({
    type: z.literal("text"),
    text: z.string(),
});
function getPromptVersion21FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersion21$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersion21' from JSON`);
}
/** @internal */
exports.GetPromptVersionContent2$inboundSchema = z.union([
    z.lazy(() => exports.GetPromptVersion21$inboundSchema),
    z.lazy(() => exports.GetPromptVersion22$inboundSchema),
    z.lazy(() => exports.GetPromptVersion23$inboundSchema),
]);
function getPromptVersionContent2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionContent2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionContent2' from JSON`);
}
/** @internal */
exports.GetPromptVersionContent$inboundSchema = z.union([
    z.string(),
    z.array(z.union([
        z.lazy(() => exports.GetPromptVersion21$inboundSchema),
        z.lazy(() => exports.GetPromptVersion22$inboundSchema),
        z.lazy(() => exports.GetPromptVersion23$inboundSchema),
    ])),
]);
function getPromptVersionContentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionContent' from JSON`);
}
/** @internal */
exports.GetPromptVersionPromptsType$inboundSchema = z.nativeEnum(exports.GetPromptVersionPromptsType);
/** @internal */
exports.GetPromptVersionFunction$inboundSchema = z.object({
    name: z.string(),
    arguments: z.string(),
});
function getPromptVersionFunctionFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionFunction' from JSON`);
}
/** @internal */
exports.GetPromptVersionToolCalls$inboundSchema = z.object({
    id: z.string().optional(),
    index: z.number().optional(),
    type: exports.GetPromptVersionPromptsType$inboundSchema,
    function: z.lazy(() => exports.GetPromptVersionFunction$inboundSchema),
});
function getPromptVersionToolCallsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionToolCalls$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionToolCalls' from JSON`);
}
/** @internal */
exports.GetPromptVersionMessages$inboundSchema = z.object({
    role: exports.GetPromptVersionRole$inboundSchema,
    content: z.nullable(z.union([
        z.string(),
        z.array(z.union([
            z.lazy(() => exports.GetPromptVersion21$inboundSchema),
            z.lazy(() => exports.GetPromptVersion22$inboundSchema),
            z.lazy(() => exports.GetPromptVersion23$inboundSchema),
        ])),
    ])),
    tool_calls: z.array(z.lazy(() => exports.GetPromptVersionToolCalls$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 getPromptVersionMessagesFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionMessages$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionMessages' from JSON`);
}
/** @internal */
exports.GetPromptVersionPromptConfig$inboundSchema = z.object({
    stream: z.boolean().optional(),
    model: z.nullable(z.string()).optional(),
    model_db_id: z.nullable(z.string()).optional(),
    model_type: z.nullable(exports.GetPromptVersionModelType$inboundSchema).optional(),
    model_parameters: z.lazy(() => exports.GetPromptVersionModelParameters$inboundSchema)
        .optional(),
    provider: z.nullable(exports.GetPromptVersionProvider$inboundSchema).optional(),
    integration_id: z.nullable(z.string()).optional(),
    version: z.string().optional(),
    messages: z.array(z.lazy(() => exports.GetPromptVersionMessages$inboundSchema)),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "model_db_id": "modelDbId",
        "model_type": "modelType",
        "model_parameters": "modelParameters",
        "integration_id": "integrationId",
    });
});
function getPromptVersionPromptConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionPromptConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionPromptConfig' from JSON`);
}
/** @internal */
exports.GetPromptVersionVoice$inboundSchema = z.nativeEnum(exports.GetPromptVersionVoice);
/** @internal */
exports.GetPromptVersionPromptsFormat$inboundSchema = z.nativeEnum(exports.GetPromptVersionPromptsFormat);
/** @internal */
exports.GetPromptVersionAudio$inboundSchema = z.object({
    voice: exports.GetPromptVersionVoice$inboundSchema,
    format: exports.GetPromptVersionPromptsFormat$inboundSchema,
});
function getPromptVersionAudioFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionAudio' from JSON`);
}
/** @internal */
exports.GetPromptVersionResponseFormatJsonSchema$inboundSchema = z.object({
    description: z.string().optional(),
    name: z.string(),
    schema: z.any().optional(),
    strict: z.boolean().default(false),
});
function getPromptVersionResponseFormatJsonSchemaFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionResponseFormatJsonSchema' from JSON`);
}
/** @internal */
exports.GetPromptVersionResponseFormatPromptsJSONSchema$inboundSchema = z.object({
    type: z.literal("json_schema"),
    json_schema: z.lazy(() => exports.GetPromptVersionResponseFormatJsonSchema$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "json_schema": "jsonSchema",
    });
});
function getPromptVersionResponseFormatPromptsJSONSchemaFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionResponseFormatPromptsJSONSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionResponseFormatPromptsJSONSchema' from JSON`);
}
/** @internal */
exports.GetPromptVersionResponseFormatJSONObject$inboundSchema = z.object({
    type: z.literal("json_object"),
});
function getPromptVersionResponseFormatJSONObjectFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionResponseFormatJSONObject$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionResponseFormatJSONObject' from JSON`);
}
/** @internal */
exports.GetPromptVersionResponseFormatText$inboundSchema = z.object({
    type: z.literal("text"),
});
function getPromptVersionResponseFormatTextFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionResponseFormatText$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionResponseFormatText' from JSON`);
}
/** @internal */
exports.GetPromptVersionResponseFormat$inboundSchema = z.union([
    z.lazy(() => exports.GetPromptVersionResponseFormatText$inboundSchema),
    z.lazy(() => exports.GetPromptVersionResponseFormatJSONObject$inboundSchema),
    z.lazy(() => exports.GetPromptVersionResponseFormatPromptsJSONSchema$inboundSchema),
]);
function getPromptVersionResponseFormatFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionResponseFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionResponseFormat' from JSON`);
}
/** @internal */
exports.GetPromptVersionReasoningEffort$inboundSchema = z.nativeEnum(exports.GetPromptVersionReasoningEffort);
/** @internal */
exports.GetPromptVersionStop$inboundSchema = z.union([z.string(), z.array(z.string())]);
function getPromptVersionStopFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionStop$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionStop' from JSON`);
}
/** @internal */
exports.GetPromptVersionStreamOptions$inboundSchema = z.object({
    include_usage: z.boolean().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "include_usage": "includeUsage",
    });
});
function getPromptVersionStreamOptionsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionStreamOptions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionStreamOptions' from JSON`);
}
/** @internal */
exports.GetPromptVersionThinking$inboundSchema = z.union([
    components.ThinkingConfigDisabledSchema$inboundSchema,
    components.ThinkingConfigEnabledSchema$inboundSchema,
    components.ThinkingConfigAdaptiveSchema$inboundSchema,
]);
function getPromptVersionThinkingFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionThinking$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionThinking' from JSON`);
}
/** @internal */
exports.GetPromptVersionToolChoiceType$inboundSchema = z.nativeEnum(exports.GetPromptVersionToolChoiceType);
/** @internal */
exports.GetPromptVersionToolChoiceFunction$inboundSchema = z.object({
    name: z.string(),
});
function getPromptVersionToolChoiceFunctionFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionToolChoiceFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionToolChoiceFunction' from JSON`);
}
/** @internal */
exports.GetPromptVersionToolChoice2$inboundSchema = z.object({
    type: exports.GetPromptVersionToolChoiceType$inboundSchema.optional(),
    function: z.lazy(() => exports.GetPromptVersionToolChoiceFunction$inboundSchema),
});
function getPromptVersionToolChoice2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionToolChoice2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionToolChoice2' from JSON`);
}
/** @internal */
exports.GetPromptVersionToolChoice1$inboundSchema = z.nativeEnum(exports.GetPromptVersionToolChoice1);
/** @internal */
exports.GetPromptVersionToolChoice$inboundSchema = z.union([
    z.lazy(() => exports.GetPromptVersionToolChoice2$inboundSchema),
    exports.GetPromptVersionToolChoice1$inboundSchema,
]);
function getPromptVersionToolChoiceFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionToolChoice$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionToolChoice' from JSON`);
}
/** @internal */
exports.GetPromptVersionModalities$inboundSchema = z.nativeEnum(exports.GetPromptVersionModalities);
/** @internal */
exports.GetPromptVersionId1$inboundSchema = z.nativeEnum(exports.GetPromptVersionId1);
/** @internal */
exports.GetPromptVersionId$inboundSchema = z.union([exports.GetPromptVersionId1$inboundSchema, z.string()]);
function getPromptVersionIdFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionId$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionId' from JSON`);
}
/** @internal */
exports.GetPromptVersionExecuteOn$inboundSchema = z.nativeEnum(exports.GetPromptVersionExecuteOn);
/** @internal */
exports.GetPromptVersionGuardrails$inboundSchema = z.object({
    id: z.union([exports.GetPromptVersionId1$inboundSchema, z.string()]),
    execute_on: exports.GetPromptVersionExecuteOn$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "execute_on": "executeOn",
    });
});
function getPromptVersionGuardrailsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionGuardrails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionGuardrails' from JSON`);
}
/** @internal */
exports.GetPromptVersionFallbacks$inboundSchema = z.object({
    model: z.string(),
});
function getPromptVersionFallbacksFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionFallbacks$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionFallbacks' from JSON`);
}
/** @internal */
exports.GetPromptVersionRetry$inboundSchema = z.object({
    count: z.number().default(3),
    on_codes: z.array(z.number()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "on_codes": "onCodes",
    });
});
function getPromptVersionRetryFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionRetry$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionRetry' from JSON`);
}
/** @internal */
exports.GetPromptVersionType$inboundSchema = z.nativeEnum(exports.GetPromptVersionType);
/** @internal */
exports.GetPromptVersionCache$inboundSchema = z.object({
    ttl: z.number().default(1800),
    type: exports.GetPromptVersionType$inboundSchema,
});
function getPromptVersionCacheFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionCache$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionCache' from JSON`);
}
/** @internal */
exports.GetPromptVersionLoadBalancerType$inboundSchema = z.nativeEnum(exports.GetPromptVersionLoadBalancerType);
/** @internal */
exports.GetPromptVersionLoadBalancerModels$inboundSchema = z.object({
    model: z.string(),
    weight: z.number().default(0.5),
});
function getPromptVersionLoadBalancerModelsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionLoadBalancerModels$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionLoadBalancerModels' from JSON`);
}
/** @internal */
exports.GetPromptVersionLoadBalancer1$inboundSchema = z.object({
    type: exports.GetPromptVersionLoadBalancerType$inboundSchema,
    models: z.array(z.lazy(() => exports.GetPromptVersionLoadBalancerModels$inboundSchema)),
});
function getPromptVersionLoadBalancer1FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionLoadBalancer1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionLoadBalancer1' from JSON`);
}
/** @internal */
exports.GetPromptVersionLoadBalancer$inboundSchema = z.lazy(() => exports.GetPromptVersionLoadBalancer1$inboundSchema);
function getPromptVersionLoadBalancerFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionLoadBalancer$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionLoadBalancer' from JSON`);
}
/** @internal */
exports.GetPromptVersionTimeout$inboundSchema = z.object({
    call_timeout: z.number(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "call_timeout": "callTimeout",
    });
});
function getPromptVersionTimeoutFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionTimeout$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionTimeout' from JSON`);
}
/** @internal */
exports.GetPromptVersionContentPromptsResponse2002$inboundSchema = components.TextContentPartSchema$inboundSchema;
function getPromptVersionContentPromptsResponse2002FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionContentPromptsResponse2002$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionContentPromptsResponse2002' from JSON`);
}
/** @internal */
exports.GetPromptVersionMessagesPromptsResponse200Content$inboundSchema = z.union([
    z.string(),
    z.array(components.TextContentPartSchema$inboundSchema),
]);
function getPromptVersionMessagesPromptsResponse200ContentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionMessagesPromptsResponse200Content$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionMessagesPromptsResponse200Content' from JSON`);
}
/** @internal */
exports.GetPromptVersionMessagesPromptsType$inboundSchema = z.nativeEnum(exports.GetPromptVersionMessagesPromptsType);
/** @internal */
exports.GetPromptVersionMessagesTtl$inboundSchema = z.nativeEnum(exports.GetPromptVersionMessagesTtl);
/** @internal */
exports.GetPromptVersionMessagesCacheControl$inboundSchema = z.object({
    type: exports.GetPromptVersionMessagesPromptsType$inboundSchema,
    ttl: exports.GetPromptVersionMessagesTtl$inboundSchema.default("5m"),
});
function getPromptVersionMessagesCacheControlFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionMessagesCacheControl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionMessagesCacheControl' from JSON`);
}
/** @internal */
exports.GetPromptVersionMessagesToolMessage$inboundSchema = z.object({
    role: z.literal("tool"),
    content: z.union([
        z.string(),
        z.array(components.TextContentPartSchema$inboundSchema),
    ]),
    tool_call_id: z.nullable(z.string()),
    cache_control: z.lazy(() => exports.GetPromptVersionMessagesCacheControl$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "tool_call_id": "toolCallId",
        "cache_control": "cacheControl",
    });
});
function getPromptVersionMessagesToolMessageFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionMessagesToolMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionMessagesToolMessage' from JSON`);
}
/** @internal */
exports.GetPromptVersionContentPromptsResponse2$inboundSchema = z.union([
    components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
    components.RefusalPartSchema$inboundSchema,
    components.ReasoningPartSchema$inboundSchema,
    components.RedactedReasoningPartSchema$inboundSchema,
]);
function getPromptVersionContentPromptsResponse2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionContentPromptsResponse2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionContentPromptsResponse2' from JSON`);
}
/** @internal */
exports.GetPromptVersionMessagesPromptsResponseContent$inboundSchema = z.union([
    z.string(),
    z.array(z.union([
        components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
        components.RefusalPartSchema$inboundSchema,
        components.ReasoningPartSchema$inboundSchema,
        components.RedactedReasoningPartSchema$inboundSchema,
    ])),
]);
function getPromptVersionMessagesPromptsResponseContentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionMessagesPromptsResponseContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionMessagesPromptsResponseContent' from JSON`);
}
/** @internal */
exports.GetPromptVersionMessagesAudio$inboundSchema = z.object({
    id: z.string(),
});
function getPromptVersionMessagesAudioFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionMessagesAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionMessagesAudio' from JSON`);
}
/** @internal */
exports.GetPromptVersionMessagesType$inboundSchema = z.nativeEnum(exports.GetPromptVersionMessagesType);
/** @internal */
exports.GetPromptVersionMessagesFunction$inboundSchema = z.object({
    name: z.string().optional(),
    arguments: z.string().optional(),
});
function getPromptVersionMessagesFunctionFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionMessagesFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionMessagesFunction' from JSON`);
}
/** @internal */
exports.GetPromptVersionMessagesToolCalls$inboundSchema = z.object({
    id: z.string(),
    type: exports.GetPromptVersionMessagesType$inboundSchema,
    function: z.lazy(() => exports.GetPromptVersionMessagesFunction$inboundSchema),
    thought_signature: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "thought_signature": "thoughtSignature",
    });
});
function getPromptVersionMessagesToolCallsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionMessagesToolCalls$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionMessagesToolCalls' from JSON`);
}
/** @internal */
exports.GetPromptVersionMessagesAssistantMessage$inboundSchema = z.object({
    content: z.nullable(z.union([
        z.string(),
        z.array(z.union([
            components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
            components.RefusalPartSchema$inboundSchema,
            components.ReasoningPartSchema$inboundSchema,
            components.RedactedReasoningPartSchema$inboundSchema,
        ])),
    ])).optional(),
    refusal: z.nullable(z.string()).optional(),
    role: z.literal("assistant"),
    name: z.string().optional(),
    audio: z.nullable(z.lazy(() => exports.GetPromptVersionMessagesAudio$inboundSchema))
        .optional(),
    tool_calls: z.array(z.lazy(() => exports.GetPromptVersionMessagesToolCalls$inboundSchema)).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "tool_calls": "toolCalls",
    });
});
function getPromptVersionMessagesAssistantMessageFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionMessagesAssistantMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionMessagesAssistantMessage' from JSON`);
}
/** @internal */
exports.GetPromptVersion2PromptsResponse200ApplicationJSONType$inboundSchema = z.nativeEnum(exports.GetPromptVersion2PromptsResponse200ApplicationJSONType);
/** @internal */
exports.GetPromptVersion2Ttl$inboundSchema = z.nativeEnum(exports.GetPromptVersion2Ttl);
/** @internal */
exports.GetPromptVersion2CacheControl$inboundSchema = z.object({
    type: exports.GetPromptVersion2PromptsResponse200ApplicationJSONType$inboundSchema,
    ttl: exports.GetPromptVersion2Ttl$inboundSchema.default("5m"),
});
function getPromptVersion2CacheControlFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersion2CacheControl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersion2CacheControl' from JSON`);
}
/** @internal */
exports.GetPromptVersion24$inboundSchema = z.object({
    type: z.literal("file"),
    cache_control: z.lazy(() => exports.GetPromptVersion2CacheControl$inboundSchema)
        .optional(),
    file: components.FileContentPartSchema$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "cache_control": "cacheControl",
    });
});
function getPromptVersion24FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersion24$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersion24' from JSON`);
}
/** @internal */
exports.GetPromptVersionContentPrompts2$inboundSchema = z.union([
    components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
    components.ImageContentPartSchema$inboundSchema,
    components.AudioContentPartSchema$inboundSchema,
    z.lazy(() => exports.GetPromptVersion24$inboundSchema),
]);
function getPromptVersionContentPrompts2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionContentPrompts2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionContentPrompts2' from JSON`);
}
/** @internal */
exports.GetPromptVersionMessagesPromptsContent$inboundSchema = z.union([
    z.string(),
    z.array(z.union([
        components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
        components.ImageContentPartSchema$inboundSchema,
        components.AudioContentPartSchema$inboundSchema,
        z.lazy(() => exports.GetPromptVersion24$inboundSchema),
    ])),
]);
function getPromptVersionMessagesPromptsContentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionMessagesPromptsContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionMessagesPromptsContent' from JSON`);
}
/** @internal */
exports.GetPromptVersionMessagesUserMessage$inboundSchema = z.object({
    role: z.literal("user"),
    name: z.string().optional(),
    content: z.union([
        z.string(),
        z.array(z.union([
            components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
            components.ImageContentPartSchema$inboundSchema,
            components.AudioContentPartSchema$inboundSchema,
            z.lazy(() => exports.GetPromptVersion24$inboundSchema),
        ])),
    ]),
});
function getPromptVersionMessagesUserMessageFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionMessagesUserMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionMessagesUserMessage' from JSON`);
}
/** @internal */
exports.GetPromptVersionMessagesContent$inboundSchema = z.union([
    z.string(),
    z.array(components.TextContentPartSchema$inboundSchema),
]);
function getPromptVersionMessagesContentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionMessagesContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionMessagesContent' from JSON`);
}
/** @internal */
exports.GetPromptVersionMessagesSystemMessage$inboundSchema = z.object({
    role: z.literal("system"),
    content: z.union([
        z.string(),
        z.array(components.TextContentPartSchema$inboundSchema),
    ]),
    name: z.string().optional(),
});
function getPromptVersionMessagesSystemMessageFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionMessagesSystemMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionMessagesSystemMessage' from JSON`);
}
/** @internal */
exports.GetPromptVersionPromptsMessages$inboundSchema = z.union([
    z.lazy(() => exports.GetPromptVersionMessagesSystemMessage$inboundSchema),
    z.lazy(() => exports.GetPromptVersionMessagesUserMessage$inboundSchema),
    z.lazy(() => exports.GetPromptVersionMessagesAssistantMessage$inboundSchema),
    z.lazy(() => exports.GetPromptVersionMessagesToolMessage$inboundSchema),
]);
function getPromptVersionPromptsMessagesFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionPromptsMessages$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionPromptsMessages' from JSON`);
}
/** @internal */
exports.GetPromptVersionPromptField$inboundSchema = z.object({
    name: z.string().optional(),
    audio: z.nullable(z.lazy(() => exports.GetPromptVersionAudio$inboundSchema))
        .optional(),
    frequency_penalty: z.nullable(z.number()).optional(),
    max_tokens: z.nullable(z.number().int()).optional(),
    max_completion_tokens: z.nullable(z.number().int()).optional(),
    logprobs: z.nullable(z.boolean()).optional(),
    top_logprobs: z.nullable(z.number().int()).optional(),
    n: z.nullable(z.number().int()).optional(),
    presence_penalty: z.nullable(z.number()).optional(),
    response_format: z.union([
        z.lazy(() => exports.GetPromptVersionResponseFormatText$inboundSchema),
        z.lazy(() => exports.GetPromptVersionResponseFormatJSONObject$inboundSchema),
        z.lazy(() => exports.GetPromptVersionResponseFormatPromptsJSONSchema$inboundSchema),
    ]).optional(),
    reasoning_effort: exports.GetPromptVersionReasoningEffort$inboundSchema.optional(),
    verbosity: z.string().optional(),
    seed: z.nullable(z.number()).optional(),
    stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
    stream_options: z.nullable(z.lazy(() => exports.GetPromptVersionStreamOptions$inboundSchema)).optional(),
    thinking: z.union([
        components.ThinkingConfigDisabledSchema$inboundSchema,
        components.ThinkingConfigEnabledSchema$inboundSchema,
        components.ThinkingConfigAdaptiveSchema$inboundSchema,
    ]).optional(),
    temperature: z.nullable(z.number()).optional(),
    top_p: z.nullable(z.number()).optional(),
    top_k: z.nullable(z.number()).optional(),
    tool_choice: z.union([
        z.lazy(() => exports.GetPromptVersionToolChoice2$inboundSchema),
        exports.GetPromptVersionToolChoice1$inboundSchema,
    ]).optional(),
    parallel_tool_calls: z.boolean().optional(),
    modalities: z.nullable(z.array(exports.GetPromptVersionModalities$inboundSchema))
        .optional(),
    guardrails: z.array(z.lazy(() => exports.GetPromptVersionGuardrails$inboundSchema))
        .optional(),
    fallbacks: z.array(z.lazy(() => exports.GetPromptVersionFallbacks$inboundSchema))
        .optional(),
    retry: z.lazy(() => exports.GetPromptVersionRetry$inboundSchema).optional(),
    cache: z.lazy(() => exports.GetPromptVersionCache$inboundSchema).optional(),
    load_balancer: z.lazy(() => exports.GetPromptVersionLoadBalancer1$inboundSchema)
        .optional(),
    timeout: z.lazy(() => exports.GetPromptVersionTimeout$inboundSchema).optional(),
    messages: z.array(z.union([
        z.lazy(() => exports.GetPromptVersionMessagesSystemMessage$inboundSchema),
        z.lazy(() => exports.GetPromptVersionMessagesUserMessage$inboundSchema),
        z.lazy(() => exports.GetPromptVersionMessagesAssistantMessage$inboundSchema),
        z.lazy(() => exports.GetPromptVersionMessagesToolMessage$inboundSchema),
    ])).optional(),
    model: z.nullable(z.string()).optional(),
    version: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "frequency_penalty": "frequencyPenalty",
        "max_tokens": "maxTokens",
        "max_completion_tokens": "maxCompletionTokens",
        "top_logprobs": "topLogprobs",
        "presence_penalty": "presencePenalty",
        "response_format": "responseFormat",
        "reasoning_effort": "reasoningEffort",
        "stream_options": "streamOptions",
        "top_p": "topP",
        "top_k": "topK",
        "tool_choice": "toolChoice",
        "parallel_tool_calls": "parallelToolCalls",
        "load_balancer": "loadBalancer",
    });
});
function getPromptVersionPromptFieldFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionPromptField$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionPromptField' from JSON`);
}
/** @internal */
exports.GetPromptVersionUseCases$inboundSchema = z.nativeEnum(exports.GetPromptVersionUseCases);
/** @internal */
exports.GetPromptVersionLanguage$inboundSchema = z.nativeEnum(exports.GetPromptVersionLanguage);
/** @internal */
exports.GetPromptVersionMetadata$inboundSchema = z.object({
    use_cases: z.array(exports.GetPromptVersionUseCases$inboundSchema).optional(),
    language: z.nullable(exports.GetPromptVersionLanguage$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "use_cases": "useCases",
    });
});
function getPromptVersionMetadataFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionMetadata$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionMetadata' from JSON`);
}
/** @internal */
exports.GetPromptVersionResponseBody$inboundSchema = z.object({
    _id: z.string(),
    created_by_id: z.nullable(z.string()).optional(),
    updated_by_id: z.nullable(z.string()).optional(),
    description: z.nullable(z.string()).optional(),
    prompt_config: z.lazy(() => exports.GetPromptVersionPromptConfig$inboundSchema)
        .optional(),
    prompt: z.lazy(() => exports.GetPromptVersionPromptField$inboundSchema),
    metadata: z.lazy(() => exports.GetPromptVersionMetadata$inboundSchema).optional(),
    timestamp: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "created_by_id": "createdById",
        "updated_by_id": "updatedById",
        "prompt_config": "promptConfig",
    });
});
function getPromptVersionResponseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionResponseBody' from JSON`);
}
//# sourceMappingURL=getpromptversion.js.map