"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.InputSchema$outboundSchema = exports.InputSchema$inboundSchema = exports.CreateToolRequestBodyToolsRequest4McpType$outboundSchema = exports.CreateToolRequestBodyToolsRequest4McpType$inboundSchema = exports.Headers$outboundSchema = exports.Headers$inboundSchema = exports.CreateToolRequestBodyToolsRequest4Type$outboundSchema = exports.CreateToolRequestBodyToolsRequest4Type$inboundSchema = exports.CreateToolRequestBodyToolsRequestStatus$outboundSchema = exports.CreateToolRequestBodyToolsRequestStatus$inboundSchema = exports.RequestBodyCodeExecutionTool$outboundSchema = exports.RequestBodyCodeExecutionTool$inboundSchema = exports.RequestBodyCodeTool$outboundSchema = exports.RequestBodyCodeTool$inboundSchema = exports.RequestBodyLanguage$outboundSchema = exports.RequestBodyLanguage$inboundSchema = exports.CreateToolRequestBodyToolsRequest5Type$outboundSchema = exports.CreateToolRequestBodyToolsRequest5Type$inboundSchema = exports.CreateToolRequestBodyToolsRequest5Status$outboundSchema = exports.CreateToolRequestBodyToolsRequest5Status$inboundSchema = exports.CreateToolResponseBodyType = exports.ResponseBodyStatus = exports.CreateToolResponseBodyToolsType = exports.CreateToolResponseBodyStatus = exports.CreateToolResponseBodyToolsResponse200ApplicationJson3Type = exports.CreateToolResponseBodyMethod = exports.CreateToolResponseBodyToolsResponseType = exports.CreateToolResponseBodyToolsStatus = exports.ResponseBodyConnectionType = exports.CreateToolResponseBodyToolsResponse200ApplicationJson4Type = exports.CreateToolResponseBodyToolsResponse200Type = exports.CreateToolResponseBodyToolsResponseStatus = exports.ResponseBodyLanguage = exports.CreateToolResponseBodyToolsResponse200ApplicationJSONType = exports.CreateToolResponseBodyToolsResponse200Status = exports.CreateToolRequestBodyType = exports.RequestBodyStatus = exports.CreateToolRequestBodyToolsType = exports.CreateToolRequestBodyStatus = exports.CreateToolRequestBodyToolsRequest3Type = exports.CreateToolRequestBodyMethod = exports.CreateToolRequestBodyToolsRequestType = exports.CreateToolRequestBodyToolsStatus = exports.ConnectionType = exports.CreateToolRequestBodyToolsRequest4McpType = exports.CreateToolRequestBodyToolsRequest4Type = exports.CreateToolRequestBodyToolsRequestStatus = exports.RequestBodyLanguage = exports.CreateToolRequestBodyToolsRequest5Type = exports.CreateToolRequestBodyToolsRequest5Status = void 0;
exports.ResponseBodyCodeTool$outboundSchema = exports.ResponseBodyCodeTool$inboundSchema = exports.ResponseBodyLanguage$outboundSchema = exports.ResponseBodyLanguage$inboundSchema = exports.CreateToolResponseBodyToolsResponse200ApplicationJSONType$outboundSchema = exports.CreateToolResponseBodyToolsResponse200ApplicationJSONType$inboundSchema = exports.CreateToolResponseBodyToolsResponse200Status$outboundSchema = exports.CreateToolResponseBodyToolsResponse200Status$inboundSchema = exports.CreateToolRequestBody$outboundSchema = exports.CreateToolRequestBody$inboundSchema = exports.RequestBodyFunctionTool$outboundSchema = exports.RequestBodyFunctionTool$inboundSchema = exports.RequestBodyFunction$outboundSchema = exports.RequestBodyFunction$inboundSchema = exports.CreateToolRequestBodyType$outboundSchema = exports.CreateToolRequestBodyType$inboundSchema = exports.RequestBodyStatus$outboundSchema = exports.RequestBodyStatus$inboundSchema = exports.JSONSchemaTool$outboundSchema = exports.JSONSchemaTool$inboundSchema = exports.RequestBodyJsonSchema$outboundSchema = exports.RequestBodyJsonSchema$inboundSchema = exports.CreateToolRequestBodyToolsType$outboundSchema = exports.CreateToolRequestBodyToolsType$inboundSchema = exports.CreateToolRequestBodyStatus$outboundSchema = exports.CreateToolRequestBodyStatus$inboundSchema = exports.RequestBodyHTTPTool$outboundSchema = exports.RequestBodyHTTPTool$inboundSchema = exports.CreateToolRequestBodyHttp$outboundSchema = exports.CreateToolRequestBodyHttp$inboundSchema = exports.RequestBodyArguments$outboundSchema = exports.RequestBodyArguments$inboundSchema = exports.RequestBodyDefaultValue$outboundSchema = exports.RequestBodyDefaultValue$inboundSchema = exports.CreateToolRequestBodyToolsRequest3Type$outboundSchema = exports.CreateToolRequestBodyToolsRequest3Type$inboundSchema = exports.RequestBodyBlueprint$outboundSchema = exports.RequestBodyBlueprint$inboundSchema = exports.CreateToolRequestBodyMethod$outboundSchema = exports.CreateToolRequestBodyMethod$inboundSchema = exports.CreateToolRequestBodyToolsRequestType$outboundSchema = exports.CreateToolRequestBodyToolsRequestType$inboundSchema = exports.CreateToolRequestBodyToolsStatus$outboundSchema = exports.CreateToolRequestBodyToolsStatus$inboundSchema = exports.MCPTool$outboundSchema = exports.MCPTool$inboundSchema = exports.Mcp$outboundSchema = exports.Mcp$inboundSchema = exports.ConnectionType$outboundSchema = exports.ConnectionType$inboundSchema = void 0;
exports.CreateToolResponseBodyFunction$outboundSchema = exports.CreateToolResponseBodyFunction$inboundSchema = exports.CreateToolResponseBodyType$outboundSchema = exports.CreateToolResponseBodyType$inboundSchema = exports.ResponseBodyStatus$outboundSchema = exports.ResponseBodyStatus$inboundSchema = exports.ResponseBody2$outboundSchema = exports.ResponseBody2$inboundSchema = exports.ResponseBodyJsonSchema$outboundSchema = exports.ResponseBodyJsonSchema$inboundSchema = exports.CreateToolResponseBodyToolsType$outboundSchema = exports.CreateToolResponseBodyToolsType$inboundSchema = exports.CreateToolResponseBodyStatus$outboundSchema = exports.CreateToolResponseBodyStatus$inboundSchema = exports.ResponseBody3$outboundSchema = exports.ResponseBody3$inboundSchema = exports.CreateToolResponseBodyHttp$outboundSchema = exports.CreateToolResponseBodyHttp$inboundSchema = exports.ResponseBodyArguments$outboundSchema = exports.ResponseBodyArguments$inboundSchema = exports.ResponseBodyDefaultValue$outboundSchema = exports.ResponseBodyDefaultValue$inboundSchema = exports.CreateToolResponseBodyToolsResponse200ApplicationJson3Type$outboundSchema = exports.CreateToolResponseBodyToolsResponse200ApplicationJson3Type$inboundSchema = exports.ResponseBodyBlueprint$outboundSchema = exports.ResponseBodyBlueprint$inboundSchema = exports.CreateToolResponseBodyMethod$outboundSchema = exports.CreateToolResponseBodyMethod$inboundSchema = exports.CreateToolResponseBodyToolsResponseType$outboundSchema = exports.CreateToolResponseBodyToolsResponseType$inboundSchema = exports.CreateToolResponseBodyToolsStatus$outboundSchema = exports.CreateToolResponseBodyToolsStatus$inboundSchema = exports.ResponseBody4$outboundSchema = exports.ResponseBody4$inboundSchema = exports.ResponseBodyMcp$outboundSchema = exports.ResponseBodyMcp$inboundSchema = exports.ResponseBodyConnectionType$outboundSchema = exports.ResponseBodyConnectionType$inboundSchema = exports.ResponseBodyInputSchema$outboundSchema = exports.ResponseBodyInputSchema$inboundSchema = exports.CreateToolResponseBodyToolsResponse200ApplicationJson4Type$outboundSchema = exports.CreateToolResponseBodyToolsResponse200ApplicationJson4Type$inboundSchema = exports.ResponseBodyHeaders$outboundSchema = exports.ResponseBodyHeaders$inboundSchema = exports.CreateToolResponseBodyToolsResponse200Type$outboundSchema = exports.CreateToolResponseBodyToolsResponse200Type$inboundSchema = exports.CreateToolResponseBodyToolsResponseStatus$outboundSchema = exports.CreateToolResponseBodyToolsResponseStatus$inboundSchema = exports.ResponseBody5$outboundSchema = exports.ResponseBody5$inboundSchema = void 0;
exports.CreateToolResponseBody$outboundSchema = exports.CreateToolResponseBody$inboundSchema = exports.ResponseBody1$outboundSchema = exports.ResponseBody1$inboundSchema = void 0;
exports.requestBodyCodeToolToJSON = requestBodyCodeToolToJSON;
exports.requestBodyCodeToolFromJSON = requestBodyCodeToolFromJSON;
exports.requestBodyCodeExecutionToolToJSON = requestBodyCodeExecutionToolToJSON;
exports.requestBodyCodeExecutionToolFromJSON = requestBodyCodeExecutionToolFromJSON;
exports.headersToJSON = headersToJSON;
exports.headersFromJSON = headersFromJSON;
exports.inputSchemaToJSON = inputSchemaToJSON;
exports.inputSchemaFromJSON = inputSchemaFromJSON;
exports.mcpToJSON = mcpToJSON;
exports.mcpFromJSON = mcpFromJSON;
exports.mcpToolToJSON = mcpToolToJSON;
exports.mcpToolFromJSON = mcpToolFromJSON;
exports.requestBodyBlueprintToJSON = requestBodyBlueprintToJSON;
exports.requestBodyBlueprintFromJSON = requestBodyBlueprintFromJSON;
exports.requestBodyDefaultValueToJSON = requestBodyDefaultValueToJSON;
exports.requestBodyDefaultValueFromJSON = requestBodyDefaultValueFromJSON;
exports.requestBodyArgumentsToJSON = requestBodyArgumentsToJSON;
exports.requestBodyArgumentsFromJSON = requestBodyArgumentsFromJSON;
exports.createToolRequestBodyHttpToJSON = createToolRequestBodyHttpToJSON;
exports.createToolRequestBodyHttpFromJSON = createToolRequestBodyHttpFromJSON;
exports.requestBodyHTTPToolToJSON = requestBodyHTTPToolToJSON;
exports.requestBodyHTTPToolFromJSON = requestBodyHTTPToolFromJSON;
exports.requestBodyJsonSchemaToJSON = requestBodyJsonSchemaToJSON;
exports.requestBodyJsonSchemaFromJSON = requestBodyJsonSchemaFromJSON;
exports.jsonSchemaToolToJSON = jsonSchemaToolToJSON;
exports.jsonSchemaToolFromJSON = jsonSchemaToolFromJSON;
exports.requestBodyFunctionToJSON = requestBodyFunctionToJSON;
exports.requestBodyFunctionFromJSON = requestBodyFunctionFromJSON;
exports.requestBodyFunctionToolToJSON = requestBodyFunctionToolToJSON;
exports.requestBodyFunctionToolFromJSON = requestBodyFunctionToolFromJSON;
exports.createToolRequestBodyToJSON = createToolRequestBodyToJSON;
exports.createToolRequestBodyFromJSON = createToolRequestBodyFromJSON;
exports.responseBodyCodeToolToJSON = responseBodyCodeToolToJSON;
exports.responseBodyCodeToolFromJSON = responseBodyCodeToolFromJSON;
exports.responseBody5ToJSON = responseBody5ToJSON;
exports.responseBody5FromJSON = responseBody5FromJSON;
exports.responseBodyHeadersToJSON = responseBodyHeadersToJSON;
exports.responseBodyHeadersFromJSON = responseBodyHeadersFromJSON;
exports.responseBodyInputSchemaToJSON = responseBodyInputSchemaToJSON;
exports.responseBodyInputSchemaFromJSON = responseBodyInputSchemaFromJSON;
exports.responseBodyMcpToJSON = responseBodyMcpToJSON;
exports.responseBodyMcpFromJSON = responseBodyMcpFromJSON;
exports.responseBody4ToJSON = responseBody4ToJSON;
exports.responseBody4FromJSON = responseBody4FromJSON;
exports.responseBodyBlueprintToJSON = responseBodyBlueprintToJSON;
exports.responseBodyBlueprintFromJSON = responseBodyBlueprintFromJSON;
exports.responseBodyDefaultValueToJSON = responseBodyDefaultValueToJSON;
exports.responseBodyDefaultValueFromJSON = responseBodyDefaultValueFromJSON;
exports.responseBodyArgumentsToJSON = responseBodyArgumentsToJSON;
exports.responseBodyArgumentsFromJSON = responseBodyArgumentsFromJSON;
exports.createToolResponseBodyHttpToJSON = createToolResponseBodyHttpToJSON;
exports.createToolResponseBodyHttpFromJSON = createToolResponseBodyHttpFromJSON;
exports.responseBody3ToJSON = responseBody3ToJSON;
exports.responseBody3FromJSON = responseBody3FromJSON;
exports.responseBodyJsonSchemaToJSON = responseBodyJsonSchemaToJSON;
exports.responseBodyJsonSchemaFromJSON = responseBodyJsonSchemaFromJSON;
exports.responseBody2ToJSON = responseBody2ToJSON;
exports.responseBody2FromJSON = responseBody2FromJSON;
exports.createToolResponseBodyFunctionToJSON = createToolResponseBodyFunctionToJSON;
exports.createToolResponseBodyFunctionFromJSON = createToolResponseBodyFunctionFromJSON;
exports.responseBody1ToJSON = responseBody1ToJSON;
exports.responseBody1FromJSON = responseBody1FromJSON;
exports.createToolResponseBodyToJSON = createToolResponseBodyToJSON;
exports.createToolResponseBodyFromJSON = createToolResponseBodyFromJSON;
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.CreateToolRequestBodyToolsRequest5Status = {
    Live: "live",
    Draft: "draft",
    Pending: "pending",
    Published: "published",
};
exports.CreateToolRequestBodyToolsRequest5Type = {
    Code: "code",
};
exports.RequestBodyLanguage = {
    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.CreateToolRequestBodyToolsRequestStatus = {
    Live: "live",
    Draft: "draft",
    Pending: "pending",
    Published: "published",
};
exports.CreateToolRequestBodyToolsRequest4Type = {
    Mcp: "mcp",
};
exports.CreateToolRequestBodyToolsRequest4McpType = {
    Object: "object",
};
/**
 * The connection type used by the MCP server
 */
exports.ConnectionType = {
    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.CreateToolRequestBodyToolsStatus = {
    Live: "live",
    Draft: "draft",
    Pending: "pending",
    Published: "published",
};
exports.CreateToolRequestBodyToolsRequestType = {
    Http: "http",
};
/**
 * The HTTP method to use.
 */
exports.CreateToolRequestBodyMethod = {
    Get: "GET",
    Post: "POST",
    Put: "PUT",
    Delete: "DELETE",
};
/**
 * The type of the argument.
 */
exports.CreateToolRequestBodyToolsRequest3Type = {
    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.CreateToolRequestBodyStatus = {
    Live: "live",
    Draft: "draft",
    Pending: "pending",
    Published: "published",
};
exports.CreateToolRequestBodyToolsType = {
    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.RequestBodyStatus = {
    Live: "live",
    Draft: "draft",
    Pending: "pending",
    Published: "published",
};
exports.CreateToolRequestBodyType = {
    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.CreateToolResponseBodyToolsResponse200Status = {
    Live: "live",
    Draft: "draft",
    Pending: "pending",
    Published: "published",
};
exports.CreateToolResponseBodyToolsResponse200ApplicationJSONType = {
    Code: "code",
};
exports.ResponseBodyLanguage = {
    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.CreateToolResponseBodyToolsResponseStatus = {
    Live: "live",
    Draft: "draft",
    Pending: "pending",
    Published: "published",
};
exports.CreateToolResponseBodyToolsResponse200Type = {
    Mcp: "mcp",
};
exports.CreateToolResponseBodyToolsResponse200ApplicationJson4Type = {
    Object: "object",
};
/**
 * The connection type used by the MCP server
 */
exports.ResponseBodyConnectionType = {
    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.CreateToolResponseBodyToolsStatus = {
    Live: "live",
    Draft: "draft",
    Pending: "pending",
    Published: "published",
};
exports.CreateToolResponseBodyToolsResponseType = {
    Http: "http",
};
/**
 * The HTTP method to use.
 */
exports.CreateToolResponseBodyMethod = {
    Get: "GET",
    Post: "POST",
    Put: "PUT",
    Delete: "DELETE",
};
/**
 * The type of the argument.
 */
exports.CreateToolResponseBodyToolsResponse200ApplicationJson3Type = {
    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.CreateToolResponseBodyStatus = {
    Live: "live",
    Draft: "draft",
    Pending: "pending",
    Published: "published",
};
exports.CreateToolResponseBodyToolsType = {
    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.ResponseBodyStatus = {
    Live: "live",
    Draft: "draft",
    Pending: "pending",
    Published: "published",
};
exports.CreateToolResponseBodyType = {
    Function: "function",
};
/** @internal */
exports.CreateToolRequestBodyToolsRequest5Status$inboundSchema = z
    .nativeEnum(exports.CreateToolRequestBodyToolsRequest5Status);
/** @internal */
exports.CreateToolRequestBodyToolsRequest5Status$outboundSchema = exports.CreateToolRequestBodyToolsRequest5Status$inboundSchema;
/** @internal */
exports.CreateToolRequestBodyToolsRequest5Type$inboundSchema = z.nativeEnum(exports.CreateToolRequestBodyToolsRequest5Type);
/** @internal */
exports.CreateToolRequestBodyToolsRequest5Type$outboundSchema = exports.CreateToolRequestBodyToolsRequest5Type$inboundSchema;
/** @internal */
exports.RequestBodyLanguage$inboundSchema = z.nativeEnum(exports.RequestBodyLanguage);
/** @internal */
exports.RequestBodyLanguage$outboundSchema = exports.RequestBodyLanguage$inboundSchema;
/** @internal */
exports.RequestBodyCodeTool$inboundSchema = z.object({
    parameters: z.record(z.any()).optional(),
    language: exports.RequestBodyLanguage$inboundSchema,
    code: z.string(),
});
/** @internal */
exports.RequestBodyCodeTool$outboundSchema = z.object({
    parameters: z.record(z.any()).optional(),
    language: exports.RequestBodyLanguage$outboundSchema,
    code: z.string(),
});
function requestBodyCodeToolToJSON(requestBodyCodeTool) {
    return JSON.stringify(exports.RequestBodyCodeTool$outboundSchema.parse(requestBodyCodeTool));
}
function requestBodyCodeToolFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RequestBodyCodeTool$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RequestBodyCodeTool' from JSON`);
}
/** @internal */
exports.RequestBodyCodeExecutionTool$inboundSchema = z.object({
    path: z.string(),
    key: z.string(),
    display_name: z.string().optional(),
    description: z.string(),
    status: exports.CreateToolRequestBodyToolsRequest5Status$inboundSchema.default("live"),
    type: exports.CreateToolRequestBodyToolsRequest5Type$inboundSchema,
    code_tool: z.lazy(() => exports.RequestBodyCodeTool$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "display_name": "displayName",
        "code_tool": "codeTool",
    });
});
/** @internal */
exports.RequestBodyCodeExecutionTool$outboundSchema = z.object({
    path: z.string(),
    key: z.string(),
    displayName: z.string().optional(),
    description: z.string(),
    status: exports.CreateToolRequestBodyToolsRequest5Status$outboundSchema.default("live"),
    type: exports.CreateToolRequestBodyToolsRequest5Type$outboundSchema,
    codeTool: z.lazy(() => exports.RequestBodyCodeTool$outboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        displayName: "display_name",
        codeTool: "code_tool",
    });
});
function requestBodyCodeExecutionToolToJSON(requestBodyCodeExecutionTool) {
    return JSON.stringify(exports.RequestBodyCodeExecutionTool$outboundSchema.parse(requestBodyCodeExecutionTool));
}
function requestBodyCodeExecutionToolFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RequestBodyCodeExecutionTool$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RequestBodyCodeExecutionTool' from JSON`);
}
/** @internal */
exports.CreateToolRequestBodyToolsRequestStatus$inboundSchema = z
    .nativeEnum(exports.CreateToolRequestBodyToolsRequestStatus);
/** @internal */
exports.CreateToolRequestBodyToolsRequestStatus$outboundSchema = exports.CreateToolRequestBodyToolsRequestStatus$inboundSchema;
/** @internal */
exports.CreateToolRequestBodyToolsRequest4Type$inboundSchema = z.nativeEnum(exports.CreateToolRequestBodyToolsRequest4Type);
/** @internal */
exports.CreateToolRequestBodyToolsRequest4Type$outboundSchema = exports.CreateToolRequestBodyToolsRequest4Type$inboundSchema;
/** @internal */
exports.Headers$inboundSchema = z.object({
    value: z.string(),
    encrypted: z.boolean().default(false),
});
/** @internal */
exports.Headers$outboundSchema = z.object({
    value: z.string(),
    encrypted: z.boolean().default(false),
});
function headersToJSON(headers) {
    return JSON.stringify(exports.Headers$outboundSchema.parse(headers));
}
function headersFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Headers$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Headers' from JSON`);
}
/** @internal */
exports.CreateToolRequestBodyToolsRequest4McpType$inboundSchema = z
    .nativeEnum(exports.CreateToolRequestBodyToolsRequest4McpType);
/** @internal */
exports.CreateToolRequestBodyToolsRequest4McpType$outboundSchema = exports.CreateToolRequestBodyToolsRequest4McpType$inboundSchema;
/** @internal */
exports.InputSchema$inboundSchema = z.object({
    type: exports.CreateToolRequestBodyToolsRequest4McpType$inboundSchema,
    properties: z.record(z.any()).optional(),
    required: z.array(z.string()).optional(),
});
/** @internal */
exports.InputSchema$outboundSchema = z.object({
    type: exports.CreateToolRequestBodyToolsRequest4McpType$outboundSchema,
    properties: z.record(z.any()).optional(),
    required: z.array(z.string()).optional(),
});
function inputSchemaToJSON(inputSchema) {
    return JSON.stringify(exports.InputSchema$outboundSchema.parse(inputSchema));
}
function inputSchemaFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.InputSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InputSchema' from JSON`);
}
/** @internal */
exports.ConnectionType$inboundSchema = z.nativeEnum(exports.ConnectionType);
/** @internal */
exports.ConnectionType$outboundSchema = exports.ConnectionType$inboundSchema;
/** @internal */
exports.Mcp$inboundSchema = z
    .object({
    server_id: z.string(),
    tool_name: z.string(),
    server_url: z.string(),
    headers: z.record(z.lazy(() => exports.Headers$inboundSchema)).optional(),
    input_schema: z.lazy(() => exports.InputSchema$inboundSchema),
    connection_type: exports.ConnectionType$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.Mcp$outboundSchema = z
    .object({
    serverId: z.string(),
    toolName: z.string(),
    serverUrl: z.string(),
    headers: z.record(z.lazy(() => exports.Headers$outboundSchema)).optional(),
    inputSchema: z.lazy(() => exports.InputSchema$outboundSchema),
    connectionType: exports.ConnectionType$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 mcpToJSON(mcp) {
    return JSON.stringify(exports.Mcp$outboundSchema.parse(mcp));
}
function mcpFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Mcp$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Mcp' from JSON`);
}
/** @internal */
exports.MCPTool$inboundSchema = z.object({
    path: z.string(),
    key: z.string(),
    display_name: z.string().optional(),
    description: z.string(),
    status: exports.CreateToolRequestBodyToolsRequestStatus$inboundSchema.default("live"),
    type: exports.CreateToolRequestBodyToolsRequest4Type$inboundSchema,
    mcp: z.lazy(() => exports.Mcp$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "display_name": "displayName",
    });
});
/** @internal */
exports.MCPTool$outboundSchema = z.object({
    path: z.string(),
    key: z.string(),
    displayName: z.string().optional(),
    description: z.string(),
    status: exports.CreateToolRequestBodyToolsRequestStatus$outboundSchema.default("live"),
    type: exports.CreateToolRequestBodyToolsRequest4Type$outboundSchema,
    mcp: z.lazy(() => exports.Mcp$outboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        displayName: "display_name",
    });
});
function mcpToolToJSON(mcpTool) {
    return JSON.stringify(exports.MCPTool$outboundSchema.parse(mcpTool));
}
function mcpToolFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.MCPTool$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'MCPTool' from JSON`);
}
/** @internal */
exports.CreateToolRequestBodyToolsStatus$inboundSchema = z.nativeEnum(exports.CreateToolRequestBodyToolsStatus);
/** @internal */
exports.CreateToolRequestBodyToolsStatus$outboundSchema = exports.CreateToolRequestBodyToolsStatus$inboundSchema;
/** @internal */
exports.CreateToolRequestBodyToolsRequestType$inboundSchema = z.nativeEnum(exports.CreateToolRequestBodyToolsRequestType);
/** @internal */
exports.CreateToolRequestBodyToolsRequestType$outboundSchema = exports.CreateToolRequestBodyToolsRequestType$inboundSchema;
/** @internal */
exports.CreateToolRequestBodyMethod$inboundSchema = z.nativeEnum(exports.CreateToolRequestBodyMethod);
/** @internal */
exports.CreateToolRequestBodyMethod$outboundSchema = exports.CreateToolRequestBodyMethod$inboundSchema;
/** @internal */
exports.RequestBodyBlueprint$inboundSchema = z.object({
    url: z.string(),
    method: exports.CreateToolRequestBodyMethod$inboundSchema,
    headers: z.record(z.string()).optional(),
    body: z.record(z.any()).optional(),
});
/** @internal */
exports.RequestBodyBlueprint$outboundSchema = z.object({
    url: z.string(),
    method: exports.CreateToolRequestBodyMethod$outboundSchema,
    headers: z.record(z.string()).optional(),
    body: z.record(z.any()).optional(),
});
function requestBodyBlueprintToJSON(requestBodyBlueprint) {
    return JSON.stringify(exports.RequestBodyBlueprint$outboundSchema.parse(requestBodyBlueprint));
}
function requestBodyBlueprintFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RequestBodyBlueprint$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RequestBodyBlueprint' from JSON`);
}
/** @internal */
exports.CreateToolRequestBodyToolsRequest3Type$inboundSchema = z.nativeEnum(exports.CreateToolRequestBodyToolsRequest3Type);
/** @internal */
exports.CreateToolRequestBodyToolsRequest3Type$outboundSchema = exports.CreateToolRequestBodyToolsRequest3Type$inboundSchema;
/** @internal */
exports.RequestBodyDefaultValue$inboundSchema = z.union([z.string(), z.number(), z.boolean()]);
/** @internal */
exports.RequestBodyDefaultValue$outboundSchema = z.union([z.string(), z.number(), z.boolean()]);
function requestBodyDefaultValueToJSON(requestBodyDefaultValue) {
    return JSON.stringify(exports.RequestBodyDefaultValue$outboundSchema.parse(requestBodyDefaultValue));
}
function requestBodyDefaultValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RequestBodyDefaultValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RequestBodyDefaultValue' from JSON`);
}
/** @internal */
exports.RequestBodyArguments$inboundSchema = z.object({
    type: exports.CreateToolRequestBodyToolsRequest3Type$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.RequestBodyArguments$outboundSchema = z.object({
    type: exports.CreateToolRequestBodyToolsRequest3Type$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 requestBodyArgumentsToJSON(requestBodyArguments) {
    return JSON.stringify(exports.RequestBodyArguments$outboundSchema.parse(requestBodyArguments));
}
function requestBodyArgumentsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RequestBodyArguments$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RequestBodyArguments' from JSON`);
}
/** @internal */
exports.CreateToolRequestBodyHttp$inboundSchema = z.object({
    blueprint: z.lazy(() => exports.RequestBodyBlueprint$inboundSchema),
    arguments: z.record(z.lazy(() => exports.RequestBodyArguments$inboundSchema))
        .optional(),
});
/** @internal */
exports.CreateToolRequestBodyHttp$outboundSchema = z.object({
    blueprint: z.lazy(() => exports.RequestBodyBlueprint$outboundSchema),
    arguments: z.record(z.lazy(() => exports.RequestBodyArguments$outboundSchema))
        .optional(),
});
function createToolRequestBodyHttpToJSON(createToolRequestBodyHttp) {
    return JSON.stringify(exports.CreateToolRequestBodyHttp$outboundSchema.parse(createToolRequestBodyHttp));
}
function createToolRequestBodyHttpFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateToolRequestBodyHttp$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateToolRequestBodyHttp' from JSON`);
}
/** @internal */
exports.RequestBodyHTTPTool$inboundSchema = z.object({
    path: z.string(),
    key: z.string(),
    display_name: z.string().optional(),
    description: z.string(),
    status: exports.CreateToolRequestBodyToolsStatus$inboundSchema.default("live"),
    type: exports.CreateToolRequestBodyToolsRequestType$inboundSchema,
    http: z.lazy(() => exports.CreateToolRequestBodyHttp$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "display_name": "displayName",
    });
});
/** @internal */
exports.RequestBodyHTTPTool$outboundSchema = z.object({
    path: z.string(),
    key: z.string(),
    displayName: z.string().optional(),
    description: z.string(),
    status: exports.CreateToolRequestBodyToolsStatus$outboundSchema.default("live"),
    type: exports.CreateToolRequestBodyToolsRequestType$outboundSchema,
    http: z.lazy(() => exports.CreateToolRequestBodyHttp$outboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        displayName: "display_name",
    });
});
function requestBodyHTTPToolToJSON(requestBodyHTTPTool) {
    return JSON.stringify(exports.RequestBodyHTTPTool$outboundSchema.parse(requestBodyHTTPTool));
}
function requestBodyHTTPToolFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RequestBodyHTTPTool$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RequestBodyHTTPTool' from JSON`);
}
/** @internal */
exports.CreateToolRequestBodyStatus$inboundSchema = z.nativeEnum(exports.CreateToolRequestBodyStatus);
/** @internal */
exports.CreateToolRequestBodyStatus$outboundSchema = exports.CreateToolRequestBodyStatus$inboundSchema;
/** @internal */
exports.CreateToolRequestBodyToolsType$inboundSchema = z.nativeEnum(exports.CreateToolRequestBodyToolsType);
/** @internal */
exports.CreateToolRequestBodyToolsType$outboundSchema = exports.CreateToolRequestBodyToolsType$inboundSchema;
/** @internal */
exports.RequestBodyJsonSchema$inboundSchema = z.object({
    name: z.string(),
    description: z.string().optional(),
    schema: z.record(z.any()),
    strict: z.boolean().optional(),
});
/** @internal */
exports.RequestBodyJsonSchema$outboundSchema = z.object({
    name: z.string(),
    description: z.string().optional(),
    schema: z.record(z.any()),
    strict: z.boolean().optional(),
});
function requestBodyJsonSchemaToJSON(requestBodyJsonSchema) {
    return JSON.stringify(exports.RequestBodyJsonSchema$outboundSchema.parse(requestBodyJsonSchema));
}
function requestBodyJsonSchemaFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RequestBodyJsonSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RequestBodyJsonSchema' from JSON`);
}
/** @internal */
exports.JSONSchemaTool$inboundSchema = z.object({
    path: z.string(),
    key: z.string(),
    display_name: z.string().optional(),
    description: z.string(),
    status: exports.CreateToolRequestBodyStatus$inboundSchema.default("live"),
    type: exports.CreateToolRequestBodyToolsType$inboundSchema,
    json_schema: z.lazy(() => exports.RequestBodyJsonSchema$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "display_name": "displayName",
        "json_schema": "jsonSchema",
    });
});
/** @internal */
exports.JSONSchemaTool$outboundSchema = z.object({
    path: z.string(),
    key: z.string(),
    displayName: z.string().optional(),
    description: z.string(),
    status: exports.CreateToolRequestBodyStatus$outboundSchema.default("live"),
    type: exports.CreateToolRequestBodyToolsType$outboundSchema,
    jsonSchema: z.lazy(() => exports.RequestBodyJsonSchema$outboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        displayName: "display_name",
        jsonSchema: "json_schema",
    });
});
function jsonSchemaToolToJSON(jsonSchemaTool) {
    return JSON.stringify(exports.JSONSchemaTool$outboundSchema.parse(jsonSchemaTool));
}
function jsonSchemaToolFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.JSONSchemaTool$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'JSONSchemaTool' from JSON`);
}
/** @internal */
exports.RequestBodyStatus$inboundSchema = z.nativeEnum(exports.RequestBodyStatus);
/** @internal */
exports.RequestBodyStatus$outboundSchema = exports.RequestBodyStatus$inboundSchema;
/** @internal */
exports.CreateToolRequestBodyType$inboundSchema = z.nativeEnum(exports.CreateToolRequestBodyType);
/** @internal */
exports.CreateToolRequestBodyType$outboundSchema = exports.CreateToolRequestBodyType$inboundSchema;
/** @internal */
exports.RequestBodyFunction$inboundSchema = z.object({
    name: z.string(),
    description: z.string().optional(),
    strict: z.boolean().optional(),
    parameters: z.record(z.any()).optional(),
});
/** @internal */
exports.RequestBodyFunction$outboundSchema = z.object({
    name: z.string(),
    description: z.string().optional(),
    strict: z.boolean().optional(),
    parameters: z.record(z.any()).optional(),
});
function requestBodyFunctionToJSON(requestBodyFunction) {
    return JSON.stringify(exports.RequestBodyFunction$outboundSchema.parse(requestBodyFunction));
}
function requestBodyFunctionFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RequestBodyFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RequestBodyFunction' from JSON`);
}
/** @internal */
exports.RequestBodyFunctionTool$inboundSchema = z.object({
    path: z.string(),
    key: z.string(),
    display_name: z.string().optional(),
    description: z.string(),
    status: exports.RequestBodyStatus$inboundSchema.default("live"),
    type: exports.CreateToolRequestBodyType$inboundSchema,
    function: z.lazy(() => exports.RequestBodyFunction$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "display_name": "displayName",
    });
});
/** @internal */
exports.RequestBodyFunctionTool$outboundSchema = z.object({
    path: z.string(),
    key: z.string(),
    displayName: z.string().optional(),
    description: z.string(),
    status: exports.RequestBodyStatus$outboundSchema.default("live"),
    type: exports.CreateToolRequestBodyType$outboundSchema,
    function: z.lazy(() => exports.RequestBodyFunction$outboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        displayName: "display_name",
    });
});
function requestBodyFunctionToolToJSON(requestBodyFunctionTool) {
    return JSON.stringify(exports.RequestBodyFunctionTool$outboundSchema.parse(requestBodyFunctionTool));
}
function requestBodyFunctionToolFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RequestBodyFunctionTool$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RequestBodyFunctionTool' from JSON`);
}
/** @internal */
exports.CreateToolRequestBody$inboundSchema = z.union([
    z.lazy(() => exports.RequestBodyFunctionTool$inboundSchema),
    z.lazy(() => exports.JSONSchemaTool$inboundSchema),
    z.lazy(() => exports.RequestBodyHTTPTool$inboundSchema),
    z.lazy(() => exports.MCPTool$inboundSchema),
    z.lazy(() => exports.RequestBodyCodeExecutionTool$inboundSchema),
]);
/** @internal */
exports.CreateToolRequestBody$outboundSchema = z.union([
    z.lazy(() => exports.RequestBodyFunctionTool$outboundSchema),
    z.lazy(() => exports.JSONSchemaTool$outboundSchema),
    z.lazy(() => exports.RequestBodyHTTPTool$outboundSchema),
    z.lazy(() => exports.MCPTool$outboundSchema),
    z.lazy(() => exports.RequestBodyCodeExecutionTool$outboundSchema),
]);
function createToolRequestBodyToJSON(createToolRequestBody) {
    return JSON.stringify(exports.CreateToolRequestBody$outboundSchema.parse(createToolRequestBody));
}
function createToolRequestBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateToolRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateToolRequestBody' from JSON`);
}
/** @internal */
exports.CreateToolResponseBodyToolsResponse200Status$inboundSchema = z
    .nativeEnum(exports.CreateToolResponseBodyToolsResponse200Status);
