"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.ListAgentsResponseFormatAgentsType$outboundSchema = exports.ListAgentsResponseFormatAgentsType$inboundSchema = exports.ListAgentsResponseFormat3$outboundSchema = exports.ListAgentsResponseFormat3$inboundSchema = exports.ListAgentsResponseFormatJsonSchema$outboundSchema = exports.ListAgentsResponseFormatJsonSchema$inboundSchema = exports.ListAgentsResponseFormatAgentsResponseType$outboundSchema = exports.ListAgentsResponseFormatAgentsResponseType$inboundSchema = exports.ListAgentsAudio$outboundSchema = exports.ListAgentsAudio$inboundSchema = exports.ListAgentsFormat$outboundSchema = exports.ListAgentsFormat$inboundSchema = exports.ListAgentsVoice$outboundSchema = exports.ListAgentsVoice$inboundSchema = exports.ListAgentsSettings$outboundSchema = exports.ListAgentsSettings$inboundSchema = exports.ListAgentsTools$outboundSchema = exports.ListAgentsTools$inboundSchema = exports.ListAgentsConditions$outboundSchema = exports.ListAgentsConditions$inboundSchema = exports.ListAgentsToolApprovalRequired$outboundSchema = exports.ListAgentsToolApprovalRequired$inboundSchema = exports.ListAgentsStatus$outboundSchema = exports.ListAgentsStatus$inboundSchema = exports.ListAgentsObject$outboundSchema = exports.ListAgentsObject$inboundSchema = exports.ListAgentsRequest$outboundSchema = exports.ListAgentsRequest$inboundSchema = exports.ListAgentsHiddenPanels = exports.ListAgentsFallbackModelsModalities = exports.ListAgentsToolChoiceAgents1 = exports.ListAgentsToolChoiceAgentsType = exports.ListAgentsFallbackModelsType = exports.ListAgentsResponseFormatAgentsResponse200Type = exports.ListAgentsResponseFormatAgentsResponse200ApplicationJSONType = exports.ListAgentsResponseFormatAgentsResponse200ApplicationJSONResponseBodyType = exports.ListAgentsFallbackModelsFormat = exports.ListAgentsFallbackModelsVoice = exports.ListAgentsModalities = exports.ListAgentsToolChoice1 = exports.ListAgentsToolChoiceType = exports.ListAgentsType = exports.ListAgentsResponseFormatType = exports.ListAgentsResponseFormatAgentsType = exports.ListAgentsResponseFormatAgentsResponseType = exports.ListAgentsFormat = exports.ListAgentsVoice = exports.ListAgentsToolApprovalRequired = exports.ListAgentsStatus = exports.ListAgentsObject = void 0;
exports.ListAgentsResponseFormatAgentsResponse200Type$outboundSchema = exports.ListAgentsResponseFormatAgentsResponse200Type$inboundSchema = exports.ListAgentsResponseFormatAgents2$outboundSchema = exports.ListAgentsResponseFormatAgents2$inboundSchema = exports.ListAgentsResponseFormatAgentsResponse200ApplicationJSONType$outboundSchema = exports.ListAgentsResponseFormatAgentsResponse200ApplicationJSONType$inboundSchema = exports.ListAgentsResponseFormatAgents3$outboundSchema = exports.ListAgentsResponseFormatAgents3$inboundSchema = exports.ListAgentsResponseFormatAgentsJsonSchema$outboundSchema = exports.ListAgentsResponseFormatAgentsJsonSchema$inboundSchema = exports.ListAgentsResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$outboundSchema = exports.ListAgentsResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$inboundSchema = exports.ListAgentsFallbackModelsAudio$outboundSchema = exports.ListAgentsFallbackModelsAudio$inboundSchema = exports.ListAgentsFallbackModelsFormat$outboundSchema = exports.ListAgentsFallbackModelsFormat$inboundSchema = exports.ListAgentsFallbackModelsVoice$outboundSchema = exports.ListAgentsFallbackModelsVoice$inboundSchema = exports.ListAgentsParameters$outboundSchema = exports.ListAgentsParameters$inboundSchema = exports.ListAgentsWebSearchOptions$outboundSchema = exports.ListAgentsWebSearchOptions$inboundSchema = exports.ListAgentsModalities$outboundSchema = exports.ListAgentsModalities$inboundSchema = exports.ListAgentsToolChoice$outboundSchema = exports.ListAgentsToolChoice$inboundSchema = exports.ListAgentsToolChoice1$outboundSchema = exports.ListAgentsToolChoice1$inboundSchema = exports.ListAgentsToolChoice2$outboundSchema = exports.ListAgentsToolChoice2$inboundSchema = exports.ListAgentsToolChoiceFunction$outboundSchema = exports.ListAgentsToolChoiceFunction$inboundSchema = exports.ListAgentsToolChoiceType$outboundSchema = exports.ListAgentsToolChoiceType$inboundSchema = exports.ListAgentsThinking$outboundSchema = exports.ListAgentsThinking$inboundSchema = exports.ListAgentsType$outboundSchema = exports.ListAgentsType$inboundSchema = exports.ListAgentsStreamOptions$outboundSchema = exports.ListAgentsStreamOptions$inboundSchema = exports.ListAgentsStop$outboundSchema = exports.ListAgentsStop$inboundSchema = exports.ListAgentsResponseFormat$outboundSchema = exports.ListAgentsResponseFormat$inboundSchema = exports.ListAgentsResponseFormat1$outboundSchema = exports.ListAgentsResponseFormat1$inboundSchema = exports.ListAgentsResponseFormatType$outboundSchema = exports.ListAgentsResponseFormatType$inboundSchema = exports.ListAgentsResponseFormat2$outboundSchema = exports.ListAgentsResponseFormat2$inboundSchema = void 0;
exports.ListAgentsResponseBody$outboundSchema = exports.ListAgentsResponseBody$inboundSchema = exports.ListAgentsData$outboundSchema = exports.ListAgentsData$inboundSchema = exports.ListAgentsHiddenPanels$outboundSchema = exports.ListAgentsHiddenPanels$inboundSchema = exports.ListAgentsKnowledgeBases$outboundSchema = exports.ListAgentsKnowledgeBases$inboundSchema = exports.ListAgentsMetrics$outboundSchema = exports.ListAgentsMetrics$inboundSchema = exports.ListAgentsTeamOfAgents$outboundSchema = exports.ListAgentsTeamOfAgents$inboundSchema = exports.ListAgentsModel$outboundSchema = exports.ListAgentsModel$inboundSchema = exports.ListAgentsFallbackModels$outboundSchema = exports.ListAgentsFallbackModels$inboundSchema = exports.ListAgentsFallbackModels2$outboundSchema = exports.ListAgentsFallbackModels2$inboundSchema = exports.ListAgentsFallbackModelsParameters$outboundSchema = exports.ListAgentsFallbackModelsParameters$inboundSchema = exports.ListAgentsFallbackModelsWebSearchOptions$outboundSchema = exports.ListAgentsFallbackModelsWebSearchOptions$inboundSchema = exports.ListAgentsFallbackModelsModalities$outboundSchema = exports.ListAgentsFallbackModelsModalities$inboundSchema = exports.ListAgentsFallbackModelsToolChoice$outboundSchema = exports.ListAgentsFallbackModelsToolChoice$inboundSchema = exports.ListAgentsToolChoiceAgents1$outboundSchema = exports.ListAgentsToolChoiceAgents1$inboundSchema = exports.ListAgentsToolChoiceAgents2$outboundSchema = exports.ListAgentsToolChoiceAgents2$inboundSchema = exports.ListAgentsToolChoiceAgentsFunction$outboundSchema = exports.ListAgentsToolChoiceAgentsFunction$inboundSchema = exports.ListAgentsToolChoiceAgentsType$outboundSchema = exports.ListAgentsToolChoiceAgentsType$inboundSchema = exports.ListAgentsFallbackModelsThinking$outboundSchema = exports.ListAgentsFallbackModelsThinking$inboundSchema = exports.ListAgentsFallbackModelsType$outboundSchema = exports.ListAgentsFallbackModelsType$inboundSchema = exports.ListAgentsFallbackModelsStreamOptions$outboundSchema = exports.ListAgentsFallbackModelsStreamOptions$inboundSchema = exports.ListAgentsFallbackModelsStop$outboundSchema = exports.ListAgentsFallbackModelsStop$inboundSchema = exports.ListAgentsFallbackModelsResponseFormat$outboundSchema = exports.ListAgentsFallbackModelsResponseFormat$inboundSchema = exports.ListAgentsResponseFormatAgents1$outboundSchema = exports.ListAgentsResponseFormatAgents1$inboundSchema = void 0;
exports.listAgentsRequestToJSON = listAgentsRequestToJSON;
exports.listAgentsRequestFromJSON = listAgentsRequestFromJSON;
exports.listAgentsConditionsToJSON = listAgentsConditionsToJSON;
exports.listAgentsConditionsFromJSON = listAgentsConditionsFromJSON;
exports.listAgentsToolsToJSON = listAgentsToolsToJSON;
exports.listAgentsToolsFromJSON = listAgentsToolsFromJSON;
exports.listAgentsSettingsToJSON = listAgentsSettingsToJSON;
exports.listAgentsSettingsFromJSON = listAgentsSettingsFromJSON;
exports.listAgentsAudioToJSON = listAgentsAudioToJSON;
exports.listAgentsAudioFromJSON = listAgentsAudioFromJSON;
exports.listAgentsResponseFormatJsonSchemaToJSON = listAgentsResponseFormatJsonSchemaToJSON;
exports.listAgentsResponseFormatJsonSchemaFromJSON = listAgentsResponseFormatJsonSchemaFromJSON;
exports.listAgentsResponseFormat3ToJSON = listAgentsResponseFormat3ToJSON;
exports.listAgentsResponseFormat3FromJSON = listAgentsResponseFormat3FromJSON;
exports.listAgentsResponseFormat2ToJSON = listAgentsResponseFormat2ToJSON;
exports.listAgentsResponseFormat2FromJSON = listAgentsResponseFormat2FromJSON;
exports.listAgentsResponseFormat1ToJSON = listAgentsResponseFormat1ToJSON;
exports.listAgentsResponseFormat1FromJSON = listAgentsResponseFormat1FromJSON;
exports.listAgentsResponseFormatToJSON = listAgentsResponseFormatToJSON;
exports.listAgentsResponseFormatFromJSON = listAgentsResponseFormatFromJSON;
exports.listAgentsStopToJSON = listAgentsStopToJSON;
exports.listAgentsStopFromJSON = listAgentsStopFromJSON;
exports.listAgentsStreamOptionsToJSON = listAgentsStreamOptionsToJSON;
exports.listAgentsStreamOptionsFromJSON = listAgentsStreamOptionsFromJSON;
exports.listAgentsThinkingToJSON = listAgentsThinkingToJSON;
exports.listAgentsThinkingFromJSON = listAgentsThinkingFromJSON;
exports.listAgentsToolChoiceFunctionToJSON = listAgentsToolChoiceFunctionToJSON;
exports.listAgentsToolChoiceFunctionFromJSON = listAgentsToolChoiceFunctionFromJSON;
exports.listAgentsToolChoice2ToJSON = listAgentsToolChoice2ToJSON;
exports.listAgentsToolChoice2FromJSON = listAgentsToolChoice2FromJSON;
exports.listAgentsToolChoiceToJSON = listAgentsToolChoiceToJSON;
exports.listAgentsToolChoiceFromJSON = listAgentsToolChoiceFromJSON;
exports.listAgentsWebSearchOptionsToJSON = listAgentsWebSearchOptionsToJSON;
exports.listAgentsWebSearchOptionsFromJSON = listAgentsWebSearchOptionsFromJSON;
exports.listAgentsParametersToJSON = listAgentsParametersToJSON;
exports.listAgentsParametersFromJSON = listAgentsParametersFromJSON;
exports.listAgentsFallbackModelsAudioToJSON = listAgentsFallbackModelsAudioToJSON;
exports.listAgentsFallbackModelsAudioFromJSON = listAgentsFallbackModelsAudioFromJSON;
exports.listAgentsResponseFormatAgentsJsonSchemaToJSON = listAgentsResponseFormatAgentsJsonSchemaToJSON;
exports.listAgentsResponseFormatAgentsJsonSchemaFromJSON = listAgentsResponseFormatAgentsJsonSchemaFromJSON;
exports.listAgentsResponseFormatAgents3ToJSON = listAgentsResponseFormatAgents3ToJSON;
exports.listAgentsResponseFormatAgents3FromJSON = listAgentsResponseFormatAgents3FromJSON;
exports.listAgentsResponseFormatAgents2ToJSON = listAgentsResponseFormatAgents2ToJSON;
exports.listAgentsResponseFormatAgents2FromJSON = listAgentsResponseFormatAgents2FromJSON;
exports.listAgentsResponseFormatAgents1ToJSON = listAgentsResponseFormatAgents1ToJSON;
exports.listAgentsResponseFormatAgents1FromJSON = listAgentsResponseFormatAgents1FromJSON;
exports.listAgentsFallbackModelsResponseFormatToJSON = listAgentsFallbackModelsResponseFormatToJSON;
exports.listAgentsFallbackModelsResponseFormatFromJSON = listAgentsFallbackModelsResponseFormatFromJSON;
exports.listAgentsFallbackModelsStopToJSON = listAgentsFallbackModelsStopToJSON;
exports.listAgentsFallbackModelsStopFromJSON = listAgentsFallbackModelsStopFromJSON;
exports.listAgentsFallbackModelsStreamOptionsToJSON = listAgentsFallbackModelsStreamOptionsToJSON;
exports.listAgentsFallbackModelsStreamOptionsFromJSON = listAgentsFallbackModelsStreamOptionsFromJSON;
exports.listAgentsFallbackModelsThinkingToJSON = listAgentsFallbackModelsThinkingToJSON;
exports.listAgentsFallbackModelsThinkingFromJSON = listAgentsFallbackModelsThinkingFromJSON;
exports.listAgentsToolChoiceAgentsFunctionToJSON = listAgentsToolChoiceAgentsFunctionToJSON;
exports.listAgentsToolChoiceAgentsFunctionFromJSON = listAgentsToolChoiceAgentsFunctionFromJSON;
exports.listAgentsToolChoiceAgents2ToJSON = listAgentsToolChoiceAgents2ToJSON;
exports.listAgentsToolChoiceAgents2FromJSON = listAgentsToolChoiceAgents2FromJSON;
exports.listAgentsFallbackModelsToolChoiceToJSON = listAgentsFallbackModelsToolChoiceToJSON;
exports.listAgentsFallbackModelsToolChoiceFromJSON = listAgentsFallbackModelsToolChoiceFromJSON;
exports.listAgentsFallbackModelsWebSearchOptionsToJSON = listAgentsFallbackModelsWebSearchOptionsToJSON;
exports.listAgentsFallbackModelsWebSearchOptionsFromJSON = listAgentsFallbackModelsWebSearchOptionsFromJSON;
exports.listAgentsFallbackModelsParametersToJSON = listAgentsFallbackModelsParametersToJSON;
exports.listAgentsFallbackModelsParametersFromJSON = listAgentsFallbackModelsParametersFromJSON;
exports.listAgentsFallbackModels2ToJSON = listAgentsFallbackModels2ToJSON;
exports.listAgentsFallbackModels2FromJSON = listAgentsFallbackModels2FromJSON;
exports.listAgentsFallbackModelsToJSON = listAgentsFallbackModelsToJSON;
exports.listAgentsFallbackModelsFromJSON = listAgentsFallbackModelsFromJSON;
exports.listAgentsModelToJSON = listAgentsModelToJSON;
exports.listAgentsModelFromJSON = listAgentsModelFromJSON;
exports.listAgentsTeamOfAgentsToJSON = listAgentsTeamOfAgentsToJSON;
exports.listAgentsTeamOfAgentsFromJSON = listAgentsTeamOfAgentsFromJSON;
exports.listAgentsMetricsToJSON = listAgentsMetricsToJSON;
exports.listAgentsMetricsFromJSON = listAgentsMetricsFromJSON;
exports.listAgentsKnowledgeBasesToJSON = listAgentsKnowledgeBasesToJSON;
exports.listAgentsKnowledgeBasesFromJSON = listAgentsKnowledgeBasesFromJSON;
exports.listAgentsDataToJSON = listAgentsDataToJSON;
exports.listAgentsDataFromJSON = listAgentsDataFromJSON;
exports.listAgentsResponseBodyToJSON = listAgentsResponseBodyToJSON;
exports.listAgentsResponseBodyFromJSON = listAgentsResponseBodyFromJSON;
const z = __importStar(require("zod/v3"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
exports.ListAgentsObject = {
    List: "list",
};
/**
 * The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
 */
exports.ListAgentsStatus = {
    Live: "live",
    Draft: "draft",
    Pending: "pending",
    Published: "published",
};
/**
 * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
 */
exports.ListAgentsToolApprovalRequired = {
    All: "all",
    RespectTool: "respect_tool",
    None: "none",
};
/**
 * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
 */
exports.ListAgentsVoice = {
    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.ListAgentsFormat = {
    Wav: "wav",
    Mp3: "mp3",
    Flac: "flac",
    Opus: "opus",
    Pcm16: "pcm16",
};
exports.ListAgentsResponseFormatAgentsResponseType = {
    JsonSchema: "json_schema",
};
exports.ListAgentsResponseFormatAgentsType = {
    JsonObject: "json_object",
};
exports.ListAgentsResponseFormatType = {
    Text: "text",
};
/**
 * Enables or disables the thinking mode capability
 */
exports.ListAgentsType = {
    Enabled: "enabled",
    Disabled: "disabled",
};
/**
 * The type of the tool. Currently, only function is supported.
 */
exports.ListAgentsToolChoiceType = {
    Function: "function",
};
exports.ListAgentsToolChoice1 = {
    None: "none",
    Auto: "auto",
    Required: "required",
};
exports.ListAgentsModalities = {
    Text: "text",
    Audio: "audio",
};
/**
 * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
 */
exports.ListAgentsFallbackModelsVoice = {
    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.ListAgentsFallbackModelsFormat = {
    Wav: "wav",
    Mp3: "mp3",
    Flac: "flac",
    Opus: "opus",
    Pcm16: "pcm16",
};
exports.ListAgentsResponseFormatAgentsResponse200ApplicationJSONResponseBodyType = {
    JsonSchema: "json_schema",
};
exports.ListAgentsResponseFormatAgentsResponse200ApplicationJSONType = {
    JsonObject: "json_object",
};
exports.ListAgentsResponseFormatAgentsResponse200Type = {
    Text: "text",
};
/**
 * Enables or disables the thinking mode capability
 */
exports.ListAgentsFallbackModelsType = {
    Enabled: "enabled",
    Disabled: "disabled",
};
/**
 * The type of the tool. Currently, only function is supported.
 */
exports.ListAgentsToolChoiceAgentsType = {
    Function: "function",
};
exports.ListAgentsToolChoiceAgents1 = {
    None: "none",
    Auto: "auto",
    Required: "required",
};
exports.ListAgentsFallbackModelsModalities = {
    Text: "text",
    Audio: "audio",
};
exports.ListAgentsHiddenPanels = {
    Model: "model",
    Tools: "tools",
    KnowledgeBases: "knowledge_bases",
    Variables: "variables",
    RuntimeConstraints: "runtime_constraints",
};
/** @internal */
exports.ListAgentsRequest$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.ListAgentsRequest$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 listAgentsRequestToJSON(listAgentsRequest) {
    return JSON.stringify(exports.ListAgentsRequest$outboundSchema.parse(listAgentsRequest));
}
function listAgentsRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsRequest' from JSON`);
}
/** @internal */
exports.ListAgentsObject$inboundSchema = z.nativeEnum(exports.ListAgentsObject);
/** @internal */
exports.ListAgentsObject$outboundSchema = exports.ListAgentsObject$inboundSchema;
/** @internal */
exports.ListAgentsStatus$inboundSchema = z.nativeEnum(exports.ListAgentsStatus);
/** @internal */
exports.ListAgentsStatus$outboundSchema = exports.ListAgentsStatus$inboundSchema;
/** @internal */
exports.ListAgentsToolApprovalRequired$inboundSchema = z.nativeEnum(exports.ListAgentsToolApprovalRequired);
/** @internal */
exports.ListAgentsToolApprovalRequired$outboundSchema = exports.ListAgentsToolApprovalRequired$inboundSchema;
/** @internal */
exports.ListAgentsConditions$inboundSchema = z.object({
    condition: z.string(),
    operator: z.string(),
    value: z.string(),
});
/** @internal */
exports.ListAgentsConditions$outboundSchema = z.object({
    condition: z.string(),
    operator: z.string(),
    value: z.string(),
});
function listAgentsConditionsToJSON(listAgentsConditions) {
    return JSON.stringify(exports.ListAgentsConditions$outboundSchema.parse(listAgentsConditions));
}
function listAgentsConditionsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsConditions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsConditions' from JSON`);
}
/** @internal */
exports.ListAgentsTools$inboundSchema = z.object({
    id: z.string(),
    key: z.string().optional(),
    action_type: z.string(),
    display_name: z.string().optional(),
    requires_approval: z.boolean().default(false),
    conditions: z.array(z.lazy(() => exports.ListAgentsConditions$inboundSchema))
        .optional(),
    mcpServer: z.string().optional(),
    timeout: z.number().default(120),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "action_type": "actionType",
        "display_name": "displayName",
        "requires_approval": "requiresApproval",
    });
});
/** @internal */
exports.ListAgentsTools$outboundSchema = z.object({
    id: z.string(),
    key: z.string().optional(),
    actionType: z.string(),
    displayName: z.string().optional(),
    requiresApproval: z.boolean().default(false),
    conditions: z.array(z.lazy(() => exports.ListAgentsConditions$outboundSchema))
        .optional(),
    mcpServer: z.string().optional(),
    timeout: z.number().default(120),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        actionType: "action_type",
        displayName: "display_name",
        requiresApproval: "requires_approval",
    });
});
function listAgentsToolsToJSON(listAgentsTools) {
    return JSON.stringify(exports.ListAgentsTools$outboundSchema.parse(listAgentsTools));
}
function listAgentsToolsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsTools$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsTools' from JSON`);
}
/** @internal */
exports.ListAgentsSettings$inboundSchema = z.object({
    max_iterations: z.number().int().default(15),
    max_execution_time: z.number().int().default(300),
    tool_approval_required: exports.ListAgentsToolApprovalRequired$inboundSchema.default("respect_tool"),
    tools: z.array(z.lazy(() => exports.ListAgentsTools$inboundSchema)).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "max_iterations": "maxIterations",
        "max_execution_time": "maxExecutionTime",
        "tool_approval_required": "toolApprovalRequired",
    });
});
/** @internal */
exports.ListAgentsSettings$outboundSchema = z.object({
    maxIterations: z.number().int().default(15),
    maxExecutionTime: z.number().int().default(300),
    toolApprovalRequired: exports.ListAgentsToolApprovalRequired$outboundSchema.default("respect_tool"),
    tools: z.array(z.lazy(() => exports.ListAgentsTools$outboundSchema)).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        maxIterations: "max_iterations",
        maxExecutionTime: "max_execution_time",
        toolApprovalRequired: "tool_approval_required",
    });
});
function listAgentsSettingsToJSON(listAgentsSettings) {
    return JSON.stringify(exports.ListAgentsSettings$outboundSchema.parse(listAgentsSettings));
}
function listAgentsSettingsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsSettings$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsSettings' from JSON`);
}
/** @internal */
exports.ListAgentsVoice$inboundSchema = z.nativeEnum(exports.ListAgentsVoice);
/** @internal */
exports.ListAgentsVoice$outboundSchema = exports.ListAgentsVoice$inboundSchema;
/** @internal */
exports.ListAgentsFormat$inboundSchema = z.nativeEnum(exports.ListAgentsFormat);
/** @internal */
exports.ListAgentsFormat$outboundSchema = exports.ListAgentsFormat$inboundSchema;
/** @internal */
exports.ListAgentsAudio$inboundSchema = z.object({
    voice: exports.ListAgentsVoice$inboundSchema,
    format: exports.ListAgentsFormat$inboundSchema,
});
/** @internal */
exports.ListAgentsAudio$outboundSchema = z.object({
    voice: exports.ListAgentsVoice$outboundSchema,
    format: exports.ListAgentsFormat$outboundSchema,
});
function listAgentsAudioToJSON(listAgentsAudio) {
    return JSON.stringify(exports.ListAgentsAudio$outboundSchema.parse(listAgentsAudio));
}
function listAgentsAudioFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsAudio' from JSON`);
}
/** @internal */
exports.ListAgentsResponseFormatAgentsResponseType$inboundSchema = z
    .nativeEnum(exports.ListAgentsResponseFormatAgentsResponseType);
