"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.GetAllToolsResponseBody$inboundSchema = exports.GetAllToolsData$inboundSchema = exports.DataFunctionTool$inboundSchema = exports.GetAllToolsDataFunction$inboundSchema = exports.DataParameters$inboundSchema = exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$inboundSchema = exports.DataStatus$inboundSchema = exports.DataJSONSchemaTool$inboundSchema = exports.DataJsonSchema$inboundSchema = exports.DataSchema$inboundSchema = exports.GetAllToolsDataStatus$inboundSchema = exports.DataHTTPTool$inboundSchema = exports.GetAllToolsDataHttp$inboundSchema = exports.DataArguments$inboundSchema = exports.DataDefaultValue$inboundSchema = exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type$inboundSchema = exports.DataBlueprint$inboundSchema = exports.GetAllToolsDataHeaders$inboundSchema = exports.GetAllToolsHeaders2$inboundSchema = exports.GetAllToolsDataMethod$inboundSchema = exports.GetAllToolsDataToolsStatus$inboundSchema = exports.DataMCPTool$inboundSchema = exports.DataMcp$inboundSchema = exports.DataConnectionType$inboundSchema = exports.DataTools$inboundSchema = exports.GetAllToolsDataSchema$inboundSchema = exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type$inboundSchema = exports.DataHeaders$inboundSchema = exports.GetAllToolsDataToolsResponseStatus$inboundSchema = exports.DataCodeExecutionTool$inboundSchema = exports.DataCodeTool$inboundSchema = exports.DataLanguage$inboundSchema = exports.GetAllToolsDataParameters$inboundSchema = exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type$inboundSchema = exports.GetAllToolsDataToolsResponse200Status$inboundSchema = exports.GetAllToolsObject$inboundSchema = exports.GetAllToolsRequest$outboundSchema = exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType = exports.DataStatus = exports.GetAllToolsDataStatus = exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type = exports.GetAllToolsDataMethod = exports.GetAllToolsDataToolsStatus = exports.DataConnectionType = exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type = exports.GetAllToolsDataToolsResponseStatus = exports.DataLanguage = exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type = exports.GetAllToolsDataToolsResponse200Status = exports.GetAllToolsObject = void 0;
exports.getAllToolsRequestToJSON = getAllToolsRequestToJSON;
exports.getAllToolsDataParametersFromJSON = getAllToolsDataParametersFromJSON;
exports.dataCodeToolFromJSON = dataCodeToolFromJSON;
exports.dataCodeExecutionToolFromJSON = dataCodeExecutionToolFromJSON;
exports.dataHeadersFromJSON = dataHeadersFromJSON;
exports.getAllToolsDataSchemaFromJSON = getAllToolsDataSchemaFromJSON;
exports.dataToolsFromJSON = dataToolsFromJSON;
exports.dataMcpFromJSON = dataMcpFromJSON;
exports.dataMCPToolFromJSON = dataMCPToolFromJSON;
exports.getAllToolsHeaders2FromJSON = getAllToolsHeaders2FromJSON;
exports.getAllToolsDataHeadersFromJSON = getAllToolsDataHeadersFromJSON;
exports.dataBlueprintFromJSON = dataBlueprintFromJSON;
exports.dataDefaultValueFromJSON = dataDefaultValueFromJSON;
exports.dataArgumentsFromJSON = dataArgumentsFromJSON;
exports.getAllToolsDataHttpFromJSON = getAllToolsDataHttpFromJSON;
exports.dataHTTPToolFromJSON = dataHTTPToolFromJSON;
exports.dataSchemaFromJSON = dataSchemaFromJSON;
exports.dataJsonSchemaFromJSON = dataJsonSchemaFromJSON;
exports.dataJSONSchemaToolFromJSON = dataJSONSchemaToolFromJSON;
exports.dataParametersFromJSON = dataParametersFromJSON;
exports.getAllToolsDataFunctionFromJSON = getAllToolsDataFunctionFromJSON;
exports.dataFunctionToolFromJSON = dataFunctionToolFromJSON;
exports.getAllToolsDataFromJSON = getAllToolsDataFromJSON;
exports.getAllToolsResponseBodyFromJSON = getAllToolsResponseBodyFromJSON;
const z = __importStar(require("zod/v3"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
exports.GetAllToolsObject = {
    List: "list",
};
/**
 * 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.GetAllToolsDataToolsResponse200Status = {
    Live: "live",
    Draft: "draft",
    Pending: "pending",
    Published: "published",
};
/**
 * The type must be "object"
 */
exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type = {
    Object: "object",
};
exports.DataLanguage = {
    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.GetAllToolsDataToolsResponseStatus = {
    Live: "live",
    Draft: "draft",
    Pending: "pending",
    Published: "published",
};
exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type = {
    Object: "object",
};
/**
 * The connection type used by the MCP server
 */
exports.DataConnectionType = {
    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.GetAllToolsDataToolsStatus = {
    Live: "live",
    Draft: "draft",
    Pending: "pending",
    Published: "published",
};
/**
 * The HTTP method to use.
 */
exports.GetAllToolsDataMethod = {
    Get: "GET",
    Post: "POST",
    Put: "PUT",
    Delete: "DELETE",
};
/**
 * The type of the argument.
 */
exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type = {
    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.GetAllToolsDataStatus = {
    Live: "live",
    Draft: "draft",
    Pending: "pending",
    Published: "published",
};
/**
 * 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.DataStatus = {
    Live: "live",
    Draft: "draft",
    Pending: "pending",
    Published: "published",
};
/**
 * The type must be "object"
 */
exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType = {
    Object: "object",
};
/** @internal */
exports.GetAllToolsRequest$outboundSchema = z.object({
    limit: z.number().optional(),
    startingAfter: z.string().optional(),
    endingBefore: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        startingAfter: "starting_after",
        endingBefore: "ending_before",
    });
});
function getAllToolsRequestToJSON(getAllToolsRequest) {
    return JSON.stringify(exports.GetAllToolsRequest$outboundSchema.parse(getAllToolsRequest));
}
/** @internal */
exports.GetAllToolsObject$inboundSchema = z.nativeEnum(exports.GetAllToolsObject);
/** @internal */
exports.GetAllToolsDataToolsResponse200Status$inboundSchema = z.nativeEnum(exports.GetAllToolsDataToolsResponse200Status);
/** @internal */
exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type$inboundSchema = z.nativeEnum(exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type);
/** @internal */
exports.GetAllToolsDataParameters$inboundSchema = (0, schemas_js_1.collectExtraKeys)(z.object({
    type: exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type$inboundSchema,
    properties: z.record(z.any()),
    required: z.array(z.string()),
}).catchall(z.any()), "additionalProperties", true);
function getAllToolsDataParametersFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllToolsDataParameters$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllToolsDataParameters' from JSON`);
}
/** @internal */
exports.DataLanguage$inboundSchema = z.nativeEnum(exports.DataLanguage);
/** @internal */
exports.DataCodeTool$inboundSchema = z.object({
    parameters: z.lazy(() => exports.GetAllToolsDataParameters$inboundSchema).optional(),
    language: exports.DataLanguage$inboundSchema,
    code: z.string(),
});
function dataCodeToolFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataCodeTool$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataCodeTool' from JSON`);
}
/** @internal */
exports.DataCodeExecutionTool$inboundSchema = z.object({
    _id: z.string().default("tool_01KT3HCZ4ZR7G4BN9RVNE2KXKQ"),
    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.GetAllToolsDataToolsResponse200Status$inboundSchema.default("live"),
    type: z.literal("code"),
    code_tool: z.lazy(() => exports.DataCodeTool$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",
        "code_tool": "codeTool",
    });
});
function dataCodeExecutionToolFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataCodeExecutionTool$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataCodeExecutionTool' from JSON`);
}
/** @internal */
exports.GetAllToolsDataToolsResponseStatus$inboundSchema = z.nativeEnum(exports.GetAllToolsDataToolsResponseStatus);
/** @internal */
exports.DataHeaders$inboundSchema = z.object({
    value: z.string(),
    encrypted: z.boolean().default(false),
});
function dataHeadersFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataHeaders$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataHeaders' from JSON`);
}
/** @internal */
exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type$inboundSchema = z.nativeEnum(exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type);
/** @internal */
exports.GetAllToolsDataSchema$inboundSchema = z.object({
    type: exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type$inboundSchema,
    properties: z.record(z.any()).optional(),
    required: z.array(z.string()).optional(),
});
function getAllToolsDataSchemaFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllToolsDataSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllToolsDataSchema' from JSON`);
}
/** @internal */
exports.DataTools$inboundSchema = z.object({
    id: z.string().default("01KT3HCZ4YG6B42K0WDXBCB2B3"),
    name: z.string(),
    description: z.string().optional(),
    schema: z.lazy(() => exports.GetAllToolsDataSchema$inboundSchema),
});
function dataToolsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataTools$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataTools' from JSON`);
}
/** @internal */
exports.DataConnectionType$inboundSchema = z.nativeEnum(exports.DataConnectionType);
/** @internal */
exports.DataMcp$inboundSchema = z.object({
    server_url: z.string(),
    headers: z.record(z.lazy(() => exports.DataHeaders$inboundSchema)).optional(),
    tools: z.array(z.lazy(() => exports.DataTools$inboundSchema)),
    connection_type: exports.DataConnectionType$inboundSchema,
    template_variables: z.nullable(z.array(z.string())).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "server_url": "serverUrl",
        "connection_type": "connectionType",
        "template_variables": "templateVariables",
    });
});
function dataMcpFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataMcp$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataMcp' from JSON`);
}
/** @internal */
exports.DataMCPTool$inboundSchema = z.object({
    _id: z.string().default("tool_01KT3HCZ4XS0VBKEN6Y7670MGG"),
    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.GetAllToolsDataToolsResponseStatus$inboundSchema.default("live"),
    type: z.literal("mcp"),
    mcp: z.lazy(() => exports.DataMcp$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",
    });
});
function dataMCPToolFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataMCPTool$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataMCPTool' from JSON`);
}
/** @internal */
exports.GetAllToolsDataToolsStatus$inboundSchema = z.nativeEnum(exports.GetAllToolsDataToolsStatus);
/** @internal */
exports.GetAllToolsDataMethod$inboundSchema = z.nativeEnum(exports.GetAllToolsDataMethod);
/** @internal */
exports.GetAllToolsHeaders2$inboundSchema = z.object({
    value: z.string(),
    encrypted: z.boolean().default(false),
});
function getAllToolsHeaders2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllToolsHeaders2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllToolsHeaders2' from JSON`);
}
/** @internal */
exports.GetAllToolsDataHeaders$inboundSchema = z.union([z.lazy(() => exports.GetAllToolsHeaders2$inboundSchema), z.string()]);
function getAllToolsDataHeadersFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllToolsDataHeaders$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllToolsDataHeaders' from JSON`);
}
/** @internal */
exports.DataBlueprint$inboundSchema = z.object({
    url: z.string(),
    method: exports.GetAllToolsDataMethod$inboundSchema,
    headers: z.record(z.union([z.lazy(() => exports.GetAllToolsHeaders2$inboundSchema), z.string()])).optional(),
    body: z.record(z.any()).optional(),
});
function dataBlueprintFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataBlueprint$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataBlueprint' from JSON`);
}
/** @internal */
exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type$inboundSchema = z.nativeEnum(exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type);
/** @internal */
exports.DataDefaultValue$inboundSchema = z.union([z.string(), z.number(), z.boolean()]);
function dataDefaultValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataDefaultValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataDefaultValue' from JSON`);
}
/** @internal */
exports.DataArguments$inboundSchema = z.object({
    type: exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type$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",
    });
});
function dataArgumentsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataArguments$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataArguments' from JSON`);
}
/** @internal */
exports.GetAllToolsDataHttp$inboundSchema = z.object({
    blueprint: z.lazy(() => exports.DataBlueprint$inboundSchema),
    arguments: z.record(z.lazy(() => exports.DataArguments$inboundSchema)).optional(),
});
function getAllToolsDataHttpFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllToolsDataHttp$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllToolsDataHttp' from JSON`);
}
/** @internal */
exports.DataHTTPTool$inboundSchema = z.object({
    _id: z.string().default("tool_01KT3HCZ4WCCJZQTGAXKVSRASH"),
    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.GetAllToolsDataToolsStatus$inboundSchema.default("live"),
    type: z.literal("http"),
    http: z.lazy(() => exports.GetAllToolsDataHttp$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",
    });
});
function dataHTTPToolFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataHTTPTool$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataHTTPTool' from JSON`);
}
/** @internal */
exports.GetAllToolsDataStatus$inboundSchema = z.nativeEnum(exports.GetAllToolsDataStatus);
/** @internal */
exports.DataSchema$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);
function dataSchemaFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataSchema' from JSON`);
}
/** @internal */
exports.DataJsonSchema$inboundSchema = z.object({
    name: z.string(),
    description: z.string(),
    schema: z.lazy(() => exports.DataSchema$inboundSchema),
    strict: z.boolean().optional(),
});
function dataJsonSchemaFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataJsonSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataJsonSchema' from JSON`);
}
/** @internal */
exports.DataJSONSchemaTool$inboundSchema = z.object({
    _id: z.string().default("tool_01KT3HCZ4THZ9XWGH5VGY0XSAY"),
    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.GetAllToolsDataStatus$inboundSchema.default("live"),
    type: z.literal("json_schema"),
    json_schema: z.lazy(() => exports.DataJsonSchema$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",
        "json_schema": "jsonSchema",
    });
});
function dataJSONSchemaToolFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataJSONSchemaTool$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataJSONSchemaTool' from JSON`);
}
/** @internal */
exports.DataStatus$inboundSchema = z
    .nativeEnum(exports.DataStatus);
