"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.GetAllPromptsResponseFormatJsonSchema$inboundSchema = exports.GetAllPromptsResponseFormatType$outboundSchema = exports.GetAllPromptsResponseFormatType$inboundSchema = exports.GetAllPromptsResponseFormat2$outboundSchema = exports.GetAllPromptsResponseFormat2$inboundSchema = exports.GetAllPromptsResponseFormatPromptsType$outboundSchema = exports.GetAllPromptsResponseFormatPromptsType$inboundSchema = exports.GetAllPromptsResponseFormat3$outboundSchema = exports.GetAllPromptsResponseFormat3$inboundSchema = exports.GetAllPromptsResponseFormatPromptsResponseType$outboundSchema = exports.GetAllPromptsResponseFormatPromptsResponseType$inboundSchema = exports.GetAllPromptsResponseFormat4$outboundSchema = exports.GetAllPromptsResponseFormat4$inboundSchema = exports.GetAllPromptsResponseFormat5$outboundSchema = exports.GetAllPromptsResponseFormat5$inboundSchema = exports.GetAllPromptsResponseFormat6$outboundSchema = exports.GetAllPromptsResponseFormat6$inboundSchema = exports.GetAllPromptsFormat$outboundSchema = exports.GetAllPromptsFormat$inboundSchema = exports.GetAllPromptsModelType$outboundSchema = exports.GetAllPromptsModelType$inboundSchema = exports.GetAllPromptsType$outboundSchema = exports.GetAllPromptsType$inboundSchema = exports.GetAllPromptsObject$outboundSchema = exports.GetAllPromptsObject$inboundSchema = exports.GetAllPromptsRequest$outboundSchema = exports.GetAllPromptsRequest$inboundSchema = exports.GetAllPromptsLanguage = exports.GetAllPromptsUseCases = exports.GetAllPromptsPromptsType = exports.GetAllPrompts2Type = exports.GetAllPrompts2PromptsType = exports.GetAllPrompts2PromptsResponseType = exports.GetAllPromptsRole = exports.GetAllPromptsProvider = exports.GetAllPromptsThinkingLevel = exports.GetAllPromptsVerbosity = exports.GetAllPromptsReasoningEffort = exports.GetAllPromptsEncodingFormat = exports.GetAllPromptsPhotoRealVersion = exports.GetAllPromptsResponseFormatType = exports.GetAllPromptsResponseFormatPromptsType = exports.GetAllPromptsResponseFormatPromptsResponseType = exports.GetAllPromptsResponseFormat4 = exports.GetAllPromptsResponseFormat5 = exports.GetAllPromptsResponseFormat6 = exports.GetAllPromptsFormat = exports.GetAllPromptsModelType = exports.GetAllPromptsType = exports.GetAllPromptsObject = void 0;
exports.GetAllPromptsPromptConfig$inboundSchema = exports.GetAllPromptsMessages$outboundSchema = exports.GetAllPromptsMessages$inboundSchema = exports.GetAllPromptsToolCalls$outboundSchema = exports.GetAllPromptsToolCalls$inboundSchema = exports.GetAllPromptsFunction$outboundSchema = exports.GetAllPromptsFunction$inboundSchema = exports.GetAllPromptsPromptsType$outboundSchema = exports.GetAllPromptsPromptsType$inboundSchema = exports.GetAllPromptsContent$outboundSchema = exports.GetAllPromptsContent$inboundSchema = exports.GetAllPromptsContent2$outboundSchema = exports.GetAllPromptsContent2$inboundSchema = exports.GetAllPrompts21$outboundSchema = exports.GetAllPrompts21$inboundSchema = exports.GetAllPrompts2Type$outboundSchema = exports.GetAllPrompts2Type$inboundSchema = exports.GetAllPrompts22$outboundSchema = exports.GetAllPrompts22$inboundSchema = exports.GetAllPrompts2ImageUrl$outboundSchema = exports.GetAllPrompts2ImageUrl$inboundSchema = exports.GetAllPrompts2PromptsType$outboundSchema = exports.GetAllPrompts2PromptsType$inboundSchema = exports.GetAllPrompts23$outboundSchema = exports.GetAllPrompts23$inboundSchema = exports.GetAllPrompts2File$outboundSchema = exports.GetAllPrompts2File$inboundSchema = exports.GetAllPrompts2PromptsResponseType$outboundSchema = exports.GetAllPrompts2PromptsResponseType$inboundSchema = exports.GetAllPromptsRole$outboundSchema = exports.GetAllPromptsRole$inboundSchema = exports.GetAllPromptsProvider$outboundSchema = exports.GetAllPromptsProvider$inboundSchema = exports.GetAllPromptsModelParameters$outboundSchema = exports.GetAllPromptsModelParameters$inboundSchema = exports.GetAllPromptsThinkingLevel$outboundSchema = exports.GetAllPromptsThinkingLevel$inboundSchema = exports.GetAllPromptsVerbosity$outboundSchema = exports.GetAllPromptsVerbosity$inboundSchema = exports.GetAllPromptsReasoningEffort$outboundSchema = exports.GetAllPromptsReasoningEffort$inboundSchema = exports.GetAllPromptsEncodingFormat$outboundSchema = exports.GetAllPromptsEncodingFormat$inboundSchema = exports.GetAllPromptsPhotoRealVersion$outboundSchema = exports.GetAllPromptsPhotoRealVersion$inboundSchema = exports.GetAllPromptsResponseFormat$outboundSchema = exports.GetAllPromptsResponseFormat$inboundSchema = exports.GetAllPromptsResponseFormat1$outboundSchema = exports.GetAllPromptsResponseFormat1$inboundSchema = exports.GetAllPromptsResponseFormatJsonSchema$outboundSchema = void 0;
exports.GetAllPromptsResponseBody$outboundSchema = exports.GetAllPromptsResponseBody$inboundSchema = exports.Prompt$outboundSchema = exports.Prompt$inboundSchema = exports.GetAllPromptsMetadata$outboundSchema = exports.GetAllPromptsMetadata$inboundSchema = exports.GetAllPromptsLanguage$outboundSchema = exports.GetAllPromptsLanguage$inboundSchema = exports.GetAllPromptsUseCases$outboundSchema = exports.GetAllPromptsUseCases$inboundSchema = exports.GetAllPromptsPromptConfig$outboundSchema = void 0;
exports.getAllPromptsRequestToJSON = getAllPromptsRequestToJSON;
exports.getAllPromptsRequestFromJSON = getAllPromptsRequestFromJSON;
exports.getAllPromptsResponseFormat3ToJSON = getAllPromptsResponseFormat3ToJSON;
exports.getAllPromptsResponseFormat3FromJSON = getAllPromptsResponseFormat3FromJSON;
exports.getAllPromptsResponseFormat2ToJSON = getAllPromptsResponseFormat2ToJSON;
exports.getAllPromptsResponseFormat2FromJSON = getAllPromptsResponseFormat2FromJSON;
exports.getAllPromptsResponseFormatJsonSchemaToJSON = getAllPromptsResponseFormatJsonSchemaToJSON;
exports.getAllPromptsResponseFormatJsonSchemaFromJSON = getAllPromptsResponseFormatJsonSchemaFromJSON;
exports.getAllPromptsResponseFormat1ToJSON = getAllPromptsResponseFormat1ToJSON;
exports.getAllPromptsResponseFormat1FromJSON = getAllPromptsResponseFormat1FromJSON;
exports.getAllPromptsResponseFormatToJSON = getAllPromptsResponseFormatToJSON;
exports.getAllPromptsResponseFormatFromJSON = getAllPromptsResponseFormatFromJSON;
exports.getAllPromptsModelParametersToJSON = getAllPromptsModelParametersToJSON;
exports.getAllPromptsModelParametersFromJSON = getAllPromptsModelParametersFromJSON;
exports.getAllPrompts2FileToJSON = getAllPrompts2FileToJSON;
exports.getAllPrompts2FileFromJSON = getAllPrompts2FileFromJSON;
exports.getAllPrompts23ToJSON = getAllPrompts23ToJSON;
exports.getAllPrompts23FromJSON = getAllPrompts23FromJSON;
exports.getAllPrompts2ImageUrlToJSON = getAllPrompts2ImageUrlToJSON;
exports.getAllPrompts2ImageUrlFromJSON = getAllPrompts2ImageUrlFromJSON;
exports.getAllPrompts22ToJSON = getAllPrompts22ToJSON;
exports.getAllPrompts22FromJSON = getAllPrompts22FromJSON;
exports.getAllPrompts21ToJSON = getAllPrompts21ToJSON;
exports.getAllPrompts21FromJSON = getAllPrompts21FromJSON;
exports.getAllPromptsContent2ToJSON = getAllPromptsContent2ToJSON;
exports.getAllPromptsContent2FromJSON = getAllPromptsContent2FromJSON;
exports.getAllPromptsContentToJSON = getAllPromptsContentToJSON;
exports.getAllPromptsContentFromJSON = getAllPromptsContentFromJSON;
exports.getAllPromptsFunctionToJSON = getAllPromptsFunctionToJSON;
exports.getAllPromptsFunctionFromJSON = getAllPromptsFunctionFromJSON;
exports.getAllPromptsToolCallsToJSON = getAllPromptsToolCallsToJSON;
exports.getAllPromptsToolCallsFromJSON = getAllPromptsToolCallsFromJSON;
exports.getAllPromptsMessagesToJSON = getAllPromptsMessagesToJSON;
exports.getAllPromptsMessagesFromJSON = getAllPromptsMessagesFromJSON;
exports.getAllPromptsPromptConfigToJSON = getAllPromptsPromptConfigToJSON;
exports.getAllPromptsPromptConfigFromJSON = getAllPromptsPromptConfigFromJSON;
exports.getAllPromptsMetadataToJSON = getAllPromptsMetadataToJSON;
exports.getAllPromptsMetadataFromJSON = getAllPromptsMetadataFromJSON;
exports.promptToJSON = promptToJSON;
exports.promptFromJSON = promptFromJSON;
exports.getAllPromptsResponseBodyToJSON = getAllPromptsResponseBodyToJSON;
exports.getAllPromptsResponseBodyFromJSON = getAllPromptsResponseBodyFromJSON;
const z = __importStar(require("zod/v3"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
exports.GetAllPromptsObject = {
    List: "list",
};
exports.GetAllPromptsType = {
    Prompt: "prompt",
};
/**
 * The modality of the model
 */
exports.GetAllPromptsModelType = {
    Chat: "chat",
    Completion: "completion",
    Embedding: "embedding",
    Image: "image",
    Tts: "tts",
    Stt: "stt",
    Rerank: "rerank",
    Moderation: "moderation",
    Vision: "vision",
};
/**
 * Only supported on `image` models.
 */
exports.GetAllPromptsFormat = {
    Url: "url",
    B64Json: "b64_json",
    Text: "text",
    JsonObject: "json_object",
};
exports.GetAllPromptsResponseFormat6 = {
    Json: "json",
    Text: "text",
    Srt: "srt",
    VerboseJson: "verbose_json",
    Vtt: "vtt",
};
exports.GetAllPromptsResponseFormat5 = {
    Url: "url",
    Base64Json: "base64_json",
};
exports.GetAllPromptsResponseFormat4 = {
    Mp3: "mp3",
    Opus: "opus",
    Aac: "aac",
    Flac: "flac",
    Wav: "wav",
    Pcm: "pcm",
};
exports.GetAllPromptsResponseFormatPromptsResponseType = {
    Text: "text",
};
exports.GetAllPromptsResponseFormatPromptsType = {
    JsonObject: "json_object",
};
exports.GetAllPromptsResponseFormatType = {
    JsonSchema: "json_schema",
};
/**
 * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
 */
exports.GetAllPromptsPhotoRealVersion = {
    V1: "v1",
    V2: "v2",
};
/**
 * The format to return the embeddings
 */
exports.GetAllPromptsEncodingFormat = {
    Float: "float",
    Base64: "base64",
};
/**
 * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
 */
exports.GetAllPromptsReasoningEffort = {
    None: "none",
    Disable: "disable",
    Minimal: "minimal",
    Low: "low",
    Medium: "medium",
    High: "high",
};
/**
 * Controls the verbosity of the model output.
 */
exports.GetAllPromptsVerbosity = {
    Low: "low",
    Medium: "medium",
    High: "high",
};
/**
 * The level of thinking to use for the model. Only supported by `Google AI`
 */
exports.GetAllPromptsThinkingLevel = {
    Low: "low",
    High: "high",
};
exports.GetAllPromptsProvider = {
    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.GetAllPromptsRole = {
    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.GetAllPrompts2PromptsResponseType = {
    File: "file",
};
exports.GetAllPrompts2PromptsType = {
    ImageUrl: "image_url",
};
exports.GetAllPrompts2Type = {
    Text: "text",
};
exports.GetAllPromptsPromptsType = {
    Function: "function",
};
exports.GetAllPromptsUseCases = {
    AgentsSimulations: "Agents simulations",
    Agents: "Agents",
    APIInteraction: "API interaction",
    AutonomousAgents: "Autonomous Agents",
    Chatbots: "Chatbots",
    Classification: "Classification",
    CodeUnderstanding: "Code understanding",
    CodeWriting: "Code writing",
    Conversation: "Conversation",
    DocumentsQA: "Documents QA",
    Evaluation: "Evaluation",
    Extraction: "Extraction",
    MultiModal: "Multi-modal",
    SelfChecking: "Self-checking",
    SentimentAnalysis: "Sentiment analysis",
    Sql: "SQL",
    Summarization: "Summarization",
    Tagging: "Tagging",
    TranslationDocument: "Translation (document)",
    TranslationSentences: "Translation (sentences)",
};
/**
 * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
 */
exports.GetAllPromptsLanguage = {
    Chinese: "Chinese",
    Dutch: "Dutch",
    English: "English",
    French: "French",
    German: "German",
    Russian: "Russian",
    Spanish: "Spanish",
};
/** @internal */
exports.GetAllPromptsRequest$inboundSchema = z.object({
    limit: z.number().default(10),
    starting_after: z.string().optional(),
    ending_before: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "starting_after": "startingAfter",
        "ending_before": "endingBefore",
    });
});
/** @internal */
exports.GetAllPromptsRequest$outboundSchema = z.object({
    limit: z.number().default(10),
    startingAfter: z.string().optional(),
    endingBefore: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        startingAfter: "starting_after",
        endingBefore: "ending_before",
    });
});
function getAllPromptsRequestToJSON(getAllPromptsRequest) {
    return JSON.stringify(exports.GetAllPromptsRequest$outboundSchema.parse(getAllPromptsRequest));
}
function getAllPromptsRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsRequest' from JSON`);
}
/** @internal */
exports.GetAllPromptsObject$inboundSchema = z.nativeEnum(exports.GetAllPromptsObject);
/** @internal */
exports.GetAllPromptsObject$outboundSchema = exports.GetAllPromptsObject$inboundSchema;
/** @internal */
exports.GetAllPromptsType$inboundSchema = z.nativeEnum(exports.GetAllPromptsType);
/** @internal */
exports.GetAllPromptsType$outboundSchema = exports.GetAllPromptsType$inboundSchema;
/** @internal */
exports.GetAllPromptsModelType$inboundSchema = z.nativeEnum(exports.GetAllPromptsModelType);
/** @internal */
exports.GetAllPromptsModelType$outboundSchema = exports.GetAllPromptsModelType$inboundSchema;
/** @internal */
exports.GetAllPromptsFormat$inboundSchema = z.nativeEnum(exports.GetAllPromptsFormat);
/** @internal */
exports.GetAllPromptsFormat$outboundSchema = exports.GetAllPromptsFormat$inboundSchema;
/** @internal */
exports.GetAllPromptsResponseFormat6$inboundSchema = z.nativeEnum(exports.GetAllPromptsResponseFormat6);
/** @internal */
exports.GetAllPromptsResponseFormat6$outboundSchema = exports.GetAllPromptsResponseFormat6$inboundSchema;
/** @internal */
exports.GetAllPromptsResponseFormat5$inboundSchema = z.nativeEnum(exports.GetAllPromptsResponseFormat5);
/** @internal */
exports.GetAllPromptsResponseFormat5$outboundSchema = exports.GetAllPromptsResponseFormat5$inboundSchema;
/** @internal */
exports.GetAllPromptsResponseFormat4$inboundSchema = z.nativeEnum(exports.GetAllPromptsResponseFormat4);
/** @internal */
exports.GetAllPromptsResponseFormat4$outboundSchema = exports.GetAllPromptsResponseFormat4$inboundSchema;
/** @internal */
exports.GetAllPromptsResponseFormatPromptsResponseType$inboundSchema = z
    .nativeEnum(exports.GetAllPromptsResponseFormatPromptsResponseType);