/** @internal */
exports.ListAgentsResponseFormatAgentsResponseType$outboundSchema = exports.ListAgentsResponseFormatAgentsResponseType$inboundSchema;
/** @internal */
exports.ListAgentsResponseFormatJsonSchema$inboundSchema = z.object({
    description: z.string().optional(),
    name: z.string(),
    schema: z.any().optional(),
    strict: z.boolean().optional(),
});
/** @internal */
exports.ListAgentsResponseFormatJsonSchema$outboundSchema = z.object({
    description: z.string().optional(),
    name: z.string(),
    schema: z.any().optional(),
    strict: z.boolean().optional(),
});
function listAgentsResponseFormatJsonSchemaToJSON(listAgentsResponseFormatJsonSchema) {
    return JSON.stringify(exports.ListAgentsResponseFormatJsonSchema$outboundSchema.parse(listAgentsResponseFormatJsonSchema));
}
function listAgentsResponseFormatJsonSchemaFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsResponseFormatJsonSchema' from JSON`);
}
/** @internal */
exports.ListAgentsResponseFormat3$inboundSchema = z.object({
    type: exports.ListAgentsResponseFormatAgentsResponseType$inboundSchema,
    json_schema: z.lazy(() => exports.ListAgentsResponseFormatJsonSchema$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "json_schema": "jsonSchema",
    });
});
/** @internal */
exports.ListAgentsResponseFormat3$outboundSchema = z.object({
    type: exports.ListAgentsResponseFormatAgentsResponseType$outboundSchema,
    jsonSchema: z.lazy(() => exports.ListAgentsResponseFormatJsonSchema$outboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        jsonSchema: "json_schema",
    });
});
function listAgentsResponseFormat3ToJSON(listAgentsResponseFormat3) {
    return JSON.stringify(exports.ListAgentsResponseFormat3$outboundSchema.parse(listAgentsResponseFormat3));
}
function listAgentsResponseFormat3FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsResponseFormat3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsResponseFormat3' from JSON`);
}
/** @internal */
exports.ListAgentsResponseFormatAgentsType$inboundSchema = z.nativeEnum(exports.ListAgentsResponseFormatAgentsType);
/** @internal */
exports.ListAgentsResponseFormatAgentsType$outboundSchema = exports.ListAgentsResponseFormatAgentsType$inboundSchema;
/** @internal */
exports.ListAgentsResponseFormat2$inboundSchema = z.object({
    type: exports.ListAgentsResponseFormatAgentsType$inboundSchema,
});
/** @internal */
exports.ListAgentsResponseFormat2$outboundSchema = z.object({
    type: exports.ListAgentsResponseFormatAgentsType$outboundSchema,
});
function listAgentsResponseFormat2ToJSON(listAgentsResponseFormat2) {
    return JSON.stringify(exports.ListAgentsResponseFormat2$outboundSchema.parse(listAgentsResponseFormat2));
}
function listAgentsResponseFormat2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsResponseFormat2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsResponseFormat2' from JSON`);
}
/** @internal */
exports.ListAgentsResponseFormatType$inboundSchema = z.nativeEnum(exports.ListAgentsResponseFormatType);
/** @internal */
exports.ListAgentsResponseFormatType$outboundSchema = exports.ListAgentsResponseFormatType$inboundSchema;
/** @internal */
exports.ListAgentsResponseFormat1$inboundSchema = z.object({
    type: exports.ListAgentsResponseFormatType$inboundSchema,
});
/** @internal */
exports.ListAgentsResponseFormat1$outboundSchema = z.object({
    type: exports.ListAgentsResponseFormatType$outboundSchema,
});
function listAgentsResponseFormat1ToJSON(listAgentsResponseFormat1) {
    return JSON.stringify(exports.ListAgentsResponseFormat1$outboundSchema.parse(listAgentsResponseFormat1));
}
function listAgentsResponseFormat1FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsResponseFormat1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsResponseFormat1' from JSON`);
}
/** @internal */
exports.ListAgentsResponseFormat$inboundSchema = z.union([
    z.lazy(() => exports.ListAgentsResponseFormat3$inboundSchema),
    z.lazy(() => exports.ListAgentsResponseFormat1$inboundSchema),
    z.lazy(() => exports.ListAgentsResponseFormat2$inboundSchema),
]);
/** @internal */
exports.ListAgentsResponseFormat$outboundSchema = z.union([
    z.lazy(() => exports.ListAgentsResponseFormat3$outboundSchema),
    z.lazy(() => exports.ListAgentsResponseFormat1$outboundSchema),
    z.lazy(() => exports.ListAgentsResponseFormat2$outboundSchema),
]);
function listAgentsResponseFormatToJSON(listAgentsResponseFormat) {
    return JSON.stringify(exports.ListAgentsResponseFormat$outboundSchema.parse(listAgentsResponseFormat));
}
function listAgentsResponseFormatFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsResponseFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsResponseFormat' from JSON`);
}
/** @internal */
exports.ListAgentsStop$inboundSchema = z.union([z.string(), z.array(z.string())]);
/** @internal */
exports.ListAgentsStop$outboundSchema = z.union([z.string(), z.array(z.string())]);
function listAgentsStopToJSON(listAgentsStop) {
    return JSON.stringify(exports.ListAgentsStop$outboundSchema.parse(listAgentsStop));
}
function listAgentsStopFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsStop$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsStop' from JSON`);
}
/** @internal */
exports.ListAgentsStreamOptions$inboundSchema = z.object({
    include_usage: z.boolean().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "include_usage": "includeUsage",
    });
});
/** @internal */
exports.ListAgentsStreamOptions$outboundSchema = z.object({
    includeUsage: z.boolean().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        includeUsage: "include_usage",
    });
});
function listAgentsStreamOptionsToJSON(listAgentsStreamOptions) {
    return JSON.stringify(exports.ListAgentsStreamOptions$outboundSchema.parse(listAgentsStreamOptions));
}
function listAgentsStreamOptionsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsStreamOptions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsStreamOptions' from JSON`);
}
/** @internal */
exports.ListAgentsType$inboundSchema = z.nativeEnum(exports.ListAgentsType);
/** @internal */
exports.ListAgentsType$outboundSchema = exports.ListAgentsType$inboundSchema;
/** @internal */
exports.ListAgentsThinking$inboundSchema = z.object({
    type: exports.ListAgentsType$inboundSchema,
    budget_tokens: z.number(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "budget_tokens": "budgetTokens",
    });
});
/** @internal */
exports.ListAgentsThinking$outboundSchema = z.object({
    type: exports.ListAgentsType$outboundSchema,
    budgetTokens: z.number(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        budgetTokens: "budget_tokens",
    });
});
function listAgentsThinkingToJSON(listAgentsThinking) {
    return JSON.stringify(exports.ListAgentsThinking$outboundSchema.parse(listAgentsThinking));
}
function listAgentsThinkingFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsThinking$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsThinking' from JSON`);
}
/** @internal */
exports.ListAgentsToolChoiceType$inboundSchema = z.nativeEnum(exports.ListAgentsToolChoiceType);
/** @internal */
exports.ListAgentsToolChoiceType$outboundSchema = exports.ListAgentsToolChoiceType$inboundSchema;
/** @internal */
exports.ListAgentsToolChoiceFunction$inboundSchema = z.object({
    name: z.string().optional(),
});
/** @internal */
exports.ListAgentsToolChoiceFunction$outboundSchema = z.object({
    name: z.string().optional(),
});
function listAgentsToolChoiceFunctionToJSON(listAgentsToolChoiceFunction) {
    return JSON.stringify(exports.ListAgentsToolChoiceFunction$outboundSchema.parse(listAgentsToolChoiceFunction));
}
function listAgentsToolChoiceFunctionFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsToolChoiceFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsToolChoiceFunction' from JSON`);
}
/** @internal */
exports.ListAgentsToolChoice2$inboundSchema = z.object({
    type: exports.ListAgentsToolChoiceType$inboundSchema.optional(),
    function: z.lazy(() => exports.ListAgentsToolChoiceFunction$inboundSchema),
});
/** @internal */
exports.ListAgentsToolChoice2$outboundSchema = z.object({
    type: exports.ListAgentsToolChoiceType$outboundSchema.optional(),
    function: z.lazy(() => exports.ListAgentsToolChoiceFunction$outboundSchema),
});
function listAgentsToolChoice2ToJSON(listAgentsToolChoice2) {
    return JSON.stringify(exports.ListAgentsToolChoice2$outboundSchema.parse(listAgentsToolChoice2));
}
function listAgentsToolChoice2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsToolChoice2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsToolChoice2' from JSON`);
}
/** @internal */
exports.ListAgentsToolChoice1$inboundSchema = z.nativeEnum(exports.ListAgentsToolChoice1);
/** @internal */
exports.ListAgentsToolChoice1$outboundSchema = exports.ListAgentsToolChoice1$inboundSchema;
/** @internal */
exports.ListAgentsToolChoice$inboundSchema = z.union([
    z.lazy(() => exports.ListAgentsToolChoice2$inboundSchema),
    exports.ListAgentsToolChoice1$inboundSchema,
]);
/** @internal */
exports.ListAgentsToolChoice$outboundSchema = z.union([
    z.lazy(() => exports.ListAgentsToolChoice2$outboundSchema),
    exports.ListAgentsToolChoice1$outboundSchema,
]);
function listAgentsToolChoiceToJSON(listAgentsToolChoice) {
    return JSON.stringify(exports.ListAgentsToolChoice$outboundSchema.parse(listAgentsToolChoice));
}
function listAgentsToolChoiceFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsToolChoice$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsToolChoice' from JSON`);
}
/** @internal */
exports.ListAgentsModalities$inboundSchema = z.nativeEnum(exports.ListAgentsModalities);
/** @internal */
exports.ListAgentsModalities$outboundSchema = exports.ListAgentsModalities$inboundSchema;
/** @internal */
exports.ListAgentsWebSearchOptions$inboundSchema = z.object({
    enabled: z.boolean().optional(),
});
/** @internal */
exports.ListAgentsWebSearchOptions$outboundSchema = z.object({
    enabled: z.boolean().optional(),
});
function listAgentsWebSearchOptionsToJSON(listAgentsWebSearchOptions) {
    return JSON.stringify(exports.ListAgentsWebSearchOptions$outboundSchema.parse(listAgentsWebSearchOptions));
}
function listAgentsWebSearchOptionsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsWebSearchOptions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsWebSearchOptions' from JSON`);
}
/** @internal */
exports.ListAgentsParameters$inboundSchema = z.object({
    audio: z.nullable(z.lazy(() => exports.ListAgentsAudio$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.ListAgentsResponseFormat3$inboundSchema),
        z.lazy(() => exports.ListAgentsResponseFormat1$inboundSchema),
        z.lazy(() => exports.ListAgentsResponseFormat2$inboundSchema),
    ]).optional(),
    reasoning_effort: z.string().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.ListAgentsStreamOptions$inboundSchema)).optional(),
    thinking: z.lazy(() => exports.ListAgentsThinking$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.ListAgentsToolChoice2$inboundSchema),
        exports.ListAgentsToolChoice1$inboundSchema,
    ]).optional(),
    parallel_tool_calls: z.boolean().optional(),
    modalities: z.nullable(z.array(exports.ListAgentsModalities$inboundSchema))
        .optional(),
    web_search_options: z.lazy(() => exports.ListAgentsWebSearchOptions$inboundSchema)
        .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",
        "web_search_options": "webSearchOptions",
    });
});
/** @internal */
exports.ListAgentsParameters$outboundSchema = z.object({
    audio: z.nullable(z.lazy(() => exports.ListAgentsAudio$outboundSchema)).optional(),
    frequencyPenalty: z.nullable(z.number()).optional(),
    maxTokens: z.nullable(z.number().int()).optional(),
    maxCompletionTokens: z.nullable(z.number().int()).optional(),
    logprobs: z.nullable(z.boolean()).optional(),
    topLogprobs: z.nullable(z.number().int()).optional(),
    n: z.nullable(z.number().int()).optional(),
    presencePenalty: z.nullable(z.number()).optional(),
    responseFormat: z.union([
        z.lazy(() => exports.ListAgentsResponseFormat3$outboundSchema),
        z.lazy(() => exports.ListAgentsResponseFormat1$outboundSchema),
        z.lazy(() => exports.ListAgentsResponseFormat2$outboundSchema),
    ]).optional(),
    reasoningEffort: z.string().optional(),
    verbosity: z.string().optional(),
    seed: z.nullable(z.number()).optional(),
    stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
    streamOptions: z.nullable(z.lazy(() => exports.ListAgentsStreamOptions$outboundSchema)).optional(),
    thinking: z.lazy(() => exports.ListAgentsThinking$outboundSchema).optional(),
    temperature: z.nullable(z.number()).optional(),
    topP: z.nullable(z.number()).optional(),
    topK: z.nullable(z.number()).optional(),
    toolChoice: z.union([
        z.lazy(() => exports.ListAgentsToolChoice2$outboundSchema),
        exports.ListAgentsToolChoice1$outboundSchema,
    ]).optional(),
    parallelToolCalls: z.boolean().optional(),
    modalities: z.nullable(z.array(exports.ListAgentsModalities$outboundSchema))
        .optional(),
    webSearchOptions: z.lazy(() => exports.ListAgentsWebSearchOptions$outboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        frequencyPenalty: "frequency_penalty",
        maxTokens: "max_tokens",
        maxCompletionTokens: "max_completion_tokens",
        topLogprobs: "top_logprobs",
        presencePenalty: "presence_penalty",
        responseFormat: "response_format",
        reasoningEffort: "reasoning_effort",
        streamOptions: "stream_options",
        topP: "top_p",
        topK: "top_k",
        toolChoice: "tool_choice",
        parallelToolCalls: "parallel_tool_calls",
        webSearchOptions: "web_search_options",
    });
});
function listAgentsParametersToJSON(listAgentsParameters) {
    return JSON.stringify(exports.ListAgentsParameters$outboundSchema.parse(listAgentsParameters));
}
function listAgentsParametersFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsParameters$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsParameters' from JSON`);
}
/** @internal */
exports.ListAgentsFallbackModelsVoice$inboundSchema = z.nativeEnum(exports.ListAgentsFallbackModelsVoice);
/** @internal */
exports.ListAgentsFallbackModelsVoice$outboundSchema = exports.ListAgentsFallbackModelsVoice$inboundSchema;
/** @internal */
exports.ListAgentsFallbackModelsFormat$inboundSchema = z.nativeEnum(exports.ListAgentsFallbackModelsFormat);
/** @internal */
exports.ListAgentsFallbackModelsFormat$outboundSchema = exports.ListAgentsFallbackModelsFormat$inboundSchema;
/** @internal */
exports.ListAgentsFallbackModelsAudio$inboundSchema = z.object({
    voice: exports.ListAgentsFallbackModelsVoice$inboundSchema,
    format: exports.ListAgentsFallbackModelsFormat$inboundSchema,
});
/** @internal */
exports.ListAgentsFallbackModelsAudio$outboundSchema = z.object({
    voice: exports.ListAgentsFallbackModelsVoice$outboundSchema,
    format: exports.ListAgentsFallbackModelsFormat$outboundSchema,
});
function listAgentsFallbackModelsAudioToJSON(listAgentsFallbackModelsAudio) {
    return JSON.stringify(exports.ListAgentsFallbackModelsAudio$outboundSchema.parse(listAgentsFallbackModelsAudio));
}
function listAgentsFallbackModelsAudioFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsFallbackModelsAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsFallbackModelsAudio' from JSON`);
}
/** @internal */
exports.ListAgentsResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$inboundSchema = z.nativeEnum(exports.ListAgentsResponseFormatAgentsResponse200ApplicationJSONResponseBodyType);
/** @internal */
exports.ListAgentsResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$outboundSchema = exports.ListAgentsResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$inboundSchema;
/** @internal */
exports.ListAgentsResponseFormatAgentsJsonSchema$inboundSchema = z.object({
    description: z.string().optional(),
    name: z.string(),
    schema: z.any().optional(),
    strict: z.boolean().optional(),
});
/** @internal */
exports.ListAgentsResponseFormatAgentsJsonSchema$outboundSchema = z.object({
    description: z.string().optional(),
    name: z.string(),
    schema: z.any().optional(),
    strict: z.boolean().optional(),
});
function listAgentsResponseFormatAgentsJsonSchemaToJSON(listAgentsResponseFormatAgentsJsonSchema) {
    return JSON.stringify(exports.ListAgentsResponseFormatAgentsJsonSchema$outboundSchema.parse(listAgentsResponseFormatAgentsJsonSchema));
}
function listAgentsResponseFormatAgentsJsonSchemaFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsResponseFormatAgentsJsonSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsResponseFormatAgentsJsonSchema' from JSON`);
}
/** @internal */
exports.ListAgentsResponseFormatAgents3$inboundSchema = z.object({
    type: exports.ListAgentsResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$inboundSchema,
    json_schema: z.lazy(() => exports.ListAgentsResponseFormatAgentsJsonSchema$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "json_schema": "jsonSchema",
    });
});
/** @internal */
exports.ListAgentsResponseFormatAgents3$outboundSchema = z.object({
    type: exports.ListAgentsResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$outboundSchema,
    jsonSchema: z.lazy(() => exports.ListAgentsResponseFormatAgentsJsonSchema$outboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        jsonSchema: "json_schema",
    });
});
function listAgentsResponseFormatAgents3ToJSON(listAgentsResponseFormatAgents3) {
    return JSON.stringify(exports.ListAgentsResponseFormatAgents3$outboundSchema.parse(listAgentsResponseFormatAgents3));
}
function listAgentsResponseFormatAgents3FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsResponseFormatAgents3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsResponseFormatAgents3' from JSON`);
}
/** @internal */
exports.ListAgentsResponseFormatAgentsResponse200ApplicationJSONType$inboundSchema = z.nativeEnum(exports.ListAgentsResponseFormatAgentsResponse200ApplicationJSONType);
/** @internal */
exports.ListAgentsResponseFormatAgentsResponse200ApplicationJSONType$outboundSchema = exports.ListAgentsResponseFormatAgentsResponse200ApplicationJSONType$inboundSchema;
/** @internal */
exports.ListAgentsResponseFormatAgents2$inboundSchema = z.object({
    type: exports.ListAgentsResponseFormatAgentsResponse200ApplicationJSONType$inboundSchema,
});
/** @internal */
exports.ListAgentsResponseFormatAgents2$outboundSchema = z.object({
    type: exports.ListAgentsResponseFormatAgentsResponse200ApplicationJSONType$outboundSchema,
});
function listAgentsResponseFormatAgents2ToJSON(listAgentsResponseFormatAgents2) {
    return JSON.stringify(exports.ListAgentsResponseFormatAgents2$outboundSchema.parse(listAgentsResponseFormatAgents2));
}
function listAgentsResponseFormatAgents2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsResponseFormatAgents2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsResponseFormatAgents2' from JSON`);
}
/** @internal */
exports.ListAgentsResponseFormatAgentsResponse200Type$inboundSchema = z
    .nativeEnum(exports.ListAgentsResponseFormatAgentsResponse200Type);
