"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.RequestBodyInputSchema$outboundSchema = exports.RequestBodyInputSchema$inboundSchema = exports.UpdateToolRequestBodyToolsRequest4McpType$outboundSchema = exports.UpdateToolRequestBodyToolsRequest4McpType$inboundSchema = exports.RequestBodyHeaders$outboundSchema = exports.RequestBodyHeaders$inboundSchema = exports.UpdateToolRequestBodyToolsRequest4Type$outboundSchema = exports.UpdateToolRequestBodyToolsRequest4Type$inboundSchema = exports.UpdateToolRequestBodyToolsRequest4Status$outboundSchema = exports.UpdateToolRequestBodyToolsRequest4Status$inboundSchema = exports.UpdateCodeExecutionTool$outboundSchema = exports.UpdateCodeExecutionTool$inboundSchema = exports.UpdateToolRequestBodyCodeTool$outboundSchema = exports.UpdateToolRequestBodyCodeTool$inboundSchema = exports.UpdateToolRequestBodyLanguage$outboundSchema = exports.UpdateToolRequestBodyLanguage$inboundSchema = exports.UpdateToolRequestBodyToolsRequest5Type$outboundSchema = exports.UpdateToolRequestBodyToolsRequest5Type$inboundSchema = exports.UpdateToolRequestBodyToolsRequest5Status$outboundSchema = exports.UpdateToolRequestBodyToolsRequest5Status$inboundSchema = exports.UpdateToolResponseBodyType = exports.UpdateToolResponseBodyStatus = exports.UpdateToolResponseBodyToolsType = exports.UpdateToolResponseBodyToolsStatus = exports.UpdateToolResponseBodyToolsResponse200ApplicationJson3Type = exports.UpdateToolResponseBodyMethod = exports.UpdateToolResponseBodyToolsResponseType = exports.UpdateToolResponseBodyToolsResponseStatus = exports.UpdateToolResponseBodyConnectionType = exports.UpdateToolResponseBodyToolsResponse200ApplicationJson4Type = exports.UpdateToolResponseBodyToolsResponse200Type = exports.UpdateToolResponseBodyToolsResponse200Status = exports.UpdateToolResponseBodyLanguage = exports.UpdateToolResponseBodyToolsResponse200ApplicationJSONType = exports.UpdateToolResponseBodyToolsResponse200ApplicationJSONStatus = exports.UpdateToolRequestBodyType = exports.UpdateToolRequestBodyStatus = exports.UpdateToolRequestBodyToolsType = exports.UpdateToolRequestBodyToolsStatus = exports.UpdateToolRequestBodyToolsRequest3Type = exports.UpdateToolRequestBodyMethod = exports.UpdateToolRequestBodyToolsRequestType = exports.UpdateToolRequestBodyToolsRequestStatus = exports.RequestBodyConnectionType = exports.UpdateToolRequestBodyToolsRequest4McpType = exports.UpdateToolRequestBodyToolsRequest4Type = exports.UpdateToolRequestBodyToolsRequest4Status = exports.UpdateToolRequestBodyLanguage = exports.UpdateToolRequestBodyToolsRequest5Type = exports.UpdateToolRequestBodyToolsRequest5Status = void 0;
exports.UpdateToolResponseBodyLanguage$outboundSchema = exports.UpdateToolResponseBodyLanguage$inboundSchema = exports.UpdateToolResponseBodyToolsResponse200ApplicationJSONType$outboundSchema = exports.UpdateToolResponseBodyToolsResponse200ApplicationJSONType$inboundSchema = exports.UpdateToolResponseBodyToolsResponse200ApplicationJSONStatus$outboundSchema = exports.UpdateToolResponseBodyToolsResponse200ApplicationJSONStatus$inboundSchema = exports.UpdateToolRequest$outboundSchema = exports.UpdateToolRequest$inboundSchema = exports.UpdateToolRequestBody$outboundSchema = exports.UpdateToolRequestBody$inboundSchema = exports.UpdateFunctionTool$outboundSchema = exports.UpdateFunctionTool$inboundSchema = exports.UpdateToolRequestBodyFunction$outboundSchema = exports.UpdateToolRequestBodyFunction$inboundSchema = exports.UpdateToolRequestBodyType$outboundSchema = exports.UpdateToolRequestBodyType$inboundSchema = exports.UpdateToolRequestBodyStatus$outboundSchema = exports.UpdateToolRequestBodyStatus$inboundSchema = exports.UpdateJSONSchemaTool$outboundSchema = exports.UpdateJSONSchemaTool$inboundSchema = exports.UpdateToolRequestBodyJsonSchema$outboundSchema = exports.UpdateToolRequestBodyJsonSchema$inboundSchema = exports.UpdateToolRequestBodyToolsType$outboundSchema = exports.UpdateToolRequestBodyToolsType$inboundSchema = exports.UpdateToolRequestBodyToolsStatus$outboundSchema = exports.UpdateToolRequestBodyToolsStatus$inboundSchema = exports.UpdateHTTPTool$outboundSchema = exports.UpdateHTTPTool$inboundSchema = exports.UpdateToolRequestBodyHttp$outboundSchema = exports.UpdateToolRequestBodyHttp$inboundSchema = exports.UpdateToolRequestBodyArguments$outboundSchema = exports.UpdateToolRequestBodyArguments$inboundSchema = exports.UpdateToolRequestBodyDefaultValue$outboundSchema = exports.UpdateToolRequestBodyDefaultValue$inboundSchema = exports.UpdateToolRequestBodyToolsRequest3Type$outboundSchema = exports.UpdateToolRequestBodyToolsRequest3Type$inboundSchema = exports.UpdateToolRequestBodyBlueprint$outboundSchema = exports.UpdateToolRequestBodyBlueprint$inboundSchema = exports.UpdateToolRequestBodyMethod$outboundSchema = exports.UpdateToolRequestBodyMethod$inboundSchema = exports.UpdateToolRequestBodyToolsRequestType$outboundSchema = exports.UpdateToolRequestBodyToolsRequestType$inboundSchema = exports.UpdateToolRequestBodyToolsRequestStatus$outboundSchema = exports.UpdateToolRequestBodyToolsRequestStatus$inboundSchema = exports.UpdateMCPTool$outboundSchema = exports.UpdateMCPTool$inboundSchema = exports.RequestBodyMcp$outboundSchema = exports.RequestBodyMcp$inboundSchema = exports.RequestBodyConnectionType$outboundSchema = exports.RequestBodyConnectionType$inboundSchema = void 0;
exports.UpdateToolResponseBodyType$outboundSchema = exports.UpdateToolResponseBodyType$inboundSchema = exports.UpdateToolResponseBodyStatus$outboundSchema = exports.UpdateToolResponseBodyStatus$inboundSchema = exports.UpdateToolResponseBody2$outboundSchema = exports.UpdateToolResponseBody2$inboundSchema = exports.UpdateToolResponseBodyJsonSchema$outboundSchema = exports.UpdateToolResponseBodyJsonSchema$inboundSchema = exports.UpdateToolResponseBodyToolsType$outboundSchema = exports.UpdateToolResponseBodyToolsType$inboundSchema = exports.UpdateToolResponseBodyToolsStatus$outboundSchema = exports.UpdateToolResponseBodyToolsStatus$inboundSchema = exports.UpdateToolResponseBody3$outboundSchema = exports.UpdateToolResponseBody3$inboundSchema = exports.UpdateToolResponseBodyHttp$outboundSchema = exports.UpdateToolResponseBodyHttp$inboundSchema = exports.UpdateToolResponseBodyArguments$outboundSchema = exports.UpdateToolResponseBodyArguments$inboundSchema = exports.UpdateToolResponseBodyDefaultValue$outboundSchema = exports.UpdateToolResponseBodyDefaultValue$inboundSchema = exports.UpdateToolResponseBodyToolsResponse200ApplicationJson3Type$outboundSchema = exports.UpdateToolResponseBodyToolsResponse200ApplicationJson3Type$inboundSchema = exports.UpdateToolResponseBodyBlueprint$outboundSchema = exports.UpdateToolResponseBodyBlueprint$inboundSchema = exports.UpdateToolResponseBodyMethod$outboundSchema = exports.UpdateToolResponseBodyMethod$inboundSchema = exports.UpdateToolResponseBodyToolsResponseType$outboundSchema = exports.UpdateToolResponseBodyToolsResponseType$inboundSchema = exports.UpdateToolResponseBodyToolsResponseStatus$outboundSchema = exports.UpdateToolResponseBodyToolsResponseStatus$inboundSchema = exports.UpdateToolResponseBody4$outboundSchema = exports.UpdateToolResponseBody4$inboundSchema = exports.UpdateToolResponseBodyMcp$outboundSchema = exports.UpdateToolResponseBodyMcp$inboundSchema = exports.UpdateToolResponseBodyConnectionType$outboundSchema = exports.UpdateToolResponseBodyConnectionType$inboundSchema = exports.UpdateToolResponseBodyInputSchema$outboundSchema = exports.UpdateToolResponseBodyInputSchema$inboundSchema = exports.UpdateToolResponseBodyToolsResponse200ApplicationJson4Type$outboundSchema = exports.UpdateToolResponseBodyToolsResponse200ApplicationJson4Type$inboundSchema = exports.UpdateToolResponseBodyHeaders$outboundSchema = exports.UpdateToolResponseBodyHeaders$inboundSchema = exports.UpdateToolResponseBodyToolsResponse200Type$outboundSchema = exports.UpdateToolResponseBodyToolsResponse200Type$inboundSchema = exports.UpdateToolResponseBodyToolsResponse200Status$outboundSchema = exports.UpdateToolResponseBodyToolsResponse200Status$inboundSchema = exports.UpdateToolResponseBody5$outboundSchema = exports.UpdateToolResponseBody5$inboundSchema = exports.UpdateToolResponseBodyCodeTool$outboundSchema = exports.UpdateToolResponseBodyCodeTool$inboundSchema = void 0;
exports.UpdateToolResponseBody$outboundSchema = exports.UpdateToolResponseBody$inboundSchema = exports.UpdateToolResponseBody1$outboundSchema = exports.UpdateToolResponseBody1$inboundSchema = exports.UpdateToolResponseBodyFunction$outboundSchema = exports.UpdateToolResponseBodyFunction$inboundSchema = void 0;
exports.updateToolRequestBodyCodeToolToJSON = updateToolRequestBodyCodeToolToJSON;
exports.updateToolRequestBodyCodeToolFromJSON = updateToolRequestBodyCodeToolFromJSON;
exports.updateCodeExecutionToolToJSON = updateCodeExecutionToolToJSON;
exports.updateCodeExecutionToolFromJSON = updateCodeExecutionToolFromJSON;
exports.requestBodyHeadersToJSON = requestBodyHeadersToJSON;
exports.requestBodyHeadersFromJSON = requestBodyHeadersFromJSON;
exports.requestBodyInputSchemaToJSON = requestBodyInputSchemaToJSON;
exports.requestBodyInputSchemaFromJSON = requestBodyInputSchemaFromJSON;
exports.requestBodyMcpToJSON = requestBodyMcpToJSON;
exports.requestBodyMcpFromJSON = requestBodyMcpFromJSON;
exports.updateMCPToolToJSON = updateMCPToolToJSON;
exports.updateMCPToolFromJSON = updateMCPToolFromJSON;
exports.updateToolRequestBodyBlueprintToJSON = updateToolRequestBodyBlueprintToJSON;
exports.updateToolRequestBodyBlueprintFromJSON = updateToolRequestBodyBlueprintFromJSON;
exports.updateToolRequestBodyDefaultValueToJSON = updateToolRequestBodyDefaultValueToJSON;
exports.updateToolRequestBodyDefaultValueFromJSON = updateToolRequestBodyDefaultValueFromJSON;
exports.updateToolRequestBodyArgumentsToJSON = updateToolRequestBodyArgumentsToJSON;
exports.updateToolRequestBodyArgumentsFromJSON = updateToolRequestBodyArgumentsFromJSON;
exports.updateToolRequestBodyHttpToJSON = updateToolRequestBodyHttpToJSON;
exports.updateToolRequestBodyHttpFromJSON = updateToolRequestBodyHttpFromJSON;
exports.updateHTTPToolToJSON = updateHTTPToolToJSON;
exports.updateHTTPToolFromJSON = updateHTTPToolFromJSON;
exports.updateToolRequestBodyJsonSchemaToJSON = updateToolRequestBodyJsonSchemaToJSON;
exports.updateToolRequestBodyJsonSchemaFromJSON = updateToolRequestBodyJsonSchemaFromJSON;
exports.updateJSONSchemaToolToJSON = updateJSONSchemaToolToJSON;
exports.updateJSONSchemaToolFromJSON = updateJSONSchemaToolFromJSON;
exports.updateToolRequestBodyFunctionToJSON = updateToolRequestBodyFunctionToJSON;
exports.updateToolRequestBodyFunctionFromJSON = updateToolRequestBodyFunctionFromJSON;
exports.updateFunctionToolToJSON = updateFunctionToolToJSON;
exports.updateFunctionToolFromJSON = updateFunctionToolFromJSON;
exports.updateToolRequestBodyToJSON = updateToolRequestBodyToJSON;
exports.updateToolRequestBodyFromJSON = updateToolRequestBodyFromJSON;
exports.updateToolRequestToJSON = updateToolRequestToJSON;
exports.updateToolRequestFromJSON = updateToolRequestFromJSON;
exports.updateToolResponseBodyCodeToolToJSON = updateToolResponseBodyCodeToolToJSON;
exports.updateToolResponseBodyCodeToolFromJSON = updateToolResponseBodyCodeToolFromJSON;
exports.updateToolResponseBody5ToJSON = updateToolResponseBody5ToJSON;
exports.updateToolResponseBody5FromJSON = updateToolResponseBody5FromJSON;
exports.updateToolResponseBodyHeadersToJSON = updateToolResponseBodyHeadersToJSON;
exports.updateToolResponseBodyHeadersFromJSON = updateToolResponseBodyHeadersFromJSON;
exports.updateToolResponseBodyInputSchemaToJSON = updateToolResponseBodyInputSchemaToJSON;
exports.updateToolResponseBodyInputSchemaFromJSON = updateToolResponseBodyInputSchemaFromJSON;
exports.updateToolResponseBodyMcpToJSON = updateToolResponseBodyMcpToJSON;
exports.updateToolResponseBodyMcpFromJSON = updateToolResponseBodyMcpFromJSON;
exports.updateToolResponseBody4ToJSON = updateToolResponseBody4ToJSON;
exports.updateToolResponseBody4FromJSON = updateToolResponseBody4FromJSON;
exports.updateToolResponseBodyBlueprintToJSON = updateToolResponseBodyBlueprintToJSON;
exports.updateToolResponseBodyBlueprintFromJSON = updateToolResponseBodyBlueprintFromJSON;
exports.updateToolResponseBodyDefaultValueToJSON = updateToolResponseBodyDefaultValueToJSON;
exports.updateToolResponseBodyDefaultValueFromJSON = updateToolResponseBodyDefaultValueFromJSON;
exports.updateToolResponseBodyArgumentsToJSON = updateToolResponseBodyArgumentsToJSON;
exports.updateToolResponseBodyArgumentsFromJSON = updateToolResponseBodyArgumentsFromJSON;
exports.updateToolResponseBodyHttpToJSON = updateToolResponseBodyHttpToJSON;
exports.updateToolResponseBodyHttpFromJSON = updateToolResponseBodyHttpFromJSON;
exports.updateToolResponseBody3ToJSON = updateToolResponseBody3ToJSON;
exports.updateToolResponseBody3FromJSON = updateToolResponseBody3FromJSON;
exports.updateToolResponseBodyJsonSchemaToJSON = updateToolResponseBodyJsonSchemaToJSON;
exports.updateToolResponseBodyJsonSchemaFromJSON = updateToolResponseBodyJsonSchemaFromJSON;
exports.updateToolResponseBody2ToJSON = updateToolResponseBody2ToJSON;
exports.updateToolResponseBody2FromJSON = updateToolResponseBody2FromJSON;
exports.updateToolResponseBodyFunctionToJSON = updateToolResponseBodyFunctionToJSON;
exports.updateToolResponseBodyFunctionFromJSON = updateToolResponseBodyFunctionFromJSON;
exports.updateToolResponseBody1ToJSON = updateToolResponseBody1ToJSON;
exports.updateToolResponseBody1FromJSON = updateToolResponseBody1FromJSON;
exports.updateToolResponseBodyToJSON = updateToolResponseBodyToJSON;
exports.updateToolResponseBodyFromJSON = updateToolResponseBodyFromJSON;
const z = __importStar(require("zod/v3"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
/**
 * The status of the tool. `Live` is the latest version of the tool. `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.UpdateToolRequestBodyToolsRequest5Status = {
    Live: "live",
    Draft: "draft",
    Pending: "pending",
    Published: "published",
};
exports.UpdateToolRequestBodyToolsRequest5Type = {
    Code: "code",
};
exports.UpdateToolRequestBodyLanguage = {
    Python: "python",
};
/**
 * The status of the tool. `Live` is the latest version of the tool. `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.UpdateToolRequestBodyToolsRequest4Status = {
    Live: "live",
    Draft: "draft",
    Pending: "pending",
    Published: "published",
};
exports.UpdateToolRequestBodyToolsRequest4Type = {
    Mcp: "mcp",
};
exports.UpdateToolRequestBodyToolsRequest4McpType = {
    Object: "object",
};
/**
 * The connection type used by the MCP server
 */
exports.RequestBodyConnectionType = {
    Http: "http",
    Sse: "sse",
};
/**
 * The status of the tool. `Live` is the latest version of the tool. `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.UpdateToolRequestBodyToolsRequestStatus = {
    Live: "live",
    Draft: "draft",
    Pending: "pending",
    Published: "published",
};
exports.UpdateToolRequestBodyToolsRequestType = {
    Http: "http",
};
/**
 * The HTTP method to use.
 */
exports.UpdateToolRequestBodyMethod = {
    Get: "GET",
    Post: "POST",
    Put: "PUT",
    Delete: "DELETE",
};
/**
 * The type of the argument.
 */
exports.UpdateToolRequestBodyToolsRequest3Type = {
    String: "string",
    Number: "number",
    Boolean: "boolean",
};
/**
 * The status of the tool. `Live` is the latest version of the tool. `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.UpdateToolRequestBodyToolsStatus = {
    Live: "live",
    Draft: "draft",
    Pending: "pending",
    Published: "published",
};
exports.UpdateToolRequestBodyToolsType = {
    JsonSchema: "json_schema",
};
/**
 * The status of the tool. `Live` is the latest version of the tool. `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.UpdateToolRequestBodyStatus = {
    Live: "live",
    Draft: "draft",
    Pending: "pending",
    Published: "published",
};
exports.UpdateToolRequestBodyType = {
    Function: "function",
};
/**
 * The status of the tool. `Live` is the latest version of the tool. `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.UpdateToolResponseBodyToolsResponse200ApplicationJSONStatus = {
    Live: "live",
    Draft: "draft",
    Pending: "pending",
    Published: "published",
};
exports.UpdateToolResponseBodyToolsResponse200ApplicationJSONType = {
    Code: "code",
};
exports.UpdateToolResponseBodyLanguage = {
    Python: "python",
};
/**
 * The status of the tool. `Live` is the latest version of the tool. `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.UpdateToolResponseBodyToolsResponse200Status = {
    Live: "live",
    Draft: "draft",
    Pending: "pending",
    Published: "published",
};
exports.UpdateToolResponseBodyToolsResponse200Type = {
    Mcp: "mcp",
};
exports.UpdateToolResponseBodyToolsResponse200ApplicationJson4Type = {
    Object: "object",
};
/**
 * The connection type used by the MCP server
 */
exports.UpdateToolResponseBodyConnectionType = {
    Http: "http",
    Sse: "sse",
};
/**
 * The status of the tool. `Live` is the latest version of the tool. `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.UpdateToolResponseBodyToolsResponseStatus = {
    Live: "live",
    Draft: "draft",
    Pending: "pending",
    Published: "published",
};
exports.UpdateToolResponseBodyToolsResponseType = {
    Http: "http",
};
/**
 * The HTTP method to use.
 */
exports.UpdateToolResponseBodyMethod = {
    Get: "GET",
    Post: "POST",
    Put: "PUT",
    Delete: "DELETE",
};
/**
 * The type of the argument.
 */
exports.UpdateToolResponseBodyToolsResponse200ApplicationJson3Type = {
    String: "string",
    Number: "number",
    Boolean: "boolean",
};
/**
 * The status of the tool. `Live` is the latest version of the tool. `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.UpdateToolResponseBodyToolsStatus = {
    Live: "live",
    Draft: "draft",
    Pending: "pending",
    Published: "published",
};
exports.UpdateToolResponseBodyToolsType = {
    JsonSchema: "json_schema",
};
/**
 * The status of the tool. `Live` is the latest version of the tool. `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.UpdateToolResponseBodyStatus = {
    Live: "live",
    Draft: "draft",
    Pending: "pending",
    Published: "published",
};
exports.UpdateToolResponseBodyType = {
    Function: "function",
};
/** @internal */
exports.UpdateToolRequestBodyToolsRequest5Status$inboundSchema = z
    .nativeEnum(exports.UpdateToolRequestBodyToolsRequest5Status);
/** @internal */
exports.UpdateToolRequestBodyToolsRequest5Status$outboundSchema = exports.UpdateToolRequestBodyToolsRequest5Status$inboundSchema;
/** @internal */
exports.UpdateToolRequestBodyToolsRequest5Type$inboundSchema = z.nativeEnum(exports.UpdateToolRequestBodyToolsRequest5Type);
/** @internal */
exports.UpdateToolRequestBodyToolsRequest5Type$outboundSchema = exports.UpdateToolRequestBodyToolsRequest5Type$inboundSchema;
/** @internal */
exports.UpdateToolRequestBodyLanguage$inboundSchema = z.nativeEnum(exports.UpdateToolRequestBodyLanguage);
/** @internal */
exports.UpdateToolRequestBodyLanguage$outboundSchema = exports.UpdateToolRequestBodyLanguage$inboundSchema;
/** @internal */
exports.UpdateToolRequestBodyCodeTool$inboundSchema = z.object({
    parameters: z.record(z.any()).optional(),
    language: exports.UpdateToolRequestBodyLanguage$inboundSchema,
    code: z.string(),
});
/** @internal */
exports.UpdateToolRequestBodyCodeTool$outboundSchema = z.object({
    parameters: z.record(z.any()).optional(),
    language: exports.UpdateToolRequestBodyLanguage$outboundSchema,
    code: z.string(),
});
function updateToolRequestBodyCodeToolToJSON(updateToolRequestBodyCodeTool) {
    return JSON.stringify(exports.UpdateToolRequestBodyCodeTool$outboundSchema.parse(updateToolRequestBodyCodeTool));
}
function updateToolRequestBodyCodeToolFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateToolRequestBodyCodeTool$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateToolRequestBodyCodeTool' from JSON`);
}
/** @internal */
exports.UpdateCodeExecutionTool$inboundSchema = z.object({
    path: z.string().optional(),
    display_name: z.string().optional(),
    description: z.string().optional(),
    status: exports.UpdateToolRequestBodyToolsRequest5Status$inboundSchema.default("live"),
    type: exports.UpdateToolRequestBodyToolsRequest5Type$inboundSchema,
    code_tool: z.lazy(() => exports.UpdateToolRequestBodyCodeTool$inboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "display_name": "displayName",
        "code_tool": "codeTool",
    });
});
/** @internal */
exports.UpdateCodeExecutionTool$outboundSchema = z.object({
    path: z.string().optional(),
    displayName: z.string().optional(),
    description: z.string().optional(),
    status: exports.UpdateToolRequestBodyToolsRequest5Status$outboundSchema.default("live"),
    type: exports.UpdateToolRequestBodyToolsRequest5Type$outboundSchema,
    codeTool: z.lazy(() => exports.UpdateToolRequestBodyCodeTool$outboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        displayName: "display_name",
        codeTool: "code_tool",
    });
});
function updateCodeExecutionToolToJSON(updateCodeExecutionTool) {
    return JSON.stringify(exports.UpdateCodeExecutionTool$outboundSchema.parse(updateCodeExecutionTool));
}
function updateCodeExecutionToolFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateCodeExecutionTool$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateCodeExecutionTool' from JSON`);
}
/** @internal */
exports.UpdateToolRequestBodyToolsRequest4Status$inboundSchema = z
    .nativeEnum(exports.UpdateToolRequestBodyToolsRequest4Status);
