"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.GetOnePromptPhotoRealVersion$inboundSchema = exports.GetOnePromptPromptsResponseFormat$inboundSchema = exports.GetOnePromptResponseFormat1$inboundSchema = exports.GetOnePromptResponseFormatPromptsResponseJsonSchema$inboundSchema = exports.GetOnePromptResponseFormatPromptsResponse200Type$inboundSchema = exports.GetOnePromptResponseFormat2$inboundSchema = exports.GetOnePromptResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema = exports.GetOnePromptResponseFormat3$inboundSchema = exports.GetOnePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema = exports.GetOnePromptResponseFormat4$inboundSchema = exports.GetOnePromptResponseFormat5$inboundSchema = exports.GetOnePromptResponseFormat6$inboundSchema = exports.GetOnePromptFormat$inboundSchema = exports.GetOnePromptModelType$inboundSchema = exports.GetOnePromptType$inboundSchema = exports.GetOnePromptRequest$outboundSchema = exports.GetOnePromptLanguage = exports.GetOnePromptUseCases = exports.GetOnePrompt2Ttl = exports.GetOnePrompt2PromptsResponse200ApplicationJSONType = exports.GetOnePromptMessagesType = exports.GetOnePromptMessagesTtl = exports.GetOnePromptMessagesPromptsType = exports.GetOnePromptLoadBalancerType = exports.GetOnePromptPromptsType = exports.GetOnePromptExecuteOn = exports.GetOnePromptId1 = exports.GetOnePromptModalities = exports.GetOnePromptToolChoice1 = exports.GetOnePromptToolChoiceType = exports.GetOnePromptReasoningEffort = exports.GetOnePromptPromptsFormat = exports.GetOnePromptVoice = exports.GetOnePromptPromptsResponseType = exports.GetOnePromptRole = exports.GetOnePromptProvider = exports.GetOnePromptThinkingLevel = exports.GetOnePromptVerbosity = exports.GetOnePromptPromptsReasoningEffort = exports.GetOnePromptEncodingFormat = exports.GetOnePromptPhotoRealVersion = exports.GetOnePromptResponseFormatPromptsResponse200Type = exports.GetOnePromptResponseFormatPromptsResponse200ApplicationJSONType = exports.GetOnePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyType = exports.GetOnePromptResponseFormat4 = exports.GetOnePromptResponseFormat5 = exports.GetOnePromptResponseFormat6 = exports.GetOnePromptFormat = exports.GetOnePromptModelType = exports.GetOnePromptType = void 0;
exports.GetOnePromptTimeout$inboundSchema = exports.GetOnePromptLoadBalancer$inboundSchema = exports.GetOnePromptLoadBalancer1$inboundSchema = exports.GetOnePromptLoadBalancerModels$inboundSchema = exports.GetOnePromptLoadBalancerType$inboundSchema = exports.GetOnePromptCache$inboundSchema = exports.GetOnePromptPromptsType$inboundSchema = exports.GetOnePromptRetry$inboundSchema = exports.GetOnePromptFallbacks$inboundSchema = exports.GetOnePromptGuardrails$inboundSchema = exports.GetOnePromptExecuteOn$inboundSchema = exports.GetOnePromptId$inboundSchema = exports.GetOnePromptId1$inboundSchema = exports.GetOnePromptModalities$inboundSchema = exports.GetOnePromptToolChoice$inboundSchema = exports.GetOnePromptToolChoice1$inboundSchema = exports.GetOnePromptToolChoice2$inboundSchema = exports.GetOnePromptToolChoiceFunction$inboundSchema = exports.GetOnePromptToolChoiceType$inboundSchema = exports.GetOnePromptThinking$inboundSchema = exports.GetOnePromptStreamOptions$inboundSchema = exports.GetOnePromptStop$inboundSchema = exports.GetOnePromptReasoningEffort$inboundSchema = exports.GetOnePromptResponseFormat$inboundSchema = exports.GetOnePromptResponseFormatText$inboundSchema = exports.GetOnePromptResponseFormatJSONObject$inboundSchema = exports.GetOnePromptResponseFormatPromptsJSONSchema$inboundSchema = exports.GetOnePromptResponseFormatJsonSchema$inboundSchema = exports.GetOnePromptAudio$inboundSchema = exports.GetOnePromptPromptsFormat$inboundSchema = exports.GetOnePromptVoice$inboundSchema = exports.GetOnePromptPromptConfig$inboundSchema = exports.GetOnePromptMessages$inboundSchema = exports.GetOnePromptToolCalls$inboundSchema = exports.GetOnePromptFunction$inboundSchema = exports.GetOnePromptPromptsResponseType$inboundSchema = exports.GetOnePromptContent$inboundSchema = exports.GetOnePromptContent2$inboundSchema = exports.GetOnePrompt21$inboundSchema = exports.GetOnePrompt22$inboundSchema = exports.GetOnePrompt2ImageUrl$inboundSchema = exports.GetOnePrompt23$inboundSchema = exports.GetOnePrompt2File$inboundSchema = exports.GetOnePromptRole$inboundSchema = exports.GetOnePromptProvider$inboundSchema = exports.GetOnePromptModelParameters$inboundSchema = exports.GetOnePromptThinkingLevel$inboundSchema = exports.GetOnePromptVerbosity$inboundSchema = exports.GetOnePromptPromptsReasoningEffort$inboundSchema = exports.GetOnePromptEncodingFormat$inboundSchema = void 0;
exports.GetOnePromptPrompt$inboundSchema = exports.GetOnePromptMetadata$inboundSchema = exports.GetOnePromptLanguage$inboundSchema = exports.GetOnePromptUseCases$inboundSchema = exports.GetOnePromptPromptField$inboundSchema = exports.GetOnePromptPromptsMessages$inboundSchema = exports.GetOnePromptMessagesSystemMessage$inboundSchema = exports.GetOnePromptMessagesContent$inboundSchema = exports.GetOnePromptMessagesUserMessage$inboundSchema = exports.GetOnePromptMessagesPromptsContent$inboundSchema = exports.GetOnePromptContentPrompts2$inboundSchema = exports.GetOnePrompt24$inboundSchema = exports.GetOnePrompt2CacheControl$inboundSchema = exports.GetOnePrompt2Ttl$inboundSchema = exports.GetOnePrompt2PromptsResponse200ApplicationJSONType$inboundSchema = exports.GetOnePromptMessagesAssistantMessage$inboundSchema = exports.GetOnePromptMessagesToolCalls$inboundSchema = exports.GetOnePromptMessagesFunction$inboundSchema = exports.GetOnePromptMessagesType$inboundSchema = exports.GetOnePromptMessagesAudio$inboundSchema = exports.GetOnePromptMessagesPromptsResponseContent$inboundSchema = exports.GetOnePromptContentPromptsResponse2$inboundSchema = exports.GetOnePromptMessagesToolMessage$inboundSchema = exports.GetOnePromptMessagesCacheControl$inboundSchema = exports.GetOnePromptMessagesTtl$inboundSchema = exports.GetOnePromptMessagesPromptsType$inboundSchema = exports.GetOnePromptMessagesPromptsResponse200Content$inboundSchema = exports.GetOnePromptContentPromptsResponse2002$inboundSchema = void 0;
exports.getOnePromptRequestToJSON = getOnePromptRequestToJSON;
exports.getOnePromptResponseFormat3FromJSON = getOnePromptResponseFormat3FromJSON;
exports.getOnePromptResponseFormat2FromJSON = getOnePromptResponseFormat2FromJSON;
exports.getOnePromptResponseFormatPromptsResponseJsonSchemaFromJSON = getOnePromptResponseFormatPromptsResponseJsonSchemaFromJSON;
exports.getOnePromptResponseFormat1FromJSON = getOnePromptResponseFormat1FromJSON;
exports.getOnePromptPromptsResponseFormatFromJSON = getOnePromptPromptsResponseFormatFromJSON;
exports.getOnePromptModelParametersFromJSON = getOnePromptModelParametersFromJSON;
exports.getOnePrompt2FileFromJSON = getOnePrompt2FileFromJSON;
exports.getOnePrompt23FromJSON = getOnePrompt23FromJSON;
exports.getOnePrompt2ImageUrlFromJSON = getOnePrompt2ImageUrlFromJSON;
exports.getOnePrompt22FromJSON = getOnePrompt22FromJSON;
exports.getOnePrompt21FromJSON = getOnePrompt21FromJSON;
exports.getOnePromptContent2FromJSON = getOnePromptContent2FromJSON;
exports.getOnePromptContentFromJSON = getOnePromptContentFromJSON;
exports.getOnePromptFunctionFromJSON = getOnePromptFunctionFromJSON;
exports.getOnePromptToolCallsFromJSON = getOnePromptToolCallsFromJSON;
exports.getOnePromptMessagesFromJSON = getOnePromptMessagesFromJSON;
exports.getOnePromptPromptConfigFromJSON = getOnePromptPromptConfigFromJSON;
exports.getOnePromptAudioFromJSON = getOnePromptAudioFromJSON;
exports.getOnePromptResponseFormatJsonSchemaFromJSON = getOnePromptResponseFormatJsonSchemaFromJSON;
exports.getOnePromptResponseFormatPromptsJSONSchemaFromJSON = getOnePromptResponseFormatPromptsJSONSchemaFromJSON;
exports.getOnePromptResponseFormatJSONObjectFromJSON = getOnePromptResponseFormatJSONObjectFromJSON;
exports.getOnePromptResponseFormatTextFromJSON = getOnePromptResponseFormatTextFromJSON;
exports.getOnePromptResponseFormatFromJSON = getOnePromptResponseFormatFromJSON;
exports.getOnePromptStopFromJSON = getOnePromptStopFromJSON;
exports.getOnePromptStreamOptionsFromJSON = getOnePromptStreamOptionsFromJSON;
exports.getOnePromptThinkingFromJSON = getOnePromptThinkingFromJSON;
exports.getOnePromptToolChoiceFunctionFromJSON = getOnePromptToolChoiceFunctionFromJSON;
exports.getOnePromptToolChoice2FromJSON = getOnePromptToolChoice2FromJSON;
exports.getOnePromptToolChoiceFromJSON = getOnePromptToolChoiceFromJSON;
exports.getOnePromptIdFromJSON = getOnePromptIdFromJSON;
exports.getOnePromptGuardrailsFromJSON = getOnePromptGuardrailsFromJSON;
exports.getOnePromptFallbacksFromJSON = getOnePromptFallbacksFromJSON;
exports.getOnePromptRetryFromJSON = getOnePromptRetryFromJSON;
exports.getOnePromptCacheFromJSON = getOnePromptCacheFromJSON;
exports.getOnePromptLoadBalancerModelsFromJSON = getOnePromptLoadBalancerModelsFromJSON;
exports.getOnePromptLoadBalancer1FromJSON = getOnePromptLoadBalancer1FromJSON;
exports.getOnePromptLoadBalancerFromJSON = getOnePromptLoadBalancerFromJSON;
exports.getOnePromptTimeoutFromJSON = getOnePromptTimeoutFromJSON;
exports.getOnePromptContentPromptsResponse2002FromJSON = getOnePromptContentPromptsResponse2002FromJSON;
exports.getOnePromptMessagesPromptsResponse200ContentFromJSON = getOnePromptMessagesPromptsResponse200ContentFromJSON;
exports.getOnePromptMessagesCacheControlFromJSON = getOnePromptMessagesCacheControlFromJSON;
exports.getOnePromptMessagesToolMessageFromJSON = getOnePromptMessagesToolMessageFromJSON;
exports.getOnePromptContentPromptsResponse2FromJSON = getOnePromptContentPromptsResponse2FromJSON;
exports.getOnePromptMessagesPromptsResponseContentFromJSON = getOnePromptMessagesPromptsResponseContentFromJSON;
exports.getOnePromptMessagesAudioFromJSON = getOnePromptMessagesAudioFromJSON;
exports.getOnePromptMessagesFunctionFromJSON = getOnePromptMessagesFunctionFromJSON;
exports.getOnePromptMessagesToolCallsFromJSON = getOnePromptMessagesToolCallsFromJSON;
exports.getOnePromptMessagesAssistantMessageFromJSON = getOnePromptMessagesAssistantMessageFromJSON;
exports.getOnePrompt2CacheControlFromJSON = getOnePrompt2CacheControlFromJSON;
exports.getOnePrompt24FromJSON = getOnePrompt24FromJSON;
exports.getOnePromptContentPrompts2FromJSON = getOnePromptContentPrompts2FromJSON;
exports.getOnePromptMessagesPromptsContentFromJSON = getOnePromptMessagesPromptsContentFromJSON;
exports.getOnePromptMessagesUserMessageFromJSON = getOnePromptMessagesUserMessageFromJSON;
exports.getOnePromptMessagesContentFromJSON = getOnePromptMessagesContentFromJSON;
exports.getOnePromptMessagesSystemMessageFromJSON = getOnePromptMessagesSystemMessageFromJSON;
exports.getOnePromptPromptsMessagesFromJSON = getOnePromptPromptsMessagesFromJSON;
exports.getOnePromptPromptFieldFromJSON = getOnePromptPromptFieldFromJSON;
exports.getOnePromptMetadataFromJSON = getOnePromptMetadataFromJSON;
exports.getOnePromptPromptFromJSON = getOnePromptPromptFromJSON;
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"));
exports.GetOnePromptType = {
    Prompt: "prompt",
};
/**
 * The modality of the model
 */