/** @internal */
exports.GetAllPromptsResponseFormatPromptsResponseType$outboundSchema = exports.GetAllPromptsResponseFormatPromptsResponseType$inboundSchema;
/** @internal */
exports.GetAllPromptsResponseFormat3$inboundSchema = z.object({
    type: exports.GetAllPromptsResponseFormatPromptsResponseType$inboundSchema,
});
/** @internal */
exports.GetAllPromptsResponseFormat3$outboundSchema = z.object({
    type: exports.GetAllPromptsResponseFormatPromptsResponseType$outboundSchema,
});
function getAllPromptsResponseFormat3ToJSON(getAllPromptsResponseFormat3) {
    return JSON.stringify(exports.GetAllPromptsResponseFormat3$outboundSchema.parse(getAllPromptsResponseFormat3));
}
function getAllPromptsResponseFormat3FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsResponseFormat3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsResponseFormat3' from JSON`);
}
/** @internal */
exports.GetAllPromptsResponseFormatPromptsType$inboundSchema = z.nativeEnum(exports.GetAllPromptsResponseFormatPromptsType);
/** @internal */
exports.GetAllPromptsResponseFormatPromptsType$outboundSchema = exports.GetAllPromptsResponseFormatPromptsType$inboundSchema;
/** @internal */
exports.GetAllPromptsResponseFormat2$inboundSchema = z.object({
    type: exports.GetAllPromptsResponseFormatPromptsType$inboundSchema,
});
/** @internal */
exports.GetAllPromptsResponseFormat2$outboundSchema = z.object({
    type: exports.GetAllPromptsResponseFormatPromptsType$outboundSchema,
});
function getAllPromptsResponseFormat2ToJSON(getAllPromptsResponseFormat2) {
    return JSON.stringify(exports.GetAllPromptsResponseFormat2$outboundSchema.parse(getAllPromptsResponseFormat2));
}
function getAllPromptsResponseFormat2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsResponseFormat2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsResponseFormat2' from JSON`);
}
/** @internal */
exports.GetAllPromptsResponseFormatType$inboundSchema = z.nativeEnum(exports.GetAllPromptsResponseFormatType);
/** @internal */
exports.GetAllPromptsResponseFormatType$outboundSchema = exports.GetAllPromptsResponseFormatType$inboundSchema;
/** @internal */
exports.GetAllPromptsResponseFormatJsonSchema$inboundSchema = z.object({
    name: z.string(),
    description: z.string().optional(),
    strict: z.boolean().optional(),
    schema: z.record(z.any()),
});
/** @internal */
exports.GetAllPromptsResponseFormatJsonSchema$outboundSchema = z.object({
    name: z.string(),
    description: z.string().optional(),
    strict: z.boolean().optional(),
    schema: z.record(z.any()),
});
function getAllPromptsResponseFormatJsonSchemaToJSON(getAllPromptsResponseFormatJsonSchema) {
    return JSON.stringify(exports.GetAllPromptsResponseFormatJsonSchema$outboundSchema.parse(getAllPromptsResponseFormatJsonSchema));
}
function getAllPromptsResponseFormatJsonSchemaFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsResponseFormatJsonSchema' from JSON`);
}
/** @internal */
exports.GetAllPromptsResponseFormat1$inboundSchema = z.object({
    type: exports.GetAllPromptsResponseFormatType$inboundSchema,
    display_name: z.string().optional(),
    json_schema: z.lazy(() => exports.GetAllPromptsResponseFormatJsonSchema$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "display_name": "displayName",
        "json_schema": "jsonSchema",
    });
});
/** @internal */
exports.GetAllPromptsResponseFormat1$outboundSchema = z.object({
    type: exports.GetAllPromptsResponseFormatType$outboundSchema,
    displayName: z.string().optional(),
    jsonSchema: z.lazy(() => exports.GetAllPromptsResponseFormatJsonSchema$outboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        displayName: "display_name",
        jsonSchema: "json_schema",
    });
});
function getAllPromptsResponseFormat1ToJSON(getAllPromptsResponseFormat1) {
    return JSON.stringify(exports.GetAllPromptsResponseFormat1$outboundSchema.parse(getAllPromptsResponseFormat1));
}
function getAllPromptsResponseFormat1FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsResponseFormat1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsResponseFormat1' from JSON`);
}
/** @internal */
exports.GetAllPromptsResponseFormat$inboundSchema = z.union([
    z.lazy(() => exports.GetAllPromptsResponseFormat1$inboundSchema),
    z.lazy(() => exports.GetAllPromptsResponseFormat2$inboundSchema),
    z.lazy(() => exports.GetAllPromptsResponseFormat3$inboundSchema),
    exports.GetAllPromptsResponseFormat4$inboundSchema,
    exports.GetAllPromptsResponseFormat5$inboundSchema,
    exports.GetAllPromptsResponseFormat6$inboundSchema,
]);
/** @internal */
exports.GetAllPromptsResponseFormat$outboundSchema = z.union([
    z.lazy(() => exports.GetAllPromptsResponseFormat1$outboundSchema),
    z.lazy(() => exports.GetAllPromptsResponseFormat2$outboundSchema),
    z.lazy(() => exports.GetAllPromptsResponseFormat3$outboundSchema),
    exports.GetAllPromptsResponseFormat4$outboundSchema,
    exports.GetAllPromptsResponseFormat5$outboundSchema,
    exports.GetAllPromptsResponseFormat6$outboundSchema,
]);
function getAllPromptsResponseFormatToJSON(getAllPromptsResponseFormat) {
    return JSON.stringify(exports.GetAllPromptsResponseFormat$outboundSchema.parse(getAllPromptsResponseFormat));
}
function getAllPromptsResponseFormatFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsResponseFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsResponseFormat' from JSON`);
}
/** @internal */
exports.GetAllPromptsPhotoRealVersion$inboundSchema = z.nativeEnum(exports.GetAllPromptsPhotoRealVersion);
/** @internal */
exports.GetAllPromptsPhotoRealVersion$outboundSchema = exports.GetAllPromptsPhotoRealVersion$inboundSchema;
/** @internal */
exports.GetAllPromptsEncodingFormat$inboundSchema = z.nativeEnum(exports.GetAllPromptsEncodingFormat);
/** @internal */
exports.GetAllPromptsEncodingFormat$outboundSchema = exports.GetAllPromptsEncodingFormat$inboundSchema;
/** @internal */
exports.GetAllPromptsReasoningEffort$inboundSchema = z.nativeEnum(exports.GetAllPromptsReasoningEffort);
/** @internal */
exports.GetAllPromptsReasoningEffort$outboundSchema = exports.GetAllPromptsReasoningEffort$inboundSchema;
/** @internal */
exports.GetAllPromptsVerbosity$inboundSchema = z.nativeEnum(exports.GetAllPromptsVerbosity);
/** @internal */
exports.GetAllPromptsVerbosity$outboundSchema = exports.GetAllPromptsVerbosity$inboundSchema;
/** @internal */
exports.GetAllPromptsThinkingLevel$inboundSchema = z.nativeEnum(exports.GetAllPromptsThinkingLevel);
/** @internal */
exports.GetAllPromptsThinkingLevel$outboundSchema = exports.GetAllPromptsThinkingLevel$inboundSchema;
/** @internal */
exports.GetAllPromptsModelParameters$inboundSchema = z.object({
    temperature: z.number().optional(),
    maxTokens: z.number().optional(),
    topK: z.number().optional(),
    topP: z.number().optional(),
    frequencyPenalty: z.number().optional(),
    presencePenalty: z.number().optional(),
    numImages: z.number().optional(),
    seed: z.number().optional(),
    format: exports.GetAllPromptsFormat$inboundSchema.optional(),
    dimensions: z.string().optional(),
    quality: z.string().optional(),
    style: z.string().optional(),
    responseFormat: z.nullable(z.union([
        z.lazy(() => exports.GetAllPromptsResponseFormat1$inboundSchema),
        z.lazy(() => exports.GetAllPromptsResponseFormat2$inboundSchema),
        z.lazy(() => exports.GetAllPromptsResponseFormat3$inboundSchema),
        exports.GetAllPromptsResponseFormat4$inboundSchema,
        exports.GetAllPromptsResponseFormat5$inboundSchema,
        exports.GetAllPromptsResponseFormat6$inboundSchema,
    ])).optional(),
    photoRealVersion: exports.GetAllPromptsPhotoRealVersion$inboundSchema.optional(),
    encoding_format: exports.GetAllPromptsEncodingFormat$inboundSchema.optional(),
    reasoningEffort: exports.GetAllPromptsReasoningEffort$inboundSchema.optional(),
    budgetTokens: z.number().optional(),
    verbosity: exports.GetAllPromptsVerbosity$inboundSchema.optional(),
    thinkingLevel: exports.GetAllPromptsThinkingLevel$inboundSchema.optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "encoding_format": "encodingFormat",
    });
});
/** @internal */
exports.GetAllPromptsModelParameters$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.GetAllPromptsFormat$outboundSchema.optional(),
    dimensions: z.string().optional(),
    quality: z.string().optional(),
    style: z.string().optional(),
    responseFormat: z.nullable(z.union([
        z.lazy(() => exports.GetAllPromptsResponseFormat1$outboundSchema),
        z.lazy(() => exports.GetAllPromptsResponseFormat2$outboundSchema),
        z.lazy(() => exports.GetAllPromptsResponseFormat3$outboundSchema),
        exports.GetAllPromptsResponseFormat4$outboundSchema,
        exports.GetAllPromptsResponseFormat5$outboundSchema,
        exports.GetAllPromptsResponseFormat6$outboundSchema,
    ])).optional(),
    photoRealVersion: exports.GetAllPromptsPhotoRealVersion$outboundSchema.optional(),
    encodingFormat: exports.GetAllPromptsEncodingFormat$outboundSchema.optional(),
    reasoningEffort: exports.GetAllPromptsReasoningEffort$outboundSchema.optional(),
    budgetTokens: z.number().optional(),
    verbosity: exports.GetAllPromptsVerbosity$outboundSchema.optional(),
    thinkingLevel: exports.GetAllPromptsThinkingLevel$outboundSchema.optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        encodingFormat: "encoding_format",
    });
});
function getAllPromptsModelParametersToJSON(getAllPromptsModelParameters) {
    return JSON.stringify(exports.GetAllPromptsModelParameters$outboundSchema.parse(getAllPromptsModelParameters));
}
function getAllPromptsModelParametersFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsModelParameters$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsModelParameters' from JSON`);
}
/** @internal */
exports.GetAllPromptsProvider$inboundSchema = z.nativeEnum(exports.GetAllPromptsProvider);
/** @internal */
exports.GetAllPromptsProvider$outboundSchema = exports.GetAllPromptsProvider$inboundSchema;
/** @internal */
exports.GetAllPromptsRole$inboundSchema = z.nativeEnum(exports.GetAllPromptsRole);
/** @internal */
exports.GetAllPromptsRole$outboundSchema = exports.GetAllPromptsRole$inboundSchema;
/** @internal */
exports.GetAllPrompts2PromptsResponseType$inboundSchema = z.nativeEnum(exports.GetAllPrompts2PromptsResponseType);
/** @internal */
exports.GetAllPrompts2PromptsResponseType$outboundSchema = exports.GetAllPrompts2PromptsResponseType$inboundSchema;
/** @internal */
exports.GetAllPrompts2File$inboundSchema = z.object({
    file_data: z.string().optional(),
    uri: z.string().optional(),
    mimeType: z.string().optional(),
    filename: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "file_data": "fileData",
    });
});
/** @internal */
exports.GetAllPrompts2File$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 getAllPrompts2FileToJSON(getAllPrompts2File) {
    return JSON.stringify(exports.GetAllPrompts2File$outboundSchema.parse(getAllPrompts2File));
}
function getAllPrompts2FileFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPrompts2File$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPrompts2File' from JSON`);
}
/** @internal */
exports.GetAllPrompts23$inboundSchema = z.object({
    type: exports.GetAllPrompts2PromptsResponseType$inboundSchema,
    file: z.lazy(() => exports.GetAllPrompts2File$inboundSchema),
});
/** @internal */
exports.GetAllPrompts23$outboundSchema = z.object({
    type: exports.GetAllPrompts2PromptsResponseType$outboundSchema,
    file: z.lazy(() => exports.GetAllPrompts2File$outboundSchema),
});
function getAllPrompts23ToJSON(getAllPrompts23) {
    return JSON.stringify(exports.GetAllPrompts23$outboundSchema.parse(getAllPrompts23));
}
function getAllPrompts23FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPrompts23$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPrompts23' from JSON`);
}
/** @internal */
exports.GetAllPrompts2PromptsType$inboundSchema = z.nativeEnum(exports.GetAllPrompts2PromptsType);
/** @internal */
exports.GetAllPrompts2PromptsType$outboundSchema = exports.GetAllPrompts2PromptsType$inboundSchema;
/** @internal */
exports.GetAllPrompts2ImageUrl$inboundSchema = z.object({
    id: z.string().optional(),
    url: z.string(),
    detail: z.string().optional(),
});
/** @internal */
exports.GetAllPrompts2ImageUrl$outboundSchema = z.object({
    id: z.string().optional(),
    url: z.string(),
    detail: z.string().optional(),
});
function getAllPrompts2ImageUrlToJSON(getAllPrompts2ImageUrl) {
    return JSON.stringify(exports.GetAllPrompts2ImageUrl$outboundSchema.parse(getAllPrompts2ImageUrl));
}
function getAllPrompts2ImageUrlFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPrompts2ImageUrl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPrompts2ImageUrl' from JSON`);
}
/** @internal */
exports.GetAllPrompts22$inboundSchema = z.object({
    type: exports.GetAllPrompts2PromptsType$inboundSchema,
    image_url: z.lazy(() => exports.GetAllPrompts2ImageUrl$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "image_url": "imageUrl",
    });
});
/** @internal */
exports.GetAllPrompts22$outboundSchema = z.object({
    type: exports.GetAllPrompts2PromptsType$outboundSchema,
    imageUrl: z.lazy(() => exports.GetAllPrompts2ImageUrl$outboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        imageUrl: "image_url",
    });
});
function getAllPrompts22ToJSON(getAllPrompts22) {
    return JSON.stringify(exports.GetAllPrompts22$outboundSchema.parse(getAllPrompts22));
}
function getAllPrompts22FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPrompts22$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPrompts22' from JSON`);
}
/** @internal */
exports.GetAllPrompts2Type$inboundSchema = z.nativeEnum(exports.GetAllPrompts2Type);
/** @internal */
exports.GetAllPrompts2Type$outboundSchema = exports.GetAllPrompts2Type$inboundSchema;
/** @internal */
exports.GetAllPrompts21$inboundSchema = z.object({
    type: exports.GetAllPrompts2Type$inboundSchema,
    text: z.string(),
});
/** @internal */
exports.GetAllPrompts21$outboundSchema = z.object({
    type: exports.GetAllPrompts2Type$outboundSchema,
    text: z.string(),
});
function getAllPrompts21ToJSON(getAllPrompts21) {
    return JSON.stringify(exports.GetAllPrompts21$outboundSchema.parse(getAllPrompts21));
}
function getAllPrompts21FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPrompts21$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPrompts21' from JSON`);
}
/** @internal */
exports.GetAllPromptsContent2$inboundSchema = z.union([
    z.lazy(() => exports.GetAllPrompts21$inboundSchema),
    z.lazy(() => exports.GetAllPrompts22$inboundSchema),
    z.lazy(() => exports.GetAllPrompts23$inboundSchema),
]);
/** @internal */
exports.GetAllPromptsContent2$outboundSchema = z.union([
    z.lazy(() => exports.GetAllPrompts21$outboundSchema),
    z.lazy(() => exports.GetAllPrompts22$outboundSchema),
    z.lazy(() => exports.GetAllPrompts23$outboundSchema),
]);
function getAllPromptsContent2ToJSON(getAllPromptsContent2) {
    return JSON.stringify(exports.GetAllPromptsContent2$outboundSchema.parse(getAllPromptsContent2));
}
function getAllPromptsContent2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsContent2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsContent2' from JSON`);
}
/** @internal */
exports.GetAllPromptsContent$inboundSchema = z.union([
    z.string(),
    z.array(z.union([
        z.lazy(() => exports.GetAllPrompts21$inboundSchema),
        z.lazy(() => exports.GetAllPrompts22$inboundSchema),
        z.lazy(() => exports.GetAllPrompts23$inboundSchema),
    ])),
]);
/** @internal */
exports.GetAllPromptsContent$outboundSchema = z.union([
    z.string(),
    z.array(z.union([
        z.lazy(() => exports.GetAllPrompts21$outboundSchema),
        z.lazy(() => exports.GetAllPrompts22$outboundSchema),
        z.lazy(() => exports.GetAllPrompts23$outboundSchema),
    ])),
]);
function getAllPromptsContentToJSON(getAllPromptsContent) {
    return JSON.stringify(exports.GetAllPromptsContent$outboundSchema.parse(getAllPromptsContent));
}
function getAllPromptsContentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsContent' from JSON`);
}
/** @internal */
exports.GetAllPromptsPromptsType$inboundSchema = z.nativeEnum(exports.GetAllPromptsPromptsType);
/** @internal */
exports.GetAllPromptsPromptsType$outboundSchema = exports.GetAllPromptsPromptsType$inboundSchema;
/** @internal */
exports.GetAllPromptsFunction$inboundSchema = z.object({
    name: z.string(),
    arguments: z.string(),
});
/** @internal */
exports.GetAllPromptsFunction$outboundSchema = z.object({
    name: z.string(),
    arguments: z.string(),
});
function getAllPromptsFunctionToJSON(getAllPromptsFunction) {
    return JSON.stringify(exports.GetAllPromptsFunction$outboundSchema.parse(getAllPromptsFunction));
}
function getAllPromptsFunctionFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsFunction' from JSON`);
}
/** @internal */
exports.GetAllPromptsToolCalls$inboundSchema = z.object({
    id: z.string().optional(),
    index: z.number().optional(),
    type: exports.GetAllPromptsPromptsType$inboundSchema,
    function: z.lazy(() => exports.GetAllPromptsFunction$inboundSchema),
});
/** @internal */
exports.GetAllPromptsToolCalls$outboundSchema = z.object({
    id: z.string().optional(),
    index: z.number().optional(),
    type: exports.GetAllPromptsPromptsType$outboundSchema,
    function: z.lazy(() => exports.GetAllPromptsFunction$outboundSchema),
});
function getAllPromptsToolCallsToJSON(getAllPromptsToolCalls) {
    return JSON.stringify(exports.GetAllPromptsToolCalls$outboundSchema.parse(getAllPromptsToolCalls));
}
function getAllPromptsToolCallsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsToolCalls$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsToolCalls' from JSON`);
}
/** @internal */
exports.GetAllPromptsMessages$inboundSchema = z.object({
    role: exports.GetAllPromptsRole$inboundSchema,
    content: z.nullable(z.union([
        z.string(),
        z.array(z.union([
            z.lazy(() => exports.GetAllPrompts21$inboundSchema),
            z.lazy(() => exports.GetAllPrompts22$inboundSchema),
            z.lazy(() => exports.GetAllPrompts23$inboundSchema),
        ])),
    ])),
    tool_calls: z.array(z.lazy(() => exports.GetAllPromptsToolCalls$inboundSchema))
        .optional(),
    tool_call_id: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "tool_calls": "toolCalls",
        "tool_call_id": "toolCallId",
    });
});
/** @internal */
exports.GetAllPromptsMessages$outboundSchema = z.object({
    role: exports.GetAllPromptsRole$outboundSchema,
    content: z.nullable(z.union([
        z.string(),
        z.array(z.union([
            z.lazy(() => exports.GetAllPrompts21$outboundSchema),
            z.lazy(() => exports.GetAllPrompts22$outboundSchema),
            z.lazy(() => exports.GetAllPrompts23$outboundSchema),
        ])),
    ])),
    toolCalls: z.array(z.lazy(() => exports.GetAllPromptsToolCalls$outboundSchema))
        .optional(),
    toolCallId: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        toolCalls: "tool_calls",
        toolCallId: "tool_call_id",
    });
});
function getAllPromptsMessagesToJSON(getAllPromptsMessages) {
    return JSON.stringify(exports.GetAllPromptsMessages$outboundSchema.parse(getAllPromptsMessages));
}
function getAllPromptsMessagesFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsMessages$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsMessages' from JSON`);
}
/** @internal */
exports.GetAllPromptsPromptConfig$inboundSchema = z.object({
    stream: z.boolean().optional(),
    model: z.string().optional(),
    model_db_id: z.nullable(z.string()).optional(),
    model_type: z.nullable(exports.GetAllPromptsModelType$inboundSchema).optional(),
    model_parameters: z.lazy(() => exports.GetAllPromptsModelParameters$inboundSchema)
        .optional(),
    provider: exports.GetAllPromptsProvider$inboundSchema.optional(),
    integration_id: z.nullable(z.string()).optional(),
    version: z.string().optional(),
    messages: z.array(z.lazy(() => exports.GetAllPromptsMessages$inboundSchema)),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "model_db_id": "modelDbId",
        "model_type": "modelType",
        "model_parameters": "modelParameters",
        "integration_id": "integrationId",
    });
});
/** @internal */
exports.GetAllPromptsPromptConfig$outboundSchema = z.object({
    stream: z.boolean().optional(),
    model: z.string().optional(),
    modelDbId: z.nullable(z.string()).optional(),
    modelType: z.nullable(exports.GetAllPromptsModelType$outboundSchema).optional(),
    modelParameters: z.lazy(() => exports.GetAllPromptsModelParameters$outboundSchema)
        .optional(),
    provider: exports.GetAllPromptsProvider$outboundSchema.optional(),
    integrationId: z.nullable(z.string()).optional(),
    version: z.string().optional(),
    messages: z.array(z.lazy(() => exports.GetAllPromptsMessages$outboundSchema)),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        modelDbId: "model_db_id",
        modelType: "model_type",
        modelParameters: "model_parameters",
        integrationId: "integration_id",
    });
});
function getAllPromptsPromptConfigToJSON(getAllPromptsPromptConfig) {
    return JSON.stringify(exports.GetAllPromptsPromptConfig$outboundSchema.parse(getAllPromptsPromptConfig));
}
function getAllPromptsPromptConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsPromptConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsPromptConfig' from JSON`);
}
/** @internal */
exports.GetAllPromptsUseCases$inboundSchema = z.nativeEnum(exports.GetAllPromptsUseCases);
/** @internal */
exports.GetAllPromptsUseCases$outboundSchema = exports.GetAllPromptsUseCases$inboundSchema;
/** @internal */
exports.GetAllPromptsLanguage$inboundSchema = z.nativeEnum(exports.GetAllPromptsLanguage);
/** @internal */
exports.GetAllPromptsLanguage$outboundSchema = exports.GetAllPromptsLanguage$inboundSchema;
/** @internal */
exports.GetAllPromptsMetadata$inboundSchema = z.object({
    use_cases: z.array(exports.GetAllPromptsUseCases$inboundSchema).optional(),
    language: z.nullable(exports.GetAllPromptsLanguage$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "use_cases": "useCases",
    });
});
/** @internal */
exports.GetAllPromptsMetadata$outboundSchema = z.object({
    useCases: z.array(exports.GetAllPromptsUseCases$outboundSchema).optional(),
    language: z.nullable(exports.GetAllPromptsLanguage$outboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        useCases: "use_cases",
    });
});
function getAllPromptsMetadataToJSON(getAllPromptsMetadata) {
    return JSON.stringify(exports.GetAllPromptsMetadata$outboundSchema.parse(getAllPromptsMetadata));
}
function getAllPromptsMetadataFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsMetadata$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsMetadata' from JSON`);
}
/** @internal */
exports.Prompt$inboundSchema = z
    .object({
    _id: z.string(),
    type: exports.GetAllPromptsType$inboundSchema,
    owner: z.string(),
    domain_id: z.string(),
    created: z.string(),
    updated: z.string(),
    created_by_id: z.nullable(z.string()).optional(),
    updated_by_id: z.nullable(z.string()).optional(),
    display_name: z.string(),
    description: z.nullable(z.string()).optional(),
    prompt_config: z.lazy(() => exports.GetAllPromptsPromptConfig$inboundSchema),
    metadata: z.lazy(() => exports.GetAllPromptsMetadata$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "domain_id": "domainId",
        "created_by_id": "createdById",
        "updated_by_id": "updatedById",
        "display_name": "displayName",
        "prompt_config": "promptConfig",
    });
});
/** @internal */
exports.Prompt$outboundSchema = z.object({
    id: z.string(),
    type: exports.GetAllPromptsType$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.GetAllPromptsPromptConfig$outboundSchema),
    metadata: z.lazy(() => exports.GetAllPromptsMetadata$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 promptToJSON(prompt) {
    return JSON.stringify(exports.Prompt$outboundSchema.parse(prompt));
}
function promptFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Prompt$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Prompt' from JSON`);
}
/** @internal */
exports.GetAllPromptsResponseBody$inboundSchema = z.object({
    object: exports.GetAllPromptsObject$inboundSchema,
    data: z.array(z.lazy(() => exports.Prompt$inboundSchema)),
    has_more: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "has_more": "hasMore",
    });
});
/** @internal */
exports.GetAllPromptsResponseBody$outboundSchema = z.object({
    object: exports.GetAllPromptsObject$outboundSchema,
    data: z.array(z.lazy(() => exports.Prompt$outboundSchema)),
    hasMore: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        hasMore: "has_more",
    });
});
function getAllPromptsResponseBodyToJSON(getAllPromptsResponseBody) {
    return JSON.stringify(exports.GetAllPromptsResponseBody$outboundSchema.parse(getAllPromptsResponseBody));
}
function getAllPromptsResponseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsResponseBody' from JSON`);
}
//# sourceMappingURL=getallprompts.js.map