"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.ListPromptVersionsPhotoRealVersion$inboundSchema = exports.ListPromptVersionsPromptsResponseFormat$inboundSchema = exports.ListPromptVersionsResponseFormat1$inboundSchema = exports.ListPromptVersionsResponseFormatPromptsResponseJsonSchema$inboundSchema = exports.ListPromptVersionsResponseFormatPromptsResponse200Type$inboundSchema = exports.ListPromptVersionsResponseFormat2$inboundSchema = exports.ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema = exports.ListPromptVersionsResponseFormat3$inboundSchema = exports.ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema = exports.ListPromptVersionsResponseFormat4$inboundSchema = exports.ListPromptVersionsResponseFormat5$inboundSchema = exports.ListPromptVersionsResponseFormat6$inboundSchema = exports.ListPromptVersionsFormat$inboundSchema = exports.ListPromptVersionsModelType$inboundSchema = exports.ListPromptVersionsObject$inboundSchema = exports.ListPromptVersionsRequest$outboundSchema = exports.ListPromptVersionsLanguage = exports.ListPromptVersionsUseCases = exports.ListPromptVersions2Ttl = exports.ListPromptVersions2PromptsResponse200ApplicationJSONType = exports.ListPromptVersionsMessagesType = exports.ListPromptVersionsMessagesTtl = exports.ListPromptVersionsMessagesPromptsType = exports.ListPromptVersionsLoadBalancerType = exports.ListPromptVersionsType = exports.ListPromptVersionsExecuteOn = exports.ListPromptVersionsId1 = exports.ListPromptVersionsModalities = exports.ListPromptVersionsToolChoice1 = exports.ListPromptVersionsToolChoiceType = exports.ListPromptVersionsReasoningEffort = exports.ListPromptVersionsPromptsFormat = exports.ListPromptVersionsVoice = exports.ListPromptVersionsPromptsType = exports.ListPromptVersionsRole = exports.ListPromptVersionsProvider = exports.ListPromptVersionsThinkingLevel = exports.ListPromptVersionsVerbosity = exports.ListPromptVersionsPromptsReasoningEffort = exports.ListPromptVersionsEncodingFormat = exports.ListPromptVersionsPhotoRealVersion = exports.ListPromptVersionsResponseFormatPromptsResponse200Type = exports.ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONType = exports.ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType = exports.ListPromptVersionsResponseFormat4 = exports.ListPromptVersionsResponseFormat5 = exports.ListPromptVersionsResponseFormat6 = exports.ListPromptVersionsFormat = exports.ListPromptVersionsModelType = exports.ListPromptVersionsObject = void 0;
exports.ListPromptVersionsTimeout$inboundSchema = exports.ListPromptVersionsLoadBalancer$inboundSchema = exports.ListPromptVersionsLoadBalancer1$inboundSchema = exports.ListPromptVersionsLoadBalancerModels$inboundSchema = exports.ListPromptVersionsLoadBalancerType$inboundSchema = exports.ListPromptVersionsCache$inboundSchema = exports.ListPromptVersionsType$inboundSchema = exports.ListPromptVersionsRetry$inboundSchema = exports.ListPromptVersionsFallbacks$inboundSchema = exports.ListPromptVersionsGuardrails$inboundSchema = exports.ListPromptVersionsExecuteOn$inboundSchema = exports.ListPromptVersionsId$inboundSchema = exports.ListPromptVersionsId1$inboundSchema = exports.ListPromptVersionsModalities$inboundSchema = exports.ListPromptVersionsToolChoice$inboundSchema = exports.ListPromptVersionsToolChoice1$inboundSchema = exports.ListPromptVersionsToolChoice2$inboundSchema = exports.ListPromptVersionsToolChoiceFunction$inboundSchema = exports.ListPromptVersionsToolChoiceType$inboundSchema = exports.ListPromptVersionsThinking$inboundSchema = exports.ListPromptVersionsStreamOptions$inboundSchema = exports.ListPromptVersionsStop$inboundSchema = exports.ListPromptVersionsReasoningEffort$inboundSchema = exports.ListPromptVersionsResponseFormat$inboundSchema = exports.ListPromptVersionsResponseFormatText$inboundSchema = exports.ListPromptVersionsResponseFormatJSONObject$inboundSchema = exports.ListPromptVersionsResponseFormatPromptsJSONSchema$inboundSchema = exports.ListPromptVersionsResponseFormatJsonSchema$inboundSchema = exports.ListPromptVersionsAudio$inboundSchema = exports.ListPromptVersionsPromptsFormat$inboundSchema = exports.ListPromptVersionsVoice$inboundSchema = exports.ListPromptVersionsPromptConfig$inboundSchema = exports.ListPromptVersionsMessages$inboundSchema = exports.ListPromptVersionsToolCalls$inboundSchema = exports.ListPromptVersionsFunction$inboundSchema = exports.ListPromptVersionsPromptsType$inboundSchema = exports.ListPromptVersionsContent$inboundSchema = exports.ListPromptVersionsContent2$inboundSchema = exports.ListPromptVersions21$inboundSchema = exports.ListPromptVersions22$inboundSchema = exports.ListPromptVersions2ImageUrl$inboundSchema = exports.ListPromptVersions23$inboundSchema = exports.ListPromptVersions2File$inboundSchema = exports.ListPromptVersionsRole$inboundSchema = exports.ListPromptVersionsProvider$inboundSchema = exports.ListPromptVersionsModelParameters$inboundSchema = exports.ListPromptVersionsThinkingLevel$inboundSchema = exports.ListPromptVersionsVerbosity$inboundSchema = exports.ListPromptVersionsPromptsReasoningEffort$inboundSchema = exports.ListPromptVersionsEncodingFormat$inboundSchema = void 0;
exports.ListPromptVersionsResponseBody$inboundSchema = exports.ListPromptVersionsData$inboundSchema = exports.ListPromptVersionsMetadata$inboundSchema = exports.ListPromptVersionsLanguage$inboundSchema = exports.ListPromptVersionsUseCases$inboundSchema = exports.ListPromptVersionsPromptField$inboundSchema = exports.ListPromptVersionsPromptsMessages$inboundSchema = exports.ListPromptVersionsMessagesSystemMessage$inboundSchema = exports.ListPromptVersionsMessagesContent$inboundSchema = exports.ListPromptVersionsMessagesUserMessage$inboundSchema = exports.ListPromptVersionsMessagesPromptsContent$inboundSchema = exports.ListPromptVersionsContentPrompts2$inboundSchema = exports.ListPromptVersions24$inboundSchema = exports.ListPromptVersions2CacheControl$inboundSchema = exports.ListPromptVersions2Ttl$inboundSchema = exports.ListPromptVersions2PromptsResponse200ApplicationJSONType$inboundSchema = exports.ListPromptVersionsMessagesAssistantMessage$inboundSchema = exports.ListPromptVersionsMessagesToolCalls$inboundSchema = exports.ListPromptVersionsMessagesFunction$inboundSchema = exports.ListPromptVersionsMessagesType$inboundSchema = exports.ListPromptVersionsMessagesAudio$inboundSchema = exports.ListPromptVersionsMessagesPromptsResponseContent$inboundSchema = exports.ListPromptVersionsContentPromptsResponse2$inboundSchema = exports.ListPromptVersionsMessagesToolMessage$inboundSchema = exports.ListPromptVersionsMessagesCacheControl$inboundSchema = exports.ListPromptVersionsMessagesTtl$inboundSchema = exports.ListPromptVersionsMessagesPromptsType$inboundSchema = exports.ListPromptVersionsMessagesPromptsResponse200Content$inboundSchema = exports.ListPromptVersionsContentPromptsResponse2002$inboundSchema = void 0;
exports.listPromptVersionsRequestToJSON = listPromptVersionsRequestToJSON;
exports.listPromptVersionsResponseFormat3FromJSON = listPromptVersionsResponseFormat3FromJSON;
exports.listPromptVersionsResponseFormat2FromJSON = listPromptVersionsResponseFormat2FromJSON;
exports.listPromptVersionsResponseFormatPromptsResponseJsonSchemaFromJSON = listPromptVersionsResponseFormatPromptsResponseJsonSchemaFromJSON;
exports.listPromptVersionsResponseFormat1FromJSON = listPromptVersionsResponseFormat1FromJSON;
exports.listPromptVersionsPromptsResponseFormatFromJSON = listPromptVersionsPromptsResponseFormatFromJSON;
exports.listPromptVersionsModelParametersFromJSON = listPromptVersionsModelParametersFromJSON;
exports.listPromptVersions2FileFromJSON = listPromptVersions2FileFromJSON;
exports.listPromptVersions23FromJSON = listPromptVersions23FromJSON;
exports.listPromptVersions2ImageUrlFromJSON = listPromptVersions2ImageUrlFromJSON;
exports.listPromptVersions22FromJSON = listPromptVersions22FromJSON;
exports.listPromptVersions21FromJSON = listPromptVersions21FromJSON;
exports.listPromptVersionsContent2FromJSON = listPromptVersionsContent2FromJSON;
exports.listPromptVersionsContentFromJSON = listPromptVersionsContentFromJSON;
exports.listPromptVersionsFunctionFromJSON = listPromptVersionsFunctionFromJSON;
exports.listPromptVersionsToolCallsFromJSON = listPromptVersionsToolCallsFromJSON;
exports.listPromptVersionsMessagesFromJSON = listPromptVersionsMessagesFromJSON;
exports.listPromptVersionsPromptConfigFromJSON = listPromptVersionsPromptConfigFromJSON;
exports.listPromptVersionsAudioFromJSON = listPromptVersionsAudioFromJSON;
exports.listPromptVersionsResponseFormatJsonSchemaFromJSON = listPromptVersionsResponseFormatJsonSchemaFromJSON;
exports.listPromptVersionsResponseFormatPromptsJSONSchemaFromJSON = listPromptVersionsResponseFormatPromptsJSONSchemaFromJSON;
exports.listPromptVersionsResponseFormatJSONObjectFromJSON = listPromptVersionsResponseFormatJSONObjectFromJSON;
exports.listPromptVersionsResponseFormatTextFromJSON = listPromptVersionsResponseFormatTextFromJSON;
exports.listPromptVersionsResponseFormatFromJSON = listPromptVersionsResponseFormatFromJSON;
exports.listPromptVersionsStopFromJSON = listPromptVersionsStopFromJSON;
exports.listPromptVersionsStreamOptionsFromJSON = listPromptVersionsStreamOptionsFromJSON;
exports.listPromptVersionsThinkingFromJSON = listPromptVersionsThinkingFromJSON;
exports.listPromptVersionsToolChoiceFunctionFromJSON = listPromptVersionsToolChoiceFunctionFromJSON;
exports.listPromptVersionsToolChoice2FromJSON = listPromptVersionsToolChoice2FromJSON;
exports.listPromptVersionsToolChoiceFromJSON = listPromptVersionsToolChoiceFromJSON;
exports.listPromptVersionsIdFromJSON = listPromptVersionsIdFromJSON;
exports.listPromptVersionsGuardrailsFromJSON = listPromptVersionsGuardrailsFromJSON;
exports.listPromptVersionsFallbacksFromJSON = listPromptVersionsFallbacksFromJSON;
exports.listPromptVersionsRetryFromJSON = listPromptVersionsRetryFromJSON;
exports.listPromptVersionsCacheFromJSON = listPromptVersionsCacheFromJSON;
exports.listPromptVersionsLoadBalancerModelsFromJSON = listPromptVersionsLoadBalancerModelsFromJSON;
exports.listPromptVersionsLoadBalancer1FromJSON = listPromptVersionsLoadBalancer1FromJSON;
exports.listPromptVersionsLoadBalancerFromJSON = listPromptVersionsLoadBalancerFromJSON;
exports.listPromptVersionsTimeoutFromJSON = listPromptVersionsTimeoutFromJSON;
exports.listPromptVersionsContentPromptsResponse2002FromJSON = listPromptVersionsContentPromptsResponse2002FromJSON;
exports.listPromptVersionsMessagesPromptsResponse200ContentFromJSON = listPromptVersionsMessagesPromptsResponse200ContentFromJSON;
exports.listPromptVersionsMessagesCacheControlFromJSON = listPromptVersionsMessagesCacheControlFromJSON;
exports.listPromptVersionsMessagesToolMessageFromJSON = listPromptVersionsMessagesToolMessageFromJSON;
exports.listPromptVersionsContentPromptsResponse2FromJSON = listPromptVersionsContentPromptsResponse2FromJSON;
exports.listPromptVersionsMessagesPromptsResponseContentFromJSON = listPromptVersionsMessagesPromptsResponseContentFromJSON;
exports.listPromptVersionsMessagesAudioFromJSON = listPromptVersionsMessagesAudioFromJSON;
exports.listPromptVersionsMessagesFunctionFromJSON = listPromptVersionsMessagesFunctionFromJSON;
exports.listPromptVersionsMessagesToolCallsFromJSON = listPromptVersionsMessagesToolCallsFromJSON;
exports.listPromptVersionsMessagesAssistantMessageFromJSON = listPromptVersionsMessagesAssistantMessageFromJSON;
exports.listPromptVersions2CacheControlFromJSON = listPromptVersions2CacheControlFromJSON;
exports.listPromptVersions24FromJSON = listPromptVersions24FromJSON;
exports.listPromptVersionsContentPrompts2FromJSON = listPromptVersionsContentPrompts2FromJSON;
exports.listPromptVersionsMessagesPromptsContentFromJSON = listPromptVersionsMessagesPromptsContentFromJSON;
exports.listPromptVersionsMessagesUserMessageFromJSON = listPromptVersionsMessagesUserMessageFromJSON;
exports.listPromptVersionsMessagesContentFromJSON = listPromptVersionsMessagesContentFromJSON;
exports.listPromptVersionsMessagesSystemMessageFromJSON = listPromptVersionsMessagesSystemMessageFromJSON;
exports.listPromptVersionsPromptsMessagesFromJSON = listPromptVersionsPromptsMessagesFromJSON;
exports.listPromptVersionsPromptFieldFromJSON = listPromptVersionsPromptFieldFromJSON;
exports.listPromptVersionsMetadataFromJSON = listPromptVersionsMetadataFromJSON;
exports.listPromptVersionsDataFromJSON = listPromptVersionsDataFromJSON;
exports.listPromptVersionsResponseBodyFromJSON = listPromptVersionsResponseBodyFromJSON;
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.ListPromptVersionsObject = {
    List: "list",
};
/**
 * The modality of the model
 */