/** @internal */
exports.CreateToolResponseBodyToolsResponse200Status$outboundSchema = exports.CreateToolResponseBodyToolsResponse200Status$inboundSchema;
/** @internal */
exports.CreateToolResponseBodyToolsResponse200ApplicationJSONType$inboundSchema = z.nativeEnum(exports.CreateToolResponseBodyToolsResponse200ApplicationJSONType);
/** @internal */
exports.CreateToolResponseBodyToolsResponse200ApplicationJSONType$outboundSchema = exports.CreateToolResponseBodyToolsResponse200ApplicationJSONType$inboundSchema;
/** @internal */
exports.ResponseBodyLanguage$inboundSchema = z.nativeEnum(exports.ResponseBodyLanguage);
/** @internal */
exports.ResponseBodyLanguage$outboundSchema = exports.ResponseBodyLanguage$inboundSchema;
/** @internal */
exports.ResponseBodyCodeTool$inboundSchema = z.object({
    parameters: z.record(z.any()).optional(),
    language: exports.ResponseBodyLanguage$inboundSchema,
    code: z.string(),
});
/** @internal */
exports.ResponseBodyCodeTool$outboundSchema = z.object({
    parameters: z.record(z.any()).optional(),
    language: exports.ResponseBodyLanguage$outboundSchema,
    code: z.string(),
});
function responseBodyCodeToolToJSON(responseBodyCodeTool) {
    return JSON.stringify(exports.ResponseBodyCodeTool$outboundSchema.parse(responseBodyCodeTool));
}
function responseBodyCodeToolFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseBodyCodeTool$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseBodyCodeTool' from JSON`);
}
/** @internal */
exports.ResponseBody5$inboundSchema = z.object({
    _id: z.string().default("01K9QRS4XEDDBZZNVFEB0FJ5EM"),
    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.CreateToolResponseBodyToolsResponse200Status$inboundSchema.default("live"),
    version_hash: z.string().optional(),
    type: exports.CreateToolResponseBodyToolsResponse200ApplicationJSONType$inboundSchema,
    code_tool: z.lazy(() => exports.ResponseBodyCodeTool$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.ResponseBody5$outboundSchema = z.object({
    id: z.string().default("01K9QRS4XEDDBZZNVFEB0FJ5EM"),
    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.CreateToolResponseBodyToolsResponse200Status$outboundSchema.default("live"),
    versionHash: z.string().optional(),
    type: exports.CreateToolResponseBodyToolsResponse200ApplicationJSONType$outboundSchema,
    codeTool: z.lazy(() => exports.ResponseBodyCodeTool$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 responseBody5ToJSON(responseBody5) {
    return JSON.stringify(exports.ResponseBody5$outboundSchema.parse(responseBody5));
}
function responseBody5FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseBody5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseBody5' from JSON`);
}
/** @internal */
exports.CreateToolResponseBodyToolsResponseStatus$inboundSchema = z
    .nativeEnum(exports.CreateToolResponseBodyToolsResponseStatus);
/** @internal */
exports.CreateToolResponseBodyToolsResponseStatus$outboundSchema = exports.CreateToolResponseBodyToolsResponseStatus$inboundSchema;
/** @internal */
exports.CreateToolResponseBodyToolsResponse200Type$inboundSchema = z
    .nativeEnum(exports.CreateToolResponseBodyToolsResponse200Type);
/** @internal */
exports.CreateToolResponseBodyToolsResponse200Type$outboundSchema = exports.CreateToolResponseBodyToolsResponse200Type$inboundSchema;
/** @internal */
exports.ResponseBodyHeaders$inboundSchema = z.object({
    value: z.string(),
    encrypted: z.boolean().default(false),
});
/** @internal */
exports.ResponseBodyHeaders$outboundSchema = z.object({
    value: z.string(),
    encrypted: z.boolean().default(false),
});
function responseBodyHeadersToJSON(responseBodyHeaders) {
    return JSON.stringify(exports.ResponseBodyHeaders$outboundSchema.parse(responseBodyHeaders));
}
function responseBodyHeadersFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseBodyHeaders$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseBodyHeaders' from JSON`);
}
/** @internal */
exports.CreateToolResponseBodyToolsResponse200ApplicationJson4Type$inboundSchema = z.nativeEnum(exports.CreateToolResponseBodyToolsResponse200ApplicationJson4Type);
/** @internal */
exports.CreateToolResponseBodyToolsResponse200ApplicationJson4Type$outboundSchema = exports.CreateToolResponseBodyToolsResponse200ApplicationJson4Type$inboundSchema;
/** @internal */
exports.ResponseBodyInputSchema$inboundSchema = z.object({
    type: exports.CreateToolResponseBodyToolsResponse200ApplicationJson4Type$inboundSchema,
    properties: z.record(z.any()).optional(),
    required: z.array(z.string()).optional(),
});
/** @internal */
exports.ResponseBodyInputSchema$outboundSchema = z.object({
    type: exports.CreateToolResponseBodyToolsResponse200ApplicationJson4Type$outboundSchema,
    properties: z.record(z.any()).optional(),
    required: z.array(z.string()).optional(),
});
function responseBodyInputSchemaToJSON(responseBodyInputSchema) {
    return JSON.stringify(exports.ResponseBodyInputSchema$outboundSchema.parse(responseBodyInputSchema));
}
function responseBodyInputSchemaFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseBodyInputSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseBodyInputSchema' from JSON`);
}
/** @internal */
exports.ResponseBodyConnectionType$inboundSchema = z.nativeEnum(exports.ResponseBodyConnectionType);
/** @internal */
exports.ResponseBodyConnectionType$outboundSchema = exports.ResponseBodyConnectionType$inboundSchema;
/** @internal */
exports.ResponseBodyMcp$inboundSchema = z.object({
    server_id: z.string(),
    tool_name: z.string(),
    server_url: z.string(),
    headers: z.record(z.lazy(() => exports.ResponseBodyHeaders$inboundSchema)).optional(),
    input_schema: z.lazy(() => exports.ResponseBodyInputSchema$inboundSchema),
    connection_type: exports.ResponseBodyConnectionType$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.ResponseBodyMcp$outboundSchema = z.object({
    serverId: z.string(),
    toolName: z.string(),
    serverUrl: z.string(),
    headers: z.record(z.lazy(() => exports.ResponseBodyHeaders$outboundSchema))
        .optional(),
    inputSchema: z.lazy(() => exports.ResponseBodyInputSchema$outboundSchema),
    connectionType: exports.ResponseBodyConnectionType$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 responseBodyMcpToJSON(responseBodyMcp) {
    return JSON.stringify(exports.ResponseBodyMcp$outboundSchema.parse(responseBodyMcp));
}
function responseBodyMcpFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseBodyMcp$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseBodyMcp' from JSON`);
}
/** @internal */
exports.ResponseBody4$inboundSchema = z.object({
    _id: z.string().default("01K9QRS4XC0GHMJA18WCWPW9E9"),
    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.CreateToolResponseBodyToolsResponseStatus$inboundSchema.default("live"),
    version_hash: z.string().optional(),
    type: exports.CreateToolResponseBodyToolsResponse200Type$inboundSchema,
    mcp: z.lazy(() => exports.ResponseBodyMcp$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.ResponseBody4$outboundSchema = z.object({
    id: z.string().default("01K9QRS4XC0GHMJA18WCWPW9E9"),
    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.CreateToolResponseBodyToolsResponseStatus$outboundSchema.default("live"),
    versionHash: z.string().optional(),
    type: exports.CreateToolResponseBodyToolsResponse200Type$outboundSchema,
    mcp: z.lazy(() => exports.ResponseBodyMcp$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 responseBody4ToJSON(responseBody4) {
    return JSON.stringify(exports.ResponseBody4$outboundSchema.parse(responseBody4));
}
function responseBody4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseBody4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseBody4' from JSON`);
}
/** @internal */
exports.CreateToolResponseBodyToolsStatus$inboundSchema = z.nativeEnum(exports.CreateToolResponseBodyToolsStatus);
/** @internal */
exports.CreateToolResponseBodyToolsStatus$outboundSchema = exports.CreateToolResponseBodyToolsStatus$inboundSchema;
/** @internal */
exports.CreateToolResponseBodyToolsResponseType$inboundSchema = z
    .nativeEnum(exports.CreateToolResponseBodyToolsResponseType);
/** @internal */
exports.CreateToolResponseBodyToolsResponseType$outboundSchema = exports.CreateToolResponseBodyToolsResponseType$inboundSchema;
/** @internal */
exports.CreateToolResponseBodyMethod$inboundSchema = z.nativeEnum(exports.CreateToolResponseBodyMethod);
/** @internal */
exports.CreateToolResponseBodyMethod$outboundSchema = exports.CreateToolResponseBodyMethod$inboundSchema;
/** @internal */
exports.ResponseBodyBlueprint$inboundSchema = z.object({
    url: z.string(),
    method: exports.CreateToolResponseBodyMethod$inboundSchema,
    headers: z.record(z.string()).optional(),
    body: z.record(z.any()).optional(),
});
/** @internal */
exports.ResponseBodyBlueprint$outboundSchema = z.object({
    url: z.string(),
    method: exports.CreateToolResponseBodyMethod$outboundSchema,
    headers: z.record(z.string()).optional(),
    body: z.record(z.any()).optional(),
});
function responseBodyBlueprintToJSON(responseBodyBlueprint) {
    return JSON.stringify(exports.ResponseBodyBlueprint$outboundSchema.parse(responseBodyBlueprint));
}
function responseBodyBlueprintFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseBodyBlueprint$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseBodyBlueprint' from JSON`);
}
/** @internal */
exports.CreateToolResponseBodyToolsResponse200ApplicationJson3Type$inboundSchema = z.nativeEnum(exports.CreateToolResponseBodyToolsResponse200ApplicationJson3Type);
/** @internal */
exports.CreateToolResponseBodyToolsResponse200ApplicationJson3Type$outboundSchema = exports.CreateToolResponseBodyToolsResponse200ApplicationJson3Type$inboundSchema;
/** @internal */
exports.ResponseBodyDefaultValue$inboundSchema = z.union([z.string(), z.number(), z.boolean()]);
/** @internal */
exports.ResponseBodyDefaultValue$outboundSchema = z.union([z.string(), z.number(), z.boolean()]);
function responseBodyDefaultValueToJSON(responseBodyDefaultValue) {
    return JSON.stringify(exports.ResponseBodyDefaultValue$outboundSchema.parse(responseBodyDefaultValue));
}
function responseBodyDefaultValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseBodyDefaultValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseBodyDefaultValue' from JSON`);
}
/** @internal */
exports.ResponseBodyArguments$inboundSchema = z.object({
    type: exports.CreateToolResponseBodyToolsResponse200ApplicationJson3Type$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.ResponseBodyArguments$outboundSchema = z.object({
    type: exports.CreateToolResponseBodyToolsResponse200ApplicationJson3Type$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 responseBodyArgumentsToJSON(responseBodyArguments) {
    return JSON.stringify(exports.ResponseBodyArguments$outboundSchema.parse(responseBodyArguments));
}
function responseBodyArgumentsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseBodyArguments$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseBodyArguments' from JSON`);
}
/** @internal */
exports.CreateToolResponseBodyHttp$inboundSchema = z.object({
    blueprint: z.lazy(() => exports.ResponseBodyBlueprint$inboundSchema),
    arguments: z.record(z.lazy(() => exports.ResponseBodyArguments$inboundSchema))
        .optional(),
});
/** @internal */
exports.CreateToolResponseBodyHttp$outboundSchema = z.object({
    blueprint: z.lazy(() => exports.ResponseBodyBlueprint$outboundSchema),
    arguments: z.record(z.lazy(() => exports.ResponseBodyArguments$outboundSchema))
        .optional(),
});
function createToolResponseBodyHttpToJSON(createToolResponseBodyHttp) {
    return JSON.stringify(exports.CreateToolResponseBodyHttp$outboundSchema.parse(createToolResponseBodyHttp));
}
function createToolResponseBodyHttpFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateToolResponseBodyHttp$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateToolResponseBodyHttp' from JSON`);
}
/** @internal */
exports.ResponseBody3$inboundSchema = z.object({
    _id: z.string().default("01K9QRS4XB0SM7J12J5TR52X4F"),
    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.CreateToolResponseBodyToolsStatus$inboundSchema.default("live"),
    version_hash: z.string().optional(),
    type: exports.CreateToolResponseBodyToolsResponseType$inboundSchema,
    http: z.lazy(() => exports.CreateToolResponseBodyHttp$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.ResponseBody3$outboundSchema = z.object({
    id: z.string().default("01K9QRS4XB0SM7J12J5TR52X4F"),
    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.CreateToolResponseBodyToolsStatus$outboundSchema.default("live"),
    versionHash: z.string().optional(),
    type: exports.CreateToolResponseBodyToolsResponseType$outboundSchema,
    http: z.lazy(() => exports.CreateToolResponseBodyHttp$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 responseBody3ToJSON(responseBody3) {
    return JSON.stringify(exports.ResponseBody3$outboundSchema.parse(responseBody3));
}
function responseBody3FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseBody3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseBody3' from JSON`);
}
/** @internal */
exports.CreateToolResponseBodyStatus$inboundSchema = z.nativeEnum(exports.CreateToolResponseBodyStatus);
/** @internal */
exports.CreateToolResponseBodyStatus$outboundSchema = exports.CreateToolResponseBodyStatus$inboundSchema;
/** @internal */
exports.CreateToolResponseBodyToolsType$inboundSchema = z.nativeEnum(exports.CreateToolResponseBodyToolsType);
/** @internal */
exports.CreateToolResponseBodyToolsType$outboundSchema = exports.CreateToolResponseBodyToolsType$inboundSchema;
/** @internal */
exports.ResponseBodyJsonSchema$inboundSchema = z.object({
    name: z.string(),
    description: z.string().optional(),
    schema: z.record(z.any()),
    strict: z.boolean().optional(),
});
/** @internal */
exports.ResponseBodyJsonSchema$outboundSchema = z.object({
    name: z.string(),
    description: z.string().optional(),
    schema: z.record(z.any()),
    strict: z.boolean().optional(),
});
function responseBodyJsonSchemaToJSON(responseBodyJsonSchema) {
    return JSON.stringify(exports.ResponseBodyJsonSchema$outboundSchema.parse(responseBodyJsonSchema));
}
function responseBodyJsonSchemaFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseBodyJsonSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseBodyJsonSchema' from JSON`);
}
/** @internal */
exports.ResponseBody2$inboundSchema = z.object({
    _id: z.string().default("01K9QRS4X98Z5CPDZ10BYBHQFT"),
    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.CreateToolResponseBodyStatus$inboundSchema.default("live"),
    version_hash: z.string().optional(),
    type: exports.CreateToolResponseBodyToolsType$inboundSchema,
    json_schema: z.lazy(() => exports.ResponseBodyJsonSchema$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.ResponseBody2$outboundSchema = z.object({
    id: z.string().default("01K9QRS4X98Z5CPDZ10BYBHQFT"),
    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.CreateToolResponseBodyStatus$outboundSchema.default("live"),
    versionHash: z.string().optional(),
    type: exports.CreateToolResponseBodyToolsType$outboundSchema,
    jsonSchema: z.lazy(() => exports.ResponseBodyJsonSchema$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 responseBody2ToJSON(responseBody2) {
    return JSON.stringify(exports.ResponseBody2$outboundSchema.parse(responseBody2));
}
function responseBody2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseBody2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseBody2' from JSON`);
}
/** @internal */
exports.ResponseBodyStatus$inboundSchema = z.nativeEnum(exports.ResponseBodyStatus);
/** @internal */
exports.ResponseBodyStatus$outboundSchema = exports.ResponseBodyStatus$inboundSchema;
/** @internal */
exports.CreateToolResponseBodyType$inboundSchema = z.nativeEnum(exports.CreateToolResponseBodyType);
/** @internal */
exports.CreateToolResponseBodyType$outboundSchema = exports.CreateToolResponseBodyType$inboundSchema;
/** @internal */
exports.CreateToolResponseBodyFunction$inboundSchema = z.object({
    name: z.string(),
    description: z.string().optional(),
    strict: z.boolean().optional(),
    parameters: z.record(z.any()).optional(),
});
/** @internal */
exports.CreateToolResponseBodyFunction$outboundSchema = z.object({
    name: z.string(),
    description: z.string().optional(),
    strict: z.boolean().optional(),
    parameters: z.record(z.any()).optional(),
});
function createToolResponseBodyFunctionToJSON(createToolResponseBodyFunction) {
    return JSON.stringify(exports.CreateToolResponseBodyFunction$outboundSchema.parse(createToolResponseBodyFunction));
}
function createToolResponseBodyFunctionFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateToolResponseBodyFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateToolResponseBodyFunction' from JSON`);
}
/** @internal */
exports.ResponseBody1$inboundSchema = z.object({
    _id: z.string().default("01K9QRS4X7A1XR5Z5NPNBXP2GR"),
    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.ResponseBodyStatus$inboundSchema.default("live"),
    version_hash: z.string().optional(),
    type: exports.CreateToolResponseBodyType$inboundSchema,
    function: z.lazy(() => exports.CreateToolResponseBodyFunction$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.ResponseBody1$outboundSchema = z.object({
    id: z.string().default("01K9QRS4X7A1XR5Z5NPNBXP2GR"),
    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.ResponseBodyStatus$outboundSchema.default("live"),
    versionHash: z.string().optional(),
    type: exports.CreateToolResponseBodyType$outboundSchema,
    function: z.lazy(() => exports.CreateToolResponseBodyFunction$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 responseBody1ToJSON(responseBody1) {
    return JSON.stringify(exports.ResponseBody1$outboundSchema.parse(responseBody1));
}
function responseBody1FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseBody1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseBody1' from JSON`);
}
/** @internal */
exports.CreateToolResponseBody$inboundSchema = z.union([
    z.lazy(() => exports.ResponseBody1$inboundSchema),
    z.lazy(() => exports.ResponseBody2$inboundSchema),
    z.lazy(() => exports.ResponseBody3$inboundSchema),
    z.lazy(() => exports.ResponseBody4$inboundSchema),
    z.lazy(() => exports.ResponseBody5$inboundSchema),
]);
/** @internal */
exports.CreateToolResponseBody$outboundSchema = z.union([
    z.lazy(() => exports.ResponseBody1$outboundSchema),
    z.lazy(() => exports.ResponseBody2$outboundSchema),
    z.lazy(() => exports.ResponseBody3$outboundSchema),
    z.lazy(() => exports.ResponseBody4$outboundSchema),
    z.lazy(() => exports.ResponseBody5$outboundSchema),
]);
function createToolResponseBodyToJSON(createToolResponseBody) {
    return JSON.stringify(exports.CreateToolResponseBody$outboundSchema.parse(createToolResponseBody));
}
function createToolResponseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateToolResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateToolResponseBody' from JSON`);
}
//# sourceMappingURL=createtool.js.map