/** @internal */
exports.ListAgentsResponseFormatAgentsResponse200Type$outboundSchema = exports.ListAgentsResponseFormatAgentsResponse200Type$inboundSchema;
/** @internal */
exports.ListAgentsResponseFormatAgents1$inboundSchema = z.object({
    type: exports.ListAgentsResponseFormatAgentsResponse200Type$inboundSchema,
});
/** @internal */
exports.ListAgentsResponseFormatAgents1$outboundSchema = z.object({
    type: exports.ListAgentsResponseFormatAgentsResponse200Type$outboundSchema,
});
function listAgentsResponseFormatAgents1ToJSON(listAgentsResponseFormatAgents1) {
    return JSON.stringify(exports.ListAgentsResponseFormatAgents1$outboundSchema.parse(listAgentsResponseFormatAgents1));
}
function listAgentsResponseFormatAgents1FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsResponseFormatAgents1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsResponseFormatAgents1' from JSON`);
}
/** @internal */
exports.ListAgentsFallbackModelsResponseFormat$inboundSchema = z.union([
    z.lazy(() => exports.ListAgentsResponseFormatAgents3$inboundSchema),
    z.lazy(() => exports.ListAgentsResponseFormatAgents1$inboundSchema),
    z.lazy(() => exports.ListAgentsResponseFormatAgents2$inboundSchema),
]);
/** @internal */
exports.ListAgentsFallbackModelsResponseFormat$outboundSchema = z.union([
    z.lazy(() => exports.ListAgentsResponseFormatAgents3$outboundSchema),
    z.lazy(() => exports.ListAgentsResponseFormatAgents1$outboundSchema),
    z.lazy(() => exports.ListAgentsResponseFormatAgents2$outboundSchema),
]);
function listAgentsFallbackModelsResponseFormatToJSON(listAgentsFallbackModelsResponseFormat) {
    return JSON.stringify(exports.ListAgentsFallbackModelsResponseFormat$outboundSchema.parse(listAgentsFallbackModelsResponseFormat));
}
function listAgentsFallbackModelsResponseFormatFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsFallbackModelsResponseFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsFallbackModelsResponseFormat' from JSON`);
}
/** @internal */
exports.ListAgentsFallbackModelsStop$inboundSchema = z.union([z.string(), z.array(z.string())]);
/** @internal */
exports.ListAgentsFallbackModelsStop$outboundSchema = z.union([z.string(), z.array(z.string())]);
function listAgentsFallbackModelsStopToJSON(listAgentsFallbackModelsStop) {
    return JSON.stringify(exports.ListAgentsFallbackModelsStop$outboundSchema.parse(listAgentsFallbackModelsStop));
}
function listAgentsFallbackModelsStopFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsFallbackModelsStop$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsFallbackModelsStop' from JSON`);
}
/** @internal */
exports.ListAgentsFallbackModelsStreamOptions$inboundSchema = z.object({
    include_usage: z.boolean().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "include_usage": "includeUsage",
    });
});
/** @internal */
exports.ListAgentsFallbackModelsStreamOptions$outboundSchema = z.object({
    includeUsage: z.boolean().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        includeUsage: "include_usage",
    });
});
function listAgentsFallbackModelsStreamOptionsToJSON(listAgentsFallbackModelsStreamOptions) {
    return JSON.stringify(exports.ListAgentsFallbackModelsStreamOptions$outboundSchema.parse(listAgentsFallbackModelsStreamOptions));
}
function listAgentsFallbackModelsStreamOptionsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsFallbackModelsStreamOptions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsFallbackModelsStreamOptions' from JSON`);
}
/** @internal */
exports.ListAgentsFallbackModelsType$inboundSchema = z.nativeEnum(exports.ListAgentsFallbackModelsType);
/** @internal */
exports.ListAgentsFallbackModelsType$outboundSchema = exports.ListAgentsFallbackModelsType$inboundSchema;
/** @internal */
exports.ListAgentsFallbackModelsThinking$inboundSchema = z.object({
    type: exports.ListAgentsFallbackModelsType$inboundSchema,
    budget_tokens: z.number(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "budget_tokens": "budgetTokens",
    });
});
/** @internal */
exports.ListAgentsFallbackModelsThinking$outboundSchema = z.object({
    type: exports.ListAgentsFallbackModelsType$outboundSchema,
    budgetTokens: z.number(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        budgetTokens: "budget_tokens",
    });
});
function listAgentsFallbackModelsThinkingToJSON(listAgentsFallbackModelsThinking) {
    return JSON.stringify(exports.ListAgentsFallbackModelsThinking$outboundSchema.parse(listAgentsFallbackModelsThinking));
}
function listAgentsFallbackModelsThinkingFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsFallbackModelsThinking$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsFallbackModelsThinking' from JSON`);
}
/** @internal */
exports.ListAgentsToolChoiceAgentsType$inboundSchema = z.nativeEnum(exports.ListAgentsToolChoiceAgentsType);
/** @internal */
exports.ListAgentsToolChoiceAgentsType$outboundSchema = exports.ListAgentsToolChoiceAgentsType$inboundSchema;
/** @internal */
exports.ListAgentsToolChoiceAgentsFunction$inboundSchema = z.object({
    name: z.string().optional(),
});
/** @internal */
exports.ListAgentsToolChoiceAgentsFunction$outboundSchema = z.object({
    name: z.string().optional(),
});
function listAgentsToolChoiceAgentsFunctionToJSON(listAgentsToolChoiceAgentsFunction) {
    return JSON.stringify(exports.ListAgentsToolChoiceAgentsFunction$outboundSchema.parse(listAgentsToolChoiceAgentsFunction));
}
function listAgentsToolChoiceAgentsFunctionFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsToolChoiceAgentsFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsToolChoiceAgentsFunction' from JSON`);
}
/** @internal */
exports.ListAgentsToolChoiceAgents2$inboundSchema = z.object({
    type: exports.ListAgentsToolChoiceAgentsType$inboundSchema.optional(),
    function: z.lazy(() => exports.ListAgentsToolChoiceAgentsFunction$inboundSchema),
});
/** @internal */
exports.ListAgentsToolChoiceAgents2$outboundSchema = z.object({
    type: exports.ListAgentsToolChoiceAgentsType$outboundSchema.optional(),
    function: z.lazy(() => exports.ListAgentsToolChoiceAgentsFunction$outboundSchema),
});
function listAgentsToolChoiceAgents2ToJSON(listAgentsToolChoiceAgents2) {
    return JSON.stringify(exports.ListAgentsToolChoiceAgents2$outboundSchema.parse(listAgentsToolChoiceAgents2));
}
function listAgentsToolChoiceAgents2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsToolChoiceAgents2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsToolChoiceAgents2' from JSON`);
}
/** @internal */
exports.ListAgentsToolChoiceAgents1$inboundSchema = z.nativeEnum(exports.ListAgentsToolChoiceAgents1);
/** @internal */
exports.ListAgentsToolChoiceAgents1$outboundSchema = exports.ListAgentsToolChoiceAgents1$inboundSchema;
/** @internal */
exports.ListAgentsFallbackModelsToolChoice$inboundSchema = z.union([
    z.lazy(() => exports.ListAgentsToolChoiceAgents2$inboundSchema),
    exports.ListAgentsToolChoiceAgents1$inboundSchema,
]);
/** @internal */
exports.ListAgentsFallbackModelsToolChoice$outboundSchema = z.union([
    z.lazy(() => exports.ListAgentsToolChoiceAgents2$outboundSchema),
    exports.ListAgentsToolChoiceAgents1$outboundSchema,
]);
function listAgentsFallbackModelsToolChoiceToJSON(listAgentsFallbackModelsToolChoice) {
    return JSON.stringify(exports.ListAgentsFallbackModelsToolChoice$outboundSchema.parse(listAgentsFallbackModelsToolChoice));
}
function listAgentsFallbackModelsToolChoiceFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsFallbackModelsToolChoice$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsFallbackModelsToolChoice' from JSON`);
}
/** @internal */
exports.ListAgentsFallbackModelsModalities$inboundSchema = z.nativeEnum(exports.ListAgentsFallbackModelsModalities);
/** @internal */
exports.ListAgentsFallbackModelsModalities$outboundSchema = exports.ListAgentsFallbackModelsModalities$inboundSchema;
/** @internal */
exports.ListAgentsFallbackModelsWebSearchOptions$inboundSchema = z.object({
    enabled: z.boolean().optional(),
});
/** @internal */
exports.ListAgentsFallbackModelsWebSearchOptions$outboundSchema = z.object({
    enabled: z.boolean().optional(),
});
function listAgentsFallbackModelsWebSearchOptionsToJSON(listAgentsFallbackModelsWebSearchOptions) {
    return JSON.stringify(exports.ListAgentsFallbackModelsWebSearchOptions$outboundSchema.parse(listAgentsFallbackModelsWebSearchOptions));
}
function listAgentsFallbackModelsWebSearchOptionsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsFallbackModelsWebSearchOptions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsFallbackModelsWebSearchOptions' from JSON`);
}
/** @internal */
exports.ListAgentsFallbackModelsParameters$inboundSchema = z.object({
    audio: z.nullable(z.lazy(() => exports.ListAgentsFallbackModelsAudio$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.ListAgentsResponseFormatAgents3$inboundSchema),
        z.lazy(() => exports.ListAgentsResponseFormatAgents1$inboundSchema),
        z.lazy(() => exports.ListAgentsResponseFormatAgents2$inboundSchema),
    ]).optional(),
    reasoning_effort: z.string().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.ListAgentsFallbackModelsStreamOptions$inboundSchema)).optional(),
    thinking: z.lazy(() => exports.ListAgentsFallbackModelsThinking$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.ListAgentsToolChoiceAgents2$inboundSchema),
        exports.ListAgentsToolChoiceAgents1$inboundSchema,
    ]).optional(),
    parallel_tool_calls: z.boolean().optional(),
    modalities: z.nullable(z.array(exports.ListAgentsFallbackModelsModalities$inboundSchema)).optional(),
    web_search_options: z.lazy(() => exports.ListAgentsFallbackModelsWebSearchOptions$inboundSchema).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",
        "web_search_options": "webSearchOptions",
    });
});
/** @internal */
exports.ListAgentsFallbackModelsParameters$outboundSchema = z.object({
    audio: z.nullable(z.lazy(() => exports.ListAgentsFallbackModelsAudio$outboundSchema))
        .optional(),
    frequencyPenalty: z.nullable(z.number()).optional(),
    maxTokens: z.nullable(z.number().int()).optional(),
    maxCompletionTokens: z.nullable(z.number().int()).optional(),
    logprobs: z.nullable(z.boolean()).optional(),
    topLogprobs: z.nullable(z.number().int()).optional(),
    n: z.nullable(z.number().int()).optional(),
    presencePenalty: z.nullable(z.number()).optional(),
    responseFormat: z.union([
        z.lazy(() => exports.ListAgentsResponseFormatAgents3$outboundSchema),
        z.lazy(() => exports.ListAgentsResponseFormatAgents1$outboundSchema),
        z.lazy(() => exports.ListAgentsResponseFormatAgents2$outboundSchema),
    ]).optional(),
    reasoningEffort: z.string().optional(),
    verbosity: z.string().optional(),
    seed: z.nullable(z.number()).optional(),
    stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
    streamOptions: z.nullable(z.lazy(() => exports.ListAgentsFallbackModelsStreamOptions$outboundSchema)).optional(),
    thinking: z.lazy(() => exports.ListAgentsFallbackModelsThinking$outboundSchema)
        .optional(),
    temperature: z.nullable(z.number()).optional(),
    topP: z.nullable(z.number()).optional(),
    topK: z.nullable(z.number()).optional(),
    toolChoice: z.union([
        z.lazy(() => exports.ListAgentsToolChoiceAgents2$outboundSchema),
        exports.ListAgentsToolChoiceAgents1$outboundSchema,
    ]).optional(),
    parallelToolCalls: z.boolean().optional(),
    modalities: z.nullable(z.array(exports.ListAgentsFallbackModelsModalities$outboundSchema)).optional(),
    webSearchOptions: z.lazy(() => exports.ListAgentsFallbackModelsWebSearchOptions$outboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        frequencyPenalty: "frequency_penalty",
        maxTokens: "max_tokens",
        maxCompletionTokens: "max_completion_tokens",
        topLogprobs: "top_logprobs",
        presencePenalty: "presence_penalty",
        responseFormat: "response_format",
        reasoningEffort: "reasoning_effort",
        streamOptions: "stream_options",
        topP: "top_p",
        topK: "top_k",
        toolChoice: "tool_choice",
        parallelToolCalls: "parallel_tool_calls",
        webSearchOptions: "web_search_options",
    });
});
function listAgentsFallbackModelsParametersToJSON(listAgentsFallbackModelsParameters) {
    return JSON.stringify(exports.ListAgentsFallbackModelsParameters$outboundSchema.parse(listAgentsFallbackModelsParameters));
}
function listAgentsFallbackModelsParametersFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsFallbackModelsParameters$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsFallbackModelsParameters' from JSON`);
}
/** @internal */
exports.ListAgentsFallbackModels2$inboundSchema = z.object({
    id: z.string(),
    integration_id: z.nullable(z.string()).optional(),
    parameters: z.lazy(() => exports.ListAgentsFallbackModelsParameters$inboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "integration_id": "integrationId",
    });
});
/** @internal */
exports.ListAgentsFallbackModels2$outboundSchema = z.object({
    id: z.string(),
    integrationId: z.nullable(z.string()).optional(),
    parameters: z.lazy(() => exports.ListAgentsFallbackModelsParameters$outboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        integrationId: "integration_id",
    });
});
function listAgentsFallbackModels2ToJSON(listAgentsFallbackModels2) {
    return JSON.stringify(exports.ListAgentsFallbackModels2$outboundSchema.parse(listAgentsFallbackModels2));
}
function listAgentsFallbackModels2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsFallbackModels2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsFallbackModels2' from JSON`);
}
/** @internal */
exports.ListAgentsFallbackModels$inboundSchema = z.union([
    z.lazy(() => exports.ListAgentsFallbackModels2$inboundSchema),
    z.string(),
]);
/** @internal */
exports.ListAgentsFallbackModels$outboundSchema = z.union([
    z.lazy(() => exports.ListAgentsFallbackModels2$outboundSchema),
    z.string(),
]);
function listAgentsFallbackModelsToJSON(listAgentsFallbackModels) {
    return JSON.stringify(exports.ListAgentsFallbackModels$outboundSchema.parse(listAgentsFallbackModels));
}
function listAgentsFallbackModelsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsFallbackModels$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsFallbackModels' from JSON`);
}
/** @internal */
exports.ListAgentsModel$inboundSchema = z.object({
    id: z.string(),
    integration_id: z.nullable(z.string()).optional(),
    parameters: z.lazy(() => exports.ListAgentsParameters$inboundSchema).optional(),
    fallback_models: z.nullable(z.array(z.union([
        z.lazy(() => exports.ListAgentsFallbackModels2$inboundSchema),
        z.string(),
    ]))).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "integration_id": "integrationId",
        "fallback_models": "fallbackModels",
    });
});
/** @internal */
exports.ListAgentsModel$outboundSchema = z.object({
    id: z.string(),
    integrationId: z.nullable(z.string()).optional(),
    parameters: z.lazy(() => exports.ListAgentsParameters$outboundSchema).optional(),
    fallbackModels: z.nullable(z.array(z.union([
        z.lazy(() => exports.ListAgentsFallbackModels2$outboundSchema),
        z.string(),
    ]))).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        integrationId: "integration_id",
        fallbackModels: "fallback_models",
    });
});
function listAgentsModelToJSON(listAgentsModel) {
    return JSON.stringify(exports.ListAgentsModel$outboundSchema.parse(listAgentsModel));
}
function listAgentsModelFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsModel$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsModel' from JSON`);
}
/** @internal */
exports.ListAgentsTeamOfAgents$inboundSchema = z.object({
    key: z.string(),
    role: z.string().optional(),
});
/** @internal */
exports.ListAgentsTeamOfAgents$outboundSchema = z.object({
    key: z.string(),
    role: z.string().optional(),
});
function listAgentsTeamOfAgentsToJSON(listAgentsTeamOfAgents) {
    return JSON.stringify(exports.ListAgentsTeamOfAgents$outboundSchema.parse(listAgentsTeamOfAgents));
}
function listAgentsTeamOfAgentsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsTeamOfAgents$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsTeamOfAgents' from JSON`);
}
/** @internal */
exports.ListAgentsMetrics$inboundSchema = z.object({
    total_cost: z.number().default(0),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "total_cost": "totalCost",
    });
});
/** @internal */
exports.ListAgentsMetrics$outboundSchema = z.object({
    totalCost: z.number().default(0),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        totalCost: "total_cost",
    });
});
function listAgentsMetricsToJSON(listAgentsMetrics) {
    return JSON.stringify(exports.ListAgentsMetrics$outboundSchema.parse(listAgentsMetrics));
}
function listAgentsMetricsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsMetrics$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsMetrics' from JSON`);
}
/** @internal */
exports.ListAgentsKnowledgeBases$inboundSchema = z.object({
    knowledge_id: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "knowledge_id": "knowledgeId",
    });
});
/** @internal */
exports.ListAgentsKnowledgeBases$outboundSchema = z.object({
    knowledgeId: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        knowledgeId: "knowledge_id",
    });
});
function listAgentsKnowledgeBasesToJSON(listAgentsKnowledgeBases) {
    return JSON.stringify(exports.ListAgentsKnowledgeBases$outboundSchema.parse(listAgentsKnowledgeBases));
}
function listAgentsKnowledgeBasesFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsKnowledgeBases$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsKnowledgeBases' from JSON`);
}
/** @internal */
exports.ListAgentsHiddenPanels$inboundSchema = z.nativeEnum(exports.ListAgentsHiddenPanels);
/** @internal */
exports.ListAgentsHiddenPanels$outboundSchema = exports.ListAgentsHiddenPanels$inboundSchema;
/** @internal */
exports.ListAgentsData$inboundSchema = z.object({
    _id: z.string(),
    key: z.string(),
    workspace_id: z.string(),
    project_id: z.string(),
    created_by_id: z.nullable(z.string()).optional(),
    updated_by_id: z.nullable(z.string()).optional(),
    created: z.string().optional(),
    updated: z.string().optional(),
    role: z.string(),
    description: z.string(),
    system_prompt: z.string().optional(),
    instructions: z.string(),
    status: exports.ListAgentsStatus$inboundSchema,
    settings: z.lazy(() => exports.ListAgentsSettings$inboundSchema).optional(),
    model: z.lazy(() => exports.ListAgentsModel$inboundSchema),
    version_hash: z.string().optional(),
    path: z.string(),
    memory_stores: z.array(z.string()),
    team_of_agents: z.array(z.lazy(() => exports.ListAgentsTeamOfAgents$inboundSchema)),
    metrics: z.lazy(() => exports.ListAgentsMetrics$inboundSchema).optional(),
    variables: z.record(z.any()).optional(),
    knowledge_bases: z.array(z.lazy(() => exports.ListAgentsKnowledgeBases$inboundSchema))
        .optional(),
    hidden_panels: z.array(exports.ListAgentsHiddenPanels$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "workspace_id": "workspaceId",
        "project_id": "projectId",
        "created_by_id": "createdById",
        "updated_by_id": "updatedById",
        "system_prompt": "systemPrompt",
        "version_hash": "versionHash",
        "memory_stores": "memoryStores",
        "team_of_agents": "teamOfAgents",
        "knowledge_bases": "knowledgeBases",
        "hidden_panels": "hiddenPanels",
    });
});
/** @internal */
exports.ListAgentsData$outboundSchema = z.object({
    id: z.string(),
    key: z.string(),
    workspaceId: z.string(),
    projectId: z.string(),
    createdById: z.nullable(z.string()).optional(),
    updatedById: z.nullable(z.string()).optional(),
    created: z.string().optional(),
    updated: z.string().optional(),
    role: z.string(),
    description: z.string(),
    systemPrompt: z.string().optional(),
    instructions: z.string(),
    status: exports.ListAgentsStatus$outboundSchema,
    settings: z.lazy(() => exports.ListAgentsSettings$outboundSchema).optional(),
    model: z.lazy(() => exports.ListAgentsModel$outboundSchema),
    versionHash: z.string().optional(),
    path: z.string(),
    memoryStores: z.array(z.string()),
    teamOfAgents: z.array(z.lazy(() => exports.ListAgentsTeamOfAgents$outboundSchema)),
    metrics: z.lazy(() => exports.ListAgentsMetrics$outboundSchema).optional(),
    variables: z.record(z.any()).optional(),
    knowledgeBases: z.array(z.lazy(() => exports.ListAgentsKnowledgeBases$outboundSchema))
        .optional(),
    hiddenPanels: z.array(exports.ListAgentsHiddenPanels$outboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        id: "_id",
        workspaceId: "workspace_id",
        projectId: "project_id",
        createdById: "created_by_id",
        updatedById: "updated_by_id",
        systemPrompt: "system_prompt",
        versionHash: "version_hash",
        memoryStores: "memory_stores",
        teamOfAgents: "team_of_agents",
        knowledgeBases: "knowledge_bases",
        hiddenPanels: "hidden_panels",
    });
});
function listAgentsDataToJSON(listAgentsData) {
    return JSON.stringify(exports.ListAgentsData$outboundSchema.parse(listAgentsData));
}
function listAgentsDataFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsData' from JSON`);
}
/** @internal */
exports.ListAgentsResponseBody$inboundSchema = z.object({
    object: exports.ListAgentsObject$inboundSchema,
    data: z.array(z.lazy(() => exports.ListAgentsData$inboundSchema)),
    has_more: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "has_more": "hasMore",
    });
});
/** @internal */
exports.ListAgentsResponseBody$outboundSchema = z.object({
    object: exports.ListAgentsObject$outboundSchema,
    data: z.array(z.lazy(() => exports.ListAgentsData$outboundSchema)),
    hasMore: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        hasMore: "has_more",
    });
});
function listAgentsResponseBodyToJSON(listAgentsResponseBody) {
    return JSON.stringify(exports.ListAgentsResponseBody$outboundSchema.parse(listAgentsResponseBody));
}
function listAgentsResponseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsResponseBody' from JSON`);
}
//# sourceMappingURL=listagents.js.map