exports.ListPromptVersionsModelType = {
    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.ListPromptVersionsFormat = {
    Url: "url",
    B64Json: "b64_json",
    Text: "text",
    JsonObject: "json_object",
};
exports.ListPromptVersionsResponseFormat6 = {
    Json: "json",
    Text: "text",
    Srt: "srt",
    VerboseJson: "verbose_json",
    Vtt: "vtt",
};
exports.ListPromptVersionsResponseFormat5 = {
    Url: "url",
    Base64Json: "base64_json",
};
exports.ListPromptVersionsResponseFormat4 = {
    Mp3: "mp3",
    Opus: "opus",
    Aac: "aac",
    Flac: "flac",
    Wav: "wav",
    Pcm: "pcm",
};
exports.ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType = {
    Text: "text",
};
exports.ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONType = {
    JsonObject: "json_object",
};
exports.ListPromptVersionsResponseFormatPromptsResponse200Type = {
    JsonSchema: "json_schema",
};
/**
 * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
 */
exports.ListPromptVersionsPhotoRealVersion = {
    V1: "v1",
    V2: "v2",
};
/**
 * The format to return the embeddings
 */
exports.ListPromptVersionsEncodingFormat = {
    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.ListPromptVersionsPromptsReasoningEffort = {
    None: "none",
    Disable: "disable",
    Minimal: "minimal",
    Low: "low",
    Medium: "medium",
    High: "high",
};
/**
 * Controls the verbosity of the model output.
 */
exports.ListPromptVersionsVerbosity = {
    Low: "low",
    Medium: "medium",
    High: "high",
};
/**
 * The level of thinking to use for the model. Only supported by `Google AI`
 */
exports.ListPromptVersionsThinkingLevel = {
    Low: "low",
    Medium: "medium",
    High: "high",
};
exports.ListPromptVersionsProvider = {
    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.ListPromptVersionsRole = {
    System: "system",
    Developer: "developer",
    Assistant: "assistant",
    User: "user",
    Exception: "exception",
    Tool: "tool",
    Prompt: "prompt",
    Correction: "correction",
    ExpectedOutput: "expected_output",
};
exports.ListPromptVersionsPromptsType = {
    Function: "function",
};
/**
 * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
 */
exports.ListPromptVersionsVoice = {
    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.ListPromptVersionsPromptsFormat = {
    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.ListPromptVersionsReasoningEffort = {
    None: "none",
    Minimal: "minimal",
    Low: "low",
    Medium: "medium",
    High: "high",
    Xhigh: "xhigh",
};
/**
 * The type of the tool. Currently, only function is supported.
 */
exports.ListPromptVersionsToolChoiceType = {
    Function: "function",
};
exports.ListPromptVersionsToolChoice1 = {
    None: "none",
    Auto: "auto",
    Required: "required",
};
exports.ListPromptVersionsModalities = {
    Text: "text",
    Audio: "audio",
};
/**
 * The key of the guardrail.
 */
exports.ListPromptVersionsId1 = {
    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.ListPromptVersionsExecuteOn = {
    Input: "input",
    Output: "output",
};
exports.ListPromptVersionsType = {
    ExactMatch: "exact_match",
};
exports.ListPromptVersionsLoadBalancerType = {
    WeightBased: "weight_based",
};
/**
 * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
 */
exports.ListPromptVersionsMessagesPromptsType = {
    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.ListPromptVersionsMessagesTtl = {
    Fivem: "5m",
    Oneh: "1h",
};
/**
 * The type of the tool. Currently, only `function` is supported.
 */
exports.ListPromptVersionsMessagesType = {
    Function: "function",
};
/**
 * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
 */
exports.ListPromptVersions2PromptsResponse200ApplicationJSONType = {
    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.ListPromptVersions2Ttl = {
    Fivem: "5m",
    Oneh: "1h",
};
exports.ListPromptVersionsUseCases = {
    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.ListPromptVersionsLanguage = {
    Chinese: "Chinese",
    Dutch: "Dutch",
    English: "English",
    French: "French",
    German: "German",
    Russian: "Russian",
    Spanish: "Spanish",
};
/** @internal */
exports.ListPromptVersionsRequest$outboundSchema = z.object({
    promptId: z.string(),
    limit: z.number().int().default(10),
    startingAfter: z.string().optional(),
    endingBefore: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        promptId: "prompt_id",
        startingAfter: "starting_after",
        endingBefore: "ending_before",
    });
});
function listPromptVersionsRequestToJSON(listPromptVersionsRequest) {
    return JSON.stringify(exports.ListPromptVersionsRequest$outboundSchema.parse(listPromptVersionsRequest));
}
/** @internal */
exports.ListPromptVersionsObject$inboundSchema = z.nativeEnum(exports.ListPromptVersionsObject);
/** @internal */
exports.ListPromptVersionsModelType$inboundSchema = z.nativeEnum(exports.ListPromptVersionsModelType);
/** @internal */
exports.ListPromptVersionsFormat$inboundSchema = z.nativeEnum(exports.ListPromptVersionsFormat);
/** @internal */
exports.ListPromptVersionsResponseFormat6$inboundSchema = z.nativeEnum(exports.ListPromptVersionsResponseFormat6);
/** @internal */
exports.ListPromptVersionsResponseFormat5$inboundSchema = z.nativeEnum(exports.ListPromptVersionsResponseFormat5);
/** @internal */
exports.ListPromptVersionsResponseFormat4$inboundSchema = z.nativeEnum(exports.ListPromptVersionsResponseFormat4);
/** @internal */
exports.ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema = z.nativeEnum(exports.ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType);
/** @internal */
exports.ListPromptVersionsResponseFormat3$inboundSchema = z.object({
    type: exports.ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema,
});
function listPromptVersionsResponseFormat3FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsResponseFormat3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsResponseFormat3' from JSON`);
}
/** @internal */
exports.ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema = z.nativeEnum(exports.ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONType);
/** @internal */
exports.ListPromptVersionsResponseFormat2$inboundSchema = z.object({
    type: exports.ListPromptVersionsResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema,
});
function listPromptVersionsResponseFormat2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsResponseFormat2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsResponseFormat2' from JSON`);
}
/** @internal */
exports.ListPromptVersionsResponseFormatPromptsResponse200Type$inboundSchema = z.nativeEnum(exports.ListPromptVersionsResponseFormatPromptsResponse200Type);
/** @internal */
exports.ListPromptVersionsResponseFormatPromptsResponseJsonSchema$inboundSchema = z.object({
    name: z.string(),
    description: z.string().optional(),
    strict: z.boolean().optional(),
    schema: z.record(z.any()),
});
function listPromptVersionsResponseFormatPromptsResponseJsonSchemaFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsResponseFormatPromptsResponseJsonSchema$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsResponseFormatPromptsResponseJsonSchema' from JSON`);
}
/** @internal */
exports.ListPromptVersionsResponseFormat1$inboundSchema = z.object({
    type: exports.ListPromptVersionsResponseFormatPromptsResponse200Type$inboundSchema,
    display_name: z.string().optional(),
    json_schema: z.lazy(() => exports.ListPromptVersionsResponseFormatPromptsResponseJsonSchema$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "display_name": "displayName",
        "json_schema": "jsonSchema",
    });
});
function listPromptVersionsResponseFormat1FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsResponseFormat1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsResponseFormat1' from JSON`);
}
/** @internal */
exports.ListPromptVersionsPromptsResponseFormat$inboundSchema = z.union([
    z.lazy(() => exports.ListPromptVersionsResponseFormat1$inboundSchema),
    z.lazy(() => exports.ListPromptVersionsResponseFormat2$inboundSchema),
    z.lazy(() => exports.ListPromptVersionsResponseFormat3$inboundSchema),
    exports.ListPromptVersionsResponseFormat4$inboundSchema,
    exports.ListPromptVersionsResponseFormat5$inboundSchema,
    exports.ListPromptVersionsResponseFormat6$inboundSchema,
]);
function listPromptVersionsPromptsResponseFormatFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsPromptsResponseFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsPromptsResponseFormat' from JSON`);
}
/** @internal */
exports.ListPromptVersionsPhotoRealVersion$inboundSchema = z.nativeEnum(exports.ListPromptVersionsPhotoRealVersion);
/** @internal */
exports.ListPromptVersionsEncodingFormat$inboundSchema = z.nativeEnum(exports.ListPromptVersionsEncodingFormat);
/** @internal */
exports.ListPromptVersionsPromptsReasoningEffort$inboundSchema = z
    .nativeEnum(exports.ListPromptVersionsPromptsReasoningEffort);
/** @internal */
exports.ListPromptVersionsVerbosity$inboundSchema = z.nativeEnum(exports.ListPromptVersionsVerbosity);
/** @internal */
exports.ListPromptVersionsThinkingLevel$inboundSchema = z.nativeEnum(exports.ListPromptVersionsThinkingLevel);
/** @internal */
exports.ListPromptVersionsModelParameters$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.ListPromptVersionsFormat$inboundSchema.optional(),
    dimensions: z.string().optional(),
    quality: z.string().optional(),
    style: z.string().optional(),
    responseFormat: z.nullable(z.union([
        z.lazy(() => exports.ListPromptVersionsResponseFormat1$inboundSchema),
        z.lazy(() => exports.ListPromptVersionsResponseFormat2$inboundSchema),
        z.lazy(() => exports.ListPromptVersionsResponseFormat3$inboundSchema),
        exports.ListPromptVersionsResponseFormat4$inboundSchema,
        exports.ListPromptVersionsResponseFormat5$inboundSchema,
        exports.ListPromptVersionsResponseFormat6$inboundSchema,
    ])).optional(),
    photoRealVersion: exports.ListPromptVersionsPhotoRealVersion$inboundSchema.optional(),
    encoding_format: exports.ListPromptVersionsEncodingFormat$inboundSchema.optional(),
    reasoningEffort: exports.ListPromptVersionsPromptsReasoningEffort$inboundSchema
        .optional(),
    budgetTokens: z.number().optional(),
    verbosity: exports.ListPromptVersionsVerbosity$inboundSchema.optional(),
    thinkingLevel: exports.ListPromptVersionsThinkingLevel$inboundSchema.optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "encoding_format": "encodingFormat",
    });
});
function listPromptVersionsModelParametersFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsModelParameters$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsModelParameters' from JSON`);
}
/** @internal */
exports.ListPromptVersionsProvider$inboundSchema = z.nativeEnum(exports.ListPromptVersionsProvider);
/** @internal */
exports.ListPromptVersionsRole$inboundSchema = z.nativeEnum(exports.ListPromptVersionsRole);
/** @internal */
exports.ListPromptVersions2File$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 listPromptVersions2FileFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersions2File$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersions2File' from JSON`);
}
/** @internal */
exports.ListPromptVersions23$inboundSchema = z.object({
    type: z.literal("file"),
    file: z.lazy(() => exports.ListPromptVersions2File$inboundSchema),
});
function listPromptVersions23FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersions23$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersions23' from JSON`);
}
/** @internal */
exports.ListPromptVersions2ImageUrl$inboundSchema = z.object({
    id: z.string().optional(),
    url: z.string(),
    detail: z.string().optional(),
});
function listPromptVersions2ImageUrlFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersions2ImageUrl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersions2ImageUrl' from JSON`);
}
/** @internal */
exports.ListPromptVersions22$inboundSchema = z.object({
    type: z.literal("image_url"),
    image_url: z.lazy(() => exports.ListPromptVersions2ImageUrl$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "image_url": "imageUrl",
    });
});
function listPromptVersions22FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersions22$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersions22' from JSON`);
}
/** @internal */
exports.ListPromptVersions21$inboundSchema = z.object({
    type: z.literal("text"),
    text: z.string(),
});
function listPromptVersions21FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersions21$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersions21' from JSON`);
}
/** @internal */
exports.ListPromptVersionsContent2$inboundSchema = z.union([
    z.lazy(() => exports.ListPromptVersions21$inboundSchema),
    z.lazy(() => exports.ListPromptVersions22$inboundSchema),
    z.lazy(() => exports.ListPromptVersions23$inboundSchema),
]);
function listPromptVersionsContent2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsContent2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsContent2' from JSON`);
}
/** @internal */
exports.ListPromptVersionsContent$inboundSchema = z.union([
    z.string(),
    z.array(z.union([
        z.lazy(() => exports.ListPromptVersions21$inboundSchema),
        z.lazy(() => exports.ListPromptVersions22$inboundSchema),
        z.lazy(() => exports.ListPromptVersions23$inboundSchema),
    ])),
]);
function listPromptVersionsContentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsContent' from JSON`);
}
/** @internal */
exports.ListPromptVersionsPromptsType$inboundSchema = z.nativeEnum(exports.ListPromptVersionsPromptsType);
/** @internal */
exports.ListPromptVersionsFunction$inboundSchema = z.object({
    name: z.string(),
    arguments: z.string(),
});
function listPromptVersionsFunctionFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsFunction' from JSON`);
}
/** @internal */
exports.ListPromptVersionsToolCalls$inboundSchema = z.object({
    id: z.string().optional(),
    index: z.number().optional(),
    type: exports.ListPromptVersionsPromptsType$inboundSchema,
    function: z.lazy(() => exports.ListPromptVersionsFunction$inboundSchema),
});
function listPromptVersionsToolCallsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsToolCalls$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsToolCalls' from JSON`);
}
/** @internal */
exports.ListPromptVersionsMessages$inboundSchema = z.object({
    role: exports.ListPromptVersionsRole$inboundSchema,
    content: z.nullable(z.union([
        z.string(),
        z.array(z.union([
            z.lazy(() => exports.ListPromptVersions21$inboundSchema),
            z.lazy(() => exports.ListPromptVersions22$inboundSchema),
            z.lazy(() => exports.ListPromptVersions23$inboundSchema),
        ])),
    ])),
    tool_calls: z.array(z.lazy(() => exports.ListPromptVersionsToolCalls$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 listPromptVersionsMessagesFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsMessages$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsMessages' from JSON`);
}
/** @internal */
exports.ListPromptVersionsPromptConfig$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.ListPromptVersionsModelType$inboundSchema).optional(),
    model_parameters: z.lazy(() => exports.ListPromptVersionsModelParameters$inboundSchema).optional(),
    provider: z.nullable(exports.ListPromptVersionsProvider$inboundSchema).optional(),
    integration_id: z.nullable(z.string()).optional(),
    version: z.string().optional(),
    messages: z.array(z.lazy(() => exports.ListPromptVersionsMessages$inboundSchema)),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "model_db_id": "modelDbId",
        "model_type": "modelType",
        "model_parameters": "modelParameters",
        "integration_id": "integrationId",
    });
});
function listPromptVersionsPromptConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsPromptConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsPromptConfig' from JSON`);
}
/** @internal */
exports.ListPromptVersionsVoice$inboundSchema = z.nativeEnum(exports.ListPromptVersionsVoice);
/** @internal */
exports.ListPromptVersionsPromptsFormat$inboundSchema = z.nativeEnum(exports.ListPromptVersionsPromptsFormat);
/** @internal */
exports.ListPromptVersionsAudio$inboundSchema = z.object({
    voice: exports.ListPromptVersionsVoice$inboundSchema,
    format: exports.ListPromptVersionsPromptsFormat$inboundSchema,
});
function listPromptVersionsAudioFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsAudio' from JSON`);
}
/** @internal */
exports.ListPromptVersionsResponseFormatJsonSchema$inboundSchema = z.object({
    description: z.string().optional(),
    name: z.string(),
    schema: z.any().optional(),
    strict: z.boolean().default(false),
});
function listPromptVersionsResponseFormatJsonSchemaFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsResponseFormatJsonSchema' from JSON`);
}
/** @internal */
exports.ListPromptVersionsResponseFormatPromptsJSONSchema$inboundSchema = z.object({
    type: z.literal("json_schema"),
    json_schema: z.lazy(() => exports.ListPromptVersionsResponseFormatJsonSchema$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "json_schema": "jsonSchema",
    });
});
function listPromptVersionsResponseFormatPromptsJSONSchemaFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsResponseFormatPromptsJSONSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsResponseFormatPromptsJSONSchema' from JSON`);
}
/** @internal */
exports.ListPromptVersionsResponseFormatJSONObject$inboundSchema = z.object({
    type: z.literal("json_object"),
});
function listPromptVersionsResponseFormatJSONObjectFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsResponseFormatJSONObject$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsResponseFormatJSONObject' from JSON`);
}
/** @internal */
exports.ListPromptVersionsResponseFormatText$inboundSchema = z.object({
    type: z.literal("text"),
});
function listPromptVersionsResponseFormatTextFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsResponseFormatText$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsResponseFormatText' from JSON`);
}
/** @internal */
exports.ListPromptVersionsResponseFormat$inboundSchema = z.union([
    z.lazy(() => exports.ListPromptVersionsResponseFormatText$inboundSchema),
    z.lazy(() => exports.ListPromptVersionsResponseFormatJSONObject$inboundSchema),
    z.lazy(() => exports.ListPromptVersionsResponseFormatPromptsJSONSchema$inboundSchema),
]);
function listPromptVersionsResponseFormatFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsResponseFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsResponseFormat' from JSON`);
}
/** @internal */
exports.ListPromptVersionsReasoningEffort$inboundSchema = z.nativeEnum(exports.ListPromptVersionsReasoningEffort);
/** @internal */
exports.ListPromptVersionsStop$inboundSchema = z.union([z.string(), z.array(z.string())]);
function listPromptVersionsStopFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsStop$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsStop' from JSON`);
}
/** @internal */
exports.ListPromptVersionsStreamOptions$inboundSchema = z.object({
    include_usage: z.boolean().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "include_usage": "includeUsage",
    });
});
function listPromptVersionsStreamOptionsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsStreamOptions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsStreamOptions' from JSON`);
}
/** @internal */
exports.ListPromptVersionsThinking$inboundSchema = z.union([
    components.ThinkingConfigDisabledSchema$inboundSchema,
    components.ThinkingConfigEnabledSchema$inboundSchema,
    components.ThinkingConfigAdaptiveSchema$inboundSchema,
]);
function listPromptVersionsThinkingFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsThinking$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsThinking' from JSON`);
}
/** @internal */
exports.ListPromptVersionsToolChoiceType$inboundSchema = z.nativeEnum(exports.ListPromptVersionsToolChoiceType);
/** @internal */
exports.ListPromptVersionsToolChoiceFunction$inboundSchema = z.object({
    name: z.string(),
});
function listPromptVersionsToolChoiceFunctionFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsToolChoiceFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsToolChoiceFunction' from JSON`);
}
/** @internal */
exports.ListPromptVersionsToolChoice2$inboundSchema = z.object({
    type: exports.ListPromptVersionsToolChoiceType$inboundSchema.optional(),
    function: z.lazy(() => exports.ListPromptVersionsToolChoiceFunction$inboundSchema),
});
function listPromptVersionsToolChoice2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsToolChoice2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsToolChoice2' from JSON`);
}
/** @internal */
exports.ListPromptVersionsToolChoice1$inboundSchema = z.nativeEnum(exports.ListPromptVersionsToolChoice1);
/** @internal */
exports.ListPromptVersionsToolChoice$inboundSchema = z.union([
    z.lazy(() => exports.ListPromptVersionsToolChoice2$inboundSchema),
    exports.ListPromptVersionsToolChoice1$inboundSchema,
]);
function listPromptVersionsToolChoiceFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsToolChoice$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsToolChoice' from JSON`);
}
/** @internal */
exports.ListPromptVersionsModalities$inboundSchema = z.nativeEnum(exports.ListPromptVersionsModalities);
/** @internal */
exports.ListPromptVersionsId1$inboundSchema = z.nativeEnum(exports.ListPromptVersionsId1);
/** @internal */
exports.ListPromptVersionsId$inboundSchema = z.union([exports.ListPromptVersionsId1$inboundSchema, z.string()]);
function listPromptVersionsIdFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsId$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsId' from JSON`);
}
/** @internal */
exports.ListPromptVersionsExecuteOn$inboundSchema = z.nativeEnum(exports.ListPromptVersionsExecuteOn);
/** @internal */
exports.ListPromptVersionsGuardrails$inboundSchema = z.object({
    id: z.union([exports.ListPromptVersionsId1$inboundSchema, z.string()]),
    execute_on: exports.ListPromptVersionsExecuteOn$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "execute_on": "executeOn",
    });
});
function listPromptVersionsGuardrailsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsGuardrails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsGuardrails' from JSON`);
}
/** @internal */
exports.ListPromptVersionsFallbacks$inboundSchema = z.object({
    model: z.string(),
});
function listPromptVersionsFallbacksFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsFallbacks$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsFallbacks' from JSON`);
}
/** @internal */
exports.ListPromptVersionsRetry$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 listPromptVersionsRetryFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsRetry$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsRetry' from JSON`);
}
/** @internal */
exports.ListPromptVersionsType$inboundSchema = z.nativeEnum(exports.ListPromptVersionsType);
/** @internal */
exports.ListPromptVersionsCache$inboundSchema = z.object({
    ttl: z.number().default(1800),
    type: exports.ListPromptVersionsType$inboundSchema,
});
function listPromptVersionsCacheFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsCache$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsCache' from JSON`);
}
/** @internal */
exports.ListPromptVersionsLoadBalancerType$inboundSchema = z.nativeEnum(exports.ListPromptVersionsLoadBalancerType);
/** @internal */
exports.ListPromptVersionsLoadBalancerModels$inboundSchema = z.object({
    model: z.string(),
    weight: z.number().default(0.5),
});
function listPromptVersionsLoadBalancerModelsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsLoadBalancerModels$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsLoadBalancerModels' from JSON`);
}
/** @internal */
exports.ListPromptVersionsLoadBalancer1$inboundSchema = z.object({
    type: exports.ListPromptVersionsLoadBalancerType$inboundSchema,
    models: z.array(z.lazy(() => exports.ListPromptVersionsLoadBalancerModels$inboundSchema)),
});
function listPromptVersionsLoadBalancer1FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsLoadBalancer1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsLoadBalancer1' from JSON`);
}
/** @internal */
exports.ListPromptVersionsLoadBalancer$inboundSchema = z.lazy(() => exports.ListPromptVersionsLoadBalancer1$inboundSchema);
function listPromptVersionsLoadBalancerFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsLoadBalancer$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsLoadBalancer' from JSON`);
}
/** @internal */
exports.ListPromptVersionsTimeout$inboundSchema = z.object({
    call_timeout: z.number(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "call_timeout": "callTimeout",
    });
});
function listPromptVersionsTimeoutFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsTimeout$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsTimeout' from JSON`);
}
/** @internal */
exports.ListPromptVersionsContentPromptsResponse2002$inboundSchema = components.TextContentPartSchema$inboundSchema;
function listPromptVersionsContentPromptsResponse2002FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsContentPromptsResponse2002$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsContentPromptsResponse2002' from JSON`);
}
/** @internal */
exports.ListPromptVersionsMessagesPromptsResponse200Content$inboundSchema = z.union([
    z.string(),
    z.array(components.TextContentPartSchema$inboundSchema),
]);
function listPromptVersionsMessagesPromptsResponse200ContentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsMessagesPromptsResponse200Content$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsMessagesPromptsResponse200Content' from JSON`);
}
/** @internal */
exports.ListPromptVersionsMessagesPromptsType$inboundSchema = z.nativeEnum(exports.ListPromptVersionsMessagesPromptsType);
/** @internal */
exports.ListPromptVersionsMessagesTtl$inboundSchema = z.nativeEnum(exports.ListPromptVersionsMessagesTtl);
/** @internal */
exports.ListPromptVersionsMessagesCacheControl$inboundSchema = z.object({
    type: exports.ListPromptVersionsMessagesPromptsType$inboundSchema,
    ttl: exports.ListPromptVersionsMessagesTtl$inboundSchema.default("5m"),
});
function listPromptVersionsMessagesCacheControlFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsMessagesCacheControl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsMessagesCacheControl' from JSON`);
}
/** @internal */
exports.ListPromptVersionsMessagesToolMessage$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.ListPromptVersionsMessagesCacheControl$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "tool_call_id": "toolCallId",
        "cache_control": "cacheControl",
    });
});
function listPromptVersionsMessagesToolMessageFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsMessagesToolMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsMessagesToolMessage' from JSON`);
}
/** @internal */
exports.ListPromptVersionsContentPromptsResponse2$inboundSchema = z.union([
    components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
    components.RefusalPartSchema$inboundSchema,
    components.ReasoningPartSchema$inboundSchema,
    components.RedactedReasoningPartSchema$inboundSchema,
]);
function listPromptVersionsContentPromptsResponse2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsContentPromptsResponse2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsContentPromptsResponse2' from JSON`);
}
/** @internal */
exports.ListPromptVersionsMessagesPromptsResponseContent$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 listPromptVersionsMessagesPromptsResponseContentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsMessagesPromptsResponseContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsMessagesPromptsResponseContent' from JSON`);
}
/** @internal */
exports.ListPromptVersionsMessagesAudio$inboundSchema = z.object({
    id: z.string(),
});
function listPromptVersionsMessagesAudioFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsMessagesAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsMessagesAudio' from JSON`);
}
/** @internal */
exports.ListPromptVersionsMessagesType$inboundSchema = z.nativeEnum(exports.ListPromptVersionsMessagesType);
/** @internal */
exports.ListPromptVersionsMessagesFunction$inboundSchema = z.object({
    name: z.string().optional(),
    arguments: z.string().optional(),
});
function listPromptVersionsMessagesFunctionFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsMessagesFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsMessagesFunction' from JSON`);
}
/** @internal */
exports.ListPromptVersionsMessagesToolCalls$inboundSchema = z.object({
    id: z.string(),
    type: exports.ListPromptVersionsMessagesType$inboundSchema,
    function: z.lazy(() => exports.ListPromptVersionsMessagesFunction$inboundSchema),
    thought_signature: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "thought_signature": "thoughtSignature",
    });
});
function listPromptVersionsMessagesToolCallsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsMessagesToolCalls$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsMessagesToolCalls' from JSON`);
}
/** @internal */
exports.ListPromptVersionsMessagesAssistantMessage$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.ListPromptVersionsMessagesAudio$inboundSchema)).optional(),
    tool_calls: z.array(z.lazy(() => exports.ListPromptVersionsMessagesToolCalls$inboundSchema)).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "tool_calls": "toolCalls",
    });
});
function listPromptVersionsMessagesAssistantMessageFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsMessagesAssistantMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsMessagesAssistantMessage' from JSON`);
}
/** @internal */
exports.ListPromptVersions2PromptsResponse200ApplicationJSONType$inboundSchema = z.nativeEnum(exports.ListPromptVersions2PromptsResponse200ApplicationJSONType);
/** @internal */
exports.ListPromptVersions2Ttl$inboundSchema = z.nativeEnum(exports.ListPromptVersions2Ttl);
/** @internal */
exports.ListPromptVersions2CacheControl$inboundSchema = z.object({
    type: exports.ListPromptVersions2PromptsResponse200ApplicationJSONType$inboundSchema,
    ttl: exports.ListPromptVersions2Ttl$inboundSchema.default("5m"),
});
function listPromptVersions2CacheControlFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersions2CacheControl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersions2CacheControl' from JSON`);
}
/** @internal */
exports.ListPromptVersions24$inboundSchema = z.object({
    type: z.literal("file"),
    cache_control: z.lazy(() => exports.ListPromptVersions2CacheControl$inboundSchema)
        .optional(),
    file: components.FileContentPartSchema$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "cache_control": "cacheControl",
    });
});
function listPromptVersions24FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersions24$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersions24' from JSON`);
}
/** @internal */
exports.ListPromptVersionsContentPrompts2$inboundSchema = z.union([
    components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
    components.ImageContentPartSchema$inboundSchema,
    components.AudioContentPartSchema$inboundSchema,
    z.lazy(() => exports.ListPromptVersions24$inboundSchema),
]);
function listPromptVersionsContentPrompts2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsContentPrompts2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsContentPrompts2' from JSON`);
}
/** @internal */
exports.ListPromptVersionsMessagesPromptsContent$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.ListPromptVersions24$inboundSchema),
    ])),
]);
function listPromptVersionsMessagesPromptsContentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsMessagesPromptsContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsMessagesPromptsContent' from JSON`);
}
/** @internal */
exports.ListPromptVersionsMessagesUserMessage$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.ListPromptVersions24$inboundSchema),
        ])),
    ]),
});
function listPromptVersionsMessagesUserMessageFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsMessagesUserMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsMessagesUserMessage' from JSON`);
}
/** @internal */
exports.ListPromptVersionsMessagesContent$inboundSchema = z.union([
    z.string(),
    z.array(components.TextContentPartSchema$inboundSchema),
]);
function listPromptVersionsMessagesContentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsMessagesContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsMessagesContent' from JSON`);
}
/** @internal */
exports.ListPromptVersionsMessagesSystemMessage$inboundSchema = z.object({
    role: z.literal("system"),
    content: z.union([
        z.string(),
        z.array(components.TextContentPartSchema$inboundSchema),
    ]),
    name: z.string().optional(),
});
function listPromptVersionsMessagesSystemMessageFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsMessagesSystemMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsMessagesSystemMessage' from JSON`);
}
/** @internal */
exports.ListPromptVersionsPromptsMessages$inboundSchema = z.union([
    z.lazy(() => exports.ListPromptVersionsMessagesSystemMessage$inboundSchema),
    z.lazy(() => exports.ListPromptVersionsMessagesUserMessage$inboundSchema),
    z.lazy(() => exports.ListPromptVersionsMessagesAssistantMessage$inboundSchema),
    z.lazy(() => exports.ListPromptVersionsMessagesToolMessage$inboundSchema),
]);
function listPromptVersionsPromptsMessagesFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsPromptsMessages$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsPromptsMessages' from JSON`);
}
/** @internal */
exports.ListPromptVersionsPromptField$inboundSchema = z.object({
    name: z.string().optional(),
    audio: z.nullable(z.lazy(() => exports.ListPromptVersionsAudio$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.ListPromptVersionsResponseFormatText$inboundSchema),
        z.lazy(() => exports.ListPromptVersionsResponseFormatJSONObject$inboundSchema),
        z.lazy(() => exports.ListPromptVersionsResponseFormatPromptsJSONSchema$inboundSchema),
    ]).optional(),
    reasoning_effort: exports.ListPromptVersionsReasoningEffort$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.ListPromptVersionsStreamOptions$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.ListPromptVersionsToolChoice2$inboundSchema),
        exports.ListPromptVersionsToolChoice1$inboundSchema,
    ]).optional(),
    parallel_tool_calls: z.boolean().optional(),
    modalities: z.nullable(z.array(exports.ListPromptVersionsModalities$inboundSchema))
        .optional(),
    guardrails: z.array(z.lazy(() => exports.ListPromptVersionsGuardrails$inboundSchema))
        .optional(),
    fallbacks: z.array(z.lazy(() => exports.ListPromptVersionsFallbacks$inboundSchema))
        .optional(),
    retry: z.lazy(() => exports.ListPromptVersionsRetry$inboundSchema).optional(),
    cache: z.lazy(() => exports.ListPromptVersionsCache$inboundSchema).optional(),
    load_balancer: z.lazy(() => exports.ListPromptVersionsLoadBalancer1$inboundSchema)
        .optional(),
    timeout: z.lazy(() => exports.ListPromptVersionsTimeout$inboundSchema).optional(),
    messages: z.array(z.union([
        z.lazy(() => exports.ListPromptVersionsMessagesSystemMessage$inboundSchema),
        z.lazy(() => exports.ListPromptVersionsMessagesUserMessage$inboundSchema),
        z.lazy(() => exports.ListPromptVersionsMessagesAssistantMessage$inboundSchema),
        z.lazy(() => exports.ListPromptVersionsMessagesToolMessage$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 listPromptVersionsPromptFieldFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsPromptField$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsPromptField' from JSON`);
}
/** @internal */
exports.ListPromptVersionsUseCases$inboundSchema = z.nativeEnum(exports.ListPromptVersionsUseCases);
/** @internal */
exports.ListPromptVersionsLanguage$inboundSchema = z.nativeEnum(exports.ListPromptVersionsLanguage);
/** @internal */
exports.ListPromptVersionsMetadata$inboundSchema = z.object({
    use_cases: z.array(exports.ListPromptVersionsUseCases$inboundSchema).optional(),
    language: z.nullable(exports.ListPromptVersionsLanguage$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "use_cases": "useCases",
    });
});
function listPromptVersionsMetadataFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsMetadata$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsMetadata' from JSON`);
}
/** @internal */
exports.ListPromptVersionsData$inboundSchema = z.object({
    _id: z.string(),
    created_by_id: z.nullable(z.string()).optional(),
    updated_by_id: z.nullable(z.string()).optional(),
    description: z.nullable(z.string()).optional(),
    prompt_config: z.lazy(() => exports.ListPromptVersionsPromptConfig$inboundSchema)
        .optional(),
    prompt: z.lazy(() => exports.ListPromptVersionsPromptField$inboundSchema),
    metadata: z.lazy(() => exports.ListPromptVersionsMetadata$inboundSchema).optional(),
    timestamp: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "created_by_id": "createdById",
        "updated_by_id": "updatedById",
        "prompt_config": "promptConfig",
    });
});
function listPromptVersionsDataFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsData' from JSON`);
}
/** @internal */
exports.ListPromptVersionsResponseBody$inboundSchema = z.object({
    object: exports.ListPromptVersionsObject$inboundSchema,
    data: z.array(z.lazy(() => exports.ListPromptVersionsData$inboundSchema)),
    has_more: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "has_more": "hasMore",
    });
});
function listPromptVersionsResponseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPromptVersionsResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPromptVersionsResponseBody' from JSON`);
}
//# sourceMappingURL=listpromptversions.js.map