"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.GetOnePromptResponseFormat1$outboundSchema = exports.GetOnePromptResponseFormat1$inboundSchema = exports.GetOnePromptResponseFormatJsonSchema$outboundSchema = exports.GetOnePromptResponseFormatJsonSchema$inboundSchema = exports.GetOnePromptResponseFormatType$outboundSchema = exports.GetOnePromptResponseFormatType$inboundSchema = exports.GetOnePromptResponseFormat2$outboundSchema = exports.GetOnePromptResponseFormat2$inboundSchema = exports.GetOnePromptResponseFormatPromptsType$outboundSchema = exports.GetOnePromptResponseFormatPromptsType$inboundSchema = exports.GetOnePromptResponseFormat3$outboundSchema = exports.GetOnePromptResponseFormat3$inboundSchema = exports.GetOnePromptResponseFormatPromptsResponseType$outboundSchema = exports.GetOnePromptResponseFormatPromptsResponseType$inboundSchema = exports.GetOnePromptResponseFormat4$outboundSchema = exports.GetOnePromptResponseFormat4$inboundSchema = exports.GetOnePromptResponseFormat5$outboundSchema = exports.GetOnePromptResponseFormat5$inboundSchema = exports.GetOnePromptResponseFormat6$outboundSchema = exports.GetOnePromptResponseFormat6$inboundSchema = exports.GetOnePromptFormat$outboundSchema = exports.GetOnePromptFormat$inboundSchema = exports.GetOnePromptModelType$outboundSchema = exports.GetOnePromptModelType$inboundSchema = exports.GetOnePromptType$outboundSchema = exports.GetOnePromptType$inboundSchema = exports.GetOnePromptRequest$outboundSchema = exports.GetOnePromptRequest$inboundSchema = exports.GetOnePromptLanguage = exports.GetOnePromptUseCases = exports.GetOnePromptPromptsType = exports.GetOnePrompt2Type = exports.GetOnePrompt2PromptsType = exports.GetOnePrompt2PromptsResponseType = exports.GetOnePromptRole = exports.GetOnePromptProvider = exports.GetOnePromptThinkingLevel = exports.GetOnePromptVerbosity = exports.GetOnePromptReasoningEffort = exports.GetOnePromptEncodingFormat = exports.GetOnePromptPhotoRealVersion = exports.GetOnePromptResponseFormatType = exports.GetOnePromptResponseFormatPromptsType = exports.GetOnePromptResponseFormatPromptsResponseType = exports.GetOnePromptResponseFormat4 = exports.GetOnePromptResponseFormat5 = exports.GetOnePromptResponseFormat6 = exports.GetOnePromptFormat = exports.GetOnePromptModelType = exports.GetOnePromptType = void 0;
exports.GetOnePromptUseCases$outboundSchema = exports.GetOnePromptUseCases$inboundSchema = exports.GetOnePromptPromptConfig$outboundSchema = exports.GetOnePromptPromptConfig$inboundSchema = exports.GetOnePromptMessages$outboundSchema = exports.GetOnePromptMessages$inboundSchema = exports.GetOnePromptToolCalls$outboundSchema = exports.GetOnePromptToolCalls$inboundSchema = exports.GetOnePromptFunction$outboundSchema = exports.GetOnePromptFunction$inboundSchema = exports.GetOnePromptPromptsType$outboundSchema = exports.GetOnePromptPromptsType$inboundSchema = exports.GetOnePromptContent$outboundSchema = exports.GetOnePromptContent$inboundSchema = exports.GetOnePromptContent2$outboundSchema = exports.GetOnePromptContent2$inboundSchema = exports.GetOnePrompt21$outboundSchema = exports.GetOnePrompt21$inboundSchema = exports.GetOnePrompt2Type$outboundSchema = exports.GetOnePrompt2Type$inboundSchema = exports.GetOnePrompt22$outboundSchema = exports.GetOnePrompt22$inboundSchema = exports.GetOnePrompt2ImageUrl$outboundSchema = exports.GetOnePrompt2ImageUrl$inboundSchema = exports.GetOnePrompt2PromptsType$outboundSchema = exports.GetOnePrompt2PromptsType$inboundSchema = exports.GetOnePrompt23$outboundSchema = exports.GetOnePrompt23$inboundSchema = exports.GetOnePrompt2File$outboundSchema = exports.GetOnePrompt2File$inboundSchema = exports.GetOnePrompt2PromptsResponseType$outboundSchema = exports.GetOnePrompt2PromptsResponseType$inboundSchema = exports.GetOnePromptRole$outboundSchema = exports.GetOnePromptRole$inboundSchema = exports.GetOnePromptProvider$outboundSchema = exports.GetOnePromptProvider$inboundSchema = exports.GetOnePromptModelParameters$outboundSchema = exports.GetOnePromptModelParameters$inboundSchema = exports.GetOnePromptThinkingLevel$outboundSchema = exports.GetOnePromptThinkingLevel$inboundSchema = exports.GetOnePromptVerbosity$outboundSchema = exports.GetOnePromptVerbosity$inboundSchema = exports.GetOnePromptReasoningEffort$outboundSchema = exports.GetOnePromptReasoningEffort$inboundSchema = exports.GetOnePromptEncodingFormat$outboundSchema = exports.GetOnePromptEncodingFormat$inboundSchema = exports.GetOnePromptPhotoRealVersion$outboundSchema = exports.GetOnePromptPhotoRealVersion$inboundSchema = exports.GetOnePromptResponseFormat$outboundSchema = exports.GetOnePromptResponseFormat$inboundSchema = void 0;
exports.GetOnePromptPrompt$outboundSchema = exports.GetOnePromptPrompt$inboundSchema = exports.GetOnePromptMetadata$outboundSchema = exports.GetOnePromptMetadata$inboundSchema = exports.GetOnePromptLanguage$outboundSchema = exports.GetOnePromptLanguage$inboundSchema = void 0;
exports.getOnePromptRequestToJSON = getOnePromptRequestToJSON;
exports.getOnePromptRequestFromJSON = getOnePromptRequestFromJSON;
exports.getOnePromptResponseFormat3ToJSON = getOnePromptResponseFormat3ToJSON;
exports.getOnePromptResponseFormat3FromJSON = getOnePromptResponseFormat3FromJSON;
exports.getOnePromptResponseFormat2ToJSON = getOnePromptResponseFormat2ToJSON;
exports.getOnePromptResponseFormat2FromJSON = getOnePromptResponseFormat2FromJSON;
exports.getOnePromptResponseFormatJsonSchemaToJSON = getOnePromptResponseFormatJsonSchemaToJSON;
exports.getOnePromptResponseFormatJsonSchemaFromJSON = getOnePromptResponseFormatJsonSchemaFromJSON;
exports.getOnePromptResponseFormat1ToJSON = getOnePromptResponseFormat1ToJSON;
exports.getOnePromptResponseFormat1FromJSON = getOnePromptResponseFormat1FromJSON;
exports.getOnePromptResponseFormatToJSON = getOnePromptResponseFormatToJSON;
exports.getOnePromptResponseFormatFromJSON = getOnePromptResponseFormatFromJSON;
exports.getOnePromptModelParametersToJSON = getOnePromptModelParametersToJSON;
exports.getOnePromptModelParametersFromJSON = getOnePromptModelParametersFromJSON;
exports.getOnePrompt2FileToJSON = getOnePrompt2FileToJSON;
exports.getOnePrompt2FileFromJSON = getOnePrompt2FileFromJSON;
exports.getOnePrompt23ToJSON = getOnePrompt23ToJSON;
exports.getOnePrompt23FromJSON = getOnePrompt23FromJSON;
exports.getOnePrompt2ImageUrlToJSON = getOnePrompt2ImageUrlToJSON;
exports.getOnePrompt2ImageUrlFromJSON = getOnePrompt2ImageUrlFromJSON;
exports.getOnePrompt22ToJSON = getOnePrompt22ToJSON;
exports.getOnePrompt22FromJSON = getOnePrompt22FromJSON;
exports.getOnePrompt21ToJSON = getOnePrompt21ToJSON;
exports.getOnePrompt21FromJSON = getOnePrompt21FromJSON;
exports.getOnePromptContent2ToJSON = getOnePromptContent2ToJSON;
exports.getOnePromptContent2FromJSON = getOnePromptContent2FromJSON;
exports.getOnePromptContentToJSON = getOnePromptContentToJSON;
exports.getOnePromptContentFromJSON = getOnePromptContentFromJSON;
exports.getOnePromptFunctionToJSON = getOnePromptFunctionToJSON;
exports.getOnePromptFunctionFromJSON = getOnePromptFunctionFromJSON;
exports.getOnePromptToolCallsToJSON = getOnePromptToolCallsToJSON;
exports.getOnePromptToolCallsFromJSON = getOnePromptToolCallsFromJSON;
exports.getOnePromptMessagesToJSON = getOnePromptMessagesToJSON;
exports.getOnePromptMessagesFromJSON = getOnePromptMessagesFromJSON;
exports.getOnePromptPromptConfigToJSON = getOnePromptPromptConfigToJSON;
exports.getOnePromptPromptConfigFromJSON = getOnePromptPromptConfigFromJSON;
exports.getOnePromptMetadataToJSON = getOnePromptMetadataToJSON;
exports.getOnePromptMetadataFromJSON = getOnePromptMetadataFromJSON;
exports.getOnePromptPromptToJSON = getOnePromptPromptToJSON;
exports.getOnePromptPromptFromJSON = getOnePromptPromptFromJSON;
const z = __importStar(require("zod/v3"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
exports.GetOnePromptType = {
    Prompt: "prompt",
};
/**
 * The modality of the model
 */
exports.GetOnePromptModelType = {
    Chat: "chat",
    Completion: "completion",
    Embedding: "embedding",
    Image: "image",
    Tts: "tts",
    Stt: "stt",
    Rerank: "rerank",
    Moderation: "moderation",
    Vision: "vision",
};
/**
 * Only supported on `image` models.
 */
exports.GetOnePromptFormat = {
    Url: "url",
    B64Json: "b64_json",
    Text: "text",
    JsonObject: "json_object",
};
exports.GetOnePromptResponseFormat6 = {
    Json: "json",
    Text: "text",
    Srt: "srt",
    VerboseJson: "verbose_json",
    Vtt: "vtt",
};
exports.GetOnePromptResponseFormat5 = {
    Url: "url",
    Base64Json: "base64_json",
};
exports.GetOnePromptResponseFormat4 = {
    Mp3: "mp3",
    Opus: "opus",
    Aac: "aac",
    Flac: "flac",
    Wav: "wav",
    Pcm: "pcm",
};
exports.GetOnePromptResponseFormatPromptsResponseType = {
    Text: "text",
};
exports.GetOnePromptResponseFormatPromptsType = {
    JsonObject: "json_object",
};
exports.GetOnePromptResponseFormatType = {
    JsonSchema: "json_schema",
};
/**
 * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
 */
exports.GetOnePromptPhotoRealVersion = {
    V1: "v1",
    V2: "v2",
};
/**
 * The format to return the embeddings
 */
exports.GetOnePromptEncodingFormat = {
    Float: "float",
    Base64: "base64",
};
/**
 * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
 */
exports.GetOnePromptReasoningEffort = {
    None: "none",
    Disable: "disable",
    Minimal: "minimal",
    Low: "low",
    Medium: "medium",
    High: "high",
};
/**
 * Controls the verbosity of the model output.
 */
exports.GetOnePromptVerbosity = {
    Low: "low",
    Medium: "medium",
    High: "high",
};
/**
 * The level of thinking to use for the model. Only supported by `Google AI`
 */
exports.GetOnePromptThinkingLevel = {
    Low: "low",
    High: "high",
};
exports.GetOnePromptProvider = {
    Cohere: "cohere",
    Openai: "openai",
    Anthropic: "anthropic",
    Huggingface: "huggingface",
    Replicate: "replicate",
    Google: "google",
    GoogleAi: "google-ai",
    Azure: "azure",
    Aws: "aws",
    Anyscale: "anyscale",
    Perplexity: "perplexity",
    Groq: "groq",
    Fal: "fal",
    Leonardoai: "leonardoai",
    Nvidia: "nvidia",
    Jina: "jina",
    Togetherai: "togetherai",
    Elevenlabs: "elevenlabs",
    Litellm: "litellm",
    Openailike: "openailike",
    Cerebras: "cerebras",
    Bytedance: "bytedance",
    Mistral: "mistral",
};
/**
 * The role of the prompt message
 */
exports.GetOnePromptRole = {
    System: "system",
    Assistant: "assistant",
    User: "user",
    Exception: "exception",
    Tool: "tool",
    Prompt: "prompt",
    Correction: "correction",
    ExpectedOutput: "expected_output",
};
/**
 * The type of the content part. Always `file`.
 */
exports.GetOnePrompt2PromptsResponseType = {
    File: "file",
};
exports.GetOnePrompt2PromptsType = {
    ImageUrl: "image_url",
};
exports.GetOnePrompt2Type = {
    Text: "text",
};
exports.GetOnePromptPromptsType = {
    Function: "function",
};
exports.GetOnePromptUseCases = {
    AgentsSimulations: "Agents simulations",
    Agents: "Agents",
    APIInteraction: "API interaction",
    AutonomousAgents: "Autonomous Agents",
    Chatbots: "Chatbots",
    Classification: "Classification",
    CodeUnderstanding: "Code understanding",
    CodeWriting: "Code writing",
    Conversation: "Conversation",
    DocumentsQA: "Documents QA",
    Evaluation: "Evaluation",
    Extraction: "Extraction",
    MultiModal: "Multi-modal",
    SelfChecking: "Self-checking",
    SentimentAnalysis: "Sentiment analysis",
    Sql: "SQL",
    Summarization: "Summarization",
    Tagging: "Tagging",
    TranslationDocument: "Translation (document)",
    TranslationSentences: "Translation (sentences)",
};
/**
 * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
 */
exports.GetOnePromptLanguage = {
    Chinese: "Chinese",
    Dutch: "Dutch",
    English: "English",
    French: "French",
    German: "German",
    Russian: "Russian",
    Spanish: "Spanish",
};
/** @internal */
exports.GetOnePromptRequest$inboundSchema = z.object({
    id: z.string(),
});
/** @internal */
exports.GetOnePromptRequest$outboundSchema = z.object({
    id: z.string(),
});
function getOnePromptRequestToJSON(getOnePromptRequest) {
    return JSON.stringify(exports.GetOnePromptRequest$outboundSchema.parse(getOnePromptRequest));
}
function getOnePromptRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptRequest' from JSON`);
}
/** @internal */
exports.GetOnePromptType$inboundSchema = z.nativeEnum(exports.GetOnePromptType);
/** @internal */
exports.GetOnePromptType$outboundSchema = exports.GetOnePromptType$inboundSchema;
/** @internal */
exports.GetOnePromptModelType$inboundSchema = z.nativeEnum(exports.GetOnePromptModelType);
/** @internal */
exports.GetOnePromptModelType$outboundSchema = exports.GetOnePromptModelType$inboundSchema;
/** @internal */
exports.GetOnePromptFormat$inboundSchema = z.nativeEnum(exports.GetOnePromptFormat);
/** @internal */
exports.GetOnePromptFormat$outboundSchema = exports.GetOnePromptFormat$inboundSchema;
/** @internal */
exports.GetOnePromptResponseFormat6$inboundSchema = z.nativeEnum(exports.GetOnePromptResponseFormat6);
/** @internal */
exports.GetOnePromptResponseFormat6$outboundSchema = exports.GetOnePromptResponseFormat6$inboundSchema;
/** @internal */
exports.GetOnePromptResponseFormat5$inboundSchema = z.nativeEnum(exports.GetOnePromptResponseFormat5);
/** @internal */
exports.GetOnePromptResponseFormat5$outboundSchema = exports.GetOnePromptResponseFormat5$inboundSchema;
/** @internal */
exports.GetOnePromptResponseFormat4$inboundSchema = z.nativeEnum(exports.GetOnePromptResponseFormat4);
/** @internal */
exports.GetOnePromptResponseFormat4$outboundSchema = exports.GetOnePromptResponseFormat4$inboundSchema;
/** @internal */
exports.GetOnePromptResponseFormatPromptsResponseType$inboundSchema = z
    .nativeEnum(exports.GetOnePromptResponseFormatPromptsResponseType);
/** @internal */
exports.GetOnePromptResponseFormatPromptsResponseType$outboundSchema = exports.GetOnePromptResponseFormatPromptsResponseType$inboundSchema;
/** @internal */
exports.GetOnePromptResponseFormat3$inboundSchema = z.object({
    type: exports.GetOnePromptResponseFormatPromptsResponseType$inboundSchema,
});
/** @internal */
exports.GetOnePromptResponseFormat3$outboundSchema = z.object({
    type: exports.GetOnePromptResponseFormatPromptsResponseType$outboundSchema,
});
function getOnePromptResponseFormat3ToJSON(getOnePromptResponseFormat3) {
    return JSON.stringify(exports.GetOnePromptResponseFormat3$outboundSchema.parse(getOnePromptResponseFormat3));
}
function getOnePromptResponseFormat3FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptResponseFormat3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptResponseFormat3' from JSON`);
}
/** @internal */
exports.GetOnePromptResponseFormatPromptsType$inboundSchema = z.nativeEnum(exports.GetOnePromptResponseFormatPromptsType);
/** @internal */
exports.GetOnePromptResponseFormatPromptsType$outboundSchema = exports.GetOnePromptResponseFormatPromptsType$inboundSchema;
/** @internal */
exports.GetOnePromptResponseFormat2$inboundSchema = z.object({
    type: exports.GetOnePromptResponseFormatPromptsType$inboundSchema,
});
/** @internal */
exports.GetOnePromptResponseFormat2$outboundSchema = z.object({
    type: exports.GetOnePromptResponseFormatPromptsType$outboundSchema,
});
function getOnePromptResponseFormat2ToJSON(getOnePromptResponseFormat2) {
    return JSON.stringify(exports.GetOnePromptResponseFormat2$outboundSchema.parse(getOnePromptResponseFormat2));
}
function getOnePromptResponseFormat2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptResponseFormat2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptResponseFormat2' from JSON`);
}
/** @internal */
exports.GetOnePromptResponseFormatType$inboundSchema = z.nativeEnum(exports.GetOnePromptResponseFormatType);
/** @internal */
exports.GetOnePromptResponseFormatType$outboundSchema = exports.GetOnePromptResponseFormatType$inboundSchema;
/** @internal */
exports.GetOnePromptResponseFormatJsonSchema$inboundSchema = z.object({
    name: z.string(),
    description: z.string().optional(),
    strict: z.boolean().optional(),
    schema: z.record(z.any()),
});
/** @internal */
exports.GetOnePromptResponseFormatJsonSchema$outboundSchema = z.object({
    name: z.string(),
    description: z.string().optional(),
    strict: z.boolean().optional(),
    schema: z.record(z.any()),
});
function getOnePromptResponseFormatJsonSchemaToJSON(getOnePromptResponseFormatJsonSchema) {
    return JSON.stringify(exports.GetOnePromptResponseFormatJsonSchema$outboundSchema.parse(getOnePromptResponseFormatJsonSchema));
}
function getOnePromptResponseFormatJsonSchemaFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptResponseFormatJsonSchema' from JSON`);
}
/** @internal */
exports.GetOnePromptResponseFormat1$inboundSchema = z.object({
    type: exports.GetOnePromptResponseFormatType$inboundSchema,
    display_name: z.string().optional(),
    json_schema: z.lazy(() => exports.GetOnePromptResponseFormatJsonSchema$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "display_name": "displayName",
        "json_schema": "jsonSchema",
    });
});
/** @internal */
exports.GetOnePromptResponseFormat1$outboundSchema = z.object({
    type: exports.GetOnePromptResponseFormatType$outboundSchema,
    displayName: z.string().optional(),
    jsonSchema: z.lazy(() => exports.GetOnePromptResponseFormatJsonSchema$outboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        displayName: "display_name",
        jsonSchema: "json_schema",
    });
});
function getOnePromptResponseFormat1ToJSON(getOnePromptResponseFormat1) {
    return JSON.stringify(exports.GetOnePromptResponseFormat1$outboundSchema.parse(getOnePromptResponseFormat1));
}
function getOnePromptResponseFormat1FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptResponseFormat1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptResponseFormat1' from JSON`);
}
/** @internal */
exports.GetOnePromptResponseFormat$inboundSchema = z.union([
    z.lazy(() => exports.GetOnePromptResponseFormat1$inboundSchema),
    z.lazy(() => exports.GetOnePromptResponseFormat2$inboundSchema),
    z.lazy(() => exports.GetOnePromptResponseFormat3$inboundSchema),
    exports.GetOnePromptResponseFormat4$inboundSchema,
    exports.GetOnePromptResponseFormat5$inboundSchema,
    exports.GetOnePromptResponseFormat6$inboundSchema,
]);
/** @internal */
exports.GetOnePromptResponseFormat$outboundSchema = z.union([
    z.lazy(() => exports.GetOnePromptResponseFormat1$outboundSchema),
    z.lazy(() => exports.GetOnePromptResponseFormat2$outboundSchema),
    z.lazy(() => exports.GetOnePromptResponseFormat3$outboundSchema),
    exports.GetOnePromptResponseFormat4$outboundSchema,
    exports.GetOnePromptResponseFormat5$outboundSchema,
    exports.GetOnePromptResponseFormat6$outboundSchema,
]);
function getOnePromptResponseFormatToJSON(getOnePromptResponseFormat) {
    return JSON.stringify(exports.GetOnePromptResponseFormat$outboundSchema.parse(getOnePromptResponseFormat));
}
function getOnePromptResponseFormatFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptResponseFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptResponseFormat' from JSON`);
}
/** @internal */
exports.GetOnePromptPhotoRealVersion$inboundSchema = z.nativeEnum(exports.GetOnePromptPhotoRealVersion);
/** @internal */
exports.GetOnePromptPhotoRealVersion$outboundSchema = exports.GetOnePromptPhotoRealVersion$inboundSchema;
/** @internal */
exports.GetOnePromptEncodingFormat$inboundSchema = z.nativeEnum(exports.GetOnePromptEncodingFormat);
/** @internal */
exports.GetOnePromptEncodingFormat$outboundSchema = exports.GetOnePromptEncodingFormat$inboundSchema;
/** @internal */
exports.GetOnePromptReasoningEffort$inboundSchema = z.nativeEnum(exports.GetOnePromptReasoningEffort);
/** @internal */
exports.GetOnePromptReasoningEffort$outboundSchema = exports.GetOnePromptReasoningEffort$inboundSchema;
/** @internal */
exports.GetOnePromptVerbosity$inboundSchema = z.nativeEnum(exports.GetOnePromptVerbosity);
/** @internal */
exports.GetOnePromptVerbosity$outboundSchema = exports.GetOnePromptVerbosity$inboundSchema;
/** @internal */
exports.GetOnePromptThinkingLevel$inboundSchema = z.nativeEnum(exports.GetOnePromptThinkingLevel);
/** @internal */
exports.GetOnePromptThinkingLevel$outboundSchema = exports.GetOnePromptThinkingLevel$inboundSchema;
/** @internal */
exports.GetOnePromptModelParameters$inboundSchema = z.object({
    temperature: z.number().optional(),
    maxTokens: z.number().optional(),
    topK: z.number().optional(),
    topP: z.number().optional(),
    frequencyPenalty: z.number().optional(),
    presencePenalty: z.number().optional(),
    numImages: z.number().optional(),
    seed: z.number().optional(),
    format: exports.GetOnePromptFormat$inboundSchema.optional(),
    dimensions: z.string().optional(),
    quality: z.string().optional(),
    style: z.string().optional(),
    responseFormat: z.nullable(z.union([
        z.lazy(() => exports.GetOnePromptResponseFormat1$inboundSchema),
        z.lazy(() => exports.GetOnePromptResponseFormat2$inboundSchema),
        z.lazy(() => exports.GetOnePromptResponseFormat3$inboundSchema),
        exports.GetOnePromptResponseFormat4$inboundSchema,
        exports.GetOnePromptResponseFormat5$inboundSchema,
        exports.GetOnePromptResponseFormat6$inboundSchema,
    ])).optional(),
    photoRealVersion: exports.GetOnePromptPhotoRealVersion$inboundSchema.optional(),
    encoding_format: exports.GetOnePromptEncodingFormat$inboundSchema.optional(),
    reasoningEffort: exports.GetOnePromptReasoningEffort$inboundSchema.optional(),
    budgetTokens: z.number().optional(),
    verbosity: exports.GetOnePromptVerbosity$inboundSchema.optional(),
    thinkingLevel: exports.GetOnePromptThinkingLevel$inboundSchema.optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "encoding_format": "encodingFormat",
    });
});
/** @internal */
exports.GetOnePromptModelParameters$outboundSchema = z.object({
    temperature: z.number().optional(),
    maxTokens: z.number().optional(),
    topK: z.number().optional(),
    topP: z.number().optional(),
    frequencyPenalty: z.number().optional(),
    presencePenalty: z.number().optional(),
    numImages: z.number().optional(),
    seed: z.number().optional(),
    format: exports.GetOnePromptFormat$outboundSchema.optional(),
    dimensions: z.string().optional(),
    quality: z.string().optional(),
    style: z.string().optional(),
    responseFormat: z.nullable(z.union([
        z.lazy(() => exports.GetOnePromptResponseFormat1$outboundSchema),
        z.lazy(() => exports.GetOnePromptResponseFormat2$outboundSchema),
        z.lazy(() => exports.GetOnePromptResponseFormat3$outboundSchema),
        exports.GetOnePromptResponseFormat4$outboundSchema,
        exports.GetOnePromptResponseFormat5$outboundSchema,
        exports.GetOnePromptResponseFormat6$outboundSchema,
    ])).optional(),
    photoRealVersion: exports.GetOnePromptPhotoRealVersion$outboundSchema.optional(),
    encodingFormat: exports.GetOnePromptEncodingFormat$outboundSchema.optional(),
    reasoningEffort: exports.GetOnePromptReasoningEffort$outboundSchema.optional(),
    budgetTokens: z.number().optional(),
    verbosity: exports.GetOnePromptVerbosity$outboundSchema.optional(),
    thinkingLevel: exports.GetOnePromptThinkingLevel$outboundSchema.optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        encodingFormat: "encoding_format",
    });
});
function getOnePromptModelParametersToJSON(getOnePromptModelParameters) {
    return JSON.stringify(exports.GetOnePromptModelParameters$outboundSchema.parse(getOnePromptModelParameters));
}
function getOnePromptModelParametersFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptModelParameters$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptModelParameters' from JSON`);
}
/** @internal */
exports.GetOnePromptProvider$inboundSchema = z.nativeEnum(exports.GetOnePromptProvider);
/** @internal */
exports.GetOnePromptProvider$outboundSchema = exports.GetOnePromptProvider$inboundSchema;
/** @internal */
exports.GetOnePromptRole$inboundSchema = z.nativeEnum(exports.GetOnePromptRole);
/** @internal */
exports.GetOnePromptRole$outboundSchema = exports.GetOnePromptRole$inboundSchema;
/** @internal */
exports.GetOnePrompt2PromptsResponseType$inboundSchema = z.nativeEnum(exports.GetOnePrompt2PromptsResponseType);
/** @internal */
exports.GetOnePrompt2PromptsResponseType$outboundSchema = exports.GetOnePrompt2PromptsResponseType$inboundSchema;
/** @internal */
exports.GetOnePrompt2File$inboundSchema = z.object({
    file_data: z.string().optional(),
    uri: z.string().optional(),
    mimeType: z.string().optional(),
    filename: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "file_data": "fileData",
    });
});
/** @internal */
exports.GetOnePrompt2File$outboundSchema = z.object({
    fileData: z.string().optional(),
    uri: z.string().optional(),
    mimeType: z.string().optional(),
    filename: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        fileData: "file_data",
    });
});
function getOnePrompt2FileToJSON(getOnePrompt2File) {
    return JSON.stringify(exports.GetOnePrompt2File$outboundSchema.parse(getOnePrompt2File));
}
function getOnePrompt2FileFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePrompt2File$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePrompt2File' from JSON`);
}
/** @internal */
exports.GetOnePrompt23$inboundSchema = z.object({
    type: exports.GetOnePrompt2PromptsResponseType$inboundSchema,
    file: z.lazy(() => exports.GetOnePrompt2File$inboundSchema),
});
/** @internal */
exports.GetOnePrompt23$outboundSchema = z.object({
    type: exports.GetOnePrompt2PromptsResponseType$outboundSchema,
    file: z.lazy(() => exports.GetOnePrompt2File$outboundSchema),
});
function getOnePrompt23ToJSON(getOnePrompt23) {
    return JSON.stringify(exports.GetOnePrompt23$outboundSchema.parse(getOnePrompt23));
}
function getOnePrompt23FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePrompt23$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePrompt23' from JSON`);
}
/** @internal */
exports.GetOnePrompt2PromptsType$inboundSchema = z.nativeEnum(exports.GetOnePrompt2PromptsType);
/** @internal */
exports.GetOnePrompt2PromptsType$outboundSchema = exports.GetOnePrompt2PromptsType$inboundSchema;
/** @internal */
exports.GetOnePrompt2ImageUrl$inboundSchema = z.object({
    id: z.string().optional(),
    url: z.string(),
    detail: z.string().optional(),
});
/** @internal */
exports.GetOnePrompt2ImageUrl$outboundSchema = z.object({
    id: z.string().optional(),
    url: z.string(),
    detail: z.string().optional(),
});
function getOnePrompt2ImageUrlToJSON(getOnePrompt2ImageUrl) {
    return JSON.stringify(exports.GetOnePrompt2ImageUrl$outboundSchema.parse(getOnePrompt2ImageUrl));
}
function getOnePrompt2ImageUrlFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePrompt2ImageUrl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePrompt2ImageUrl' from JSON`);
}
/** @internal */
exports.GetOnePrompt22$inboundSchema = z.object({
    type: exports.GetOnePrompt2PromptsType$inboundSchema,
    image_url: z.lazy(() => exports.GetOnePrompt2ImageUrl$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "image_url": "imageUrl",
    });
});
/** @internal */
exports.GetOnePrompt22$outboundSchema = z.object({
    type: exports.GetOnePrompt2PromptsType$outboundSchema,
    imageUrl: z.lazy(() => exports.GetOnePrompt2ImageUrl$outboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        imageUrl: "image_url",
    });
});
function getOnePrompt22ToJSON(getOnePrompt22) {
    return JSON.stringify(exports.GetOnePrompt22$outboundSchema.parse(getOnePrompt22));
}
function getOnePrompt22FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePrompt22$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePrompt22' from JSON`);
}
/** @internal */
exports.GetOnePrompt2Type$inboundSchema = z.nativeEnum(exports.GetOnePrompt2Type);
/** @internal */
exports.GetOnePrompt2Type$outboundSchema = exports.GetOnePrompt2Type$inboundSchema;
/** @internal */
exports.GetOnePrompt21$inboundSchema = z.object({
    type: exports.GetOnePrompt2Type$inboundSchema,
    text: z.string(),
});
/** @internal */
exports.GetOnePrompt21$outboundSchema = z.object({
    type: exports.GetOnePrompt2Type$outboundSchema,
    text: z.string(),
});
function getOnePrompt21ToJSON(getOnePrompt21) {
    return JSON.stringify(exports.GetOnePrompt21$outboundSchema.parse(getOnePrompt21));
}
function getOnePrompt21FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePrompt21$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePrompt21' from JSON`);
}
/** @internal */
exports.GetOnePromptContent2$inboundSchema = z.union([
    z.lazy(() => exports.GetOnePrompt21$inboundSchema),
    z.lazy(() => exports.GetOnePrompt22$inboundSchema),
    z.lazy(() => exports.GetOnePrompt23$inboundSchema),
]);
/** @internal */
exports.GetOnePromptContent2$outboundSchema = z.union([
    z.lazy(() => exports.GetOnePrompt21$outboundSchema),
    z.lazy(() => exports.GetOnePrompt22$outboundSchema),
    z.lazy(() => exports.GetOnePrompt23$outboundSchema),
]);
function getOnePromptContent2ToJSON(getOnePromptContent2) {
    return JSON.stringify(exports.GetOnePromptContent2$outboundSchema.parse(getOnePromptContent2));
}
function getOnePromptContent2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptContent2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptContent2' from JSON`);
}
/** @internal */
exports.GetOnePromptContent$inboundSchema = z.union([
    z.string(),
    z.array(z.union([
        z.lazy(() => exports.GetOnePrompt21$inboundSchema),
        z.lazy(() => exports.GetOnePrompt22$inboundSchema),
        z.lazy(() => exports.GetOnePrompt23$inboundSchema),
    ])),
]);
/** @internal */
exports.GetOnePromptContent$outboundSchema = z.union([
    z.string(),
    z.array(z.union([
        z.lazy(() => exports.GetOnePrompt21$outboundSchema),
        z.lazy(() => exports.GetOnePrompt22$outboundSchema),
        z.lazy(() => exports.GetOnePrompt23$outboundSchema),
    ])),
]);
function getOnePromptContentToJSON(getOnePromptContent) {
    return JSON.stringify(exports.GetOnePromptContent$outboundSchema.parse(getOnePromptContent));
}
function getOnePromptContentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptContent' from JSON`);
}
/** @internal */
exports.GetOnePromptPromptsType$inboundSchema = z.nativeEnum(exports.GetOnePromptPromptsType);
/** @internal */
exports.GetOnePromptPromptsType$outboundSchema = exports.GetOnePromptPromptsType$inboundSchema;
/** @internal */
exports.GetOnePromptFunction$inboundSchema = z.object({
    name: z.string(),
    arguments: z.string(),
});
/** @internal */
exports.GetOnePromptFunction$outboundSchema = z.object({
    name: z.string(),
    arguments: z.string(),
});
function getOnePromptFunctionToJSON(getOnePromptFunction) {
    return JSON.stringify(exports.GetOnePromptFunction$outboundSchema.parse(getOnePromptFunction));
}
function getOnePromptFunctionFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptFunction' from JSON`);
}
/** @internal */
exports.GetOnePromptToolCalls$inboundSchema = z.object({
    id: z.string().optional(),
    index: z.number().optional(),
    type: exports.GetOnePromptPromptsType$inboundSchema,
    function: z.lazy(() => exports.GetOnePromptFunction$inboundSchema),
});
/** @internal */
exports.GetOnePromptToolCalls$outboundSchema = z.object({
    id: z.string().optional(),
    index: z.number().optional(),
    type: exports.GetOnePromptPromptsType$outboundSchema,
    function: z.lazy(() => exports.GetOnePromptFunction$outboundSchema),
});
function getOnePromptToolCallsToJSON(getOnePromptToolCalls) {
    return JSON.stringify(exports.GetOnePromptToolCalls$outboundSchema.parse(getOnePromptToolCalls));
}
function getOnePromptToolCallsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptToolCalls$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptToolCalls' from JSON`);
}
/** @internal */
exports.GetOnePromptMessages$inboundSchema = z.object({
    role: exports.GetOnePromptRole$inboundSchema,
    content: z.nullable(z.union([
        z.string(),
        z.array(z.union([
            z.lazy(() => exports.GetOnePrompt21$inboundSchema),
            z.lazy(() => exports.GetOnePrompt22$inboundSchema),
            z.lazy(() => exports.GetOnePrompt23$inboundSchema),
        ])),
    ])),
    tool_calls: z.array(z.lazy(() => exports.GetOnePromptToolCalls$inboundSchema))
        .optional(),
    tool_call_id: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "tool_calls": "toolCalls",
        "tool_call_id": "toolCallId",
    });
});
/** @internal */
exports.GetOnePromptMessages$outboundSchema = z.object({
    role: exports.GetOnePromptRole$outboundSchema,
    content: z.nullable(z.union([
        z.string(),
        z.array(z.union([
            z.lazy(() => exports.GetOnePrompt21$outboundSchema),
            z.lazy(() => exports.GetOnePrompt22$outboundSchema),
            z.lazy(() => exports.GetOnePrompt23$outboundSchema),
        ])),
    ])),
    toolCalls: z.array(z.lazy(() => exports.GetOnePromptToolCalls$outboundSchema))
        .optional(),
    toolCallId: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        toolCalls: "tool_calls",
        toolCallId: "tool_call_id",
    });
});
function getOnePromptMessagesToJSON(getOnePromptMessages) {
    return JSON.stringify(exports.GetOnePromptMessages$outboundSchema.parse(getOnePromptMessages));
}
function getOnePromptMessagesFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptMessages$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptMessages' from JSON`);
}
/** @internal */
exports.GetOnePromptPromptConfig$inboundSchema = z.object({
    stream: z.boolean().optional(),
    model: z.string().optional(),
    model_db_id: z.nullable(z.string()).optional(),
    model_type: z.nullable(exports.GetOnePromptModelType$inboundSchema).optional(),
    model_parameters: z.lazy(() => exports.GetOnePromptModelParameters$inboundSchema)
        .optional(),
    provider: exports.GetOnePromptProvider$inboundSchema.optional(),
    integration_id: z.nullable(z.string()).optional(),
    version: z.string().optional(),
    messages: z.array(z.lazy(() => exports.GetOnePromptMessages$inboundSchema)),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "model_db_id": "modelDbId",
        "model_type": "modelType",
        "model_parameters": "modelParameters",
        "integration_id": "integrationId",
    });
});
/** @internal */
exports.GetOnePromptPromptConfig$outboundSchema = z.object({
    stream: z.boolean().optional(),
    model: z.string().optional(),
    modelDbId: z.nullable(z.string()).optional(),
    modelType: z.nullable(exports.GetOnePromptModelType$outboundSchema).optional(),
    modelParameters: z.lazy(() => exports.GetOnePromptModelParameters$outboundSchema)
        .optional(),
    provider: exports.GetOnePromptProvider$outboundSchema.optional(),
    integrationId: z.nullable(z.string()).optional(),
    version: z.string().optional(),
    messages: z.array(z.lazy(() => exports.GetOnePromptMessages$outboundSchema)),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        modelDbId: "model_db_id",
        modelType: "model_type",
        modelParameters: "model_parameters",
        integrationId: "integration_id",
    });
});
function getOnePromptPromptConfigToJSON(getOnePromptPromptConfig) {
    return JSON.stringify(exports.GetOnePromptPromptConfig$outboundSchema.parse(getOnePromptPromptConfig));
}
function getOnePromptPromptConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptPromptConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptPromptConfig' from JSON`);
}
/** @internal */
exports.GetOnePromptUseCases$inboundSchema = z.nativeEnum(exports.GetOnePromptUseCases);
/** @internal */
exports.GetOnePromptUseCases$outboundSchema = exports.GetOnePromptUseCases$inboundSchema;
/** @internal */
exports.GetOnePromptLanguage$inboundSchema = z.nativeEnum(exports.GetOnePromptLanguage);
/** @internal */
exports.GetOnePromptLanguage$outboundSchema = exports.GetOnePromptLanguage$inboundSchema;
/** @internal */
exports.GetOnePromptMetadata$inboundSchema = z.object({
    use_cases: z.array(exports.GetOnePromptUseCases$inboundSchema).optional(),
    language: z.nullable(exports.GetOnePromptLanguage$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "use_cases": "useCases",
    });
});
/** @internal */
exports.GetOnePromptMetadata$outboundSchema = z.object({
    useCases: z.array(exports.GetOnePromptUseCases$outboundSchema).optional(),
    language: z.nullable(exports.GetOnePromptLanguage$outboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        useCases: "use_cases",
    });
});
function getOnePromptMetadataToJSON(getOnePromptMetadata) {
    return JSON.stringify(exports.GetOnePromptMetadata$outboundSchema.parse(getOnePromptMetadata));
}
function getOnePromptMetadataFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptMetadata$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptMetadata' from JSON`);
}
/** @internal */
exports.GetOnePromptPrompt$inboundSchema = z.object({
    _id: z.string(),
    type: exports.GetOnePromptType$inboundSchema,
    owner: z.string(),
    domain_id: z.string(),
    created: z.string(),
    updated: z.string(),
    created_by_id: z.nullable(z.string()).optional(),
    updated_by_id: z.nullable(z.string()).optional(),
    display_name: z.string(),
    description: z.nullable(z.string()).optional(),
    prompt_config: z.lazy(() => exports.GetOnePromptPromptConfig$inboundSchema),
    metadata: z.lazy(() => exports.GetOnePromptMetadata$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "domain_id": "domainId",
        "created_by_id": "createdById",
        "updated_by_id": "updatedById",
        "display_name": "displayName",
        "prompt_config": "promptConfig",
    });
});
/** @internal */
exports.GetOnePromptPrompt$outboundSchema = z.object({
    id: z.string(),
    type: exports.GetOnePromptType$outboundSchema,
    owner: z.string(),
    domainId: z.string(),
    created: z.string(),
    updated: z.string(),
    createdById: z.nullable(z.string()).optional(),
    updatedById: z.nullable(z.string()).optional(),
    displayName: z.string(),
    description: z.nullable(z.string()).optional(),
    promptConfig: z.lazy(() => exports.GetOnePromptPromptConfig$outboundSchema),
    metadata: z.lazy(() => exports.GetOnePromptMetadata$outboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        id: "_id",
        domainId: "domain_id",
        createdById: "created_by_id",
        updatedById: "updated_by_id",
        displayName: "display_name",
        promptConfig: "prompt_config",
    });
});
function getOnePromptPromptToJSON(getOnePromptPrompt) {
    return JSON.stringify(exports.GetOnePromptPrompt$outboundSchema.parse(getOnePromptPrompt));
}
function getOnePromptPromptFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptPrompt$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptPrompt' from JSON`);
}
//# sourceMappingURL=getoneprompt.js.map