/** @internal */
exports.UpdateToolRequestBodyToolsRequest4Status$outboundSchema = exports.UpdateToolRequestBodyToolsRequest4Status$inboundSchema;
/** @internal */
exports.UpdateToolRequestBodyToolsRequest4Type$inboundSchema = z.nativeEnum(exports.UpdateToolRequestBodyToolsRequest4Type);
/** @internal */
exports.UpdateToolRequestBodyToolsRequest4Type$outboundSchema = exports.UpdateToolRequestBodyToolsRequest4Type$inboundSchema;
/** @internal */
exports.RequestBodyHeaders$inboundSchema = z.object({
    value: z.string(),
    encrypted: z.boolean().default(false),
});
/** @internal */
exports.RequestBodyHeaders$outboundSchema = z.object({
    value: z.string(),
    encrypted: z.boolean().default(false),
});
function requestBodyHeadersToJSON(requestBodyHeaders) {
    return JSON.stringify(exports.RequestBodyHeaders$outboundSchema.parse(requestBodyHeaders));
}
function requestBodyHeadersFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RequestBodyHeaders$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RequestBodyHeaders' from JSON`);
}
/** @internal */
exports.UpdateToolRequestBodyToolsRequest4McpType$inboundSchema = z
    .nativeEnum(exports.UpdateToolRequestBodyToolsRequest4McpType);