exports.GetOnePromptModelType = {
    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.GetOnePromptFormat = {
    Url: "url",
    B64Json: "b64_json",
    Text: "text",
    JsonObject: "json_object",
};
exports.GetOnePromptResponseFormat6 = {
    Json: "json",
    Text: "text",
    Srt: "srt",
    VerboseJson: "verbose_json",
    Vtt: "vtt",
};
exports.GetOnePromptResponseFormat5 = {
    Url: "url",
    Base64Json: "base64_json",
};
exports.GetOnePromptResponseFormat4 = {
    Mp3: "mp3",
    Opus: "opus",
    Aac: "aac",
    Flac: "flac",
    Wav: "wav",
    Pcm: "pcm",
};
exports.GetOnePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyType = {
    Text: "text",
};
exports.GetOnePromptResponseFormatPromptsResponse200ApplicationJSONType = {
    JsonObject: "json_object",
};
exports.GetOnePromptResponseFormatPromptsResponse200Type = {
    JsonSchema: "json_schema",
};
/**
 * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
 */
exports.GetOnePromptPhotoRealVersion = {
    V1: "v1",
    V2: "v2",
};
/**
 * The format to return the embeddings
 */
exports.GetOnePromptEncodingFormat = {
    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.GetOnePromptPromptsReasoningEffort = {
    None: "none",
    Disable: "disable",
    Minimal: "minimal",
    Low: "low",
    Medium: "medium",
    High: "high",
};
/**
 * Controls the verbosity of the model output.
 */
exports.GetOnePromptVerbosity = {
    Low: "low",
    Medium: "medium",
    High: "high",
};
/**
 * The level of thinking to use for the model. Only supported by `Google AI`
 */
exports.GetOnePromptThinkingLevel = {
    Low: "low",
    High: "high",
};
exports.GetOnePromptProvider = {
    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",
    Slack: "slack",
    Orq: "orq",
};
/**
 * The role of the prompt message
 */
exports.GetOnePromptRole = {
    System: "system",
    Developer: "developer",
    Assistant: "assistant",
    User: "user",
    Exception: "exception",
    Tool: "tool",
    Prompt: "prompt",
    Correction: "correction",
    ExpectedOutput: "expected_output",
};
exports.GetOnePromptPromptsResponseType = {
    Function: "function",
};
/**
 * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
 */
exports.GetOnePromptVoice = {
    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.GetOnePromptPromptsFormat = {
    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.GetOnePromptReasoningEffort = {
    None: "none",
    Minimal: "minimal",
    Low: "low",
    Medium: "medium",
    High: "high",
    Xhigh: "xhigh",
};
/**
 * The type of the tool. Currently, only function is supported.
 */
exports.GetOnePromptToolChoiceType = {
    Function: "function",
};
exports.GetOnePromptToolChoice1 = {
    None: "none",
    Auto: "auto",
    Required: "required",
};
exports.GetOnePromptModalities = {
    Text: "text",
    Audio: "audio",
};
/**
 * The key of the guardrail.
 */
exports.GetOnePromptId1 = {
    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.GetOnePromptExecuteOn = {
    Input: "input",
    Output: "output",
};
exports.GetOnePromptPromptsType = {
    ExactMatch: "exact_match",
};
exports.GetOnePromptLoadBalancerType = {
    WeightBased: "weight_based",
};
/**
 * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
 */
exports.GetOnePromptMessagesPromptsType = {
    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.GetOnePromptMessagesTtl = {
    Fivem: "5m",
    Oneh: "1h",
};
/**
 * The type of the tool. Currently, only `function` is supported.
 */
exports.GetOnePromptMessagesType = {
    Function: "function",
};
/**
 * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
 */
exports.GetOnePrompt2PromptsResponse200ApplicationJSONType = {
    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.GetOnePrompt2Ttl = {
    Fivem: "5m",
    Oneh: "1h",
};
exports.GetOnePromptUseCases = {
    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.GetOnePromptLanguage = {
    Chinese: "Chinese",
    Dutch: "Dutch",
    English: "English",
    French: "French",
    German: "German",
    Russian: "Russian",
    Spanish: "Spanish",
};
/** @internal */
exports.GetOnePromptRequest$outboundSchema = z.object({
    id: z.string(),
});
function getOnePromptRequestToJSON(getOnePromptRequest) {
    return JSON.stringify(exports.GetOnePromptRequest$outboundSchema.parse(getOnePromptRequest));
}
/** @internal */
exports.GetOnePromptType$inboundSchema = z.nativeEnum(exports.GetOnePromptType);
/** @internal */
exports.GetOnePromptModelType$inboundSchema = z.nativeEnum(exports.GetOnePromptModelType);
/** @internal */
exports.GetOnePromptFormat$inboundSchema = z.nativeEnum(exports.GetOnePromptFormat);
/** @internal */
exports.GetOnePromptResponseFormat6$inboundSchema = z.nativeEnum(exports.GetOnePromptResponseFormat6);
/** @internal */
exports.GetOnePromptResponseFormat5$inboundSchema = z.nativeEnum(exports.GetOnePromptResponseFormat5);
/** @internal */
exports.GetOnePromptResponseFormat4$inboundSchema = z.nativeEnum(exports.GetOnePromptResponseFormat4);
/** @internal */
exports.GetOnePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema = z.nativeEnum(exports.GetOnePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyType);
/** @internal */
exports.GetOnePromptResponseFormat3$inboundSchema = z.object({
    type: exports.GetOnePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema,
});
function getOnePromptResponseFormat3FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptResponseFormat3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptResponseFormat3' from JSON`);
}
/** @internal */
exports.GetOnePromptResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema = z.nativeEnum(exports.GetOnePromptResponseFormatPromptsResponse200ApplicationJSONType);
/** @internal */
exports.GetOnePromptResponseFormat2$inboundSchema = z.object({
    type: exports.GetOnePromptResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema,
});
function getOnePromptResponseFormat2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptResponseFormat2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptResponseFormat2' from JSON`);
}
/** @internal */
exports.GetOnePromptResponseFormatPromptsResponse200Type$inboundSchema = z
    .nativeEnum(exports.GetOnePromptResponseFormatPromptsResponse200Type);
/** @internal */
exports.GetOnePromptResponseFormatPromptsResponseJsonSchema$inboundSchema = z.object({
    name: z.string(),
    description: z.string().optional(),
    strict: z.boolean().optional(),
    schema: z.record(z.any()),
});
function getOnePromptResponseFormatPromptsResponseJsonSchemaFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptResponseFormatPromptsResponseJsonSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptResponseFormatPromptsResponseJsonSchema' from JSON`);
}
/** @internal */
exports.GetOnePromptResponseFormat1$inboundSchema = z.object({
    type: exports.GetOnePromptResponseFormatPromptsResponse200Type$inboundSchema,
    display_name: z.string().optional(),
    json_schema: z.lazy(() => exports.GetOnePromptResponseFormatPromptsResponseJsonSchema$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "display_name": "displayName",
        "json_schema": "jsonSchema",
    });
});
function getOnePromptResponseFormat1FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptResponseFormat1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptResponseFormat1' from JSON`);
}
/** @internal */
exports.GetOnePromptPromptsResponseFormat$inboundSchema = z.union([
    z.lazy(() => exports.GetOnePromptResponseFormat1$inboundSchema),
    z.lazy(() => exports.GetOnePromptResponseFormat2$inboundSchema),
    z.lazy(() => exports.GetOnePromptResponseFormat3$inboundSchema),
    exports.GetOnePromptResponseFormat4$inboundSchema,
    exports.GetOnePromptResponseFormat5$inboundSchema,
    exports.GetOnePromptResponseFormat6$inboundSchema,
]);
function getOnePromptPromptsResponseFormatFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptPromptsResponseFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptPromptsResponseFormat' from JSON`);
}
/** @internal */
exports.GetOnePromptPhotoRealVersion$inboundSchema = z.nativeEnum(exports.GetOnePromptPhotoRealVersion);
/** @internal */
exports.GetOnePromptEncodingFormat$inboundSchema = z.nativeEnum(exports.GetOnePromptEncodingFormat);
/** @internal */
exports.GetOnePromptPromptsReasoningEffort$inboundSchema = z.nativeEnum(exports.GetOnePromptPromptsReasoningEffort);
/** @internal */
exports.GetOnePromptVerbosity$inboundSchema = z.nativeEnum(exports.GetOnePromptVerbosity);
/** @internal */
exports.GetOnePromptThinkingLevel$inboundSchema = z.nativeEnum(exports.GetOnePromptThinkingLevel);
/** @internal */
exports.GetOnePromptModelParameters$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.GetOnePromptFormat$inboundSchema.optional(),
    dimensions: z.string().optional(),
    quality: z.string().optional(),
    style: z.string().optional(),
    responseFormat: z.nullable(z.union([
        z.lazy(() => exports.GetOnePromptResponseFormat1$inboundSchema),
        z.lazy(() => exports.GetOnePromptResponseFormat2$inboundSchema),
        z.lazy(() => exports.GetOnePromptResponseFormat3$inboundSchema),
        exports.GetOnePromptResponseFormat4$inboundSchema,
        exports.GetOnePromptResponseFormat5$inboundSchema,
        exports.GetOnePromptResponseFormat6$inboundSchema,
    ])).optional(),
    photoRealVersion: exports.GetOnePromptPhotoRealVersion$inboundSchema.optional(),
    encoding_format: exports.GetOnePromptEncodingFormat$inboundSchema.optional(),
    reasoningEffort: exports.GetOnePromptPromptsReasoningEffort$inboundSchema.optional(),
    budgetTokens: z.number().optional(),
    verbosity: exports.GetOnePromptVerbosity$inboundSchema.optional(),
    thinkingLevel: exports.GetOnePromptThinkingLevel$inboundSchema.optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "encoding_format": "encodingFormat",
    });
});
function getOnePromptModelParametersFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptModelParameters$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptModelParameters' from JSON`);
}
/** @internal */
exports.GetOnePromptProvider$inboundSchema = z.nativeEnum(exports.GetOnePromptProvider);
/** @internal */
exports.GetOnePromptRole$inboundSchema = z.nativeEnum(exports.GetOnePromptRole);
/** @internal */
exports.GetOnePrompt2File$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 getOnePrompt2FileFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePrompt2File$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePrompt2File' from JSON`);
}
/** @internal */
exports.GetOnePrompt23$inboundSchema = z.object({
    type: z.literal("file"),
    file: z.lazy(() => exports.GetOnePrompt2File$inboundSchema),
});
function getOnePrompt23FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePrompt23$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePrompt23' from JSON`);
}
/** @internal */
exports.GetOnePrompt2ImageUrl$inboundSchema = z.object({
    id: z.string().optional(),
    url: z.string(),
    detail: z.string().optional(),
});
function getOnePrompt2ImageUrlFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePrompt2ImageUrl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePrompt2ImageUrl' from JSON`);
}
/** @internal */
exports.GetOnePrompt22$inboundSchema = z.object({
    type: z.literal("image_url"),
    image_url: z.lazy(() => exports.GetOnePrompt2ImageUrl$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "image_url": "imageUrl",
    });
});
function getOnePrompt22FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePrompt22$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePrompt22' from JSON`);
}
/** @internal */
exports.GetOnePrompt21$inboundSchema = z.object({
    type: z.literal("text"),
    text: z.string(),
});
function getOnePrompt21FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePrompt21$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePrompt21' from JSON`);
}
/** @internal */
exports.GetOnePromptContent2$inboundSchema = z.union([
    z.lazy(() => exports.GetOnePrompt21$inboundSchema),
    z.lazy(() => exports.GetOnePrompt22$inboundSchema),
    z.lazy(() => exports.GetOnePrompt23$inboundSchema),
]);
function getOnePromptContent2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptContent2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptContent2' from JSON`);
}
/** @internal */
exports.GetOnePromptContent$inboundSchema = z.union([
    z.string(),
    z.array(z.union([
        z.lazy(() => exports.GetOnePrompt21$inboundSchema),
        z.lazy(() => exports.GetOnePrompt22$inboundSchema),
        z.lazy(() => exports.GetOnePrompt23$inboundSchema),
    ])),
]);
function getOnePromptContentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptContent' from JSON`);
}
/** @internal */
exports.GetOnePromptPromptsResponseType$inboundSchema = z.nativeEnum(exports.GetOnePromptPromptsResponseType);
/** @internal */
exports.GetOnePromptFunction$inboundSchema = z.object({
    name: z.string(),
    arguments: z.string(),
});
function getOnePromptFunctionFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptFunction' from JSON`);
}
/** @internal */
exports.GetOnePromptToolCalls$inboundSchema = z.object({
    id: z.string().optional(),
    index: z.number().optional(),
    type: exports.GetOnePromptPromptsResponseType$inboundSchema,
    function: z.lazy(() => exports.GetOnePromptFunction$inboundSchema),
});
function getOnePromptToolCallsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptToolCalls$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptToolCalls' from JSON`);
}
/** @internal */
exports.GetOnePromptMessages$inboundSchema = z.object({
    role: exports.GetOnePromptRole$inboundSchema,
    content: z.nullable(z.union([
        z.string(),
        z.array(z.union([
            z.lazy(() => exports.GetOnePrompt21$inboundSchema),
            z.lazy(() => exports.GetOnePrompt22$inboundSchema),
            z.lazy(() => exports.GetOnePrompt23$inboundSchema),
        ])),
    ])),
    tool_calls: z.array(z.lazy(() => exports.GetOnePromptToolCalls$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 getOnePromptMessagesFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptMessages$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptMessages' from JSON`);
}
/** @internal */
exports.GetOnePromptPromptConfig$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.GetOnePromptModelType$inboundSchema).optional(),
    model_parameters: z.lazy(() => exports.GetOnePromptModelParameters$inboundSchema)
        .optional(),
    provider: z.nullable(exports.GetOnePromptProvider$inboundSchema).optional(),
    integration_id: z.nullable(z.string()).optional(),
    version: z.string().optional(),
    messages: z.array(z.lazy(() => exports.GetOnePromptMessages$inboundSchema)),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "model_db_id": "modelDbId",
        "model_type": "modelType",
        "model_parameters": "modelParameters",
        "integration_id": "integrationId",
    });
});
function getOnePromptPromptConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptPromptConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptPromptConfig' from JSON`);
}
/** @internal */
exports.GetOnePromptVoice$inboundSchema = z.nativeEnum(exports.GetOnePromptVoice);
/** @internal */
exports.GetOnePromptPromptsFormat$inboundSchema = z.nativeEnum(exports.GetOnePromptPromptsFormat);
/** @internal */
exports.GetOnePromptAudio$inboundSchema = z.object({
    voice: exports.GetOnePromptVoice$inboundSchema,
    format: exports.GetOnePromptPromptsFormat$inboundSchema,
});
function getOnePromptAudioFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptAudio' from JSON`);
}
/** @internal */
exports.GetOnePromptResponseFormatJsonSchema$inboundSchema = z.object({
    description: z.string().optional(),
    name: z.string(),
    schema: z.any().optional(),
    strict: z.boolean().default(false),
});
function getOnePromptResponseFormatJsonSchemaFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptResponseFormatJsonSchema' from JSON`);
}
/** @internal */
exports.GetOnePromptResponseFormatPromptsJSONSchema$inboundSchema = z.object({
    type: z.literal("json_schema"),
    json_schema: z.lazy(() => exports.GetOnePromptResponseFormatJsonSchema$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "json_schema": "jsonSchema",
    });
});
function getOnePromptResponseFormatPromptsJSONSchemaFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptResponseFormatPromptsJSONSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptResponseFormatPromptsJSONSchema' from JSON`);
}
/** @internal */
exports.GetOnePromptResponseFormatJSONObject$inboundSchema = z.object({
    type: z.literal("json_object"),
});
function getOnePromptResponseFormatJSONObjectFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptResponseFormatJSONObject$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptResponseFormatJSONObject' from JSON`);
}
/** @internal */
exports.GetOnePromptResponseFormatText$inboundSchema = z.object({
    type: z.literal("text"),
});
function getOnePromptResponseFormatTextFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptResponseFormatText$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptResponseFormatText' from JSON`);
}
/** @internal */
exports.GetOnePromptResponseFormat$inboundSchema = z.union([
    z.lazy(() => exports.GetOnePromptResponseFormatText$inboundSchema),
    z.lazy(() => exports.GetOnePromptResponseFormatJSONObject$inboundSchema),
    z.lazy(() => exports.GetOnePromptResponseFormatPromptsJSONSchema$inboundSchema),
]);
function getOnePromptResponseFormatFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptResponseFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptResponseFormat' from JSON`);
}
/** @internal */
exports.GetOnePromptReasoningEffort$inboundSchema = z.nativeEnum(exports.GetOnePromptReasoningEffort);
/** @internal */
exports.GetOnePromptStop$inboundSchema = z.union([z.string(), z.array(z.string())]);
function getOnePromptStopFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptStop$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptStop' from JSON`);
}
/** @internal */
exports.GetOnePromptStreamOptions$inboundSchema = z.object({
    include_usage: z.boolean().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "include_usage": "includeUsage",
    });
});
function getOnePromptStreamOptionsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptStreamOptions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptStreamOptions' from JSON`);
}
/** @internal */
exports.GetOnePromptThinking$inboundSchema = z.union([
    components.ThinkingConfigDisabledSchema$inboundSchema,
    components.ThinkingConfigEnabledSchema$inboundSchema,
    components.ThinkingConfigAdaptiveSchema$inboundSchema,
]);
function getOnePromptThinkingFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptThinking$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptThinking' from JSON`);
}
/** @internal */
exports.GetOnePromptToolChoiceType$inboundSchema = z.nativeEnum(exports.GetOnePromptToolChoiceType);
/** @internal */
exports.GetOnePromptToolChoiceFunction$inboundSchema = z.object({
    name: z.string(),
});
function getOnePromptToolChoiceFunctionFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptToolChoiceFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptToolChoiceFunction' from JSON`);
}
/** @internal */
exports.GetOnePromptToolChoice2$inboundSchema = z.object({
    type: exports.GetOnePromptToolChoiceType$inboundSchema.optional(),
    function: z.lazy(() => exports.GetOnePromptToolChoiceFunction$inboundSchema),
});
function getOnePromptToolChoice2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptToolChoice2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptToolChoice2' from JSON`);
}
/** @internal */
exports.GetOnePromptToolChoice1$inboundSchema = z.nativeEnum(exports.GetOnePromptToolChoice1);
/** @internal */
exports.GetOnePromptToolChoice$inboundSchema = z.union([
    z.lazy(() => exports.GetOnePromptToolChoice2$inboundSchema),
    exports.GetOnePromptToolChoice1$inboundSchema,
]);
function getOnePromptToolChoiceFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptToolChoice$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptToolChoice' from JSON`);
}
/** @internal */
exports.GetOnePromptModalities$inboundSchema = z.nativeEnum(exports.GetOnePromptModalities);
/** @internal */
exports.GetOnePromptId1$inboundSchema = z.nativeEnum(exports.GetOnePromptId1);
/** @internal */
exports.GetOnePromptId$inboundSchema = z.union([exports.GetOnePromptId1$inboundSchema, z.string()]);
function getOnePromptIdFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptId$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptId' from JSON`);
}
/** @internal */
exports.GetOnePromptExecuteOn$inboundSchema = z.nativeEnum(exports.GetOnePromptExecuteOn);
/** @internal */
exports.GetOnePromptGuardrails$inboundSchema = z.object({
    id: z.union([exports.GetOnePromptId1$inboundSchema, z.string()]),
    execute_on: exports.GetOnePromptExecuteOn$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "execute_on": "executeOn",
    });
});
function getOnePromptGuardrailsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptGuardrails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptGuardrails' from JSON`);
}
/** @internal */
exports.GetOnePromptFallbacks$inboundSchema = z.object({
    model: z.string(),
});
function getOnePromptFallbacksFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptFallbacks$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptFallbacks' from JSON`);
}
/** @internal */
exports.GetOnePromptRetry$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 getOnePromptRetryFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptRetry$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptRetry' from JSON`);
}
/** @internal */
exports.GetOnePromptPromptsType$inboundSchema = z.nativeEnum(exports.GetOnePromptPromptsType);
/** @internal */
exports.GetOnePromptCache$inboundSchema = z.object({
    ttl: z.number().default(1800),
    type: exports.GetOnePromptPromptsType$inboundSchema,
});
function getOnePromptCacheFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptCache$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptCache' from JSON`);
}
/** @internal */
exports.GetOnePromptLoadBalancerType$inboundSchema = z.nativeEnum(exports.GetOnePromptLoadBalancerType);
/** @internal */
exports.GetOnePromptLoadBalancerModels$inboundSchema = z.object({
    model: z.string(),
    weight: z.number().default(0.5),
});
function getOnePromptLoadBalancerModelsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptLoadBalancerModels$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptLoadBalancerModels' from JSON`);
}
/** @internal */
exports.GetOnePromptLoadBalancer1$inboundSchema = z.object({
    type: exports.GetOnePromptLoadBalancerType$inboundSchema,
    models: z.array(z.lazy(() => exports.GetOnePromptLoadBalancerModels$inboundSchema)),
});
function getOnePromptLoadBalancer1FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptLoadBalancer1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptLoadBalancer1' from JSON`);
}
/** @internal */
exports.GetOnePromptLoadBalancer$inboundSchema = z.lazy(() => exports.GetOnePromptLoadBalancer1$inboundSchema);
function getOnePromptLoadBalancerFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptLoadBalancer$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptLoadBalancer' from JSON`);
}
/** @internal */
exports.GetOnePromptTimeout$inboundSchema = z.object({
    call_timeout: z.number(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "call_timeout": "callTimeout",
    });
});
function getOnePromptTimeoutFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptTimeout$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptTimeout' from JSON`);
}
/** @internal */
exports.GetOnePromptContentPromptsResponse2002$inboundSchema = components.TextContentPartSchema$inboundSchema;
function getOnePromptContentPromptsResponse2002FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptContentPromptsResponse2002$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptContentPromptsResponse2002' from JSON`);
}
/** @internal */
exports.GetOnePromptMessagesPromptsResponse200Content$inboundSchema = z.union([
    z.string(),
    z.array(components.TextContentPartSchema$inboundSchema),
]);
function getOnePromptMessagesPromptsResponse200ContentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptMessagesPromptsResponse200Content$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptMessagesPromptsResponse200Content' from JSON`);
}
/** @internal */
exports.GetOnePromptMessagesPromptsType$inboundSchema = z.nativeEnum(exports.GetOnePromptMessagesPromptsType);
/** @internal */
exports.GetOnePromptMessagesTtl$inboundSchema = z.nativeEnum(exports.GetOnePromptMessagesTtl);
/** @internal */
exports.GetOnePromptMessagesCacheControl$inboundSchema = z.object({
    type: exports.GetOnePromptMessagesPromptsType$inboundSchema,
    ttl: exports.GetOnePromptMessagesTtl$inboundSchema.default("5m"),
});
function getOnePromptMessagesCacheControlFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptMessagesCacheControl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptMessagesCacheControl' from JSON`);
}
/** @internal */
exports.GetOnePromptMessagesToolMessage$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.GetOnePromptMessagesCacheControl$inboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "tool_call_id": "toolCallId",
        "cache_control": "cacheControl",
    });
});
function getOnePromptMessagesToolMessageFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptMessagesToolMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptMessagesToolMessage' from JSON`);
}
/** @internal */
exports.GetOnePromptContentPromptsResponse2$inboundSchema = z.union([
    components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
    components.RefusalPartSchema$inboundSchema,
    components.ReasoningPartSchema$inboundSchema,
    components.RedactedReasoningPartSchema$inboundSchema,
]);
function getOnePromptContentPromptsResponse2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptContentPromptsResponse2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptContentPromptsResponse2' from JSON`);
}
/** @internal */
exports.GetOnePromptMessagesPromptsResponseContent$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 getOnePromptMessagesPromptsResponseContentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptMessagesPromptsResponseContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptMessagesPromptsResponseContent' from JSON`);
}
/** @internal */
exports.GetOnePromptMessagesAudio$inboundSchema = z.object({
    id: z.string(),
});
function getOnePromptMessagesAudioFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptMessagesAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptMessagesAudio' from JSON`);
}
/** @internal */
exports.GetOnePromptMessagesType$inboundSchema = z.nativeEnum(exports.GetOnePromptMessagesType);
/** @internal */
exports.GetOnePromptMessagesFunction$inboundSchema = z.object({
    name: z.string().optional(),
    arguments: z.string().optional(),
});
function getOnePromptMessagesFunctionFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptMessagesFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptMessagesFunction' from JSON`);
}
/** @internal */
exports.GetOnePromptMessagesToolCalls$inboundSchema = z.object({
    id: z.string(),
    type: exports.GetOnePromptMessagesType$inboundSchema,
    function: z.lazy(() => exports.GetOnePromptMessagesFunction$inboundSchema),
    thought_signature: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "thought_signature": "thoughtSignature",
    });
});
function getOnePromptMessagesToolCallsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptMessagesToolCalls$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptMessagesToolCalls' from JSON`);
}
/** @internal */
exports.GetOnePromptMessagesAssistantMessage$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.GetOnePromptMessagesAudio$inboundSchema))
        .optional(),
    tool_calls: z.array(z.lazy(() => exports.GetOnePromptMessagesToolCalls$inboundSchema))
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "tool_calls": "toolCalls",
    });
});
function getOnePromptMessagesAssistantMessageFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptMessagesAssistantMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptMessagesAssistantMessage' from JSON`);
}
/** @internal */
exports.GetOnePrompt2PromptsResponse200ApplicationJSONType$inboundSchema = z
    .nativeEnum(exports.GetOnePrompt2PromptsResponse200ApplicationJSONType);
