"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.GetAllPromptsResponseFormat1$inboundSchema = exports.GetAllPromptsResponseFormatPromptsResponseJsonSchema$inboundSchema = exports.GetAllPromptsResponseFormatPromptsResponse200Type$inboundSchema = exports.GetAllPromptsResponseFormat2$inboundSchema = exports.GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema = exports.GetAllPromptsResponseFormat3$inboundSchema = exports.GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema = exports.GetAllPromptsResponseFormat4$inboundSchema = exports.GetAllPromptsResponseFormat5$inboundSchema = exports.GetAllPromptsResponseFormat6$inboundSchema = exports.GetAllPromptsFormat$inboundSchema = exports.GetAllPromptsModelType$inboundSchema = exports.GetAllPromptsType$inboundSchema = exports.GetAllPromptsObject$inboundSchema = exports.GetAllPromptsRequest$outboundSchema = exports.GetAllPromptsLanguage = exports.GetAllPromptsUseCases = exports.GetAllPrompts2Ttl = exports.GetAllPrompts2PromptsResponse200ApplicationJSONType = exports.GetAllPromptsMessagesType = exports.GetAllPromptsMessagesTtl = exports.GetAllPromptsMessagesPromptsType = exports.GetAllPromptsLoadBalancerType = exports.GetAllPromptsPromptsType = exports.GetAllPromptsExecuteOn = exports.GetAllPromptsId1 = exports.GetAllPromptsModalities = exports.GetAllPromptsToolChoice1 = exports.GetAllPromptsToolChoiceType = exports.GetAllPromptsReasoningEffort = exports.GetAllPromptsPromptsFormat = exports.GetAllPromptsVoice = exports.GetAllPromptsPromptsResponseType = exports.GetAllPromptsRole = exports.GetAllPromptsProvider = exports.GetAllPromptsThinkingLevel = exports.GetAllPromptsVerbosity = exports.GetAllPromptsPromptsReasoningEffort = exports.GetAllPromptsEncodingFormat = exports.GetAllPromptsPhotoRealVersion = exports.GetAllPromptsResponseFormatPromptsResponse200Type = exports.GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONType = exports.GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType = exports.GetAllPromptsResponseFormat4 = exports.GetAllPromptsResponseFormat5 = exports.GetAllPromptsResponseFormat6 = exports.GetAllPromptsFormat = exports.GetAllPromptsModelType = exports.GetAllPromptsType = exports.GetAllPromptsObject = void 0;
exports.GetAllPromptsLoadBalancer1$inboundSchema = exports.GetAllPromptsLoadBalancerModels$inboundSchema = exports.GetAllPromptsLoadBalancerType$inboundSchema = exports.GetAllPromptsCache$inboundSchema = exports.GetAllPromptsPromptsType$inboundSchema = exports.GetAllPromptsRetry$inboundSchema = exports.GetAllPromptsFallbacks$inboundSchema = exports.GetAllPromptsGuardrails$inboundSchema = exports.GetAllPromptsExecuteOn$inboundSchema = exports.GetAllPromptsId$inboundSchema = exports.GetAllPromptsId1$inboundSchema = exports.GetAllPromptsModalities$inboundSchema = exports.GetAllPromptsToolChoice$inboundSchema = exports.GetAllPromptsToolChoice1$inboundSchema = exports.GetAllPromptsToolChoice2$inboundSchema = exports.GetAllPromptsToolChoiceFunction$inboundSchema = exports.GetAllPromptsToolChoiceType$inboundSchema = exports.GetAllPromptsThinking$inboundSchema = exports.GetAllPromptsStreamOptions$inboundSchema = exports.GetAllPromptsStop$inboundSchema = exports.GetAllPromptsReasoningEffort$inboundSchema = exports.GetAllPromptsResponseFormat$inboundSchema = exports.GetAllPromptsResponseFormatText$inboundSchema = exports.GetAllPromptsResponseFormatJSONObject$inboundSchema = exports.GetAllPromptsResponseFormatPromptsJSONSchema$inboundSchema = exports.GetAllPromptsResponseFormatJsonSchema$inboundSchema = exports.GetAllPromptsAudio$inboundSchema = exports.GetAllPromptsPromptsFormat$inboundSchema = exports.GetAllPromptsVoice$inboundSchema = exports.GetAllPromptsPromptConfig$inboundSchema = exports.GetAllPromptsMessages$inboundSchema = exports.GetAllPromptsToolCalls$inboundSchema = exports.GetAllPromptsFunction$inboundSchema = exports.GetAllPromptsPromptsResponseType$inboundSchema = exports.GetAllPromptsContent$inboundSchema = exports.GetAllPromptsContent2$inboundSchema = exports.GetAllPrompts21$inboundSchema = exports.GetAllPrompts22$inboundSchema = exports.GetAllPrompts2ImageUrl$inboundSchema = exports.GetAllPrompts23$inboundSchema = exports.GetAllPrompts2File$inboundSchema = exports.GetAllPromptsRole$inboundSchema = exports.GetAllPromptsProvider$inboundSchema = exports.GetAllPromptsModelParameters$inboundSchema = exports.GetAllPromptsThinkingLevel$inboundSchema = exports.GetAllPromptsVerbosity$inboundSchema = exports.GetAllPromptsPromptsReasoningEffort$inboundSchema = exports.GetAllPromptsEncodingFormat$inboundSchema = exports.GetAllPromptsPhotoRealVersion$inboundSchema = exports.GetAllPromptsPromptsResponseFormat$inboundSchema = void 0;
exports.GetAllPromptsResponseBody$inboundSchema = exports.GetAllPromptsPrompt$inboundSchema = exports.GetAllPromptsMetadata$inboundSchema = exports.GetAllPromptsLanguage$inboundSchema = exports.GetAllPromptsUseCases$inboundSchema = exports.GetAllPromptsPromptField$inboundSchema = exports.GetAllPromptsPromptsMessages$inboundSchema = exports.GetAllPromptsMessagesSystemMessage$inboundSchema = exports.GetAllPromptsMessagesContent$inboundSchema = exports.GetAllPromptsMessagesUserMessage$inboundSchema = exports.GetAllPromptsMessagesPromptsContent$inboundSchema = exports.GetAllPromptsContentPrompts2$inboundSchema = exports.GetAllPrompts24$inboundSchema = exports.GetAllPrompts2CacheControl$inboundSchema = exports.GetAllPrompts2Ttl$inboundSchema = exports.GetAllPrompts2PromptsResponse200ApplicationJSONType$inboundSchema = exports.GetAllPromptsMessagesAssistantMessage$inboundSchema = exports.GetAllPromptsMessagesToolCalls$inboundSchema = exports.GetAllPromptsMessagesFunction$inboundSchema = exports.GetAllPromptsMessagesType$inboundSchema = exports.GetAllPromptsMessagesAudio$inboundSchema = exports.GetAllPromptsMessagesPromptsResponseContent$inboundSchema = exports.GetAllPromptsContentPromptsResponse2$inboundSchema = exports.GetAllPromptsMessagesToolMessage$inboundSchema = exports.GetAllPromptsMessagesCacheControl$inboundSchema = exports.GetAllPromptsMessagesTtl$inboundSchema = exports.GetAllPromptsMessagesPromptsType$inboundSchema = exports.GetAllPromptsMessagesPromptsResponse200Content$inboundSchema = exports.GetAllPromptsContentPromptsResponse2002$inboundSchema = exports.GetAllPromptsTimeout$inboundSchema = exports.GetAllPromptsLoadBalancer$inboundSchema = void 0;
exports.getAllPromptsRequestToJSON = getAllPromptsRequestToJSON;
exports.getAllPromptsResponseFormat3FromJSON = getAllPromptsResponseFormat3FromJSON;
exports.getAllPromptsResponseFormat2FromJSON = getAllPromptsResponseFormat2FromJSON;
exports.getAllPromptsResponseFormatPromptsResponseJsonSchemaFromJSON = getAllPromptsResponseFormatPromptsResponseJsonSchemaFromJSON;
exports.getAllPromptsResponseFormat1FromJSON = getAllPromptsResponseFormat1FromJSON;
exports.getAllPromptsPromptsResponseFormatFromJSON = getAllPromptsPromptsResponseFormatFromJSON;
exports.getAllPromptsModelParametersFromJSON = getAllPromptsModelParametersFromJSON;
exports.getAllPrompts2FileFromJSON = getAllPrompts2FileFromJSON;
exports.getAllPrompts23FromJSON = getAllPrompts23FromJSON;
exports.getAllPrompts2ImageUrlFromJSON = getAllPrompts2ImageUrlFromJSON;
exports.getAllPrompts22FromJSON = getAllPrompts22FromJSON;
exports.getAllPrompts21FromJSON = getAllPrompts21FromJSON;
exports.getAllPromptsContent2FromJSON = getAllPromptsContent2FromJSON;
exports.getAllPromptsContentFromJSON = getAllPromptsContentFromJSON;
exports.getAllPromptsFunctionFromJSON = getAllPromptsFunctionFromJSON;
exports.getAllPromptsToolCallsFromJSON = getAllPromptsToolCallsFromJSON;
exports.getAllPromptsMessagesFromJSON = getAllPromptsMessagesFromJSON;
exports.getAllPromptsPromptConfigFromJSON = getAllPromptsPromptConfigFromJSON;
exports.getAllPromptsAudioFromJSON = getAllPromptsAudioFromJSON;
exports.getAllPromptsResponseFormatJsonSchemaFromJSON = getAllPromptsResponseFormatJsonSchemaFromJSON;
exports.getAllPromptsResponseFormatPromptsJSONSchemaFromJSON = getAllPromptsResponseFormatPromptsJSONSchemaFromJSON;
exports.getAllPromptsResponseFormatJSONObjectFromJSON = getAllPromptsResponseFormatJSONObjectFromJSON;
exports.getAllPromptsResponseFormatTextFromJSON = getAllPromptsResponseFormatTextFromJSON;
exports.getAllPromptsResponseFormatFromJSON = getAllPromptsResponseFormatFromJSON;
exports.getAllPromptsStopFromJSON = getAllPromptsStopFromJSON;
exports.getAllPromptsStreamOptionsFromJSON = getAllPromptsStreamOptionsFromJSON;
exports.getAllPromptsThinkingFromJSON = getAllPromptsThinkingFromJSON;
exports.getAllPromptsToolChoiceFunctionFromJSON = getAllPromptsToolChoiceFunctionFromJSON;
exports.getAllPromptsToolChoice2FromJSON = getAllPromptsToolChoice2FromJSON;
exports.getAllPromptsToolChoiceFromJSON = getAllPromptsToolChoiceFromJSON;
exports.getAllPromptsIdFromJSON = getAllPromptsIdFromJSON;
exports.getAllPromptsGuardrailsFromJSON = getAllPromptsGuardrailsFromJSON;
exports.getAllPromptsFallbacksFromJSON = getAllPromptsFallbacksFromJSON;
exports.getAllPromptsRetryFromJSON = getAllPromptsRetryFromJSON;
exports.getAllPromptsCacheFromJSON = getAllPromptsCacheFromJSON;
exports.getAllPromptsLoadBalancerModelsFromJSON = getAllPromptsLoadBalancerModelsFromJSON;
exports.getAllPromptsLoadBalancer1FromJSON = getAllPromptsLoadBalancer1FromJSON;
exports.getAllPromptsLoadBalancerFromJSON = getAllPromptsLoadBalancerFromJSON;
exports.getAllPromptsTimeoutFromJSON = getAllPromptsTimeoutFromJSON;
exports.getAllPromptsContentPromptsResponse2002FromJSON = getAllPromptsContentPromptsResponse2002FromJSON;
exports.getAllPromptsMessagesPromptsResponse200ContentFromJSON = getAllPromptsMessagesPromptsResponse200ContentFromJSON;
exports.getAllPromptsMessagesCacheControlFromJSON = getAllPromptsMessagesCacheControlFromJSON;
exports.getAllPromptsMessagesToolMessageFromJSON = getAllPromptsMessagesToolMessageFromJSON;
exports.getAllPromptsContentPromptsResponse2FromJSON = getAllPromptsContentPromptsResponse2FromJSON;
exports.getAllPromptsMessagesPromptsResponseContentFromJSON = getAllPromptsMessagesPromptsResponseContentFromJSON;
exports.getAllPromptsMessagesAudioFromJSON = getAllPromptsMessagesAudioFromJSON;
exports.getAllPromptsMessagesFunctionFromJSON = getAllPromptsMessagesFunctionFromJSON;
exports.getAllPromptsMessagesToolCallsFromJSON = getAllPromptsMessagesToolCallsFromJSON;
exports.getAllPromptsMessagesAssistantMessageFromJSON = getAllPromptsMessagesAssistantMessageFromJSON;
exports.getAllPrompts2CacheControlFromJSON = getAllPrompts2CacheControlFromJSON;
exports.getAllPrompts24FromJSON = getAllPrompts24FromJSON;
exports.getAllPromptsContentPrompts2FromJSON = getAllPromptsContentPrompts2FromJSON;
exports.getAllPromptsMessagesPromptsContentFromJSON = getAllPromptsMessagesPromptsContentFromJSON;
exports.getAllPromptsMessagesUserMessageFromJSON = getAllPromptsMessagesUserMessageFromJSON;
exports.getAllPromptsMessagesContentFromJSON = getAllPromptsMessagesContentFromJSON;
exports.getAllPromptsMessagesSystemMessageFromJSON = getAllPromptsMessagesSystemMessageFromJSON;
exports.getAllPromptsPromptsMessagesFromJSON = getAllPromptsPromptsMessagesFromJSON;
exports.getAllPromptsPromptFieldFromJSON = getAllPromptsPromptFieldFromJSON;
exports.getAllPromptsMetadataFromJSON = getAllPromptsMetadataFromJSON;
exports.getAllPromptsPromptFromJSON = getAllPromptsPromptFromJSON;
exports.getAllPromptsResponseBodyFromJSON = getAllPromptsResponseBodyFromJSON;
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.GetAllPromptsObject = {
    List: "list",
};
exports.GetAllPromptsType = {
    Prompt: "prompt",
};
/**
 * The modality of the model
 */