/** @internal */
exports.UpdateToolRequestBodyToolsRequest4McpType$outboundSchema = exports.UpdateToolRequestBodyToolsRequest4McpType$inboundSchema;
/** @internal */
exports.RequestBodyInputSchema$inboundSchema = z.object({
    type: exports.UpdateToolRequestBodyToolsRequest4McpType$inboundSchema,
    properties: z.record(z.any()).optional(),
    required: z.array(z.string()).optional(),
});
/** @internal */
exports.RequestBodyInputSchema$outboundSchema = z.object({
    type: exports.UpdateToolRequestBodyToolsRequest4McpType$outboundSchema,
    properties: z.record(z.any()).optional(),
    required: z.array(z.string()).optional(),
});
function requestBodyInputSchemaToJSON(requestBodyInputSchema) {
    return JSON.stringify(exports.RequestBodyInputSchema$outboundSchema.parse(requestBodyInputSchema));
}
function requestBodyInputSchemaFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RequestBodyInputSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RequestBodyInputSchema' from JSON`);
}
/** @internal */
exports.RequestBodyConnectionType$inboundSchema = z.nativeEnum(exports.RequestBodyConnectionType);
/** @internal */
exports.RequestBodyConnectionType$outboundSchema = exports.RequestBodyConnectionType$inboundSchema;
/** @internal */
exports.RequestBodyMcp$inboundSchema = z.object({
    server_id: z.string(),
    tool_name: z.string(),
    server_url: z.string(),
    headers: z.record(z.lazy(() => exports.RequestBodyHeaders$inboundSchema)).optional(),
    input_schema: z.lazy(() => exports.RequestBodyInputSchema$inboundSchema),
    connection_type: exports.RequestBodyConnectionType$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "server_id": "serverId",
        "tool_name": "toolName",
        "server_url": "serverUrl",
        "input_schema": "inputSchema",
        "connection_type": "connectionType",
    });
});
/** @internal */
exports.RequestBodyMcp$outboundSchema = z.object({
    serverId: z.string(),
    toolName: z.string(),
    serverUrl: z.string(),
    headers: z.record(z.lazy(() => exports.RequestBodyHeaders$outboundSchema)).optional(),
    inputSchema: z.lazy(() => exports.RequestBodyInputSchema$outboundSchema),
    connectionType: exports.RequestBodyConnectionType$outboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        serverId: "server_id",
        toolName: "tool_name",
        serverUrl: "server_url",
        inputSchema: "input_schema",
        connectionType: "connection_type",
    });
});
function requestBodyMcpToJSON(requestBodyMcp) {
    return JSON.stringify(exports.RequestBodyMcp$outboundSchema.parse(requestBodyMcp));
}
function requestBodyMcpFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RequestBodyMcp$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RequestBodyMcp' from JSON`);
}
/** @internal */
exports.UpdateMCPTool$inboundSchema = z.object({
    path: z.string().optional(),
    key: z.string().optional(),
    display_name: z.string().optional(),
    description: z.string().optional(),
    status: exports.UpdateToolRequestBodyToolsRequest4Status$inboundSchema.default("live"),
    type: exports.UpdateToolRequestBodyToolsRequest4Type$inboundSchema,
    mcp: z.lazy(() => exports.RequestBodyMcp$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "display_name": "displayName",
    });
});
/** @internal */
exports.UpdateMCPTool$outboundSchema = z.object({
    path: z.string().optional(),
    key: z.string().optional(),
    displayName: z.string().optional(),
    description: z.string().optional(),
    status: exports.UpdateToolRequestBodyToolsRequest4Status$outboundSchema.default("live"),
    type: exports.UpdateToolRequestBodyToolsRequest4Type$outboundSchema,
    mcp: z.lazy(() => exports.RequestBodyMcp$outboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        displayName: "display_name",
    });
});
function updateMCPToolToJSON(updateMCPTool) {
    return JSON.stringify(exports.UpdateMCPTool$outboundSchema.parse(updateMCPTool));
}
function updateMCPToolFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateMCPTool$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateMCPTool' from JSON`);
}
/** @internal */
exports.UpdateToolRequestBodyToolsRequestStatus$inboundSchema = z
    .nativeEnum(exports.UpdateToolRequestBodyToolsRequestStatus);
