"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.UpdateToolRequestBodyToolsRequest4Status$outboundSchema = exports.UpdateToolRequestBodyToolsRequest4Status$inboundSchema = exports.UpdateCodeExecutionTool$outboundSchema = exports.UpdateCodeExecutionTool$inboundSchema = exports.UpdateToolRequestBodyCodeTool$outboundSchema = exports.UpdateToolRequestBodyCodeTool$inboundSchema = exports.UpdateToolRequestBodyLanguage$outboundSchema = exports.UpdateToolRequestBodyLanguage$inboundSchema = exports.UpdateToolRequestBodyToolsParameters$outboundSchema = exports.UpdateToolRequestBodyToolsParameters$inboundSchema = exports.UpdateToolRequestBodyToolsRequest5CodeToolType$outboundSchema = exports.UpdateToolRequestBodyToolsRequest5CodeToolType$inboundSchema = exports.UpdateToolRequestBodyToolsRequest5Type$outboundSchema = exports.UpdateToolRequestBodyToolsRequest5Type$inboundSchema = exports.UpdateToolRequestBodyToolsRequest5Status$outboundSchema = exports.UpdateToolRequestBodyToolsRequest5Status$inboundSchema = exports.UpdateToolResponseBodyToolsResponse200ApplicationJson1Type = 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.UpdateToolResponseBodyToolsResponse200ApplicationJson5Type = exports.UpdateToolResponseBodyToolsResponse200ApplicationJSONType = exports.UpdateToolResponseBodyToolsResponse200ApplicationJSONStatus = exports.UpdateToolRequestBodyToolsRequest1Type = exports.UpdateToolRequestBodyType = exports.UpdateToolRequestBodyStatus = exports.UpdateToolRequestBodyToolsType = exports.UpdateToolRequestBodyToolsStatus = exports.UpdateToolRequestBodyToolsRequest3Type = exports.UpdateToolRequestBodyMethod = exports.UpdateToolRequestBodyToolsRequestType = exports.UpdateToolRequestBodyToolsRequestStatus = exports.UpdateToolRequestBodyConnectionType = exports.UpdateToolRequestBodyToolsRequest4McpType = exports.UpdateToolRequestBodyToolsRequest4Type = exports.UpdateToolRequestBodyToolsRequest4Status = exports.UpdateToolRequestBodyLanguage = exports.UpdateToolRequestBodyToolsRequest5CodeToolType = exports.UpdateToolRequestBodyToolsRequest5Type = exports.UpdateToolRequestBodyToolsRequest5Status = void 0;
exports.UpdateToolRequestBodyStatus$outboundSchema = exports.UpdateToolRequestBodyStatus$inboundSchema = exports.UpdateJSONSchemaTool$outboundSchema = exports.UpdateJSONSchemaTool$inboundSchema = exports.UpdateToolRequestBodyJsonSchema$outboundSchema = exports.UpdateToolRequestBodyJsonSchema$inboundSchema = exports.UpdateToolRequestBodySchema$outboundSchema = exports.UpdateToolRequestBodySchema$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.UpdateToolRequestBodyToolsHeaders$outboundSchema = exports.UpdateToolRequestBodyToolsHeaders$inboundSchema = exports.UpdateToolHeaders2$outboundSchema = exports.UpdateToolHeaders2$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.UpdateToolRequestBodyMcp$outboundSchema = exports.UpdateToolRequestBodyMcp$inboundSchema = exports.UpdateToolRequestBodyConnectionType$outboundSchema = exports.UpdateToolRequestBodyConnectionType$inboundSchema = exports.RequestBodyTools$outboundSchema = exports.RequestBodyTools$inboundSchema = exports.UpdateToolRequestBodyToolsSchema$outboundSchema = exports.UpdateToolRequestBodyToolsSchema$inboundSchema = exports.UpdateToolRequestBodyToolsRequest4McpType$outboundSchema = exports.UpdateToolRequestBodyToolsRequest4McpType$inboundSchema = exports.UpdateToolRequestBodyHeaders$outboundSchema = exports.UpdateToolRequestBodyHeaders$inboundSchema = exports.UpdateToolRequestBodyToolsRequest4Type$outboundSchema = exports.UpdateToolRequestBodyToolsRequest4Type$inboundSchema = void 0;
exports.UpdateToolResponseBodyToolsResponseType$outboundSchema = exports.UpdateToolResponseBodyToolsResponseType$inboundSchema = exports.UpdateToolResponseBodyToolsResponseStatus$outboundSchema = exports.UpdateToolResponseBodyToolsResponseStatus$inboundSchema = exports.UpdateToolResponseBodyMCPTool$outboundSchema = exports.UpdateToolResponseBodyMCPTool$inboundSchema = exports.UpdateToolResponseBodyMcp$outboundSchema = exports.UpdateToolResponseBodyMcp$inboundSchema = exports.UpdateToolResponseBodyConnectionType$outboundSchema = exports.UpdateToolResponseBodyConnectionType$inboundSchema = exports.UpdateToolResponseBodyTools$outboundSchema = exports.UpdateToolResponseBodyTools$inboundSchema = exports.UpdateToolResponseBodyToolsSchema$outboundSchema = exports.UpdateToolResponseBodyToolsSchema$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.UpdateToolResponseBodyCodeExecutionTool$outboundSchema = exports.UpdateToolResponseBodyCodeExecutionTool$inboundSchema = exports.UpdateToolResponseBodyCodeTool$outboundSchema = exports.UpdateToolResponseBodyCodeTool$inboundSchema = exports.UpdateToolResponseBodyLanguage$outboundSchema = exports.UpdateToolResponseBodyLanguage$inboundSchema = exports.UpdateToolResponseBodyToolsParameters$outboundSchema = exports.UpdateToolResponseBodyToolsParameters$inboundSchema = exports.UpdateToolResponseBodyToolsResponse200ApplicationJson5Type$outboundSchema = exports.UpdateToolResponseBodyToolsResponse200ApplicationJson5Type$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.UpdateToolRequestBodyParameters$outboundSchema = exports.UpdateToolRequestBodyParameters$inboundSchema = exports.UpdateToolRequestBodyToolsRequest1Type$outboundSchema = exports.UpdateToolRequestBodyToolsRequest1Type$inboundSchema = exports.UpdateToolRequestBodyType$outboundSchema = exports.UpdateToolRequestBodyType$inboundSchema = void 0;
exports.UpdateToolResponseBody$outboundSchema = exports.UpdateToolResponseBody$inboundSchema = exports.UpdateToolResponseBodyFunctionTool$outboundSchema = exports.UpdateToolResponseBodyFunctionTool$inboundSchema = exports.UpdateToolResponseBodyFunction$outboundSchema = exports.UpdateToolResponseBodyFunction$inboundSchema = exports.UpdateToolResponseBodyParameters$outboundSchema = exports.UpdateToolResponseBodyParameters$inboundSchema = exports.UpdateToolResponseBodyToolsResponse200ApplicationJson1Type$outboundSchema = exports.UpdateToolResponseBodyToolsResponse200ApplicationJson1Type$inboundSchema = exports.UpdateToolResponseBodyType$outboundSchema = exports.UpdateToolResponseBodyType$inboundSchema = exports.UpdateToolResponseBodyStatus$outboundSchema = exports.UpdateToolResponseBodyStatus$inboundSchema = exports.UpdateToolResponseBodyJSONSchemaTool$outboundSchema = exports.UpdateToolResponseBodyJSONSchemaTool$inboundSchema = exports.UpdateToolResponseBodyJsonSchema$outboundSchema = exports.UpdateToolResponseBodyJsonSchema$inboundSchema = exports.UpdateToolResponseBodySchema$outboundSchema = exports.UpdateToolResponseBodySchema$inboundSchema = exports.UpdateToolResponseBodyToolsType$outboundSchema = exports.UpdateToolResponseBodyToolsType$inboundSchema = exports.UpdateToolResponseBodyToolsStatus$outboundSchema = exports.UpdateToolResponseBodyToolsStatus$inboundSchema = exports.UpdateToolResponseBodyHTTPTool$outboundSchema = exports.UpdateToolResponseBodyHTTPTool$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.UpdateToolResponseBodyToolsHeaders$outboundSchema = exports.UpdateToolResponseBodyToolsHeaders$inboundSchema = exports.UpdateToolHeadersTools2$outboundSchema = exports.UpdateToolHeadersTools2$inboundSchema = exports.UpdateToolResponseBodyMethod$outboundSchema = exports.UpdateToolResponseBodyMethod$inboundSchema = void 0;
exports.updateToolRequestBodyToolsParametersToJSON = updateToolRequestBodyToolsParametersToJSON;
exports.updateToolRequestBodyToolsParametersFromJSON = updateToolRequestBodyToolsParametersFromJSON;
exports.updateToolRequestBodyCodeToolToJSON = updateToolRequestBodyCodeToolToJSON;
exports.updateToolRequestBodyCodeToolFromJSON = updateToolRequestBodyCodeToolFromJSON;
exports.updateCodeExecutionToolToJSON = updateCodeExecutionToolToJSON;
exports.updateCodeExecutionToolFromJSON = updateCodeExecutionToolFromJSON;
exports.updateToolRequestBodyHeadersToJSON = updateToolRequestBodyHeadersToJSON;
exports.updateToolRequestBodyHeadersFromJSON = updateToolRequestBodyHeadersFromJSON;
exports.updateToolRequestBodyToolsSchemaToJSON = updateToolRequestBodyToolsSchemaToJSON;
exports.updateToolRequestBodyToolsSchemaFromJSON = updateToolRequestBodyToolsSchemaFromJSON;
exports.requestBodyToolsToJSON = requestBodyToolsToJSON;
exports.requestBodyToolsFromJSON = requestBodyToolsFromJSON;
exports.updateToolRequestBodyMcpToJSON = updateToolRequestBodyMcpToJSON;
exports.updateToolRequestBodyMcpFromJSON = updateToolRequestBodyMcpFromJSON;
exports.updateMCPToolToJSON = updateMCPToolToJSON;
exports.updateMCPToolFromJSON = updateMCPToolFromJSON;
exports.updateToolHeaders2ToJSON = updateToolHeaders2ToJSON;
exports.updateToolHeaders2FromJSON = updateToolHeaders2FromJSON;
exports.updateToolRequestBodyToolsHeadersToJSON = updateToolRequestBodyToolsHeadersToJSON;
exports.updateToolRequestBodyToolsHeadersFromJSON = updateToolRequestBodyToolsHeadersFromJSON;
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.updateToolRequestBodySchemaToJSON = updateToolRequestBodySchemaToJSON;
exports.updateToolRequestBodySchemaFromJSON = updateToolRequestBodySchemaFromJSON;
exports.updateToolRequestBodyJsonSchemaToJSON = updateToolRequestBodyJsonSchemaToJSON;
exports.updateToolRequestBodyJsonSchemaFromJSON = updateToolRequestBodyJsonSchemaFromJSON;
exports.updateJSONSchemaToolToJSON = updateJSONSchemaToolToJSON;
exports.updateJSONSchemaToolFromJSON = updateJSONSchemaToolFromJSON;
exports.updateToolRequestBodyParametersToJSON = updateToolRequestBodyParametersToJSON;
exports.updateToolRequestBodyParametersFromJSON = updateToolRequestBodyParametersFromJSON;
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.updateToolResponseBodyToolsParametersToJSON = updateToolResponseBodyToolsParametersToJSON;
exports.updateToolResponseBodyToolsParametersFromJSON = updateToolResponseBodyToolsParametersFromJSON;
exports.updateToolResponseBodyCodeToolToJSON = updateToolResponseBodyCodeToolToJSON;
exports.updateToolResponseBodyCodeToolFromJSON = updateToolResponseBodyCodeToolFromJSON;
exports.updateToolResponseBodyCodeExecutionToolToJSON = updateToolResponseBodyCodeExecutionToolToJSON;
exports.updateToolResponseBodyCodeExecutionToolFromJSON = updateToolResponseBodyCodeExecutionToolFromJSON;
exports.updateToolResponseBodyHeadersToJSON = updateToolResponseBodyHeadersToJSON;
exports.updateToolResponseBodyHeadersFromJSON = updateToolResponseBodyHeadersFromJSON;
exports.updateToolResponseBodyToolsSchemaToJSON = updateToolResponseBodyToolsSchemaToJSON;
exports.updateToolResponseBodyToolsSchemaFromJSON = updateToolResponseBodyToolsSchemaFromJSON;
exports.updateToolResponseBodyToolsToJSON = updateToolResponseBodyToolsToJSON;
exports.updateToolResponseBodyToolsFromJSON = updateToolResponseBodyToolsFromJSON;
exports.updateToolResponseBodyMcpToJSON = updateToolResponseBodyMcpToJSON;
exports.updateToolResponseBodyMcpFromJSON = updateToolResponseBodyMcpFromJSON;
exports.updateToolResponseBodyMCPToolToJSON = updateToolResponseBodyMCPToolToJSON;
exports.updateToolResponseBodyMCPToolFromJSON = updateToolResponseBodyMCPToolFromJSON;
exports.updateToolHeadersTools2ToJSON = updateToolHeadersTools2ToJSON;
exports.updateToolHeadersTools2FromJSON = updateToolHeadersTools2FromJSON;
exports.updateToolResponseBodyToolsHeadersToJSON = updateToolResponseBodyToolsHeadersToJSON;
exports.updateToolResponseBodyToolsHeadersFromJSON = updateToolResponseBodyToolsHeadersFromJSON;
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.updateToolResponseBodyHTTPToolToJSON = updateToolResponseBodyHTTPToolToJSON;
exports.updateToolResponseBodyHTTPToolFromJSON = updateToolResponseBodyHTTPToolFromJSON;
exports.updateToolResponseBodySchemaToJSON = updateToolResponseBodySchemaToJSON;
exports.updateToolResponseBodySchemaFromJSON = updateToolResponseBodySchemaFromJSON;
exports.updateToolResponseBodyJsonSchemaToJSON = updateToolResponseBodyJsonSchemaToJSON;
exports.updateToolResponseBodyJsonSchemaFromJSON = updateToolResponseBodyJsonSchemaFromJSON;
exports.updateToolResponseBodyJSONSchemaToolToJSON = updateToolResponseBodyJSONSchemaToolToJSON;
exports.updateToolResponseBodyJSONSchemaToolFromJSON = updateToolResponseBodyJSONSchemaToolFromJSON;
exports.updateToolResponseBodyParametersToJSON = updateToolResponseBodyParametersToJSON;
exports.updateToolResponseBodyParametersFromJSON = updateToolResponseBodyParametersFromJSON;
exports.updateToolResponseBodyFunctionToJSON = updateToolResponseBodyFunctionToJSON;
exports.updateToolResponseBodyFunctionFromJSON = updateToolResponseBodyFunctionFromJSON;
exports.updateToolResponseBodyFunctionToolToJSON = updateToolResponseBodyFunctionToolToJSON;
exports.updateToolResponseBodyFunctionToolFromJSON = updateToolResponseBodyFunctionToolFromJSON;
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",
};
/**
 * The type must be "object"
 */