exports.GetAllPromptsModelType = {
    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.GetAllPromptsFormat = {
    Url: "url",
    B64Json: "b64_json",
    Text: "text",
    JsonObject: "json_object",
};
exports.GetAllPromptsResponseFormat6 = {
    Json: "json",
    Text: "text",
    Srt: "srt",
    VerboseJson: "verbose_json",
    Vtt: "vtt",
};
exports.GetAllPromptsResponseFormat5 = {
    Url: "url",
    Base64Json: "base64_json",
};
exports.GetAllPromptsResponseFormat4 = {
    Mp3: "mp3",
    Opus: "opus",
    Aac: "aac",
    Flac: "flac",
    Wav: "wav",
    Pcm: "pcm",
};
exports.GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType = {
    Text: "text",
};
exports.GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONType = {
    JsonObject: "json_object",
};
exports.GetAllPromptsResponseFormatPromptsResponse200Type = {
    JsonSchema: "json_schema",
};
/**
 * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
 */
exports.GetAllPromptsPhotoRealVersion = {
    V1: "v1",
    V2: "v2",
};
/**
 * The format to return the embeddings
 */
exports.GetAllPromptsEncodingFormat = {
    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.GetAllPromptsPromptsReasoningEffort = {
    None: "none",
    Disable: "disable",
    Minimal: "minimal",
    Low: "low",
    Medium: "medium",
    High: "high",
};
/**
 * Controls the verbosity of the model output.
 */
exports.GetAllPromptsVerbosity = {
    Low: "low",
    Medium: "medium",
    High: "high",
};
/**
 * The level of thinking to use for the model. Only supported by `Google AI`
 */
exports.GetAllPromptsThinkingLevel = {
    Low: "low",
    Medium: "medium",
    High: "high",
};
exports.GetAllPromptsProvider = {
    Openai: "openai",
    Groq: "groq",
    Cohere: "cohere",
    Azure: "azure",
    Aws: "aws",
    Google: "google",
    GoogleAi: "google-ai",
    Huggingface: "huggingface",
    Togetherai: "togetherai",
    Perplexity: "perplexity",
    Anthropic: "anthropic",
    Leonardoai: "leonardoai",
    Fal: "fal",
    Nvidia: "nvidia",
    Jina: "jina",
    Elevenlabs: "elevenlabs",
    Litellm: "litellm",
    Cerebras: "cerebras",
    Openailike: "openailike",
    Bytedance: "bytedance",
    Mistral: "mistral",
    Deepseek: "deepseek",
    Contextualai: "contextualai",
    Moonshotai: "moonshotai",
    Zai: "zai",
    Minimax: "minimax",
    Xai: "xai",
    Alibaba: "alibaba",
    Tensorix: "tensorix",
    Scaleway: "scaleway",
    Hcompany: "hcompany",
    Inceptron: "inceptron",
    Slack: "slack",
    Orq: "orq",
};
/**
 * The role of the prompt message
 */
exports.GetAllPromptsRole = {
    System: "system",
    Developer: "developer",
    Assistant: "assistant",
    User: "user",
    Exception: "exception",
    Tool: "tool",
    Prompt: "prompt",
    Correction: "correction",
    ExpectedOutput: "expected_output",
};
exports.GetAllPromptsPromptsResponseType = {
    Function: "function",
};
/**
 * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
 */
exports.GetAllPromptsVoice = {
    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.GetAllPromptsPromptsFormat = {
    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.GetAllPromptsReasoningEffort = {
    None: "none",
    Minimal: "minimal",
    Low: "low",
    Medium: "medium",
    High: "high",
    Xhigh: "xhigh",
};
/**
 * The type of the tool. Currently, only function is supported.
 */
exports.GetAllPromptsToolChoiceType = {
    Function: "function",
};
exports.GetAllPromptsToolChoice1 = {
    None: "none",
    Auto: "auto",
    Required: "required",
};
exports.GetAllPromptsModalities = {
    Text: "text",
    Audio: "audio",
};
/**
 * The key of the guardrail.
 */
exports.GetAllPromptsId1 = {
    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.GetAllPromptsExecuteOn = {
    Input: "input",
    Output: "output",
};
exports.GetAllPromptsPromptsType = {
    ExactMatch: "exact_match",
};
exports.GetAllPromptsLoadBalancerType = {
    WeightBased: "weight_based",
};
/**
 * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
 */
exports.GetAllPromptsMessagesPromptsType = {
    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.GetAllPromptsMessagesTtl = {
    Fivem: "5m",
    Oneh: "1h",
};
/**
 * The type of the tool. Currently, only `function` is supported.
 */
exports.GetAllPromptsMessagesType = {
    Function: "function",
};
/**
 * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
 */
exports.GetAllPrompts2PromptsResponse200ApplicationJSONType = {
    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.GetAllPrompts2Ttl = {
    Fivem: "5m",
    Oneh: "1h",
};
exports.GetAllPromptsUseCases = {
    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.GetAllPromptsLanguage = {
    Chinese: "Chinese",
    Dutch: "Dutch",
    English: "English",
    French: "French",
    German: "German",
    Russian: "Russian",
    Spanish: "Spanish",
};
/** @internal */
exports.GetAllPromptsRequest$outboundSchema = z.object({
    limit: z.number().int().default(10),
    startingAfter: z.string().optional(),
    endingBefore: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        startingAfter: "starting_after",
        endingBefore: "ending_before",
    });
});
function getAllPromptsRequestToJSON(getAllPromptsRequest) {
    return JSON.stringify(exports.GetAllPromptsRequest$outboundSchema.parse(getAllPromptsRequest));
}
/** @internal */
exports.GetAllPromptsObject$inboundSchema = z.nativeEnum(exports.GetAllPromptsObject);
/** @internal */
exports.GetAllPromptsType$inboundSchema = z.nativeEnum(exports.GetAllPromptsType);
/** @internal */
exports.GetAllPromptsModelType$inboundSchema = z.nativeEnum(exports.GetAllPromptsModelType);
/** @internal */
exports.GetAllPromptsFormat$inboundSchema = z.nativeEnum(exports.GetAllPromptsFormat);
/** @internal */
exports.GetAllPromptsResponseFormat6$inboundSchema = z.nativeEnum(exports.GetAllPromptsResponseFormat6);
/** @internal */
exports.GetAllPromptsResponseFormat5$inboundSchema = z.nativeEnum(exports.GetAllPromptsResponseFormat5);
/** @internal */
exports.GetAllPromptsResponseFormat4$inboundSchema = z.nativeEnum(exports.GetAllPromptsResponseFormat4);
/** @internal */
exports.GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema = z.nativeEnum(exports.GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType);
/** @internal */
exports.GetAllPromptsResponseFormat3$inboundSchema = z.object({
    type: exports.GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema,
});
function getAllPromptsResponseFormat3FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsResponseFormat3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsResponseFormat3' from JSON`);
}
/** @internal */
exports.GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema = z.nativeEnum(exports.GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONType);
/** @internal */
exports.GetAllPromptsResponseFormat2$inboundSchema = z.object({
    type: exports.GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema,
});
function getAllPromptsResponseFormat2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsResponseFormat2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsResponseFormat2' from JSON`);
}
/** @internal */
exports.GetAllPromptsResponseFormatPromptsResponse200Type$inboundSchema = z
    .nativeEnum(exports.GetAllPromptsResponseFormatPromptsResponse200Type);
/** @internal */
exports.GetAllPromptsResponseFormatPromptsResponseJsonSchema$inboundSchema = z.object({
    name: z.string(),
    description: z.string().optional(),
    strict: z.boolean().optional(),
    schema: z.record(z.any()),
});
function getAllPromptsResponseFormatPromptsResponseJsonSchemaFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsResponseFormatPromptsResponseJsonSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsResponseFormatPromptsResponseJsonSchema' from JSON`);
}
/** @internal */
exports.GetAllPromptsResponseFormat1$inboundSchema = z.object({
    type: exports.GetAllPromptsResponseFormatPromptsResponse200Type$inboundSchema,
    display_name: z.string().optional(),
    json_schema: z.lazy(() => exports.GetAllPromptsResponseFormatPromptsResponseJsonSchema$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "display_name": "displayName",
        "json_schema": "jsonSchema",
    });
});
function getAllPromptsResponseFormat1FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsResponseFormat1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsResponseFormat1' from JSON`);
}
/** @internal */
exports.GetAllPromptsPromptsResponseFormat$inboundSchema = z.union([
    z.lazy(() => exports.GetAllPromptsResponseFormat1$inboundSchema),
    z.lazy(() => exports.GetAllPromptsResponseFormat2$inboundSchema),
    z.lazy(() => exports.GetAllPromptsResponseFormat3$inboundSchema),
    exports.GetAllPromptsResponseFormat4$inboundSchema,
    exports.GetAllPromptsResponseFormat5$inboundSchema,
    exports.GetAllPromptsResponseFormat6$inboundSchema,
]);
function getAllPromptsPromptsResponseFormatFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsPromptsResponseFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsPromptsResponseFormat' from JSON`);
}
/** @internal */
exports.GetAllPromptsPhotoRealVersion$inboundSchema = z.nativeEnum(exports.GetAllPromptsPhotoRealVersion);
/** @internal */
exports.GetAllPromptsEncodingFormat$inboundSchema = z.nativeEnum(exports.GetAllPromptsEncodingFormat);
/** @internal */
exports.GetAllPromptsPromptsReasoningEffort$inboundSchema = z.nativeEnum(exports.GetAllPromptsPromptsReasoningEffort);
/** @internal */
exports.GetAllPromptsVerbosity$inboundSchema = z.nativeEnum(exports.GetAllPromptsVerbosity);
/** @internal */
exports.GetAllPromptsThinkingLevel$inboundSchema = z.nativeEnum(exports.GetAllPromptsThinkingLevel);
/** @internal */
exports.GetAllPromptsModelParameters$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.GetAllPromptsFormat$inboundSchema.optional(),
    dimensions: z.string().optional(),
    quality: z.string().optional(),
    style: z.string().optional(),
    responseFormat: z.nullable(z.union([
        z.lazy(() => exports.GetAllPromptsResponseFormat1$inboundSchema),
        z.lazy(() => exports.GetAllPromptsResponseFormat2$inboundSchema),
        z.lazy(() => exports.GetAllPromptsResponseFormat3$inboundSchema),
        exports.GetAllPromptsResponseFormat4$inboundSchema,
        exports.GetAllPromptsResponseFormat5$inboundSchema,
        exports.GetAllPromptsResponseFormat6$inboundSchema,
    ])).optional(),
    photoRealVersion: exports.GetAllPromptsPhotoRealVersion$inboundSchema.optional(),
    encoding_format: exports.GetAllPromptsEncodingFormat$inboundSchema.optional(),
    reasoningEffort: exports.GetAllPromptsPromptsReasoningEffort$inboundSchema.optional(),
    budgetTokens: z.number().optional(),
    verbosity: exports.GetAllPromptsVerbosity$inboundSchema.optional(),
    thinkingLevel: exports.GetAllPromptsThinkingLevel$inboundSchema.optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "encoding_format": "encodingFormat",
    });
});
function getAllPromptsModelParametersFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsModelParameters$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsModelParameters' from JSON`);
}
/** @internal */
exports.GetAllPromptsProvider$inboundSchema = z.nativeEnum(exports.GetAllPromptsProvider);
/** @internal */
exports.GetAllPromptsRole$inboundSchema = z.nativeEnum(exports.GetAllPromptsRole);
/** @internal */
exports.GetAllPrompts2File$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 getAllPrompts2FileFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPrompts2File$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPrompts2File' from JSON`);
}
/** @internal */
exports.GetAllPrompts23$inboundSchema = z.object({
    type: z.literal("file"),
    file: z.lazy(() => exports.GetAllPrompts2File$inboundSchema),
});
function getAllPrompts23FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPrompts23$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPrompts23' from JSON`);
}
/** @internal */
exports.GetAllPrompts2ImageUrl$inboundSchema = z.object({
    id: z.string().optional(),
    url: z.string(),
    detail: z.string().optional(),
});
function getAllPrompts2ImageUrlFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPrompts2ImageUrl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPrompts2ImageUrl' from JSON`);
}
/** @internal */
exports.GetAllPrompts22$inboundSchema = z.object({
    type: z.literal("image_url"),
    image_url: z.lazy(() => exports.GetAllPrompts2ImageUrl$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "image_url": "imageUrl",
    });
});
function getAllPrompts22FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPrompts22$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPrompts22' from JSON`);
}
/** @internal */
exports.GetAllPrompts21$inboundSchema = z.object({
    type: z.literal("text"),
    text: z.string(),
});
function getAllPrompts21FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPrompts21$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPrompts21' from JSON`);
}
/** @internal */
exports.GetAllPromptsContent2$inboundSchema = z.union([
    z.lazy(() => exports.GetAllPrompts21$inboundSchema),
    z.lazy(() => exports.GetAllPrompts22$inboundSchema),
    z.lazy(() => exports.GetAllPrompts23$inboundSchema),
]);
function getAllPromptsContent2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsContent2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsContent2' from JSON`);
}
/** @internal */
exports.GetAllPromptsContent$inboundSchema = z.union([
    z.string(),
    z.array(z.union([
        z.lazy(() => exports.GetAllPrompts21$inboundSchema),
        z.lazy(() => exports.GetAllPrompts22$inboundSchema),
        z.lazy(() => exports.GetAllPrompts23$inboundSchema),
    ])),
]);
function getAllPromptsContentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsContent' from JSON`);
}
/** @internal */
exports.GetAllPromptsPromptsResponseType$inboundSchema = z.nativeEnum(exports.GetAllPromptsPromptsResponseType);
/** @internal */
exports.GetAllPromptsFunction$inboundSchema = z.object({
    name: z.string(),
    arguments: z.string(),
});
function getAllPromptsFunctionFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsFunction' from JSON`);
}
/** @internal */
exports.GetAllPromptsToolCalls$inboundSchema = z.object({
    id: z.string().optional(),
    index: z.number().optional(),
    type: exports.GetAllPromptsPromptsResponseType$inboundSchema,
    function: z.lazy(() => exports.GetAllPromptsFunction$inboundSchema),
});
function getAllPromptsToolCallsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsToolCalls$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsToolCalls' from JSON`);
}
/** @internal */
exports.GetAllPromptsMessages$inboundSchema = z.object({
    role: exports.GetAllPromptsRole$inboundSchema,
    content: z.nullable(z.union([
        z.string(),
        z.array(z.union([
            z.lazy(() => exports.GetAllPrompts21$inboundSchema),
            z.lazy(() => exports.GetAllPrompts22$inboundSchema),
            z.lazy(() => exports.GetAllPrompts23$inboundSchema),
        ])),
    ])),
    tool_calls: z.array(z.lazy(() => exports.GetAllPromptsToolCalls$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 getAllPromptsMessagesFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsMessages$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsMessages' from JSON`);
}
/** @internal */
exports.GetAllPromptsPromptConfig$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.GetAllPromptsModelType$inboundSchema).optional(),
    model_parameters: z.lazy(() => exports.GetAllPromptsModelParameters$inboundSchema)
        .optional(),
    provider: z.nullable(exports.GetAllPromptsProvider$inboundSchema).optional(),
    integration_id: z.nullable(z.string()).optional(),
    version: z.string().optional(),
    messages: z.array(z.lazy(() => exports.GetAllPromptsMessages$inboundSchema)),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "model_db_id": "modelDbId",
        "model_type": "modelType",
        "model_parameters": "modelParameters",
        "integration_id": "integrationId",
    });
});
function getAllPromptsPromptConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsPromptConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsPromptConfig' from JSON`);
}
/** @internal */
exports.GetAllPromptsVoice$inboundSchema = z.nativeEnum(exports.GetAllPromptsVoice);
/** @internal */
exports.GetAllPromptsPromptsFormat$inboundSchema = z.nativeEnum(exports.GetAllPromptsPromptsFormat);
/** @internal */
exports.GetAllPromptsAudio$inboundSchema = z.object({
    voice: exports.GetAllPromptsVoice$inboundSchema,
    format: exports.GetAllPromptsPromptsFormat$inboundSchema,
});
function getAllPromptsAudioFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsAudio' from JSON`);
}
/** @internal */
exports.GetAllPromptsResponseFormatJsonSchema$inboundSchema = z.object({
    description: z.string().optional(),
    name: z.string(),
    schema: z.any().optional(),
    strict: z.boolean().default(false),
});
function getAllPromptsResponseFormatJsonSchemaFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsResponseFormatJsonSchema' from JSON`);
}
/** @internal */
exports.GetAllPromptsResponseFormatPromptsJSONSchema$inboundSchema = z.object({
    type: z.literal("json_schema"),
    json_schema: z.lazy(() => exports.GetAllPromptsResponseFormatJsonSchema$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "json_schema": "jsonSchema",
    });
});
function getAllPromptsResponseFormatPromptsJSONSchemaFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsResponseFormatPromptsJSONSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsResponseFormatPromptsJSONSchema' from JSON`);
}
/** @internal */
exports.GetAllPromptsResponseFormatJSONObject$inboundSchema = z.object({
    type: z.literal("json_object"),
});
function getAllPromptsResponseFormatJSONObjectFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsResponseFormatJSONObject$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsResponseFormatJSONObject' from JSON`);
}
/** @internal */
exports.GetAllPromptsResponseFormatText$inboundSchema = z.object({
    type: z.literal("text"),
});
function getAllPromptsResponseFormatTextFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsResponseFormatText$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsResponseFormatText' from JSON`);
}
/** @internal */
exports.GetAllPromptsResponseFormat$inboundSchema = z.union([
    z.lazy(() => exports.GetAllPromptsResponseFormatText$inboundSchema),
    z.lazy(() => exports.GetAllPromptsResponseFormatJSONObject$inboundSchema),
    z.lazy(() => exports.GetAllPromptsResponseFormatPromptsJSONSchema$inboundSchema),
]);
function getAllPromptsResponseFormatFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsResponseFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsResponseFormat' from JSON`);
}
/** @internal */
exports.GetAllPromptsReasoningEffort$inboundSchema = z.nativeEnum(exports.GetAllPromptsReasoningEffort);
/** @internal */
exports.GetAllPromptsStop$inboundSchema = z.union([z.string(), z.array(z.string())]);
function getAllPromptsStopFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsStop$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsStop' from JSON`);
}
/** @internal */
exports.GetAllPromptsStreamOptions$inboundSchema = z.object({
    include_usage: z.boolean().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "include_usage": "includeUsage",
    });
});
function getAllPromptsStreamOptionsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsStreamOptions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsStreamOptions' from JSON`);
}
/** @internal */
exports.GetAllPromptsThinking$inboundSchema = z.union([
    components.ThinkingConfigDisabledSchema$inboundSchema,
    components.ThinkingConfigEnabledSchema$inboundSchema,
    components.ThinkingConfigAdaptiveSchema$inboundSchema,
]);
function getAllPromptsThinkingFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsThinking$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsThinking' from JSON`);
}
/** @internal */
exports.GetAllPromptsToolChoiceType$inboundSchema = z.nativeEnum(exports.GetAllPromptsToolChoiceType);
/** @internal */
exports.GetAllPromptsToolChoiceFunction$inboundSchema = z.object({
    name: z.string(),
});
function getAllPromptsToolChoiceFunctionFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsToolChoiceFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsToolChoiceFunction' from JSON`);
}
/** @internal */
exports.GetAllPromptsToolChoice2$inboundSchema = z.object({
    type: exports.GetAllPromptsToolChoiceType$inboundSchema.optional(),
    function: z.lazy(() => exports.GetAllPromptsToolChoiceFunction$inboundSchema),
});
function getAllPromptsToolChoice2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsToolChoice2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsToolChoice2' from JSON`);
}
/** @internal */
exports.GetAllPromptsToolChoice1$inboundSchema = z.nativeEnum(exports.GetAllPromptsToolChoice1);
/** @internal */
exports.GetAllPromptsToolChoice$inboundSchema = z.union([
    z.lazy(() => exports.GetAllPromptsToolChoice2$inboundSchema),
    exports.GetAllPromptsToolChoice1$inboundSchema,
]);
function getAllPromptsToolChoiceFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsToolChoice$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsToolChoice' from JSON`);
}
/** @internal */
exports.GetAllPromptsModalities$inboundSchema = z.nativeEnum(exports.GetAllPromptsModalities);
/** @internal */
exports.GetAllPromptsId1$inboundSchema = z.nativeEnum(exports.GetAllPromptsId1);
/** @internal */
exports.GetAllPromptsId$inboundSchema = z.union([exports.GetAllPromptsId1$inboundSchema, z.string()]);
function getAllPromptsIdFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsId$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsId' from JSON`);
}
/** @internal */
exports.GetAllPromptsExecuteOn$inboundSchema = z.nativeEnum(exports.GetAllPromptsExecuteOn);
/** @internal */
exports.GetAllPromptsGuardrails$inboundSchema = z.object({
    id: z.union([exports.GetAllPromptsId1$inboundSchema, z.string()]),
    execute_on: exports.GetAllPromptsExecuteOn$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "execute_on": "executeOn",
    });
});
function getAllPromptsGuardrailsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsGuardrails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsGuardrails' from JSON`);
}
/** @internal */
exports.GetAllPromptsFallbacks$inboundSchema = z.object({
    model: z.string(),
});
function getAllPromptsFallbacksFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsFallbacks$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsFallbacks' from JSON`);
}
/** @internal */
exports.GetAllPromptsRetry$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 getAllPromptsRetryFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsRetry$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsRetry' from JSON`);
}
/** @internal */
exports.GetAllPromptsPromptsType$inboundSchema = z.nativeEnum(exports.GetAllPromptsPromptsType);
/** @internal */
exports.GetAllPromptsCache$inboundSchema = z.object({
    ttl: z.number().default(1800),
    type: exports.GetAllPromptsPromptsType$inboundSchema,
});
function getAllPromptsCacheFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsCache$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsCache' from JSON`);
}
/** @internal */
exports.GetAllPromptsLoadBalancerType$inboundSchema = z.nativeEnum(exports.GetAllPromptsLoadBalancerType);
/** @internal */
exports.GetAllPromptsLoadBalancerModels$inboundSchema = z.object({
    model: z.string(),
    weight: z.number().default(0.5),
});
function getAllPromptsLoadBalancerModelsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsLoadBalancerModels$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsLoadBalancerModels' from JSON`);
}
/** @internal */
exports.GetAllPromptsLoadBalancer1$inboundSchema = z.object({
    type: exports.GetAllPromptsLoadBalancerType$inboundSchema,
    models: z.array(z.lazy(() => exports.GetAllPromptsLoadBalancerModels$inboundSchema)),
});
function getAllPromptsLoadBalancer1FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsLoadBalancer1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsLoadBalancer1' from JSON`);
}
/** @internal */
exports.GetAllPromptsLoadBalancer$inboundSchema = z.lazy(() => exports.GetAllPromptsLoadBalancer1$inboundSchema);
function getAllPromptsLoadBalancerFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsLoadBalancer$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsLoadBalancer' from JSON`);
}
/** @internal */
exports.GetAllPromptsTimeout$inboundSchema = z.object({
    call_timeout: z.number(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "call_timeout": "callTimeout",
    });
});
function getAllPromptsTimeoutFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsTimeout$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsTimeout' from JSON`);
}
/** @internal */
exports.GetAllPromptsContentPromptsResponse2002$inboundSchema = components.TextContentPartSchema$inboundSchema;
function getAllPromptsContentPromptsResponse2002FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsContentPromptsResponse2002$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsContentPromptsResponse2002' from JSON`);
}
/** @internal */
exports.GetAllPromptsMessagesPromptsResponse200Content$inboundSchema = z.union([
    z.string(),
    z.array(components.TextContentPartSchema$inboundSchema),
]);
function getAllPromptsMessagesPromptsResponse200ContentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsMessagesPromptsResponse200Content$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsMessagesPromptsResponse200Content' from JSON`);
}
/** @internal */
exports.GetAllPromptsMessagesPromptsType$inboundSchema = z.nativeEnum(exports.GetAllPromptsMessagesPromptsType);
/** @internal */
exports.GetAllPromptsMessagesTtl$inboundSchema = z.nativeEnum(exports.GetAllPromptsMessagesTtl);
/** @internal */
exports.GetAllPromptsMessagesCacheControl$inboundSchema = z.object({
    type: exports.GetAllPromptsMessagesPromptsType$inboundSchema,
    ttl: exports.GetAllPromptsMessagesTtl$inboundSchema.default("5m"),
});
function getAllPromptsMessagesCacheControlFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsMessagesCacheControl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsMessagesCacheControl' from JSON`);
}
/** @internal */
exports.GetAllPromptsMessagesToolMessage$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.GetAllPromptsMessagesCacheControl$inboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "tool_call_id": "toolCallId",
        "cache_control": "cacheControl",
    });
});
function getAllPromptsMessagesToolMessageFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsMessagesToolMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsMessagesToolMessage' from JSON`);
}
/** @internal */
exports.GetAllPromptsContentPromptsResponse2$inboundSchema = z.union([
    components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
    components.RefusalPartSchema$inboundSchema,
    components.ReasoningPartSchema$inboundSchema,
    components.RedactedReasoningPartSchema$inboundSchema,
]);
function getAllPromptsContentPromptsResponse2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsContentPromptsResponse2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsContentPromptsResponse2' from JSON`);
}
/** @internal */
exports.GetAllPromptsMessagesPromptsResponseContent$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 getAllPromptsMessagesPromptsResponseContentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsMessagesPromptsResponseContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsMessagesPromptsResponseContent' from JSON`);
}
/** @internal */
exports.GetAllPromptsMessagesAudio$inboundSchema = z.object({
    id: z.string(),
});
function getAllPromptsMessagesAudioFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsMessagesAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsMessagesAudio' from JSON`);
}
/** @internal */
exports.GetAllPromptsMessagesType$inboundSchema = z.nativeEnum(exports.GetAllPromptsMessagesType);
/** @internal */
exports.GetAllPromptsMessagesFunction$inboundSchema = z.object({
    name: z.string().optional(),
    arguments: z.string().optional(),
});
function getAllPromptsMessagesFunctionFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsMessagesFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsMessagesFunction' from JSON`);
}
/** @internal */
exports.GetAllPromptsMessagesToolCalls$inboundSchema = z.object({
    id: z.string(),
    type: exports.GetAllPromptsMessagesType$inboundSchema,
    function: z.lazy(() => exports.GetAllPromptsMessagesFunction$inboundSchema),
    thought_signature: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "thought_signature": "thoughtSignature",
    });
});
function getAllPromptsMessagesToolCallsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsMessagesToolCalls$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsMessagesToolCalls' from JSON`);
}
/** @internal */
exports.GetAllPromptsMessagesAssistantMessage$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.GetAllPromptsMessagesAudio$inboundSchema))
        .optional(),
    tool_calls: z.array(z.lazy(() => exports.GetAllPromptsMessagesToolCalls$inboundSchema)).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "tool_calls": "toolCalls",
    });
});
function getAllPromptsMessagesAssistantMessageFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsMessagesAssistantMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsMessagesAssistantMessage' from JSON`);
}
/** @internal */
exports.GetAllPrompts2PromptsResponse200ApplicationJSONType$inboundSchema = z.nativeEnum(exports.GetAllPrompts2PromptsResponse200ApplicationJSONType);
/** @internal */
exports.GetAllPrompts2Ttl$inboundSchema = z.nativeEnum(exports.GetAllPrompts2Ttl);
/** @internal */
exports.GetAllPrompts2CacheControl$inboundSchema = z.object({
    type: exports.GetAllPrompts2PromptsResponse200ApplicationJSONType$inboundSchema,
    ttl: exports.GetAllPrompts2Ttl$inboundSchema.default("5m"),
});
function getAllPrompts2CacheControlFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPrompts2CacheControl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPrompts2CacheControl' from JSON`);
}
/** @internal */
exports.GetAllPrompts24$inboundSchema = z.object({
    type: z.literal("file"),
    cache_control: z.lazy(() => exports.GetAllPrompts2CacheControl$inboundSchema)
        .optional(),
    file: components.FileContentPartSchema$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "cache_control": "cacheControl",
    });
});
function getAllPrompts24FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPrompts24$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPrompts24' from JSON`);
}
/** @internal */
exports.GetAllPromptsContentPrompts2$inboundSchema = z.union([
    components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
    components.ImageContentPartSchema$inboundSchema,
    components.AudioContentPartSchema$inboundSchema,
    z.lazy(() => exports.GetAllPrompts24$inboundSchema),
]);
function getAllPromptsContentPrompts2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsContentPrompts2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsContentPrompts2' from JSON`);
}
/** @internal */
exports.GetAllPromptsMessagesPromptsContent$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.GetAllPrompts24$inboundSchema),
    ])),
]);
function getAllPromptsMessagesPromptsContentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsMessagesPromptsContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsMessagesPromptsContent' from JSON`);
}
/** @internal */
exports.GetAllPromptsMessagesUserMessage$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.GetAllPrompts24$inboundSchema),
        ])),
    ]),
});
function getAllPromptsMessagesUserMessageFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsMessagesUserMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsMessagesUserMessage' from JSON`);
}
/** @internal */
exports.GetAllPromptsMessagesContent$inboundSchema = z.union([
    z.string(),
    z.array(components.TextContentPartSchema$inboundSchema),
]);
function getAllPromptsMessagesContentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsMessagesContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsMessagesContent' from JSON`);
}
/** @internal */
exports.GetAllPromptsMessagesSystemMessage$inboundSchema = z.object({
    role: z.literal("system"),
    content: z.union([
        z.string(),
        z.array(components.TextContentPartSchema$inboundSchema),
    ]),
    name: z.string().optional(),
});
function getAllPromptsMessagesSystemMessageFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsMessagesSystemMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsMessagesSystemMessage' from JSON`);
}
/** @internal */
exports.GetAllPromptsPromptsMessages$inboundSchema = z.union([
    z.lazy(() => exports.GetAllPromptsMessagesSystemMessage$inboundSchema),
    z.lazy(() => exports.GetAllPromptsMessagesUserMessage$inboundSchema),
    z.lazy(() => exports.GetAllPromptsMessagesAssistantMessage$inboundSchema),
    z.lazy(() => exports.GetAllPromptsMessagesToolMessage$inboundSchema),
]);
function getAllPromptsPromptsMessagesFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsPromptsMessages$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsPromptsMessages' from JSON`);
}
/** @internal */
exports.GetAllPromptsPromptField$inboundSchema = z.object({
    name: z.string().optional(),
    audio: z.nullable(z.lazy(() => exports.GetAllPromptsAudio$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.GetAllPromptsResponseFormatText$inboundSchema),
        z.lazy(() => exports.GetAllPromptsResponseFormatJSONObject$inboundSchema),
        z.lazy(() => exports.GetAllPromptsResponseFormatPromptsJSONSchema$inboundSchema),
    ]).optional(),
    reasoning_effort: exports.GetAllPromptsReasoningEffort$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.GetAllPromptsStreamOptions$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.GetAllPromptsToolChoice2$inboundSchema),
        exports.GetAllPromptsToolChoice1$inboundSchema,
    ]).optional(),
    parallel_tool_calls: z.boolean().optional(),
    modalities: z.nullable(z.array(exports.GetAllPromptsModalities$inboundSchema))
        .optional(),
    guardrails: z.array(z.lazy(() => exports.GetAllPromptsGuardrails$inboundSchema))
        .optional(),
    fallbacks: z.array(z.lazy(() => exports.GetAllPromptsFallbacks$inboundSchema))
        .optional(),
    retry: z.lazy(() => exports.GetAllPromptsRetry$inboundSchema).optional(),
    cache: z.lazy(() => exports.GetAllPromptsCache$inboundSchema).optional(),
    load_balancer: z.lazy(() => exports.GetAllPromptsLoadBalancer1$inboundSchema)
        .optional(),
    timeout: z.lazy(() => exports.GetAllPromptsTimeout$inboundSchema).optional(),
    messages: z.array(z.union([
        z.lazy(() => exports.GetAllPromptsMessagesSystemMessage$inboundSchema),
        z.lazy(() => exports.GetAllPromptsMessagesUserMessage$inboundSchema),
        z.lazy(() => exports.GetAllPromptsMessagesAssistantMessage$inboundSchema),
        z.lazy(() => exports.GetAllPromptsMessagesToolMessage$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 getAllPromptsPromptFieldFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsPromptField$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsPromptField' from JSON`);
}
/** @internal */
exports.GetAllPromptsUseCases$inboundSchema = z.nativeEnum(exports.GetAllPromptsUseCases);
/** @internal */
exports.GetAllPromptsLanguage$inboundSchema = z.nativeEnum(exports.GetAllPromptsLanguage);
/** @internal */
exports.GetAllPromptsMetadata$inboundSchema = z.object({
    use_cases: z.array(exports.GetAllPromptsUseCases$inboundSchema).optional(),
    language: z.nullable(exports.GetAllPromptsLanguage$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "use_cases": "useCases",
    });
});
function getAllPromptsMetadataFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsMetadata$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsMetadata' from JSON`);
}
/** @internal */
exports.GetAllPromptsPrompt$inboundSchema = z.object({
    _id: z.string(),
    type: exports.GetAllPromptsType$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.GetAllPromptsPromptConfig$inboundSchema)
        .optional(),
    prompt: z.lazy(() => exports.GetAllPromptsPromptField$inboundSchema),
    metadata: z.lazy(() => exports.GetAllPromptsMetadata$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 getAllPromptsPromptFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsPrompt$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsPrompt' from JSON`);
}
/** @internal */
exports.GetAllPromptsResponseBody$inboundSchema = z.object({
    object: exports.GetAllPromptsObject$inboundSchema,
    data: z.array(z.lazy(() => exports.GetAllPromptsPrompt$inboundSchema)),
    has_more: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "has_more": "hasMore",
    });
});
function getAllPromptsResponseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsResponseBody' from JSON`);
}
//# sourceMappingURL=getallprompts.js.map