/** @internal */
exports.UpdateToolRequestBodyToolsRequestStatus$outboundSchema = exports.UpdateToolRequestBodyToolsRequestStatus$inboundSchema;
/** @internal */
exports.UpdateToolRequestBodyToolsRequestType$inboundSchema = z.nativeEnum(exports.UpdateToolRequestBodyToolsRequestType);
/** @internal */
exports.UpdateToolRequestBodyToolsRequestType$outboundSchema = exports.UpdateToolRequestBodyToolsRequestType$inboundSchema;
/** @internal */
exports.UpdateToolRequestBodyMethod$inboundSchema = z.nativeEnum(exports.UpdateToolRequestBodyMethod);
/** @internal */
exports.UpdateToolRequestBodyMethod$outboundSchema = exports.UpdateToolRequestBodyMethod$inboundSchema;
/** @internal */
exports.UpdateToolRequestBodyBlueprint$inboundSchema = z.object({
    url: z.string(),
    method: exports.UpdateToolRequestBodyMethod$inboundSchema,
    headers: z.record(z.string()).optional(),
    body: z.record(z.any()).optional(),
});
/** @internal */
exports.UpdateToolRequestBodyBlueprint$outboundSchema = z.object({
    url: z.string(),
    method: exports.UpdateToolRequestBodyMethod$outboundSchema,
    headers: z.record(z.string()).optional(),
    body: z.record(z.any()).optional(),
});
function updateToolRequestBodyBlueprintToJSON(updateToolRequestBodyBlueprint) {
    return JSON.stringify(exports.UpdateToolRequestBodyBlueprint$outboundSchema.parse(updateToolRequestBodyBlueprint));
}
function updateToolRequestBodyBlueprintFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateToolRequestBodyBlueprint$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateToolRequestBodyBlueprint' from JSON`);
}
/** @internal */
exports.UpdateToolRequestBodyToolsRequest3Type$inboundSchema = z.nativeEnum(exports.UpdateToolRequestBodyToolsRequest3Type);
/** @internal */
exports.UpdateToolRequestBodyToolsRequest3Type$outboundSchema = exports.UpdateToolRequestBodyToolsRequest3Type$inboundSchema;
/** @internal */
exports.UpdateToolRequestBodyDefaultValue$inboundSchema = z.union([z.string(), z.number(), z.boolean()]);
/** @internal */
exports.UpdateToolRequestBodyDefaultValue$outboundSchema = z.union([z.string(), z.number(), z.boolean()]);
function updateToolRequestBodyDefaultValueToJSON(updateToolRequestBodyDefaultValue) {
    return JSON.stringify(exports.UpdateToolRequestBodyDefaultValue$outboundSchema.parse(updateToolRequestBodyDefaultValue));
}
function updateToolRequestBodyDefaultValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateToolRequestBodyDefaultValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateToolRequestBodyDefaultValue' from JSON`);
}
/** @internal */
exports.UpdateToolRequestBodyArguments$inboundSchema = z.object({
    type: exports.UpdateToolRequestBodyToolsRequest3Type$inboundSchema,
    description: z.string(),
    send_to_model: z.boolean().default(true),
    default_value: z.union([z.string(), z.number(), z.boolean()]).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "send_to_model": "sendToModel",
        "default_value": "defaultValue",
    });
});
/** @internal */
exports.UpdateToolRequestBodyArguments$outboundSchema = z.object({
    type: exports.UpdateToolRequestBodyToolsRequest3Type$outboundSchema,
    description: z.string(),
    sendToModel: z.boolean().default(true),
    defaultValue: z.union([z.string(), z.number(), z.boolean()]).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        sendToModel: "send_to_model",
        defaultValue: "default_value",
    });
});
function updateToolRequestBodyArgumentsToJSON(updateToolRequestBodyArguments) {
    return JSON.stringify(exports.UpdateToolRequestBodyArguments$outboundSchema.parse(updateToolRequestBodyArguments));
}
function updateToolRequestBodyArgumentsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateToolRequestBodyArguments$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateToolRequestBodyArguments' from JSON`);
}
/** @internal */
exports.UpdateToolRequestBodyHttp$inboundSchema = z.object({
    blueprint: z.lazy(() => exports.UpdateToolRequestBodyBlueprint$inboundSchema),
    arguments: z.record(z.lazy(() => exports.UpdateToolRequestBodyArguments$inboundSchema)).optional(),
});
/** @internal */
exports.UpdateToolRequestBodyHttp$outboundSchema = z.object({
    blueprint: z.lazy(() => exports.UpdateToolRequestBodyBlueprint$outboundSchema),
    arguments: z.record(z.lazy(() => exports.UpdateToolRequestBodyArguments$outboundSchema)).optional(),
});
function updateToolRequestBodyHttpToJSON(updateToolRequestBodyHttp) {
    return JSON.stringify(exports.UpdateToolRequestBodyHttp$outboundSchema.parse(updateToolRequestBodyHttp));
}
function updateToolRequestBodyHttpFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateToolRequestBodyHttp$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateToolRequestBodyHttp' from JSON`);
}
/** @internal */
exports.UpdateHTTPTool$inboundSchema = z.object({
    path: z.string().optional(),
    key: z.string().optional(),
    display_name: z.string().optional(),
    description: z.string().optional(),
    status: exports.UpdateToolRequestBodyToolsRequestStatus$inboundSchema.default("live"),
    type: exports.UpdateToolRequestBodyToolsRequestType$inboundSchema,
    http: z.lazy(() => exports.UpdateToolRequestBodyHttp$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "display_name": "displayName",
    });
});
/** @internal */
exports.UpdateHTTPTool$outboundSchema = z.object({
    path: z.string().optional(),
    key: z.string().optional(),
    displayName: z.string().optional(),
    description: z.string().optional(),
    status: exports.UpdateToolRequestBodyToolsRequestStatus$outboundSchema.default("live"),
    type: exports.UpdateToolRequestBodyToolsRequestType$outboundSchema,
    http: z.lazy(() => exports.UpdateToolRequestBodyHttp$outboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        displayName: "display_name",
    });
});
function updateHTTPToolToJSON(updateHTTPTool) {
    return JSON.stringify(exports.UpdateHTTPTool$outboundSchema.parse(updateHTTPTool));
}
function updateHTTPToolFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateHTTPTool$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateHTTPTool' from JSON`);
}
/** @internal */
exports.UpdateToolRequestBodyToolsStatus$inboundSchema = z.nativeEnum(exports.UpdateToolRequestBodyToolsStatus);
/** @internal */
exports.UpdateToolRequestBodyToolsStatus$outboundSchema = exports.UpdateToolRequestBodyToolsStatus$inboundSchema;
/** @internal */
exports.UpdateToolRequestBodyToolsType$inboundSchema = z.nativeEnum(exports.UpdateToolRequestBodyToolsType);
/** @internal */
exports.UpdateToolRequestBodyToolsType$outboundSchema = exports.UpdateToolRequestBodyToolsType$inboundSchema;
/** @internal */
exports.UpdateToolRequestBodyJsonSchema$inboundSchema = z.object({
    name: z.string(),
    description: z.string().optional(),
    schema: z.record(z.any()),
    strict: z.boolean().optional(),
});
/** @internal */
exports.UpdateToolRequestBodyJsonSchema$outboundSchema = z.object({
    name: z.string(),
    description: z.string().optional(),
    schema: z.record(z.any()),
    strict: z.boolean().optional(),
});
function updateToolRequestBodyJsonSchemaToJSON(updateToolRequestBodyJsonSchema) {
    return JSON.stringify(exports.UpdateToolRequestBodyJsonSchema$outboundSchema.parse(updateToolRequestBodyJsonSchema));
}
function updateToolRequestBodyJsonSchemaFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateToolRequestBodyJsonSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateToolRequestBodyJsonSchema' from JSON`);
}
/** @internal */
exports.UpdateJSONSchemaTool$inboundSchema = z.object({
    path: z.string().optional(),
    key: z.string().optional(),
    display_name: z.string().optional(),
    description: z.string().optional(),
    status: exports.UpdateToolRequestBodyToolsStatus$inboundSchema.default("live"),
    type: exports.UpdateToolRequestBodyToolsType$inboundSchema,
    json_schema: z.lazy(() => exports.UpdateToolRequestBodyJsonSchema$inboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "display_name": "displayName",
        "json_schema": "jsonSchema",
    });
});
/** @internal */
exports.UpdateJSONSchemaTool$outboundSchema = z.object({
    path: z.string().optional(),
    key: z.string().optional(),
    displayName: z.string().optional(),
    description: z.string().optional(),
    status: exports.UpdateToolRequestBodyToolsStatus$outboundSchema.default("live"),
    type: exports.UpdateToolRequestBodyToolsType$outboundSchema,
    jsonSchema: z.lazy(() => exports.UpdateToolRequestBodyJsonSchema$outboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        displayName: "display_name",
        jsonSchema: "json_schema",
    });
});
function updateJSONSchemaToolToJSON(updateJSONSchemaTool) {
    return JSON.stringify(exports.UpdateJSONSchemaTool$outboundSchema.parse(updateJSONSchemaTool));
}
function updateJSONSchemaToolFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateJSONSchemaTool$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateJSONSchemaTool' from JSON`);
}
/** @internal */
exports.UpdateToolRequestBodyStatus$inboundSchema = z.nativeEnum(exports.UpdateToolRequestBodyStatus);
/** @internal */
exports.UpdateToolRequestBodyStatus$outboundSchema = exports.UpdateToolRequestBodyStatus$inboundSchema;
/** @internal */
exports.UpdateToolRequestBodyType$inboundSchema = z.nativeEnum(exports.UpdateToolRequestBodyType);
/** @internal */
exports.UpdateToolRequestBodyType$outboundSchema = exports.UpdateToolRequestBodyType$inboundSchema;
/** @internal */
exports.UpdateToolRequestBodyFunction$inboundSchema = z.object({
    name: z.string(),
    description: z.string().optional(),
    strict: z.boolean().optional(),
    parameters: z.record(z.any()).optional(),
});
/** @internal */
exports.UpdateToolRequestBodyFunction$outboundSchema = z.object({
    name: z.string(),
    description: z.string().optional(),
    strict: z.boolean().optional(),
    parameters: z.record(z.any()).optional(),
});
function updateToolRequestBodyFunctionToJSON(updateToolRequestBodyFunction) {
    return JSON.stringify(exports.UpdateToolRequestBodyFunction$outboundSchema.parse(updateToolRequestBodyFunction));
}
function updateToolRequestBodyFunctionFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateToolRequestBodyFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateToolRequestBodyFunction' from JSON`);
}
/** @internal */
exports.UpdateFunctionTool$inboundSchema = z.object({
    path: z.string().optional(),
    key: z.string().optional(),
    display_name: z.string().optional(),
    description: z.string().optional(),
    status: exports.UpdateToolRequestBodyStatus$inboundSchema.default("live"),
    type: exports.UpdateToolRequestBodyType$inboundSchema,
    function: z.lazy(() => exports.UpdateToolRequestBodyFunction$inboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "display_name": "displayName",
    });
});
/** @internal */
exports.UpdateFunctionTool$outboundSchema = z.object({
    path: z.string().optional(),
    key: z.string().optional(),
    displayName: z.string().optional(),
    description: z.string().optional(),
    status: exports.UpdateToolRequestBodyStatus$outboundSchema.default("live"),
    type: exports.UpdateToolRequestBodyType$outboundSchema,
    function: z.lazy(() => exports.UpdateToolRequestBodyFunction$outboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        displayName: "display_name",
    });
});
function updateFunctionToolToJSON(updateFunctionTool) {
    return JSON.stringify(exports.UpdateFunctionTool$outboundSchema.parse(updateFunctionTool));
}
function updateFunctionToolFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateFunctionTool$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateFunctionTool' from JSON`);
}
/** @internal */
exports.UpdateToolRequestBody$inboundSchema = z.union([
    z.lazy(() => exports.UpdateFunctionTool$inboundSchema),
    z.lazy(() => exports.UpdateJSONSchemaTool$inboundSchema),
    z.lazy(() => exports.UpdateHTTPTool$inboundSchema),
    z.lazy(() => exports.UpdateMCPTool$inboundSchema),
    z.lazy(() => exports.UpdateCodeExecutionTool$inboundSchema),
]);
/** @internal */
exports.UpdateToolRequestBody$outboundSchema = z.union([
    z.lazy(() => exports.UpdateFunctionTool$outboundSchema),
    z.lazy(() => exports.UpdateJSONSchemaTool$outboundSchema),
    z.lazy(() => exports.UpdateHTTPTool$outboundSchema),
    z.lazy(() => exports.UpdateMCPTool$outboundSchema),
    z.lazy(() => exports.UpdateCodeExecutionTool$outboundSchema),
]);
function updateToolRequestBodyToJSON(updateToolRequestBody) {
    return JSON.stringify(exports.UpdateToolRequestBody$outboundSchema.parse(updateToolRequestBody));
}
function updateToolRequestBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateToolRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateToolRequestBody' from JSON`);
}
/** @internal */
exports.UpdateToolRequest$inboundSchema = z.object({
    tool_id: z.string(),
    RequestBody: z.union([
        z.lazy(() => exports.UpdateFunctionTool$inboundSchema),
        z.lazy(() => exports.UpdateJSONSchemaTool$inboundSchema),
        z.lazy(() => exports.UpdateHTTPTool$inboundSchema),
        z.lazy(() => exports.UpdateMCPTool$inboundSchema),
        z.lazy(() => exports.UpdateCodeExecutionTool$inboundSchema),
    ]).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "tool_id": "toolId",
        "RequestBody": "requestBody",
    });
});
/** @internal */
exports.UpdateToolRequest$outboundSchema = z.object({
    toolId: z.string(),
    requestBody: z.union([
        z.lazy(() => exports.UpdateFunctionTool$outboundSchema),
        z.lazy(() => exports.UpdateJSONSchemaTool$outboundSchema),
        z.lazy(() => exports.UpdateHTTPTool$outboundSchema),
        z.lazy(() => exports.UpdateMCPTool$outboundSchema),
        z.lazy(() => exports.UpdateCodeExecutionTool$outboundSchema),
    ]).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        toolId: "tool_id",
        requestBody: "RequestBody",
    });
});
function updateToolRequestToJSON(updateToolRequest) {
    return JSON.stringify(exports.UpdateToolRequest$outboundSchema.parse(updateToolRequest));
}
function updateToolRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateToolRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateToolRequest' from JSON`);
}
/** @internal */
exports.UpdateToolResponseBodyToolsResponse200ApplicationJSONStatus$inboundSchema = z.nativeEnum(exports.UpdateToolResponseBodyToolsResponse200ApplicationJSONStatus);
/** @internal */
exports.UpdateToolResponseBodyToolsResponse200ApplicationJSONStatus$outboundSchema = exports.UpdateToolResponseBodyToolsResponse200ApplicationJSONStatus$inboundSchema;
/** @internal */
exports.UpdateToolResponseBodyToolsResponse200ApplicationJSONType$inboundSchema = z.nativeEnum(exports.UpdateToolResponseBodyToolsResponse200ApplicationJSONType);
/** @internal */
exports.UpdateToolResponseBodyToolsResponse200ApplicationJSONType$outboundSchema = exports.UpdateToolResponseBodyToolsResponse200ApplicationJSONType$inboundSchema;
/** @internal */
exports.UpdateToolResponseBodyLanguage$inboundSchema = z.nativeEnum(exports.UpdateToolResponseBodyLanguage);
/** @internal */
exports.UpdateToolResponseBodyLanguage$outboundSchema = exports.UpdateToolResponseBodyLanguage$inboundSchema;
/** @internal */
exports.UpdateToolResponseBodyCodeTool$inboundSchema = z.object({
    parameters: z.record(z.any()).optional(),
    language: exports.UpdateToolResponseBodyLanguage$inboundSchema,
    code: z.string(),
});
/** @internal */
exports.UpdateToolResponseBodyCodeTool$outboundSchema = z.object({
    parameters: z.record(z.any()).optional(),
    language: exports.UpdateToolResponseBodyLanguage$outboundSchema,
    code: z.string(),
});
function updateToolResponseBodyCodeToolToJSON(updateToolResponseBodyCodeTool) {
    return JSON.stringify(exports.UpdateToolResponseBodyCodeTool$outboundSchema.parse(updateToolResponseBodyCodeTool));
}
function updateToolResponseBodyCodeToolFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateToolResponseBodyCodeTool$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateToolResponseBodyCodeTool' from JSON`);
}
/** @internal */
exports.UpdateToolResponseBody5$inboundSchema = z.object({
    _id: z.string().default("01K9QRS4XYD9PY5KNW6V0SKNRD"),
    path: z.string(),
    key: z.string(),
    display_name: z.string().optional(),
    description: z.string(),
    created_by_id: z.string().optional(),
    updated_by_id: z.string().optional(),
    project_id: z.string(),
    workspace_id: z.string(),
    created: z.string(),
    updated: z.string(),
    status: exports.UpdateToolResponseBodyToolsResponse200ApplicationJSONStatus$inboundSchema
        .default("live"),
    version_hash: z.string().optional(),
    type: exports.UpdateToolResponseBodyToolsResponse200ApplicationJSONType$inboundSchema,
    code_tool: z.lazy(() => exports.UpdateToolResponseBodyCodeTool$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "display_name": "displayName",
        "created_by_id": "createdById",
        "updated_by_id": "updatedById",
        "project_id": "projectId",
        "workspace_id": "workspaceId",
        "version_hash": "versionHash",
        "code_tool": "codeTool",
    });
});
/** @internal */
exports.UpdateToolResponseBody5$outboundSchema = z.object({
    id: z.string().default("01K9QRS4XYD9PY5KNW6V0SKNRD"),
    path: z.string(),
    key: z.string(),
    displayName: z.string().optional(),
    description: z.string(),
    createdById: z.string().optional(),
    updatedById: z.string().optional(),
    projectId: z.string(),
    workspaceId: z.string(),
    created: z.string(),
    updated: z.string(),
    status: exports.UpdateToolResponseBodyToolsResponse200ApplicationJSONStatus$outboundSchema
        .default("live"),
    versionHash: z.string().optional(),
    type: exports.UpdateToolResponseBodyToolsResponse200ApplicationJSONType$outboundSchema,
    codeTool: z.lazy(() => exports.UpdateToolResponseBodyCodeTool$outboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        id: "_id",
        displayName: "display_name",
        createdById: "created_by_id",
        updatedById: "updated_by_id",
        projectId: "project_id",
        workspaceId: "workspace_id",
        versionHash: "version_hash",
        codeTool: "code_tool",
    });
});
function updateToolResponseBody5ToJSON(updateToolResponseBody5) {
    return JSON.stringify(exports.UpdateToolResponseBody5$outboundSchema.parse(updateToolResponseBody5));
}
function updateToolResponseBody5FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateToolResponseBody5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateToolResponseBody5' from JSON`);
}
/** @internal */
exports.UpdateToolResponseBodyToolsResponse200Status$inboundSchema = z
    .nativeEnum(exports.UpdateToolResponseBodyToolsResponse200Status);
