"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.DuplicateToolResponseBodyBlueprint$inboundSchema = exports.DuplicateToolResponseBodyMethod$outboundSchema = exports.DuplicateToolResponseBodyMethod$inboundSchema = exports.DuplicateToolResponseBodyToolsResponseType$outboundSchema = exports.DuplicateToolResponseBodyToolsResponseType$inboundSchema = exports.DuplicateToolResponseBodyToolsResponseStatus$outboundSchema = exports.DuplicateToolResponseBodyToolsResponseStatus$inboundSchema = exports.DuplicateToolResponseBody4$outboundSchema = exports.DuplicateToolResponseBody4$inboundSchema = exports.DuplicateToolResponseBodyMcp$outboundSchema = exports.DuplicateToolResponseBodyMcp$inboundSchema = exports.DuplicateToolResponseBodyConnectionType$outboundSchema = exports.DuplicateToolResponseBodyConnectionType$inboundSchema = exports.DuplicateToolResponseBodyInputSchema$outboundSchema = exports.DuplicateToolResponseBodyInputSchema$inboundSchema = exports.DuplicateToolResponseBodyToolsResponse200ApplicationJson4Type$outboundSchema = exports.DuplicateToolResponseBodyToolsResponse200ApplicationJson4Type$inboundSchema = exports.DuplicateToolResponseBodyHeaders$outboundSchema = exports.DuplicateToolResponseBodyHeaders$inboundSchema = exports.DuplicateToolResponseBodyToolsResponse200Type$outboundSchema = exports.DuplicateToolResponseBodyToolsResponse200Type$inboundSchema = exports.DuplicateToolResponseBodyToolsResponse200Status$outboundSchema = exports.DuplicateToolResponseBodyToolsResponse200Status$inboundSchema = exports.DuplicateToolResponseBody5$outboundSchema = exports.DuplicateToolResponseBody5$inboundSchema = exports.DuplicateToolResponseBodyCodeTool$outboundSchema = exports.DuplicateToolResponseBodyCodeTool$inboundSchema = exports.DuplicateToolResponseBodyLanguage$outboundSchema = exports.DuplicateToolResponseBodyLanguage$inboundSchema = exports.DuplicateToolResponseBodyToolsResponse200ApplicationJSONType$outboundSchema = exports.DuplicateToolResponseBodyToolsResponse200ApplicationJSONType$inboundSchema = exports.DuplicateToolResponseBodyToolsResponse200ApplicationJSONStatus$outboundSchema = exports.DuplicateToolResponseBodyToolsResponse200ApplicationJSONStatus$inboundSchema = exports.DuplicateToolRequest$outboundSchema = exports.DuplicateToolRequest$inboundSchema = exports.DuplicateToolResponseBodyType = exports.DuplicateToolResponseBodyStatus = exports.DuplicateToolResponseBodyToolsType = exports.DuplicateToolResponseBodyToolsStatus = exports.DuplicateToolResponseBodyToolsResponse200ApplicationJson3Type = exports.DuplicateToolResponseBodyMethod = exports.DuplicateToolResponseBodyToolsResponseType = exports.DuplicateToolResponseBodyToolsResponseStatus = exports.DuplicateToolResponseBodyConnectionType = exports.DuplicateToolResponseBodyToolsResponse200ApplicationJson4Type = exports.DuplicateToolResponseBodyToolsResponse200Type = exports.DuplicateToolResponseBodyToolsResponse200Status = exports.DuplicateToolResponseBodyLanguage = exports.DuplicateToolResponseBodyToolsResponse200ApplicationJSONType = exports.DuplicateToolResponseBodyToolsResponse200ApplicationJSONStatus = void 0;
exports.DuplicateToolResponseBody$outboundSchema = exports.DuplicateToolResponseBody$inboundSchema = exports.DuplicateToolResponseBody1$outboundSchema = exports.DuplicateToolResponseBody1$inboundSchema = exports.DuplicateToolResponseBodyFunction$outboundSchema = exports.DuplicateToolResponseBodyFunction$inboundSchema = exports.DuplicateToolResponseBodyType$outboundSchema = exports.DuplicateToolResponseBodyType$inboundSchema = exports.DuplicateToolResponseBodyStatus$outboundSchema = exports.DuplicateToolResponseBodyStatus$inboundSchema = exports.DuplicateToolResponseBody2$outboundSchema = exports.DuplicateToolResponseBody2$inboundSchema = exports.DuplicateToolResponseBodyJsonSchema$outboundSchema = exports.DuplicateToolResponseBodyJsonSchema$inboundSchema = exports.DuplicateToolResponseBodyToolsType$outboundSchema = exports.DuplicateToolResponseBodyToolsType$inboundSchema = exports.DuplicateToolResponseBodyToolsStatus$outboundSchema = exports.DuplicateToolResponseBodyToolsStatus$inboundSchema = exports.DuplicateToolResponseBody3$outboundSchema = exports.DuplicateToolResponseBody3$inboundSchema = exports.DuplicateToolResponseBodyHttp$outboundSchema = exports.DuplicateToolResponseBodyHttp$inboundSchema = exports.DuplicateToolResponseBodyArguments$outboundSchema = exports.DuplicateToolResponseBodyArguments$inboundSchema = exports.DuplicateToolResponseBodyDefaultValue$outboundSchema = exports.DuplicateToolResponseBodyDefaultValue$inboundSchema = exports.DuplicateToolResponseBodyToolsResponse200ApplicationJson3Type$outboundSchema = exports.DuplicateToolResponseBodyToolsResponse200ApplicationJson3Type$inboundSchema = exports.DuplicateToolResponseBodyBlueprint$outboundSchema = void 0;
exports.duplicateToolRequestToJSON = duplicateToolRequestToJSON;
exports.duplicateToolRequestFromJSON = duplicateToolRequestFromJSON;
exports.duplicateToolResponseBodyCodeToolToJSON = duplicateToolResponseBodyCodeToolToJSON;
exports.duplicateToolResponseBodyCodeToolFromJSON = duplicateToolResponseBodyCodeToolFromJSON;
exports.duplicateToolResponseBody5ToJSON = duplicateToolResponseBody5ToJSON;
exports.duplicateToolResponseBody5FromJSON = duplicateToolResponseBody5FromJSON;
exports.duplicateToolResponseBodyHeadersToJSON = duplicateToolResponseBodyHeadersToJSON;
exports.duplicateToolResponseBodyHeadersFromJSON = duplicateToolResponseBodyHeadersFromJSON;
exports.duplicateToolResponseBodyInputSchemaToJSON = duplicateToolResponseBodyInputSchemaToJSON;
exports.duplicateToolResponseBodyInputSchemaFromJSON = duplicateToolResponseBodyInputSchemaFromJSON;
exports.duplicateToolResponseBodyMcpToJSON = duplicateToolResponseBodyMcpToJSON;
exports.duplicateToolResponseBodyMcpFromJSON = duplicateToolResponseBodyMcpFromJSON;
exports.duplicateToolResponseBody4ToJSON = duplicateToolResponseBody4ToJSON;
exports.duplicateToolResponseBody4FromJSON = duplicateToolResponseBody4FromJSON;
exports.duplicateToolResponseBodyBlueprintToJSON = duplicateToolResponseBodyBlueprintToJSON;
exports.duplicateToolResponseBodyBlueprintFromJSON = duplicateToolResponseBodyBlueprintFromJSON;
exports.duplicateToolResponseBodyDefaultValueToJSON = duplicateToolResponseBodyDefaultValueToJSON;
exports.duplicateToolResponseBodyDefaultValueFromJSON = duplicateToolResponseBodyDefaultValueFromJSON;
exports.duplicateToolResponseBodyArgumentsToJSON = duplicateToolResponseBodyArgumentsToJSON;
exports.duplicateToolResponseBodyArgumentsFromJSON = duplicateToolResponseBodyArgumentsFromJSON;
exports.duplicateToolResponseBodyHttpToJSON = duplicateToolResponseBodyHttpToJSON;
exports.duplicateToolResponseBodyHttpFromJSON = duplicateToolResponseBodyHttpFromJSON;
exports.duplicateToolResponseBody3ToJSON = duplicateToolResponseBody3ToJSON;
exports.duplicateToolResponseBody3FromJSON = duplicateToolResponseBody3FromJSON;
exports.duplicateToolResponseBodyJsonSchemaToJSON = duplicateToolResponseBodyJsonSchemaToJSON;
exports.duplicateToolResponseBodyJsonSchemaFromJSON = duplicateToolResponseBodyJsonSchemaFromJSON;
exports.duplicateToolResponseBody2ToJSON = duplicateToolResponseBody2ToJSON;
exports.duplicateToolResponseBody2FromJSON = duplicateToolResponseBody2FromJSON;
exports.duplicateToolResponseBodyFunctionToJSON = duplicateToolResponseBodyFunctionToJSON;
exports.duplicateToolResponseBodyFunctionFromJSON = duplicateToolResponseBodyFunctionFromJSON;
exports.duplicateToolResponseBody1ToJSON = duplicateToolResponseBody1ToJSON;
exports.duplicateToolResponseBody1FromJSON = duplicateToolResponseBody1FromJSON;
exports.duplicateToolResponseBodyToJSON = duplicateToolResponseBodyToJSON;
exports.duplicateToolResponseBodyFromJSON = duplicateToolResponseBodyFromJSON;
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.DuplicateToolResponseBodyToolsResponse200ApplicationJSONStatus = {
    Live: "live",
    Draft: "draft",
    Pending: "pending",
    Published: "published",
};
exports.DuplicateToolResponseBodyToolsResponse200ApplicationJSONType = {
    Code: "code",
};
exports.DuplicateToolResponseBodyLanguage = {
    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.DuplicateToolResponseBodyToolsResponse200Status = {
    Live: "live",
    Draft: "draft",
    Pending: "pending",
    Published: "published",
};
exports.DuplicateToolResponseBodyToolsResponse200Type = {
    Mcp: "mcp",
};
exports.DuplicateToolResponseBodyToolsResponse200ApplicationJson4Type = {
    Object: "object",
};
/**
 * The connection type used by the MCP server
 */
exports.DuplicateToolResponseBodyConnectionType = {
    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.DuplicateToolResponseBodyToolsResponseStatus = {
    Live: "live",
    Draft: "draft",
    Pending: "pending",
    Published: "published",
};
exports.DuplicateToolResponseBodyToolsResponseType = {
    Http: "http",
};
/**
 * The HTTP method to use.
 */
exports.DuplicateToolResponseBodyMethod = {
    Get: "GET",
    Post: "POST",
    Put: "PUT",
    Delete: "DELETE",
};
/**
 * The type of the argument.
 */
exports.DuplicateToolResponseBodyToolsResponse200ApplicationJson3Type = {
    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.DuplicateToolResponseBodyToolsStatus = {
    Live: "live",
    Draft: "draft",
    Pending: "pending",
    Published: "published",
};
exports.DuplicateToolResponseBodyToolsType = {
    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.DuplicateToolResponseBodyStatus = {
    Live: "live",
    Draft: "draft",
    Pending: "pending",
    Published: "published",
};
exports.DuplicateToolResponseBodyType = {
    Function: "function",
};
/** @internal */
exports.DuplicateToolRequest$inboundSchema = z.object({
    tool_id: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "tool_id": "toolId",
    });
});
/** @internal */
exports.DuplicateToolRequest$outboundSchema = z.object({
    toolId: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        toolId: "tool_id",
    });
});
function duplicateToolRequestToJSON(duplicateToolRequest) {
    return JSON.stringify(exports.DuplicateToolRequest$outboundSchema.parse(duplicateToolRequest));
}
function duplicateToolRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DuplicateToolRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DuplicateToolRequest' from JSON`);
}
/** @internal */
exports.DuplicateToolResponseBodyToolsResponse200ApplicationJSONStatus$inboundSchema = z.nativeEnum(exports.DuplicateToolResponseBodyToolsResponse200ApplicationJSONStatus);
/** @internal */
exports.DuplicateToolResponseBodyToolsResponse200ApplicationJSONStatus$outboundSchema = exports.DuplicateToolResponseBodyToolsResponse200ApplicationJSONStatus$inboundSchema;
/** @internal */
exports.DuplicateToolResponseBodyToolsResponse200ApplicationJSONType$inboundSchema = z.nativeEnum(exports.DuplicateToolResponseBodyToolsResponse200ApplicationJSONType);
/** @internal */
exports.DuplicateToolResponseBodyToolsResponse200ApplicationJSONType$outboundSchema = exports.DuplicateToolResponseBodyToolsResponse200ApplicationJSONType$inboundSchema;
/** @internal */
exports.DuplicateToolResponseBodyLanguage$inboundSchema = z.nativeEnum(exports.DuplicateToolResponseBodyLanguage);
/** @internal */
exports.DuplicateToolResponseBodyLanguage$outboundSchema = exports.DuplicateToolResponseBodyLanguage$inboundSchema;
/** @internal */
exports.DuplicateToolResponseBodyCodeTool$inboundSchema = z.object({
    parameters: z.record(z.any()).optional(),
    language: exports.DuplicateToolResponseBodyLanguage$inboundSchema,
    code: z.string(),
});
/** @internal */
exports.DuplicateToolResponseBodyCodeTool$outboundSchema = z.object({
    parameters: z.record(z.any()).optional(),
    language: exports.DuplicateToolResponseBodyLanguage$outboundSchema,
    code: z.string(),
});
function duplicateToolResponseBodyCodeToolToJSON(duplicateToolResponseBodyCodeTool) {
    return JSON.stringify(exports.DuplicateToolResponseBodyCodeTool$outboundSchema.parse(duplicateToolResponseBodyCodeTool));
}
function duplicateToolResponseBodyCodeToolFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DuplicateToolResponseBodyCodeTool$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DuplicateToolResponseBodyCodeTool' from JSON`);
}
/** @internal */
exports.DuplicateToolResponseBody5$inboundSchema = z.object({
    _id: z.string().default("01K9QRS4YFKBG54P6BH1DGCN30"),
    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.DuplicateToolResponseBodyToolsResponse200ApplicationJSONStatus$inboundSchema
        .default("live"),
    version_hash: z.string().optional(),
    type: exports.DuplicateToolResponseBodyToolsResponse200ApplicationJSONType$inboundSchema,
    code_tool: z.lazy(() => exports.DuplicateToolResponseBodyCodeTool$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.DuplicateToolResponseBody5$outboundSchema = z.object({
    id: z.string().default("01K9QRS4YFKBG54P6BH1DGCN30"),
    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.DuplicateToolResponseBodyToolsResponse200ApplicationJSONStatus$outboundSchema
        .default("live"),
    versionHash: z.string().optional(),
    type: exports.DuplicateToolResponseBodyToolsResponse200ApplicationJSONType$outboundSchema,
    codeTool: z.lazy(() => exports.DuplicateToolResponseBodyCodeTool$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 duplicateToolResponseBody5ToJSON(duplicateToolResponseBody5) {
    return JSON.stringify(exports.DuplicateToolResponseBody5$outboundSchema.parse(duplicateToolResponseBody5));
}
function duplicateToolResponseBody5FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DuplicateToolResponseBody5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DuplicateToolResponseBody5' from JSON`);
}
/** @internal */
exports.DuplicateToolResponseBodyToolsResponse200Status$inboundSchema = z
    .nativeEnum(exports.DuplicateToolResponseBodyToolsResponse200Status);
/** @internal */
exports.DuplicateToolResponseBodyToolsResponse200Status$outboundSchema = exports.DuplicateToolResponseBodyToolsResponse200Status$inboundSchema;
/** @internal */
exports.DuplicateToolResponseBodyToolsResponse200Type$inboundSchema = z
    .nativeEnum(exports.DuplicateToolResponseBodyToolsResponse200Type);
/** @internal */
exports.DuplicateToolResponseBodyToolsResponse200Type$outboundSchema = exports.DuplicateToolResponseBodyToolsResponse200Type$inboundSchema;
/** @internal */
exports.DuplicateToolResponseBodyHeaders$inboundSchema = z.object({
    value: z.string(),
    encrypted: z.boolean().default(false),
});
/** @internal */
exports.DuplicateToolResponseBodyHeaders$outboundSchema = z.object({
    value: z.string(),
    encrypted: z.boolean().default(false),
});
function duplicateToolResponseBodyHeadersToJSON(duplicateToolResponseBodyHeaders) {
    return JSON.stringify(exports.DuplicateToolResponseBodyHeaders$outboundSchema.parse(duplicateToolResponseBodyHeaders));
}
function duplicateToolResponseBodyHeadersFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DuplicateToolResponseBodyHeaders$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DuplicateToolResponseBodyHeaders' from JSON`);
}
/** @internal */
exports.DuplicateToolResponseBodyToolsResponse200ApplicationJson4Type$inboundSchema = z.nativeEnum(exports.DuplicateToolResponseBodyToolsResponse200ApplicationJson4Type);
/** @internal */
exports.DuplicateToolResponseBodyToolsResponse200ApplicationJson4Type$outboundSchema = exports.DuplicateToolResponseBodyToolsResponse200ApplicationJson4Type$inboundSchema;
/** @internal */
exports.DuplicateToolResponseBodyInputSchema$inboundSchema = z.object({
    type: exports.DuplicateToolResponseBodyToolsResponse200ApplicationJson4Type$inboundSchema,
    properties: z.record(z.any()).optional(),
    required: z.array(z.string()).optional(),
});
/** @internal */
exports.DuplicateToolResponseBodyInputSchema$outboundSchema = z.object({
    type: exports.DuplicateToolResponseBodyToolsResponse200ApplicationJson4Type$outboundSchema,
    properties: z.record(z.any()).optional(),
    required: z.array(z.string()).optional(),
});
function duplicateToolResponseBodyInputSchemaToJSON(duplicateToolResponseBodyInputSchema) {
    return JSON.stringify(exports.DuplicateToolResponseBodyInputSchema$outboundSchema.parse(duplicateToolResponseBodyInputSchema));
}
function duplicateToolResponseBodyInputSchemaFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DuplicateToolResponseBodyInputSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DuplicateToolResponseBodyInputSchema' from JSON`);
}
/** @internal */
exports.DuplicateToolResponseBodyConnectionType$inboundSchema = z
    .nativeEnum(exports.DuplicateToolResponseBodyConnectionType);
/** @internal */
exports.DuplicateToolResponseBodyConnectionType$outboundSchema = exports.DuplicateToolResponseBodyConnectionType$inboundSchema;
/** @internal */
exports.DuplicateToolResponseBodyMcp$inboundSchema = z.object({
    server_id: z.string(),
    tool_name: z.string(),
    server_url: z.string(),
    headers: z.record(z.lazy(() => exports.DuplicateToolResponseBodyHeaders$inboundSchema)).optional(),
    input_schema: z.lazy(() => exports.DuplicateToolResponseBodyInputSchema$inboundSchema),
    connection_type: exports.DuplicateToolResponseBodyConnectionType$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "server_id": "serverId",
        "tool_name": "toolName",
        "server_url": "serverUrl",
        "input_schema": "inputSchema",
        "connection_type": "connectionType",
    });
});
/** @internal */
exports.DuplicateToolResponseBodyMcp$outboundSchema = z.object({
    serverId: z.string(),
    toolName: z.string(),
    serverUrl: z.string(),
    headers: z.record(z.lazy(() => exports.DuplicateToolResponseBodyHeaders$outboundSchema)).optional(),
    inputSchema: z.lazy(() => exports.DuplicateToolResponseBodyInputSchema$outboundSchema),
    connectionType: exports.DuplicateToolResponseBodyConnectionType$outboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        serverId: "server_id",
        toolName: "tool_name",
        serverUrl: "server_url",
        inputSchema: "input_schema",
        connectionType: "connection_type",
    });
});
function duplicateToolResponseBodyMcpToJSON(duplicateToolResponseBodyMcp) {
    return JSON.stringify(exports.DuplicateToolResponseBodyMcp$outboundSchema.parse(duplicateToolResponseBodyMcp));
}
function duplicateToolResponseBodyMcpFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DuplicateToolResponseBodyMcp$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DuplicateToolResponseBodyMcp' from JSON`);
}
/** @internal */
exports.DuplicateToolResponseBody4$inboundSchema = z.object({
    _id: z.string().default("01K9QRS4YDZJAWS451VDV3AXPQ"),
    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.DuplicateToolResponseBodyToolsResponse200Status$inboundSchema.default("live"),
    version_hash: z.string().optional(),
    type: exports.DuplicateToolResponseBodyToolsResponse200Type$inboundSchema,
    mcp: z.lazy(() => exports.DuplicateToolResponseBodyMcp$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.DuplicateToolResponseBody4$outboundSchema = z.object({
    id: z.string().default("01K9QRS4YDZJAWS451VDV3AXPQ"),
    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.DuplicateToolResponseBodyToolsResponse200Status$outboundSchema
        .default("live"),
    versionHash: z.string().optional(),
    type: exports.DuplicateToolResponseBodyToolsResponse200Type$outboundSchema,
    mcp: z.lazy(() => exports.DuplicateToolResponseBodyMcp$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 duplicateToolResponseBody4ToJSON(duplicateToolResponseBody4) {
    return JSON.stringify(exports.DuplicateToolResponseBody4$outboundSchema.parse(duplicateToolResponseBody4));
}
function duplicateToolResponseBody4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DuplicateToolResponseBody4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DuplicateToolResponseBody4' from JSON`);
}
/** @internal */
exports.DuplicateToolResponseBodyToolsResponseStatus$inboundSchema = z
    .nativeEnum(exports.DuplicateToolResponseBodyToolsResponseStatus);
/** @internal */
exports.DuplicateToolResponseBodyToolsResponseStatus$outboundSchema = exports.DuplicateToolResponseBodyToolsResponseStatus$inboundSchema;
/** @internal */
exports.DuplicateToolResponseBodyToolsResponseType$inboundSchema = z
    .nativeEnum(exports.DuplicateToolResponseBodyToolsResponseType);
/** @internal */
exports.DuplicateToolResponseBodyToolsResponseType$outboundSchema = exports.DuplicateToolResponseBodyToolsResponseType$inboundSchema;
/** @internal */
exports.DuplicateToolResponseBodyMethod$inboundSchema = z.nativeEnum(exports.DuplicateToolResponseBodyMethod);
/** @internal */
exports.DuplicateToolResponseBodyMethod$outboundSchema = exports.DuplicateToolResponseBodyMethod$inboundSchema;
/** @internal */
exports.DuplicateToolResponseBodyBlueprint$inboundSchema = z.object({
    url: z.string(),
    method: exports.DuplicateToolResponseBodyMethod$inboundSchema,
    headers: z.record(z.string()).optional(),
    body: z.record(z.any()).optional(),
});
/** @internal */
exports.DuplicateToolResponseBodyBlueprint$outboundSchema = z.object({
    url: z.string(),
    method: exports.DuplicateToolResponseBodyMethod$outboundSchema,
    headers: z.record(z.string()).optional(),
    body: z.record(z.any()).optional(),
});
function duplicateToolResponseBodyBlueprintToJSON(duplicateToolResponseBodyBlueprint) {
    return JSON.stringify(exports.DuplicateToolResponseBodyBlueprint$outboundSchema.parse(duplicateToolResponseBodyBlueprint));
}
function duplicateToolResponseBodyBlueprintFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DuplicateToolResponseBodyBlueprint$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DuplicateToolResponseBodyBlueprint' from JSON`);
}
/** @internal */
exports.DuplicateToolResponseBodyToolsResponse200ApplicationJson3Type$inboundSchema = z.nativeEnum(exports.DuplicateToolResponseBodyToolsResponse200ApplicationJson3Type);
/** @internal */
exports.DuplicateToolResponseBodyToolsResponse200ApplicationJson3Type$outboundSchema = exports.DuplicateToolResponseBodyToolsResponse200ApplicationJson3Type$inboundSchema;
/** @internal */
exports.DuplicateToolResponseBodyDefaultValue$inboundSchema = z.union([z.string(), z.number(), z.boolean()]);
/** @internal */
exports.DuplicateToolResponseBodyDefaultValue$outboundSchema = z.union([z.string(), z.number(), z.boolean()]);
function duplicateToolResponseBodyDefaultValueToJSON(duplicateToolResponseBodyDefaultValue) {
    return JSON.stringify(exports.DuplicateToolResponseBodyDefaultValue$outboundSchema.parse(duplicateToolResponseBodyDefaultValue));
}
function duplicateToolResponseBodyDefaultValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DuplicateToolResponseBodyDefaultValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DuplicateToolResponseBodyDefaultValue' from JSON`);
}
/** @internal */
exports.DuplicateToolResponseBodyArguments$inboundSchema = z.object({
    type: exports.DuplicateToolResponseBodyToolsResponse200ApplicationJson3Type$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.DuplicateToolResponseBodyArguments$outboundSchema = z.object({
    type: exports.DuplicateToolResponseBodyToolsResponse200ApplicationJson3Type$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 duplicateToolResponseBodyArgumentsToJSON(duplicateToolResponseBodyArguments) {
    return JSON.stringify(exports.DuplicateToolResponseBodyArguments$outboundSchema.parse(duplicateToolResponseBodyArguments));
}
function duplicateToolResponseBodyArgumentsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DuplicateToolResponseBodyArguments$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DuplicateToolResponseBodyArguments' from JSON`);
}
/** @internal */
exports.DuplicateToolResponseBodyHttp$inboundSchema = z.object({
    blueprint: z.lazy(() => exports.DuplicateToolResponseBodyBlueprint$inboundSchema),
    arguments: z.record(z.lazy(() => exports.DuplicateToolResponseBodyArguments$inboundSchema)).optional(),
});
/** @internal */
exports.DuplicateToolResponseBodyHttp$outboundSchema = z.object({
    blueprint: z.lazy(() => exports.DuplicateToolResponseBodyBlueprint$outboundSchema),
    arguments: z.record(z.lazy(() => exports.DuplicateToolResponseBodyArguments$outboundSchema)).optional(),
});
function duplicateToolResponseBodyHttpToJSON(duplicateToolResponseBodyHttp) {
    return JSON.stringify(exports.DuplicateToolResponseBodyHttp$outboundSchema.parse(duplicateToolResponseBodyHttp));
}
function duplicateToolResponseBodyHttpFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DuplicateToolResponseBodyHttp$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DuplicateToolResponseBodyHttp' from JSON`);
}
/** @internal */
exports.DuplicateToolResponseBody3$inboundSchema = z.object({
    _id: z.string().default("01K9QRS4YAQT7ZMZV213WRNQHP"),
    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.DuplicateToolResponseBodyToolsResponseStatus$inboundSchema.default("live"),
    version_hash: z.string().optional(),
    type: exports.DuplicateToolResponseBodyToolsResponseType$inboundSchema,
    http: z.lazy(() => exports.DuplicateToolResponseBodyHttp$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.DuplicateToolResponseBody3$outboundSchema = z.object({
    id: z.string().default("01K9QRS4YAQT7ZMZV213WRNQHP"),
    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.DuplicateToolResponseBodyToolsResponseStatus$outboundSchema.default("live"),
    versionHash: z.string().optional(),
    type: exports.DuplicateToolResponseBodyToolsResponseType$outboundSchema,
    http: z.lazy(() => exports.DuplicateToolResponseBodyHttp$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 duplicateToolResponseBody3ToJSON(duplicateToolResponseBody3) {
    return JSON.stringify(exports.DuplicateToolResponseBody3$outboundSchema.parse(duplicateToolResponseBody3));
}
function duplicateToolResponseBody3FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DuplicateToolResponseBody3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DuplicateToolResponseBody3' from JSON`);
}
/** @internal */
exports.DuplicateToolResponseBodyToolsStatus$inboundSchema = z.nativeEnum(exports.DuplicateToolResponseBodyToolsStatus);
/** @internal */
exports.DuplicateToolResponseBodyToolsStatus$outboundSchema = exports.DuplicateToolResponseBodyToolsStatus$inboundSchema;
/** @internal */
exports.DuplicateToolResponseBodyToolsType$inboundSchema = z.nativeEnum(exports.DuplicateToolResponseBodyToolsType);
/** @internal */
exports.DuplicateToolResponseBodyToolsType$outboundSchema = exports.DuplicateToolResponseBodyToolsType$inboundSchema;
/** @internal */
exports.DuplicateToolResponseBodyJsonSchema$inboundSchema = z.object({
    name: z.string(),
    description: z.string().optional(),
    schema: z.record(z.any()),
    strict: z.boolean().optional(),
});
/** @internal */
exports.DuplicateToolResponseBodyJsonSchema$outboundSchema = z.object({
    name: z.string(),
    description: z.string().optional(),
    schema: z.record(z.any()),
    strict: z.boolean().optional(),
});
function duplicateToolResponseBodyJsonSchemaToJSON(duplicateToolResponseBodyJsonSchema) {
    return JSON.stringify(exports.DuplicateToolResponseBodyJsonSchema$outboundSchema.parse(duplicateToolResponseBodyJsonSchema));
}
function duplicateToolResponseBodyJsonSchemaFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DuplicateToolResponseBodyJsonSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DuplicateToolResponseBodyJsonSchema' from JSON`);
}
/** @internal */
exports.DuplicateToolResponseBody2$inboundSchema = z.object({
    _id: z.string().default("01K9QRS4Y8KS3ND3XX95H53CAR"),
    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.DuplicateToolResponseBodyToolsStatus$inboundSchema.default("live"),
    version_hash: z.string().optional(),
    type: exports.DuplicateToolResponseBodyToolsType$inboundSchema,
    json_schema: z.lazy(() => exports.DuplicateToolResponseBodyJsonSchema$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.DuplicateToolResponseBody2$outboundSchema = z.object({
    id: z.string().default("01K9QRS4Y8KS3ND3XX95H53CAR"),
    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.DuplicateToolResponseBodyToolsStatus$outboundSchema.default("live"),
    versionHash: z.string().optional(),
    type: exports.DuplicateToolResponseBodyToolsType$outboundSchema,
    jsonSchema: z.lazy(() => exports.DuplicateToolResponseBodyJsonSchema$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 duplicateToolResponseBody2ToJSON(duplicateToolResponseBody2) {
    return JSON.stringify(exports.DuplicateToolResponseBody2$outboundSchema.parse(duplicateToolResponseBody2));
}
function duplicateToolResponseBody2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DuplicateToolResponseBody2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DuplicateToolResponseBody2' from JSON`);
}
/** @internal */
exports.DuplicateToolResponseBodyStatus$inboundSchema = z.nativeEnum(exports.DuplicateToolResponseBodyStatus);
/** @internal */
exports.DuplicateToolResponseBodyStatus$outboundSchema = exports.DuplicateToolResponseBodyStatus$inboundSchema;
/** @internal */
exports.DuplicateToolResponseBodyType$inboundSchema = z.nativeEnum(exports.DuplicateToolResponseBodyType);
/** @internal */
exports.DuplicateToolResponseBodyType$outboundSchema = exports.DuplicateToolResponseBodyType$inboundSchema;
/** @internal */
exports.DuplicateToolResponseBodyFunction$inboundSchema = z.object({
    name: z.string(),
    description: z.string().optional(),
    strict: z.boolean().optional(),
    parameters: z.record(z.any()).optional(),
});
/** @internal */
exports.DuplicateToolResponseBodyFunction$outboundSchema = z.object({
    name: z.string(),
    description: z.string().optional(),
    strict: z.boolean().optional(),
    parameters: z.record(z.any()).optional(),
});
function duplicateToolResponseBodyFunctionToJSON(duplicateToolResponseBodyFunction) {
    return JSON.stringify(exports.DuplicateToolResponseBodyFunction$outboundSchema.parse(duplicateToolResponseBodyFunction));
}
function duplicateToolResponseBodyFunctionFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DuplicateToolResponseBodyFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DuplicateToolResponseBodyFunction' from JSON`);
}
/** @internal */
exports.DuplicateToolResponseBody1$inboundSchema = z.object({
    _id: z.string().default("01K9QRS4Y6KFQG53NSWA2W3H4K"),
    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.DuplicateToolResponseBodyStatus$inboundSchema.default("live"),
    version_hash: z.string().optional(),
    type: exports.DuplicateToolResponseBodyType$inboundSchema,
    function: z.lazy(() => exports.DuplicateToolResponseBodyFunction$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.DuplicateToolResponseBody1$outboundSchema = z.object({
    id: z.string().default("01K9QRS4Y6KFQG53NSWA2W3H4K"),
    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.DuplicateToolResponseBodyStatus$outboundSchema.default("live"),
    versionHash: z.string().optional(),
    type: exports.DuplicateToolResponseBodyType$outboundSchema,
    function: z.lazy(() => exports.DuplicateToolResponseBodyFunction$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 duplicateToolResponseBody1ToJSON(duplicateToolResponseBody1) {
    return JSON.stringify(exports.DuplicateToolResponseBody1$outboundSchema.parse(duplicateToolResponseBody1));
}
function duplicateToolResponseBody1FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DuplicateToolResponseBody1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DuplicateToolResponseBody1' from JSON`);
}
/** @internal */
exports.DuplicateToolResponseBody$inboundSchema = z.union([
    z.lazy(() => exports.DuplicateToolResponseBody1$inboundSchema),
    z.lazy(() => exports.DuplicateToolResponseBody2$inboundSchema),
    z.lazy(() => exports.DuplicateToolResponseBody3$inboundSchema),
    z.lazy(() => exports.DuplicateToolResponseBody4$inboundSchema),
    z.lazy(() => exports.DuplicateToolResponseBody5$inboundSchema),
]);
/** @internal */
exports.DuplicateToolResponseBody$outboundSchema = z.union([
    z.lazy(() => exports.DuplicateToolResponseBody1$outboundSchema),
    z.lazy(() => exports.DuplicateToolResponseBody2$outboundSchema),
    z.lazy(() => exports.DuplicateToolResponseBody3$outboundSchema),
    z.lazy(() => exports.DuplicateToolResponseBody4$outboundSchema),
    z.lazy(() => exports.DuplicateToolResponseBody5$outboundSchema),
]);
function duplicateToolResponseBodyToJSON(duplicateToolResponseBody) {
    return JSON.stringify(exports.DuplicateToolResponseBody$outboundSchema.parse(duplicateToolResponseBody));
}
function duplicateToolResponseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DuplicateToolResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DuplicateToolResponseBody' from JSON`);
}
//# sourceMappingURL=duplicatetool.js.map