/** @internal */
exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$inboundSchema = z.nativeEnum(exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType);
/** @internal */
exports.DataParameters$inboundSchema = (0, schemas_js_1.collectExtraKeys)(z.object({
    type: exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$inboundSchema,
    properties: z.record(z.any()),
    required: z.array(z.string()),
}).catchall(z.any()), "additionalProperties", true);
function dataParametersFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataParameters$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataParameters' from JSON`);
}
/** @internal */
exports.GetAllToolsDataFunction$inboundSchema = z.object({
    name: z.string(),
    description: z.string().optional(),
    strict: z.boolean().optional(),
    parameters: z.lazy(() => exports.DataParameters$inboundSchema).optional(),
});
function getAllToolsDataFunctionFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllToolsDataFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllToolsDataFunction' from JSON`);
}
/** @internal */
exports.DataFunctionTool$inboundSchema = z.object({
    _id: z.string().default("tool_01KT3HCZ4S8GM2KSRFHM6416KR"),
    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.DataStatus$inboundSchema.default("live"),
    type: z.literal("function"),
    function: z.lazy(() => exports.GetAllToolsDataFunction$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",
    });
});
function dataFunctionToolFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataFunctionTool$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataFunctionTool' from JSON`);
}
/** @internal */
exports.GetAllToolsData$inboundSchema = z.union([
    z.lazy(() => exports.DataFunctionTool$inboundSchema),
    z.lazy(() => exports.DataJSONSchemaTool$inboundSchema),
    z.lazy(() => exports.DataHTTPTool$inboundSchema),
    z.lazy(() => exports.DataMCPTool$inboundSchema),
    z.lazy(() => exports.DataCodeExecutionTool$inboundSchema),
]);
function getAllToolsDataFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllToolsData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllToolsData' from JSON`);
}
/** @internal */
exports.GetAllToolsResponseBody$inboundSchema = z.object({
    object: exports.GetAllToolsObject$inboundSchema,
    data: z.array(z.union([
        z.lazy(() => exports.DataFunctionTool$inboundSchema),
        z.lazy(() => exports.DataJSONSchemaTool$inboundSchema),
        z.lazy(() => exports.DataHTTPTool$inboundSchema),
        z.lazy(() => exports.DataMCPTool$inboundSchema),
        z.lazy(() => exports.DataCodeExecutionTool$inboundSchema),
    ])),
    has_more: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "has_more": "hasMore",
    });
});
function getAllToolsResponseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllToolsResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllToolsResponseBody' from JSON`);
}
//# sourceMappingURL=getalltools.js.map