exports.UpdateToolRequestBodyToolsRequest5CodeToolType = {
    Object: "object",
};
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.UpdateToolRequestBodyConnectionType = {
    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 type must be "object"
 */
exports.UpdateToolRequestBodyToolsRequest1Type = {
    Object: "object",
};
/**
 * 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",
};
/**
 * The type must be "object"
 */
exports.UpdateToolResponseBodyToolsResponse200ApplicationJson5Type = {
    Object: "object",
};
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",
};
/**
 * The type must be "object"
 */
exports.UpdateToolResponseBodyToolsResponse200ApplicationJson1Type = {
    Object: "object",
};
/** @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.UpdateToolRequestBodyToolsRequest5CodeToolType$inboundSchema = z
    .nativeEnum(exports.UpdateToolRequestBodyToolsRequest5CodeToolType);
/** @internal */
exports.UpdateToolRequestBodyToolsRequest5CodeToolType$outboundSchema = exports.UpdateToolRequestBodyToolsRequest5CodeToolType$inboundSchema;
/** @internal */
exports.UpdateToolRequestBodyToolsParameters$inboundSchema = (0, schemas_js_1.collectExtraKeys)(z.object({
    type: exports.UpdateToolRequestBodyToolsRequest5CodeToolType$inboundSchema,
    properties: z.record(z.any()),
    required: z.array(z.string()),
}).catchall(z.any()), "additionalProperties", true);
/** @internal */
exports.UpdateToolRequestBodyToolsParameters$outboundSchema = z.object({
    type: exports.UpdateToolRequestBodyToolsRequest5CodeToolType$outboundSchema,
    properties: z.record(z.any()),
    required: z.array(z.string()),
    additionalProperties: z.record(z.any()).optional(),
}).transform((v) => {
    return {
        ...v.additionalProperties,
        ...(0, primitives_js_1.remap)(v, {
            additionalProperties: null,
        }),
    };
});
function updateToolRequestBodyToolsParametersToJSON(updateToolRequestBodyToolsParameters) {
    return JSON.stringify(exports.UpdateToolRequestBodyToolsParameters$outboundSchema.parse(updateToolRequestBodyToolsParameters));
}
function updateToolRequestBodyToolsParametersFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateToolRequestBodyToolsParameters$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateToolRequestBodyToolsParameters' from JSON`);
}
/** @internal */
exports.UpdateToolRequestBodyLanguage$inboundSchema = z.nativeEnum(exports.UpdateToolRequestBodyLanguage);
/** @internal */
exports.UpdateToolRequestBodyLanguage$outboundSchema = exports.UpdateToolRequestBodyLanguage$inboundSchema;
/** @internal */
exports.UpdateToolRequestBodyCodeTool$inboundSchema = z.object({
    parameters: z.lazy(() => exports.UpdateToolRequestBodyToolsParameters$inboundSchema)
        .optional(),
    language: exports.UpdateToolRequestBodyLanguage$inboundSchema,
    code: z.string(),
});
/** @internal */
exports.UpdateToolRequestBodyCodeTool$outboundSchema = z.object({
    parameters: z.lazy(() => exports.UpdateToolRequestBodyToolsParameters$outboundSchema)
        .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(),
    key: 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(),
    key: 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.UpdateToolRequestBodyHeaders$inboundSchema = z.object({
    value: z.string(),
    encrypted: z.boolean().default(false),
});
/** @internal */
exports.UpdateToolRequestBodyHeaders$outboundSchema = z.object({
    value: z.string(),
    encrypted: z.boolean().default(false),
});
function updateToolRequestBodyHeadersToJSON(updateToolRequestBodyHeaders) {
    return JSON.stringify(exports.UpdateToolRequestBodyHeaders$outboundSchema.parse(updateToolRequestBodyHeaders));
}
function updateToolRequestBodyHeadersFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateToolRequestBodyHeaders$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateToolRequestBodyHeaders' from JSON`);
}
/** @internal */
exports.UpdateToolRequestBodyToolsRequest4McpType$inboundSchema = z
    .nativeEnum(exports.UpdateToolRequestBodyToolsRequest4McpType);
/** @internal */
exports.UpdateToolRequestBodyToolsRequest4McpType$outboundSchema = exports.UpdateToolRequestBodyToolsRequest4McpType$inboundSchema;
/** @internal */
exports.UpdateToolRequestBodyToolsSchema$inboundSchema = z.object({
    type: exports.UpdateToolRequestBodyToolsRequest4McpType$inboundSchema,
    properties: z.record(z.any()).optional(),
    required: z.array(z.string()).optional(),
});
/** @internal */
exports.UpdateToolRequestBodyToolsSchema$outboundSchema = z.object({
    type: exports.UpdateToolRequestBodyToolsRequest4McpType$outboundSchema,
    properties: z.record(z.any()).optional(),
    required: z.array(z.string()).optional(),
});
function updateToolRequestBodyToolsSchemaToJSON(updateToolRequestBodyToolsSchema) {
    return JSON.stringify(exports.UpdateToolRequestBodyToolsSchema$outboundSchema.parse(updateToolRequestBodyToolsSchema));
}
function updateToolRequestBodyToolsSchemaFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateToolRequestBodyToolsSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateToolRequestBodyToolsSchema' from JSON`);
}
/** @internal */
exports.RequestBodyTools$inboundSchema = z.object({
    id: z.string().default("01KAXX9J7YV9PYF238NPMWVYPT"),
    name: z.string(),
    description: z.string().optional(),
    schema: z.lazy(() => exports.UpdateToolRequestBodyToolsSchema$inboundSchema),
});
/** @internal */
exports.RequestBodyTools$outboundSchema = z.object({
    id: z.string().default("01KAXX9J7YV9PYF238NPMWVYPT"),
    name: z.string(),
    description: z.string().optional(),
    schema: z.lazy(() => exports.UpdateToolRequestBodyToolsSchema$outboundSchema),
});
function requestBodyToolsToJSON(requestBodyTools) {
    return JSON.stringify(exports.RequestBodyTools$outboundSchema.parse(requestBodyTools));
}
function requestBodyToolsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RequestBodyTools$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RequestBodyTools' from JSON`);
}
/** @internal */
exports.UpdateToolRequestBodyConnectionType$inboundSchema = z.nativeEnum(exports.UpdateToolRequestBodyConnectionType);
/** @internal */
exports.UpdateToolRequestBodyConnectionType$outboundSchema = exports.UpdateToolRequestBodyConnectionType$inboundSchema;
/** @internal */
exports.UpdateToolRequestBodyMcp$inboundSchema = z.object({
    server_url: z.string().optional(),
    headers: z.record(z.lazy(() => exports.UpdateToolRequestBodyHeaders$inboundSchema))
        .optional(),
    tools: z.array(z.lazy(() => exports.RequestBodyTools$inboundSchema)).optional(),
    connection_type: exports.UpdateToolRequestBodyConnectionType$inboundSchema.optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "server_url": "serverUrl",
        "connection_type": "connectionType",
    });
});
/** @internal */
exports.UpdateToolRequestBodyMcp$outboundSchema = z.object({
    serverUrl: z.string().optional(),
    headers: z.record(z.lazy(() => exports.UpdateToolRequestBodyHeaders$outboundSchema))
        .optional(),
    tools: z.array(z.lazy(() => exports.RequestBodyTools$outboundSchema)).optional(),
    connectionType: exports.UpdateToolRequestBodyConnectionType$outboundSchema.optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        serverUrl: "server_url",
        connectionType: "connection_type",
    });
});
function updateToolRequestBodyMcpToJSON(updateToolRequestBodyMcp) {
    return JSON.stringify(exports.UpdateToolRequestBodyMcp$outboundSchema.parse(updateToolRequestBodyMcp));
}
function updateToolRequestBodyMcpFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateToolRequestBodyMcp$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateToolRequestBodyMcp' 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.UpdateToolRequestBodyMcp$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.UpdateToolRequestBodyMcp$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.UpdateToolHeaders2$inboundSchema = z.object({
    value: z.string(),
    encrypted: z.boolean().default(false),
});
/** @internal */
exports.UpdateToolHeaders2$outboundSchema = z.object({
    value: z.string(),
    encrypted: z.boolean().default(false),
});
function updateToolHeaders2ToJSON(updateToolHeaders2) {
    return JSON.stringify(exports.UpdateToolHeaders2$outboundSchema.parse(updateToolHeaders2));
}
function updateToolHeaders2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateToolHeaders2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateToolHeaders2' from JSON`);
}
/** @internal */
exports.UpdateToolRequestBodyToolsHeaders$inboundSchema = z.union([z.lazy(() => exports.UpdateToolHeaders2$inboundSchema), z.string()]);
/** @internal */
exports.UpdateToolRequestBodyToolsHeaders$outboundSchema = z.union([z.lazy(() => exports.UpdateToolHeaders2$outboundSchema), z.string()]);
function updateToolRequestBodyToolsHeadersToJSON(updateToolRequestBodyToolsHeaders) {
    return JSON.stringify(exports.UpdateToolRequestBodyToolsHeaders$outboundSchema.parse(updateToolRequestBodyToolsHeaders));
}
function updateToolRequestBodyToolsHeadersFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateToolRequestBodyToolsHeaders$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateToolRequestBodyToolsHeaders' from JSON`);
}
/** @internal */
exports.UpdateToolRequestBodyBlueprint$inboundSchema = z.object({
    url: z.string(),
    method: exports.UpdateToolRequestBodyMethod$inboundSchema,
    headers: z.record(z.union([z.lazy(() => exports.UpdateToolHeaders2$inboundSchema), 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.union([z.lazy(() => exports.UpdateToolHeaders2$outboundSchema), 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.UpdateToolRequestBodySchema$inboundSchema = (0, schemas_js_1.collectExtraKeys)(z.object({
    type: z.string(),
    properties: z.record(z.any()),
    required: z.array(z.string()),
}).catchall(z.any()), "additionalProperties", true);
/** @internal */
exports.UpdateToolRequestBodySchema$outboundSchema = z.object({
    type: z.string(),
    properties: z.record(z.any()),
    required: z.array(z.string()),
    additionalProperties: z.record(z.any()).optional(),
}).transform((v) => {
    return {
        ...v.additionalProperties,
        ...(0, primitives_js_1.remap)(v, {
            additionalProperties: null,
        }),
    };
});
function updateToolRequestBodySchemaToJSON(updateToolRequestBodySchema) {
    return JSON.stringify(exports.UpdateToolRequestBodySchema$outboundSchema.parse(updateToolRequestBodySchema));
}
function updateToolRequestBodySchemaFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateToolRequestBodySchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateToolRequestBodySchema' from JSON`);
}
/** @internal */
exports.UpdateToolRequestBodyJsonSchema$inboundSchema = z.object({
    name: z.string(),
    description: z.string(),
    schema: z.lazy(() => exports.UpdateToolRequestBodySchema$inboundSchema),
    strict: z.boolean().optional(),
});
/** @internal */
exports.UpdateToolRequestBodyJsonSchema$outboundSchema = z.object({
    name: z.string(),
    description: z.string(),
    schema: z.lazy(() => exports.UpdateToolRequestBodySchema$outboundSchema),
    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.UpdateToolRequestBodyToolsRequest1Type$inboundSchema = z.nativeEnum(exports.UpdateToolRequestBodyToolsRequest1Type);
/** @internal */
exports.UpdateToolRequestBodyToolsRequest1Type$outboundSchema = exports.UpdateToolRequestBodyToolsRequest1Type$inboundSchema;
/** @internal */
exports.UpdateToolRequestBodyParameters$inboundSchema = (0, schemas_js_1.collectExtraKeys)(z.object({
    type: exports.UpdateToolRequestBodyToolsRequest1Type$inboundSchema,
    properties: z.record(z.any()),
    required: z.array(z.string()),
}).catchall(z.any()), "additionalProperties", true);
/** @internal */
exports.UpdateToolRequestBodyParameters$outboundSchema = z.object({
    type: exports.UpdateToolRequestBodyToolsRequest1Type$outboundSchema,
    properties: z.record(z.any()),
    required: z.array(z.string()),
    additionalProperties: z.record(z.any()).optional(),
}).transform((v) => {
    return {
        ...v.additionalProperties,
        ...(0, primitives_js_1.remap)(v, {
            additionalProperties: null,
        }),
    };
});
function updateToolRequestBodyParametersToJSON(updateToolRequestBodyParameters) {
    return JSON.stringify(exports.UpdateToolRequestBodyParameters$outboundSchema.parse(updateToolRequestBodyParameters));
}
function updateToolRequestBodyParametersFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateToolRequestBodyParameters$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateToolRequestBodyParameters' from JSON`);
}
/** @internal */
exports.UpdateToolRequestBodyFunction$inboundSchema = z.object({
    name: z.string(),
    description: z.string().optional(),
    strict: z.boolean().optional(),
    parameters: z.lazy(() => exports.UpdateToolRequestBodyParameters$inboundSchema)
        .optional(),
});
/** @internal */
exports.UpdateToolRequestBodyFunction$outboundSchema = z.object({
    name: z.string(),
    description: z.string().optional(),
    strict: z.boolean().optional(),
    parameters: z.lazy(() => exports.UpdateToolRequestBodyParameters$outboundSchema)
        .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.UpdateToolResponseBodyToolsResponse200ApplicationJson5Type$inboundSchema = z.nativeEnum(exports.UpdateToolResponseBodyToolsResponse200ApplicationJson5Type);
/** @internal */
exports.UpdateToolResponseBodyToolsResponse200ApplicationJson5Type$outboundSchema = exports.UpdateToolResponseBodyToolsResponse200ApplicationJson5Type$inboundSchema;
/** @internal */
exports.UpdateToolResponseBodyToolsParameters$inboundSchema = (0, schemas_js_1.collectExtraKeys)(z.object({
    type: exports.UpdateToolResponseBodyToolsResponse200ApplicationJson5Type$inboundSchema,
    properties: z.record(z.any()),
    required: z.array(z.string()),
}).catchall(z.any()), "additionalProperties", true);
/** @internal */
exports.UpdateToolResponseBodyToolsParameters$outboundSchema = z.object({
    type: exports.UpdateToolResponseBodyToolsResponse200ApplicationJson5Type$outboundSchema,
    properties: z.record(z.any()),
    required: z.array(z.string()),
    additionalProperties: z.record(z.any()).optional(),
}).transform((v) => {
    return {
        ...v.additionalProperties,
        ...(0, primitives_js_1.remap)(v, {
            additionalProperties: null,
        }),
    };
});
function updateToolResponseBodyToolsParametersToJSON(updateToolResponseBodyToolsParameters) {
    return JSON.stringify(exports.UpdateToolResponseBodyToolsParameters$outboundSchema.parse(updateToolResponseBodyToolsParameters));
}
function updateToolResponseBodyToolsParametersFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateToolResponseBodyToolsParameters$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateToolResponseBodyToolsParameters' from JSON`);
}
/** @internal */
exports.UpdateToolResponseBodyLanguage$inboundSchema = z.nativeEnum(exports.UpdateToolResponseBodyLanguage);
/** @internal */
exports.UpdateToolResponseBodyLanguage$outboundSchema = exports.UpdateToolResponseBodyLanguage$inboundSchema;
/** @internal */
exports.UpdateToolResponseBodyCodeTool$inboundSchema = z.object({
    parameters: z.lazy(() => exports.UpdateToolResponseBodyToolsParameters$inboundSchema)
        .optional(),
    language: exports.UpdateToolResponseBodyLanguage$inboundSchema,
    code: z.string(),
});
/** @internal */
exports.UpdateToolResponseBodyCodeTool$outboundSchema = z.object({
    parameters: z.lazy(() => exports.UpdateToolResponseBodyToolsParameters$outboundSchema)
        .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.UpdateToolResponseBodyCodeExecutionTool$inboundSchema = z.object({
    _id: z.string().default("tool_01KAXX9J7JT1AW27HN1W089PVP"),
    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.UpdateToolResponseBodyCodeExecutionTool$outboundSchema = z.object({
    id: z.string().default("tool_01KAXX9J7JT1AW27HN1W089PVP"),
    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 updateToolResponseBodyCodeExecutionToolToJSON(updateToolResponseBodyCodeExecutionTool) {
    return JSON.stringify(exports.UpdateToolResponseBodyCodeExecutionTool$outboundSchema.parse(updateToolResponseBodyCodeExecutionTool));
}
function updateToolResponseBodyCodeExecutionToolFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateToolResponseBodyCodeExecutionTool$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateToolResponseBodyCodeExecutionTool' 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.UpdateToolResponseBodyToolsSchema$inboundSchema = z.object({
    type: exports.UpdateToolResponseBodyToolsResponse200ApplicationJson4Type$inboundSchema,
    properties: z.record(z.any()).optional(),
    required: z.array(z.string()).optional(),
});
/** @internal */
exports.UpdateToolResponseBodyToolsSchema$outboundSchema = z.object({
    type: exports.UpdateToolResponseBodyToolsResponse200ApplicationJson4Type$outboundSchema,
    properties: z.record(z.any()).optional(),
    required: z.array(z.string()).optional(),
});
function updateToolResponseBodyToolsSchemaToJSON(updateToolResponseBodyToolsSchema) {
    return JSON.stringify(exports.UpdateToolResponseBodyToolsSchema$outboundSchema.parse(updateToolResponseBodyToolsSchema));
}
function updateToolResponseBodyToolsSchemaFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateToolResponseBodyToolsSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateToolResponseBodyToolsSchema' from JSON`);
}
/** @internal */
exports.UpdateToolResponseBodyTools$inboundSchema = z.object({
    id: z.string().default("01KAXX9J7H9X8XW1VQRFC98J0J"),
    name: z.string(),
    description: z.string().optional(),
    schema: z.lazy(() => exports.UpdateToolResponseBodyToolsSchema$inboundSchema),
});
/** @internal */
exports.UpdateToolResponseBodyTools$outboundSchema = z.object({
    id: z.string().default("01KAXX9J7H9X8XW1VQRFC98J0J"),
    name: z.string(),
    description: z.string().optional(),
    schema: z.lazy(() => exports.UpdateToolResponseBodyToolsSchema$outboundSchema),
});
function updateToolResponseBodyToolsToJSON(updateToolResponseBodyTools) {
    return JSON.stringify(exports.UpdateToolResponseBodyTools$outboundSchema.parse(updateToolResponseBodyTools));
}
function updateToolResponseBodyToolsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateToolResponseBodyTools$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateToolResponseBodyTools' from JSON`);
}
/** @internal */
exports.UpdateToolResponseBodyConnectionType$inboundSchema = z.nativeEnum(exports.UpdateToolResponseBodyConnectionType);
/** @internal */
exports.UpdateToolResponseBodyConnectionType$outboundSchema = exports.UpdateToolResponseBodyConnectionType$inboundSchema;
/** @internal */
exports.UpdateToolResponseBodyMcp$inboundSchema = z.object({
    server_url: z.string(),
    headers: z.record(z.lazy(() => exports.UpdateToolResponseBodyHeaders$inboundSchema))
        .optional(),
    tools: z.array(z.lazy(() => exports.UpdateToolResponseBodyTools$inboundSchema)),
    connection_type: exports.UpdateToolResponseBodyConnectionType$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "server_url": "serverUrl",
        "connection_type": "connectionType",
    });
});
/** @internal */
exports.UpdateToolResponseBodyMcp$outboundSchema = z.object({
    serverUrl: z.string(),
    headers: z.record(z.lazy(() => exports.UpdateToolResponseBodyHeaders$outboundSchema))
        .optional(),
    tools: z.array(z.lazy(() => exports.UpdateToolResponseBodyTools$outboundSchema)),
    connectionType: exports.UpdateToolResponseBodyConnectionType$outboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        serverUrl: "server_url",
        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.UpdateToolResponseBodyMCPTool$inboundSchema = z.object({
    _id: z.string().default("tool_01KAXX9J7GCKGK147BTZ1D6EEK"),
    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.UpdateToolResponseBodyMCPTool$outboundSchema = z.object({
    id: z.string().default("tool_01KAXX9J7GCKGK147BTZ1D6EEK"),
    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 updateToolResponseBodyMCPToolToJSON(updateToolResponseBodyMCPTool) {
    return JSON.stringify(exports.UpdateToolResponseBodyMCPTool$outboundSchema.parse(updateToolResponseBodyMCPTool));
}
function updateToolResponseBodyMCPToolFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateToolResponseBodyMCPTool$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateToolResponseBodyMCPTool' 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.UpdateToolHeadersTools2$inboundSchema = z.object({
    value: z.string(),
    encrypted: z.boolean().default(false),
});
/** @internal */
exports.UpdateToolHeadersTools2$outboundSchema = z.object({
    value: z.string(),
    encrypted: z.boolean().default(false),
});
function updateToolHeadersTools2ToJSON(updateToolHeadersTools2) {
    return JSON.stringify(exports.UpdateToolHeadersTools2$outboundSchema.parse(updateToolHeadersTools2));
}
function updateToolHeadersTools2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateToolHeadersTools2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateToolHeadersTools2' from JSON`);
}
/** @internal */
exports.UpdateToolResponseBodyToolsHeaders$inboundSchema = z.union([z.lazy(() => exports.UpdateToolHeadersTools2$inboundSchema), z.string()]);
/** @internal */
exports.UpdateToolResponseBodyToolsHeaders$outboundSchema = z.union([z.lazy(() => exports.UpdateToolHeadersTools2$outboundSchema), z.string()]);
function updateToolResponseBodyToolsHeadersToJSON(updateToolResponseBodyToolsHeaders) {
    return JSON.stringify(exports.UpdateToolResponseBodyToolsHeaders$outboundSchema.parse(updateToolResponseBodyToolsHeaders));
}
function updateToolResponseBodyToolsHeadersFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateToolResponseBodyToolsHeaders$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateToolResponseBodyToolsHeaders' from JSON`);
}
/** @internal */
exports.UpdateToolResponseBodyBlueprint$inboundSchema = z.object({
    url: z.string(),
    method: exports.UpdateToolResponseBodyMethod$inboundSchema,
    headers: z.record(z.union([z.lazy(() => exports.UpdateToolHeadersTools2$inboundSchema), 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.union([z.lazy(() => exports.UpdateToolHeadersTools2$outboundSchema), 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.UpdateToolResponseBodyHTTPTool$inboundSchema = z.object({
    _id: z.string().default("tool_01KAXX9J7E59T6VE9NT2J4PHSX"),
    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.UpdateToolResponseBodyHTTPTool$outboundSchema = z.object({
    id: z.string().default("tool_01KAXX9J7E59T6VE9NT2J4PHSX"),
    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 updateToolResponseBodyHTTPToolToJSON(updateToolResponseBodyHTTPTool) {
    return JSON.stringify(exports.UpdateToolResponseBodyHTTPTool$outboundSchema.parse(updateToolResponseBodyHTTPTool));
}
function updateToolResponseBodyHTTPToolFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateToolResponseBodyHTTPTool$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateToolResponseBodyHTTPTool' 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.UpdateToolResponseBodySchema$inboundSchema = (0, schemas_js_1.collectExtraKeys)(z.object({
    type: z.string(),
    properties: z.record(z.any()),
    required: z.array(z.string()),
}).catchall(z.any()), "additionalProperties", true);
/** @internal */
exports.UpdateToolResponseBodySchema$outboundSchema = z.object({
    type: z.string(),
    properties: z.record(z.any()),
    required: z.array(z.string()),
    additionalProperties: z.record(z.any()).optional(),
}).transform((v) => {
    return {
        ...v.additionalProperties,
        ...(0, primitives_js_1.remap)(v, {
            additionalProperties: null,
        }),
    };
});
function updateToolResponseBodySchemaToJSON(updateToolResponseBodySchema) {
    return JSON.stringify(exports.UpdateToolResponseBodySchema$outboundSchema.parse(updateToolResponseBodySchema));
}
function updateToolResponseBodySchemaFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateToolResponseBodySchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateToolResponseBodySchema' from JSON`);
}
/** @internal */
exports.UpdateToolResponseBodyJsonSchema$inboundSchema = z.object({
    name: z.string(),
    description: z.string(),
    schema: z.lazy(() => exports.UpdateToolResponseBodySchema$inboundSchema),
    strict: z.boolean().optional(),
});
/** @internal */
exports.UpdateToolResponseBodyJsonSchema$outboundSchema = z.object({
    name: z.string(),
    description: z.string(),
    schema: z.lazy(() => exports.UpdateToolResponseBodySchema$outboundSchema),
    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.UpdateToolResponseBodyJSONSchemaTool$inboundSchema = z.object({
    _id: z.string().default("tool_01KAXX9J7DYBXC7VSMX3GJGQDN"),
    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.UpdateToolResponseBodyJSONSchemaTool$outboundSchema = z.object({
    id: z.string().default("tool_01KAXX9J7DYBXC7VSMX3GJGQDN"),
    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 updateToolResponseBodyJSONSchemaToolToJSON(updateToolResponseBodyJSONSchemaTool) {
    return JSON.stringify(exports.UpdateToolResponseBodyJSONSchemaTool$outboundSchema.parse(updateToolResponseBodyJSONSchemaTool));
}
function updateToolResponseBodyJSONSchemaToolFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateToolResponseBodyJSONSchemaTool$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateToolResponseBodyJSONSchemaTool' 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.UpdateToolResponseBodyToolsResponse200ApplicationJson1Type$inboundSchema = z.nativeEnum(exports.UpdateToolResponseBodyToolsResponse200ApplicationJson1Type);
/** @internal */
exports.UpdateToolResponseBodyToolsResponse200ApplicationJson1Type$outboundSchema = exports.UpdateToolResponseBodyToolsResponse200ApplicationJson1Type$inboundSchema;
/** @internal */
exports.UpdateToolResponseBodyParameters$inboundSchema = (0, schemas_js_1.collectExtraKeys)(z.object({
    type: exports.UpdateToolResponseBodyToolsResponse200ApplicationJson1Type$inboundSchema,
    properties: z.record(z.any()),
    required: z.array(z.string()),
}).catchall(z.any()), "additionalProperties", true);
/** @internal */
exports.UpdateToolResponseBodyParameters$outboundSchema = z.object({
    type: exports.UpdateToolResponseBodyToolsResponse200ApplicationJson1Type$outboundSchema,
    properties: z.record(z.any()),
    required: z.array(z.string()),
    additionalProperties: z.record(z.any()).optional(),
}).transform((v) => {
    return {
        ...v.additionalProperties,
        ...(0, primitives_js_1.remap)(v, {
            additionalProperties: null,
        }),
    };
});
function updateToolResponseBodyParametersToJSON(updateToolResponseBodyParameters) {
    return JSON.stringify(exports.UpdateToolResponseBodyParameters$outboundSchema.parse(updateToolResponseBodyParameters));
}
function updateToolResponseBodyParametersFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateToolResponseBodyParameters$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateToolResponseBodyParameters' from JSON`);
}
/** @internal */
exports.UpdateToolResponseBodyFunction$inboundSchema = z.object({
    name: z.string(),
    description: z.string().optional(),
    strict: z.boolean().optional(),
    parameters: z.lazy(() => exports.UpdateToolResponseBodyParameters$inboundSchema)
        .optional(),
});
/** @internal */
exports.UpdateToolResponseBodyFunction$outboundSchema = z.object({
    name: z.string(),
    description: z.string().optional(),
    strict: z.boolean().optional(),
    parameters: z.lazy(() => exports.UpdateToolResponseBodyParameters$outboundSchema)
        .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.UpdateToolResponseBodyFunctionTool$inboundSchema = z.object({
    _id: z.string().default("tool_01KAXX9J7CCPKZ2W81TK4NDNG1"),
    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.UpdateToolResponseBodyFunctionTool$outboundSchema = z.object({
    id: z.string().default("tool_01KAXX9J7CCPKZ2W81TK4NDNG1"),
    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 updateToolResponseBodyFunctionToolToJSON(updateToolResponseBodyFunctionTool) {
    return JSON.stringify(exports.UpdateToolResponseBodyFunctionTool$outboundSchema.parse(updateToolResponseBodyFunctionTool));
}
function updateToolResponseBodyFunctionToolFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateToolResponseBodyFunctionTool$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateToolResponseBodyFunctionTool' from JSON`);
}
/** @internal */
exports.UpdateToolResponseBody$inboundSchema = z.union([
    z.lazy(() => exports.UpdateToolResponseBodyFunctionTool$inboundSchema),
    z.lazy(() => exports.UpdateToolResponseBodyJSONSchemaTool$inboundSchema),
    z.lazy(() => exports.UpdateToolResponseBodyHTTPTool$inboundSchema),
    z.lazy(() => exports.UpdateToolResponseBodyMCPTool$inboundSchema),
    z.lazy(() => exports.UpdateToolResponseBodyCodeExecutionTool$inboundSchema),
]);
/** @internal */
exports.UpdateToolResponseBody$outboundSchema = z.union([
    z.lazy(() => exports.UpdateToolResponseBodyFunctionTool$outboundSchema),
    z.lazy(() => exports.UpdateToolResponseBodyJSONSchemaTool$outboundSchema),
    z.lazy(() => exports.UpdateToolResponseBodyHTTPTool$outboundSchema),
    z.lazy(() => exports.UpdateToolResponseBodyMCPTool$outboundSchema),
    z.lazy(() => exports.UpdateToolResponseBodyCodeExecutionTool$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