/** @internal */
exports.UpdateToolResponseBodyToolsResponse200Status$outboundSchema = exports.UpdateToolResponseBodyToolsResponse200Status$inboundSchema;
/** @internal */
exports.UpdateToolResponseBodyToolsResponse200Type$inboundSchema = z
    .nativeEnum(exports.UpdateToolResponseBodyToolsResponse200Type);
/** @internal */
exports.UpdateToolResponseBodyToolsResponse200Type$outboundSchema = exports.UpdateToolResponseBodyToolsResponse200Type$inboundSchema;
/** @internal */
exports.UpdateToolResponseBodyHeaders$inboundSchema = z.object({
    value: z.string(),
    encrypted: z.boolean().default(false),
});
/** @internal */
exports.UpdateToolResponseBodyHeaders$outboundSchema = z.object({
    value: z.string(),
    encrypted: z.boolean().default(false),
});
function updateToolResponseBodyHeadersToJSON(updateToolResponseBodyHeaders) {
    return JSON.stringify(exports.UpdateToolResponseBodyHeaders$outboundSchema.parse(updateToolResponseBodyHeaders));
}
function updateToolResponseBodyHeadersFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateToolResponseBodyHeaders$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateToolResponseBodyHeaders' from JSON`);
}
/** @internal */
exports.UpdateToolResponseBodyToolsResponse200ApplicationJson4Type$inboundSchema = z.nativeEnum(exports.UpdateToolResponseBodyToolsResponse200ApplicationJson4Type);
/** @internal */
exports.UpdateToolResponseBodyToolsResponse200ApplicationJson4Type$outboundSchema = exports.UpdateToolResponseBodyToolsResponse200ApplicationJson4Type$inboundSchema;
/** @internal */
exports.UpdateToolResponseBodyInputSchema$inboundSchema = z.object({
    type: exports.UpdateToolResponseBodyToolsResponse200ApplicationJson4Type$inboundSchema,
    properties: z.record(z.any()).optional(),
    required: z.array(z.string()).optional(),
});
/** @internal */
exports.UpdateToolResponseBodyInputSchema$outboundSchema = z.object({
    type: exports.UpdateToolResponseBodyToolsResponse200ApplicationJson4Type$outboundSchema,
    properties: z.record(z.any()).optional(),
    required: z.array(z.string()).optional(),
});
function updateToolResponseBodyInputSchemaToJSON(updateToolResponseBodyInputSchema) {
    return JSON.stringify(exports.UpdateToolResponseBodyInputSchema$outboundSchema.parse(updateToolResponseBodyInputSchema));
}
function updateToolResponseBodyInputSchemaFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateToolResponseBodyInputSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateToolResponseBodyInputSchema' from JSON`);
}
/** @internal */
exports.UpdateToolResponseBodyConnectionType$inboundSchema = z.nativeEnum(exports.UpdateToolResponseBodyConnectionType);
/** @internal */
exports.UpdateToolResponseBodyConnectionType$outboundSchema = exports.UpdateToolResponseBodyConnectionType$inboundSchema;
/** @internal */
exports.UpdateToolResponseBodyMcp$inboundSchema = z.object({
    server_id: z.string(),
    tool_name: z.string(),
    server_url: z.string(),
    headers: z.record(z.lazy(() => exports.UpdateToolResponseBodyHeaders$inboundSchema))
        .optional(),
    input_schema: z.lazy(() => exports.UpdateToolResponseBodyInputSchema$inboundSchema),
    connection_type: exports.UpdateToolResponseBodyConnectionType$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "server_id": "serverId",
        "tool_name": "toolName",
        "server_url": "serverUrl",
        "input_schema": "inputSchema",
        "connection_type": "connectionType",
    });
});
/** @internal */
exports.UpdateToolResponseBodyMcp$outboundSchema = z.object({
    serverId: z.string(),
    toolName: z.string(),
    serverUrl: z.string(),
    headers: z.record(z.lazy(() => exports.UpdateToolResponseBodyHeaders$outboundSchema))
        .optional(),
    inputSchema: z.lazy(() => exports.UpdateToolResponseBodyInputSchema$outboundSchema),
    connectionType: exports.UpdateToolResponseBodyConnectionType$outboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        serverId: "server_id",
        toolName: "tool_name",
        serverUrl: "server_url",
        inputSchema: "input_schema",
        connectionType: "connection_type",
    });
});
function updateToolResponseBodyMcpToJSON(updateToolResponseBodyMcp) {
    return JSON.stringify(exports.UpdateToolResponseBodyMcp$outboundSchema.parse(updateToolResponseBodyMcp));
}
function updateToolResponseBodyMcpFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateToolResponseBodyMcp$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateToolResponseBodyMcp' from JSON`);
}
/** @internal */
exports.UpdateToolResponseBody4$inboundSchema = z.object({
    _id: z.string().default("01K9QRS4XWAJ5DQB5HAAS1BNTV"),
    path: z.string(),
    key: z.string(),
    display_name: z.string().optional(),
    description: z.string(),
    created_by_id: z.string().optional(),
    updated_by_id: z.string().optional(),
    project_id: z.string(),
    workspace_id: z.string(),
    created: z.string(),
    updated: z.string(),
    status: exports.UpdateToolResponseBodyToolsResponse200Status$inboundSchema.default("live"),
    version_hash: z.string().optional(),
    type: exports.UpdateToolResponseBodyToolsResponse200Type$inboundSchema,
    mcp: z.lazy(() => exports.UpdateToolResponseBodyMcp$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "display_name": "displayName",
        "created_by_id": "createdById",
        "updated_by_id": "updatedById",
        "project_id": "projectId",
        "workspace_id": "workspaceId",
        "version_hash": "versionHash",
    });
});
/** @internal */
exports.UpdateToolResponseBody4$outboundSchema = z.object({
    id: z.string().default("01K9QRS4XWAJ5DQB5HAAS1BNTV"),
    path: z.string(),
    key: z.string(),
    displayName: z.string().optional(),
    description: z.string(),
    createdById: z.string().optional(),
    updatedById: z.string().optional(),
    projectId: z.string(),
    workspaceId: z.string(),
    created: z.string(),
    updated: z.string(),
    status: exports.UpdateToolResponseBodyToolsResponse200Status$outboundSchema.default("live"),
    versionHash: z.string().optional(),
    type: exports.UpdateToolResponseBodyToolsResponse200Type$outboundSchema,
    mcp: z.lazy(() => exports.UpdateToolResponseBodyMcp$outboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        id: "_id",
        displayName: "display_name",
        createdById: "created_by_id",
        updatedById: "updated_by_id",
        projectId: "project_id",
        workspaceId: "workspace_id",
        versionHash: "version_hash",
    });
});
function updateToolResponseBody4ToJSON(updateToolResponseBody4) {
    return JSON.stringify(exports.UpdateToolResponseBody4$outboundSchema.parse(updateToolResponseBody4));
}
function updateToolResponseBody4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateToolResponseBody4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateToolResponseBody4' from JSON`);
}
/** @internal */
exports.UpdateToolResponseBodyToolsResponseStatus$inboundSchema = z
    .nativeEnum(exports.UpdateToolResponseBodyToolsResponseStatus);