/** @internal */
exports.GetOnePrompt2Ttl$inboundSchema = z.nativeEnum(exports.GetOnePrompt2Ttl);
/** @internal */
exports.GetOnePrompt2CacheControl$inboundSchema = z.object({
    type: exports.GetOnePrompt2PromptsResponse200ApplicationJSONType$inboundSchema,
    ttl: exports.GetOnePrompt2Ttl$inboundSchema.default("5m"),
});
function getOnePrompt2CacheControlFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePrompt2CacheControl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePrompt2CacheControl' from JSON`);
}
/** @internal */
exports.GetOnePrompt24$inboundSchema = z.object({
    type: z.literal("file"),
    cache_control: z.lazy(() => exports.GetOnePrompt2CacheControl$inboundSchema)
        .optional(),
    file: components.FileContentPartSchema$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "cache_control": "cacheControl",
    });
});
function getOnePrompt24FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePrompt24$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePrompt24' from JSON`);
}
/** @internal */
exports.GetOnePromptContentPrompts2$inboundSchema = z.union([
    components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
    components.ImageContentPartSchema$inboundSchema,
    components.AudioContentPartSchema$inboundSchema,
    z.lazy(() => exports.GetOnePrompt24$inboundSchema),
]);
function getOnePromptContentPrompts2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptContentPrompts2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptContentPrompts2' from JSON`);
}
/** @internal */
exports.GetOnePromptMessagesPromptsContent$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.GetOnePrompt24$inboundSchema),
    ])),
]);
function getOnePromptMessagesPromptsContentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptMessagesPromptsContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptMessagesPromptsContent' from JSON`);
}
/** @internal */
exports.GetOnePromptMessagesUserMessage$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.GetOnePrompt24$inboundSchema),
        ])),
    ]),
});
function getOnePromptMessagesUserMessageFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptMessagesUserMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptMessagesUserMessage' from JSON`);
}
/** @internal */
exports.GetOnePromptMessagesContent$inboundSchema = z.union([
    z.string(),
    z.array(components.TextContentPartSchema$inboundSchema),
]);
function getOnePromptMessagesContentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptMessagesContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptMessagesContent' from JSON`);
}
/** @internal */
exports.GetOnePromptMessagesSystemMessage$inboundSchema = z.object({
    role: z.literal("system"),
    content: z.union([
        z.string(),
        z.array(components.TextContentPartSchema$inboundSchema),
    ]),
    name: z.string().optional(),
});
function getOnePromptMessagesSystemMessageFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptMessagesSystemMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptMessagesSystemMessage' from JSON`);
}
/** @internal */
exports.GetOnePromptPromptsMessages$inboundSchema = z.union([
    z.lazy(() => exports.GetOnePromptMessagesSystemMessage$inboundSchema),
    z.lazy(() => exports.GetOnePromptMessagesUserMessage$inboundSchema),
    z.lazy(() => exports.GetOnePromptMessagesAssistantMessage$inboundSchema),
    z.lazy(() => exports.GetOnePromptMessagesToolMessage$inboundSchema),
]);
function getOnePromptPromptsMessagesFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptPromptsMessages$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptPromptsMessages' from JSON`);
}
/** @internal */
exports.GetOnePromptPromptField$inboundSchema = z.object({
    name: z.string().optional(),
    audio: z.nullable(z.lazy(() => exports.GetOnePromptAudio$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.GetOnePromptResponseFormatText$inboundSchema),
        z.lazy(() => exports.GetOnePromptResponseFormatJSONObject$inboundSchema),
        z.lazy(() => exports.GetOnePromptResponseFormatPromptsJSONSchema$inboundSchema),
    ]).optional(),
    reasoning_effort: exports.GetOnePromptReasoningEffort$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.GetOnePromptStreamOptions$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.GetOnePromptToolChoice2$inboundSchema),
        exports.GetOnePromptToolChoice1$inboundSchema,
    ]).optional(),
    parallel_tool_calls: z.boolean().optional(),
    modalities: z.nullable(z.array(exports.GetOnePromptModalities$inboundSchema))
        .optional(),
    guardrails: z.array(z.lazy(() => exports.GetOnePromptGuardrails$inboundSchema))
        .optional(),
    fallbacks: z.array(z.lazy(() => exports.GetOnePromptFallbacks$inboundSchema))
        .optional(),
    retry: z.lazy(() => exports.GetOnePromptRetry$inboundSchema).optional(),
    cache: z.lazy(() => exports.GetOnePromptCache$inboundSchema).optional(),
    load_balancer: z.lazy(() => exports.GetOnePromptLoadBalancer1$inboundSchema)
        .optional(),
    timeout: z.lazy(() => exports.GetOnePromptTimeout$inboundSchema).optional(),
    messages: z.array(z.union([
        z.lazy(() => exports.GetOnePromptMessagesSystemMessage$inboundSchema),
        z.lazy(() => exports.GetOnePromptMessagesUserMessage$inboundSchema),
        z.lazy(() => exports.GetOnePromptMessagesAssistantMessage$inboundSchema),
        z.lazy(() => exports.GetOnePromptMessagesToolMessage$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 getOnePromptPromptFieldFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptPromptField$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptPromptField' from JSON`);
}
/** @internal */
exports.GetOnePromptUseCases$inboundSchema = z.nativeEnum(exports.GetOnePromptUseCases);
/** @internal */
exports.GetOnePromptLanguage$inboundSchema = z.nativeEnum(exports.GetOnePromptLanguage);
/** @internal */
exports.GetOnePromptMetadata$inboundSchema = z.object({
    use_cases: z.array(exports.GetOnePromptUseCases$inboundSchema).optional(),
    language: z.nullable(exports.GetOnePromptLanguage$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "use_cases": "useCases",
    });
});
function getOnePromptMetadataFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptMetadata$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptMetadata' from JSON`);
}
/** @internal */
exports.GetOnePromptPrompt$inboundSchema = z.object({
    _id: z.string(),
    type: exports.GetOnePromptType$inboundSchema,
    owner: z.string(),
    domain_id: z.string(),
    created: z.string(),
    updated: z.string(),
    created_by_id: z.nullable(z.string()).optional(),
    updated_by_id: z.nullable(z.string()).optional(),
    display_name: z.string(),
    description: z.nullable(z.string()).optional(),
    prompt_config: z.lazy(() => exports.GetOnePromptPromptConfig$inboundSchema)
        .optional(),
    prompt: z.lazy(() => exports.GetOnePromptPromptField$inboundSchema),
    metadata: z.lazy(() => exports.GetOnePromptMetadata$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "domain_id": "domainId",
        "created_by_id": "createdById",
        "updated_by_id": "updatedById",
        "display_name": "displayName",
        "prompt_config": "promptConfig",
    });
});
function getOnePromptPromptFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptPrompt$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptPrompt' from JSON`);
}
//# sourceMappingURL=getoneprompt.js.map