/** @internal */
exports.UpdateToolResponseBodyToolsResponseStatus$outboundSchema = exports.UpdateToolResponseBodyToolsResponseStatus$inboundSchema;
/** @internal */
exports.UpdateToolResponseBodyToolsResponseType$inboundSchema = z
    .nativeEnum(exports.UpdateToolResponseBodyToolsResponseType);
/** @internal */
exports.UpdateToolResponseBodyToolsResponseType$outboundSchema = exports.UpdateToolResponseBodyToolsResponseType$inboundSchema;
/** @internal */
exports.UpdateToolResponseBodyMethod$inboundSchema = z.nativeEnum(exports.UpdateToolResponseBodyMethod);
/** @internal */
exports.UpdateToolResponseBodyMethod$outboundSchema = exports.UpdateToolResponseBodyMethod$inboundSchema;
/** @internal */
exports.UpdateToolResponseBodyBlueprint$inboundSchema = z.object({
    url: z.string(),
    method: exports.UpdateToolResponseBodyMethod$inboundSchema,
    headers: z.record(z.string()).optional(),
    body: z.record(z.any()).optional(),
});
/** @internal */
exports.UpdateToolResponseBodyBlueprint$outboundSchema = z.object({
    url: z.string(),
    method: exports.UpdateToolResponseBodyMethod$outboundSchema,
    headers: z.record(z.string()).optional(),
    body: z.record(z.any()).optional(),
});
function updateToolResponseBodyBlueprintToJSON(updateToolResponseBodyBlueprint) {
    return JSON.stringify(exports.UpdateToolResponseBodyBlueprint$outboundSchema.parse(updateToolResponseBodyBlueprint));
}
function updateToolResponseBodyBlueprintFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateToolResponseBodyBlueprint$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateToolResponseBodyBlueprint' from JSON`);
}
/** @internal */
exports.UpdateToolResponseBodyToolsResponse200ApplicationJson3Type$inboundSchema = z.nativeEnum(exports.UpdateToolResponseBodyToolsResponse200ApplicationJson3Type);
/** @internal */
exports.UpdateToolResponseBodyToolsResponse200ApplicationJson3Type$outboundSchema = exports.UpdateToolResponseBodyToolsResponse200ApplicationJson3Type$inboundSchema;
/** @internal */
exports.UpdateToolResponseBodyDefaultValue$inboundSchema = z.union([z.string(), z.number(), z.boolean()]);
/** @internal */
exports.UpdateToolResponseBodyDefaultValue$outboundSchema = z.union([z.string(), z.number(), z.boolean()]);
function updateToolResponseBodyDefaultValueToJSON(updateToolResponseBodyDefaultValue) {
    return JSON.stringify(exports.UpdateToolResponseBodyDefaultValue$outboundSchema.parse(updateToolResponseBodyDefaultValue));
}
function updateToolResponseBodyDefaultValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateToolResponseBodyDefaultValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateToolResponseBodyDefaultValue' from JSON`);
}
/** @internal */
exports.UpdateToolResponseBodyArguments$inboundSchema = z.object({
    type: exports.UpdateToolResponseBodyToolsResponse200ApplicationJson3Type$inboundSchema,
    description: z.string(),
    send_to_model: z.boolean().default(true),
    default_value: z.union([z.string(), z.number(), z.boolean()]).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "send_to_model": "sendToModel",
        "default_value": "defaultValue",
    });
});
/** @internal */
exports.UpdateToolResponseBodyArguments$outboundSchema = z.object({
    type: exports.UpdateToolResponseBodyToolsResponse200ApplicationJson3Type$outboundSchema,
    description: z.string(),
    sendToModel: z.boolean().default(true),
    defaultValue: z.union([z.string(), z.number(), z.boolean()]).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        sendToModel: "send_to_model",
        defaultValue: "default_value",
    });
});
function updateToolResponseBodyArgumentsToJSON(updateToolResponseBodyArguments) {
    return JSON.stringify(exports.UpdateToolResponseBodyArguments$outboundSchema.parse(updateToolResponseBodyArguments));
}
function updateToolResponseBodyArgumentsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateToolResponseBodyArguments$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateToolResponseBodyArguments' from JSON`);
}
/** @internal */
exports.UpdateToolResponseBodyHttp$inboundSchema = z.object({
    blueprint: z.lazy(() => exports.UpdateToolResponseBodyBlueprint$inboundSchema),
    arguments: z.record(z.lazy(() => exports.UpdateToolResponseBodyArguments$inboundSchema)).optional(),
});
/** @internal */
exports.UpdateToolResponseBodyHttp$outboundSchema = z.object({
    blueprint: z.lazy(() => exports.UpdateToolResponseBodyBlueprint$outboundSchema),
    arguments: z.record(z.lazy(() => exports.UpdateToolResponseBodyArguments$outboundSchema)).optional(),
});
function updateToolResponseBodyHttpToJSON(updateToolResponseBodyHttp) {
    return JSON.stringify(exports.UpdateToolResponseBodyHttp$outboundSchema.parse(updateToolResponseBodyHttp));
}
function updateToolResponseBodyHttpFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateToolResponseBodyHttp$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateToolResponseBodyHttp' from JSON`);
}
/** @internal */
exports.UpdateToolResponseBody3$inboundSchema = z.object({
    _id: z.string().default("01K9QRS4XVJTFQ7J964ZGVZSVC"),
    path: z.string(),
    key: z.string(),
    display_name: z.string().optional(),
    description: z.string(),
    created_by_id: z.string().optional(),
    updated_by_id: z.string().optional(),
    project_id: z.string(),
    workspace_id: z.string(),
    created: z.string(),
    updated: z.string(),
    status: exports.UpdateToolResponseBodyToolsResponseStatus$inboundSchema.default("live"),
    version_hash: z.string().optional(),
    type: exports.UpdateToolResponseBodyToolsResponseType$inboundSchema,
    http: z.lazy(() => exports.UpdateToolResponseBodyHttp$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "display_name": "displayName",
        "created_by_id": "createdById",
        "updated_by_id": "updatedById",
        "project_id": "projectId",
        "workspace_id": "workspaceId",
        "version_hash": "versionHash",
    });
});
/** @internal */
exports.UpdateToolResponseBody3$outboundSchema = z.object({
    id: z.string().default("01K9QRS4XVJTFQ7J964ZGVZSVC"),
    path: z.string(),
    key: z.string(),
    displayName: z.string().optional(),
    description: z.string(),
    createdById: z.string().optional(),
    updatedById: z.string().optional(),
    projectId: z.string(),
    workspaceId: z.string(),
    created: z.string(),
    updated: z.string(),
    status: exports.UpdateToolResponseBodyToolsResponseStatus$outboundSchema.default("live"),
    versionHash: z.string().optional(),
    type: exports.UpdateToolResponseBodyToolsResponseType$outboundSchema,
    http: z.lazy(() => exports.UpdateToolResponseBodyHttp$outboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        id: "_id",
        displayName: "display_name",
        createdById: "created_by_id",
        updatedById: "updated_by_id",
        projectId: "project_id",
        workspaceId: "workspace_id",
        versionHash: "version_hash",
    });
});
function updateToolResponseBody3ToJSON(updateToolResponseBody3) {
    return JSON.stringify(exports.UpdateToolResponseBody3$outboundSchema.parse(updateToolResponseBody3));
}
function updateToolResponseBody3FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateToolResponseBody3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateToolResponseBody3' from JSON`);
}
/** @internal */
exports.UpdateToolResponseBodyToolsStatus$inboundSchema = z.nativeEnum(exports.UpdateToolResponseBodyToolsStatus);
/** @internal */
exports.UpdateToolResponseBodyToolsStatus$outboundSchema = exports.UpdateToolResponseBodyToolsStatus$inboundSchema;
/** @internal */
exports.UpdateToolResponseBodyToolsType$inboundSchema = z.nativeEnum(exports.UpdateToolResponseBodyToolsType);
/** @internal */
exports.UpdateToolResponseBodyToolsType$outboundSchema = exports.UpdateToolResponseBodyToolsType$inboundSchema;
/** @internal */
exports.UpdateToolResponseBodyJsonSchema$inboundSchema = z.object({
    name: z.string(),
    description: z.string().optional(),
    schema: z.record(z.any()),
    strict: z.boolean().optional(),
});
/** @internal */
exports.UpdateToolResponseBodyJsonSchema$outboundSchema = z.object({
    name: z.string(),
    description: z.string().optional(),
    schema: z.record(z.any()),
    strict: z.boolean().optional(),
});
function updateToolResponseBodyJsonSchemaToJSON(updateToolResponseBodyJsonSchema) {
    return JSON.stringify(exports.UpdateToolResponseBodyJsonSchema$outboundSchema.parse(updateToolResponseBodyJsonSchema));
}
function updateToolResponseBodyJsonSchemaFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateToolResponseBodyJsonSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateToolResponseBodyJsonSchema' from JSON`);
}
/** @internal */
exports.UpdateToolResponseBody2$inboundSchema = z.object({
    _id: z.string().default("01K9QRS4XS6EFQWWWGBNNCS711"),
    path: z.string(),
    key: z.string(),
    display_name: z.string().optional(),
    description: z.string(),
    created_by_id: z.string().optional(),
    updated_by_id: z.string().optional(),
    project_id: z.string(),
    workspace_id: z.string(),
    created: z.string(),
    updated: z.string(),
    status: exports.UpdateToolResponseBodyToolsStatus$inboundSchema.default("live"),
    version_hash: z.string().optional(),
    type: exports.UpdateToolResponseBodyToolsType$inboundSchema,
    json_schema: z.lazy(() => exports.UpdateToolResponseBodyJsonSchema$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "display_name": "displayName",
        "created_by_id": "createdById",
        "updated_by_id": "updatedById",
        "project_id": "projectId",
        "workspace_id": "workspaceId",
        "version_hash": "versionHash",
        "json_schema": "jsonSchema",
    });
});
/** @internal */
exports.UpdateToolResponseBody2$outboundSchema = z.object({
    id: z.string().default("01K9QRS4XS6EFQWWWGBNNCS711"),
    path: z.string(),
    key: z.string(),
    displayName: z.string().optional(),
    description: z.string(),
    createdById: z.string().optional(),
    updatedById: z.string().optional(),
    projectId: z.string(),
    workspaceId: z.string(),
    created: z.string(),
    updated: z.string(),
    status: exports.UpdateToolResponseBodyToolsStatus$outboundSchema.default("live"),
    versionHash: z.string().optional(),
    type: exports.UpdateToolResponseBodyToolsType$outboundSchema,
    jsonSchema: z.lazy(() => exports.UpdateToolResponseBodyJsonSchema$outboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        id: "_id",
        displayName: "display_name",
        createdById: "created_by_id",
        updatedById: "updated_by_id",
        projectId: "project_id",
        workspaceId: "workspace_id",
        versionHash: "version_hash",
        jsonSchema: "json_schema",
    });
});
function updateToolResponseBody2ToJSON(updateToolResponseBody2) {
    return JSON.stringify(exports.UpdateToolResponseBody2$outboundSchema.parse(updateToolResponseBody2));
}
function updateToolResponseBody2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateToolResponseBody2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateToolResponseBody2' from JSON`);
}
/** @internal */
exports.UpdateToolResponseBodyStatus$inboundSchema = z.nativeEnum(exports.UpdateToolResponseBodyStatus);
/** @internal */
exports.UpdateToolResponseBodyStatus$outboundSchema = exports.UpdateToolResponseBodyStatus$inboundSchema;
/** @internal */
exports.UpdateToolResponseBodyType$inboundSchema = z.nativeEnum(exports.UpdateToolResponseBodyType);
/** @internal */
exports.UpdateToolResponseBodyType$outboundSchema = exports.UpdateToolResponseBodyType$inboundSchema;
/** @internal */
exports.UpdateToolResponseBodyFunction$inboundSchema = z.object({
    name: z.string(),
    description: z.string().optional(),
    strict: z.boolean().optional(),
    parameters: z.record(z.any()).optional(),
});
/** @internal */
exports.UpdateToolResponseBodyFunction$outboundSchema = z.object({
    name: z.string(),
    description: z.string().optional(),
    strict: z.boolean().optional(),
    parameters: z.record(z.any()).optional(),
});
function updateToolResponseBodyFunctionToJSON(updateToolResponseBodyFunction) {
    return JSON.stringify(exports.UpdateToolResponseBodyFunction$outboundSchema.parse(updateToolResponseBodyFunction));
}
function updateToolResponseBodyFunctionFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateToolResponseBodyFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateToolResponseBodyFunction' from JSON`);
}
/** @internal */
exports.UpdateToolResponseBody1$inboundSchema = z.object({
    _id: z.string().default("01K9QRS4XQJRNZ171TGWWRRSFT"),
    path: z.string(),
    key: z.string(),
    display_name: z.string().optional(),
    description: z.string(),
    created_by_id: z.string().optional(),
    updated_by_id: z.string().optional(),
    project_id: z.string(),
    workspace_id: z.string(),
    created: z.string(),
    updated: z.string(),
    status: exports.UpdateToolResponseBodyStatus$inboundSchema.default("live"),
    version_hash: z.string().optional(),
    type: exports.UpdateToolResponseBodyType$inboundSchema,
    function: z.lazy(() => exports.UpdateToolResponseBodyFunction$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "display_name": "displayName",
        "created_by_id": "createdById",
        "updated_by_id": "updatedById",
        "project_id": "projectId",
        "workspace_id": "workspaceId",
        "version_hash": "versionHash",
    });
});
/** @internal */
exports.UpdateToolResponseBody1$outboundSchema = z.object({
    id: z.string().default("01K9QRS4XQJRNZ171TGWWRRSFT"),
    path: z.string(),
    key: z.string(),
    displayName: z.string().optional(),
    description: z.string(),
    createdById: z.string().optional(),
    updatedById: z.string().optional(),
    projectId: z.string(),
    workspaceId: z.string(),
    created: z.string(),
    updated: z.string(),
    status: exports.UpdateToolResponseBodyStatus$outboundSchema.default("live"),
    versionHash: z.string().optional(),
    type: exports.UpdateToolResponseBodyType$outboundSchema,
    function: z.lazy(() => exports.UpdateToolResponseBodyFunction$outboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        id: "_id",
        displayName: "display_name",
        createdById: "created_by_id",
        updatedById: "updated_by_id",
        projectId: "project_id",
        workspaceId: "workspace_id",
        versionHash: "version_hash",
    });
});
function updateToolResponseBody1ToJSON(updateToolResponseBody1) {
    return JSON.stringify(exports.UpdateToolResponseBody1$outboundSchema.parse(updateToolResponseBody1));
}
function updateToolResponseBody1FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateToolResponseBody1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateToolResponseBody1' from JSON`);
}
/** @internal */
exports.UpdateToolResponseBody$inboundSchema = z.union([
    z.lazy(() => exports.UpdateToolResponseBody1$inboundSchema),
    z.lazy(() => exports.UpdateToolResponseBody2$inboundSchema),
    z.lazy(() => exports.UpdateToolResponseBody3$inboundSchema),
    z.lazy(() => exports.UpdateToolResponseBody4$inboundSchema),
    z.lazy(() => exports.UpdateToolResponseBody5$inboundSchema),
]);
/** @internal */
exports.UpdateToolResponseBody$outboundSchema = z.union([
    z.lazy(() => exports.UpdateToolResponseBody1$outboundSchema),
    z.lazy(() => exports.UpdateToolResponseBody2$outboundSchema),
    z.lazy(() => exports.UpdateToolResponseBody3$outboundSchema),
    z.lazy(() => exports.UpdateToolResponseBody4$outboundSchema),
    z.lazy(() => exports.UpdateToolResponseBody5$outboundSchema),
]);
function updateToolResponseBodyToJSON(updateToolResponseBody) {
    return JSON.stringify(exports.UpdateToolResponseBody$outboundSchema.parse(updateToolResponseBody));
}
function updateToolResponseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateToolResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateToolResponseBody' from JSON`);
}
//# sourceMappingURL=updatetool.js.map