"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.DataConnectionType$outboundSchema = exports.DataConnectionType$inboundSchema = exports.DataTools$outboundSchema = exports.DataTools$inboundSchema = exports.GetAllToolsDataSchema$outboundSchema = exports.GetAllToolsDataSchema$inboundSchema = exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type$outboundSchema = exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type$inboundSchema = exports.DataHeaders$outboundSchema = exports.DataHeaders$inboundSchema = exports.GetAllToolsDataToolsResponse200Type$outboundSchema = exports.GetAllToolsDataToolsResponse200Type$inboundSchema = exports.GetAllToolsDataToolsResponseStatus$outboundSchema = exports.GetAllToolsDataToolsResponseStatus$inboundSchema = exports.DataCodeExecutionTool$outboundSchema = exports.DataCodeExecutionTool$inboundSchema = exports.DataCodeTool$outboundSchema = exports.DataCodeTool$inboundSchema = exports.DataLanguage$outboundSchema = exports.DataLanguage$inboundSchema = exports.GetAllToolsDataParameters$outboundSchema = exports.GetAllToolsDataParameters$inboundSchema = exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type$outboundSchema = exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type$inboundSchema = exports.GetAllToolsDataToolsResponse200ApplicationJSONType$outboundSchema = exports.GetAllToolsDataToolsResponse200ApplicationJSONType$inboundSchema = exports.GetAllToolsDataToolsResponse200Status$outboundSchema = exports.GetAllToolsDataToolsResponse200Status$inboundSchema = exports.GetAllToolsObject$outboundSchema = exports.GetAllToolsObject$inboundSchema = exports.GetAllToolsRequest$outboundSchema = exports.GetAllToolsRequest$inboundSchema = exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType = exports.GetAllToolsDataType = exports.DataStatus = exports.GetAllToolsDataToolsType = exports.GetAllToolsDataStatus = exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type = exports.GetAllToolsDataMethod = exports.GetAllToolsDataToolsResponseType = exports.GetAllToolsDataToolsStatus = exports.DataConnectionType = exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type = exports.GetAllToolsDataToolsResponse200Type = exports.GetAllToolsDataToolsResponseStatus = exports.DataLanguage = exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type = exports.GetAllToolsDataToolsResponse200ApplicationJSONType = exports.GetAllToolsDataToolsResponse200Status = exports.GetAllToolsObject = void 0;
exports.GetAllToolsData$outboundSchema = exports.GetAllToolsData$inboundSchema = exports.DataFunctionTool$outboundSchema = exports.DataFunctionTool$inboundSchema = exports.GetAllToolsDataFunction$outboundSchema = exports.GetAllToolsDataFunction$inboundSchema = exports.DataParameters$outboundSchema = exports.DataParameters$inboundSchema = exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$outboundSchema = exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$inboundSchema = exports.GetAllToolsDataType$outboundSchema = exports.GetAllToolsDataType$inboundSchema = exports.DataStatus$outboundSchema = exports.DataStatus$inboundSchema = exports.DataJSONSchemaTool$outboundSchema = exports.DataJSONSchemaTool$inboundSchema = exports.DataJsonSchema$outboundSchema = exports.DataJsonSchema$inboundSchema = exports.DataSchema$outboundSchema = exports.DataSchema$inboundSchema = exports.GetAllToolsDataToolsType$outboundSchema = exports.GetAllToolsDataToolsType$inboundSchema = exports.GetAllToolsDataStatus$outboundSchema = exports.GetAllToolsDataStatus$inboundSchema = exports.DataHTTPTool$outboundSchema = exports.DataHTTPTool$inboundSchema = exports.GetAllToolsDataHttp$outboundSchema = exports.GetAllToolsDataHttp$inboundSchema = exports.DataArguments$outboundSchema = exports.DataArguments$inboundSchema = exports.DataDefaultValue$outboundSchema = exports.DataDefaultValue$inboundSchema = exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type$outboundSchema = exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type$inboundSchema = exports.DataBlueprint$outboundSchema = exports.DataBlueprint$inboundSchema = exports.GetAllToolsDataHeaders$outboundSchema = exports.GetAllToolsDataHeaders$inboundSchema = exports.GetAllToolsHeaders2$outboundSchema = exports.GetAllToolsHeaders2$inboundSchema = exports.GetAllToolsDataMethod$outboundSchema = exports.GetAllToolsDataMethod$inboundSchema = exports.GetAllToolsDataToolsResponseType$outboundSchema = exports.GetAllToolsDataToolsResponseType$inboundSchema = exports.GetAllToolsDataToolsStatus$outboundSchema = exports.GetAllToolsDataToolsStatus$inboundSchema = exports.DataMCPTool$outboundSchema = exports.DataMCPTool$inboundSchema = exports.DataMcp$outboundSchema = exports.DataMcp$inboundSchema = void 0;
exports.GetAllToolsResponseBody$outboundSchema = exports.GetAllToolsResponseBody$inboundSchema = void 0;
exports.getAllToolsRequestToJSON = getAllToolsRequestToJSON;
exports.getAllToolsRequestFromJSON = getAllToolsRequestFromJSON;
exports.getAllToolsDataParametersToJSON = getAllToolsDataParametersToJSON;
exports.getAllToolsDataParametersFromJSON = getAllToolsDataParametersFromJSON;
exports.dataCodeToolToJSON = dataCodeToolToJSON;
exports.dataCodeToolFromJSON = dataCodeToolFromJSON;
exports.dataCodeExecutionToolToJSON = dataCodeExecutionToolToJSON;
exports.dataCodeExecutionToolFromJSON = dataCodeExecutionToolFromJSON;
exports.dataHeadersToJSON = dataHeadersToJSON;
exports.dataHeadersFromJSON = dataHeadersFromJSON;
exports.getAllToolsDataSchemaToJSON = getAllToolsDataSchemaToJSON;
exports.getAllToolsDataSchemaFromJSON = getAllToolsDataSchemaFromJSON;
exports.dataToolsToJSON = dataToolsToJSON;
exports.dataToolsFromJSON = dataToolsFromJSON;
exports.dataMcpToJSON = dataMcpToJSON;
exports.dataMcpFromJSON = dataMcpFromJSON;
exports.dataMCPToolToJSON = dataMCPToolToJSON;
exports.dataMCPToolFromJSON = dataMCPToolFromJSON;
exports.getAllToolsHeaders2ToJSON = getAllToolsHeaders2ToJSON;
exports.getAllToolsHeaders2FromJSON = getAllToolsHeaders2FromJSON;
exports.getAllToolsDataHeadersToJSON = getAllToolsDataHeadersToJSON;
exports.getAllToolsDataHeadersFromJSON = getAllToolsDataHeadersFromJSON;
exports.dataBlueprintToJSON = dataBlueprintToJSON;
exports.dataBlueprintFromJSON = dataBlueprintFromJSON;
exports.dataDefaultValueToJSON = dataDefaultValueToJSON;
exports.dataDefaultValueFromJSON = dataDefaultValueFromJSON;
exports.dataArgumentsToJSON = dataArgumentsToJSON;
exports.dataArgumentsFromJSON = dataArgumentsFromJSON;
exports.getAllToolsDataHttpToJSON = getAllToolsDataHttpToJSON;
exports.getAllToolsDataHttpFromJSON = getAllToolsDataHttpFromJSON;
exports.dataHTTPToolToJSON = dataHTTPToolToJSON;
exports.dataHTTPToolFromJSON = dataHTTPToolFromJSON;
exports.dataSchemaToJSON = dataSchemaToJSON;
exports.dataSchemaFromJSON = dataSchemaFromJSON;
exports.dataJsonSchemaToJSON = dataJsonSchemaToJSON;
exports.dataJsonSchemaFromJSON = dataJsonSchemaFromJSON;
exports.dataJSONSchemaToolToJSON = dataJSONSchemaToolToJSON;
exports.dataJSONSchemaToolFromJSON = dataJSONSchemaToolFromJSON;
exports.dataParametersToJSON = dataParametersToJSON;
exports.dataParametersFromJSON = dataParametersFromJSON;
exports.getAllToolsDataFunctionToJSON = getAllToolsDataFunctionToJSON;
exports.getAllToolsDataFunctionFromJSON = getAllToolsDataFunctionFromJSON;
exports.dataFunctionToolToJSON = dataFunctionToolToJSON;
exports.dataFunctionToolFromJSON = dataFunctionToolFromJSON;
exports.getAllToolsDataToJSON = getAllToolsDataToJSON;
exports.getAllToolsDataFromJSON = getAllToolsDataFromJSON;
exports.getAllToolsResponseBodyToJSON = getAllToolsResponseBodyToJSON;
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",
};
exports.GetAllToolsDataToolsResponse200ApplicationJSONType = {
    Code: "code",
};
/**
 * 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.GetAllToolsDataToolsResponse200Type = {
    Mcp: "mcp",
};
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",
};
exports.GetAllToolsDataToolsResponseType = {
    Http: "http",
};
/**
 * 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",
};
exports.GetAllToolsDataToolsType = {
    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.DataStatus = {
    Live: "live",
    Draft: "draft",
    Pending: "pending",
    Published: "published",
};
exports.GetAllToolsDataType = {
    Function: "function",
};
/**
 * The type must be "object"
 */
exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType = {
    Object: "object",
};
/** @internal */
exports.GetAllToolsRequest$inboundSchema = z.object({
    limit: z.number().optional(),
    starting_after: z.string().optional(),
    ending_before: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "starting_after": "startingAfter",
        "ending_before": "endingBefore",
    });
});
/** @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));
}
function getAllToolsRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllToolsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllToolsRequest' from JSON`);
}
/** @internal */
exports.GetAllToolsObject$inboundSchema = z.nativeEnum(exports.GetAllToolsObject);
/** @internal */
exports.GetAllToolsObject$outboundSchema = exports.GetAllToolsObject$inboundSchema;
/** @internal */
exports.GetAllToolsDataToolsResponse200Status$inboundSchema = z.nativeEnum(exports.GetAllToolsDataToolsResponse200Status);
/** @internal */
exports.GetAllToolsDataToolsResponse200Status$outboundSchema = exports.GetAllToolsDataToolsResponse200Status$inboundSchema;
/** @internal */
exports.GetAllToolsDataToolsResponse200ApplicationJSONType$inboundSchema = z
    .nativeEnum(exports.GetAllToolsDataToolsResponse200ApplicationJSONType);
/** @internal */
exports.GetAllToolsDataToolsResponse200ApplicationJSONType$outboundSchema = exports.GetAllToolsDataToolsResponse200ApplicationJSONType$inboundSchema;
/** @internal */
exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type$inboundSchema = z.nativeEnum(exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type);
/** @internal */
exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type$outboundSchema = exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type$inboundSchema;
/** @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);
/** @internal */
exports.GetAllToolsDataParameters$outboundSchema = z.object({
    type: exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type$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 getAllToolsDataParametersToJSON(getAllToolsDataParameters) {
    return JSON.stringify(exports.GetAllToolsDataParameters$outboundSchema.parse(getAllToolsDataParameters));
}
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.DataLanguage$outboundSchema = exports.DataLanguage$inboundSchema;
/** @internal */
exports.DataCodeTool$inboundSchema = z.object({
    parameters: z.lazy(() => exports.GetAllToolsDataParameters$inboundSchema).optional(),
    language: exports.DataLanguage$inboundSchema,
    code: z.string(),
});
/** @internal */
exports.DataCodeTool$outboundSchema = z.object({
    parameters: z.lazy(() => exports.GetAllToolsDataParameters$outboundSchema).optional(),
    language: exports.DataLanguage$outboundSchema,
    code: z.string(),
});
function dataCodeToolToJSON(dataCodeTool) {
    return JSON.stringify(exports.DataCodeTool$outboundSchema.parse(dataCodeTool));
}
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_01KAXX9J65BPYTZQSZ8KVB0P4D"),
    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"),
    version_hash: z.string().optional(),
    type: exports.GetAllToolsDataToolsResponse200ApplicationJSONType$inboundSchema,
    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",
        "version_hash": "versionHash",
        "code_tool": "codeTool",
    });
});
/** @internal */
exports.DataCodeExecutionTool$outboundSchema = z.object({
    id: z.string().default("tool_01KAXX9J65BPYTZQSZ8KVB0P4D"),
    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.GetAllToolsDataToolsResponse200Status$outboundSchema.default("live"),
    versionHash: z.string().optional(),
    type: exports.GetAllToolsDataToolsResponse200ApplicationJSONType$outboundSchema,
    codeTool: z.lazy(() => exports.DataCodeTool$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 dataCodeExecutionToolToJSON(dataCodeExecutionTool) {
    return JSON.stringify(exports.DataCodeExecutionTool$outboundSchema.parse(dataCodeExecutionTool));
}
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.GetAllToolsDataToolsResponseStatus$outboundSchema = exports.GetAllToolsDataToolsResponseStatus$inboundSchema;
/** @internal */
exports.GetAllToolsDataToolsResponse200Type$inboundSchema = z.nativeEnum(exports.GetAllToolsDataToolsResponse200Type);
/** @internal */
exports.GetAllToolsDataToolsResponse200Type$outboundSchema = exports.GetAllToolsDataToolsResponse200Type$inboundSchema;
/** @internal */
exports.DataHeaders$inboundSchema = z.object({
    value: z.string(),
    encrypted: z.boolean().default(false),
});
/** @internal */
exports.DataHeaders$outboundSchema = z.object({
    value: z.string(),
    encrypted: z.boolean().default(false),
});
function dataHeadersToJSON(dataHeaders) {
    return JSON.stringify(exports.DataHeaders$outboundSchema.parse(dataHeaders));
}
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.GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type$outboundSchema = exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type$inboundSchema;
/** @internal */
exports.GetAllToolsDataSchema$inboundSchema = z.object({
    type: exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type$inboundSchema,
    properties: z.record(z.any()).optional(),
    required: z.array(z.string()).optional(),
});
/** @internal */
exports.GetAllToolsDataSchema$outboundSchema = z.object({
    type: exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type$outboundSchema,
    properties: z.record(z.any()).optional(),
    required: z.array(z.string()).optional(),
});
function getAllToolsDataSchemaToJSON(getAllToolsDataSchema) {
    return JSON.stringify(exports.GetAllToolsDataSchema$outboundSchema.parse(getAllToolsDataSchema));
}
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("01KAXX9J64HP6WN576JP2YJ3DZ"),
    name: z.string(),
    description: z.string().optional(),
    schema: z.lazy(() => exports.GetAllToolsDataSchema$inboundSchema),
});
/** @internal */
exports.DataTools$outboundSchema = z.object({
    id: z.string().default("01KAXX9J64HP6WN576JP2YJ3DZ"),
    name: z.string(),
    description: z.string().optional(),
    schema: z.lazy(() => exports.GetAllToolsDataSchema$outboundSchema),
});
function dataToolsToJSON(dataTools) {
    return JSON.stringify(exports.DataTools$outboundSchema.parse(dataTools));
}
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.DataConnectionType$outboundSchema = exports.DataConnectionType$inboundSchema;
/** @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,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "server_url": "serverUrl",
        "connection_type": "connectionType",
    });
});
/** @internal */
exports.DataMcp$outboundSchema = z.object({
    serverUrl: z.string(),
    headers: z.record(z.lazy(() => exports.DataHeaders$outboundSchema)).optional(),
    tools: z.array(z.lazy(() => exports.DataTools$outboundSchema)),
    connectionType: exports.DataConnectionType$outboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        serverUrl: "server_url",
        connectionType: "connection_type",
    });
});
function dataMcpToJSON(dataMcp) {
    return JSON.stringify(exports.DataMcp$outboundSchema.parse(dataMcp));
}
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_01KAXX9J5W3XVNS01C6JJM7SQ3"),
    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"),
    version_hash: z.string().optional(),
    type: exports.GetAllToolsDataToolsResponse200Type$inboundSchema,
    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",
        "version_hash": "versionHash",
    });
});
/** @internal */
exports.DataMCPTool$outboundSchema = z.object({
    id: z.string().default("tool_01KAXX9J5W3XVNS01C6JJM7SQ3"),
    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.GetAllToolsDataToolsResponseStatus$outboundSchema.default("live"),
    versionHash: z.string().optional(),
    type: exports.GetAllToolsDataToolsResponse200Type$outboundSchema,
    mcp: z.lazy(() => exports.DataMcp$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 dataMCPToolToJSON(dataMCPTool) {
    return JSON.stringify(exports.DataMCPTool$outboundSchema.parse(dataMCPTool));
}
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.GetAllToolsDataToolsStatus$outboundSchema = exports.GetAllToolsDataToolsStatus$inboundSchema;
/** @internal */
exports.GetAllToolsDataToolsResponseType$inboundSchema = z.nativeEnum(exports.GetAllToolsDataToolsResponseType);
/** @internal */
exports.GetAllToolsDataToolsResponseType$outboundSchema = exports.GetAllToolsDataToolsResponseType$inboundSchema;
/** @internal */
exports.GetAllToolsDataMethod$inboundSchema = z.nativeEnum(exports.GetAllToolsDataMethod);
/** @internal */
exports.GetAllToolsDataMethod$outboundSchema = exports.GetAllToolsDataMethod$inboundSchema;
/** @internal */
exports.GetAllToolsHeaders2$inboundSchema = z.object({
    value: z.string(),
    encrypted: z.boolean().default(false),
});
/** @internal */
exports.GetAllToolsHeaders2$outboundSchema = z.object({
    value: z.string(),
    encrypted: z.boolean().default(false),
});
function getAllToolsHeaders2ToJSON(getAllToolsHeaders2) {
    return JSON.stringify(exports.GetAllToolsHeaders2$outboundSchema.parse(getAllToolsHeaders2));
}
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()]);
/** @internal */
exports.GetAllToolsDataHeaders$outboundSchema = z.union([z.lazy(() => exports.GetAllToolsHeaders2$outboundSchema), z.string()]);
function getAllToolsDataHeadersToJSON(getAllToolsDataHeaders) {
    return JSON.stringify(exports.GetAllToolsDataHeaders$outboundSchema.parse(getAllToolsDataHeaders));
}
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(),
});
/** @internal */
exports.DataBlueprint$outboundSchema = z.object({
    url: z.string(),
    method: exports.GetAllToolsDataMethod$outboundSchema,
    headers: z.record(z.union([z.lazy(() => exports.GetAllToolsHeaders2$outboundSchema), z.string()])).optional(),
    body: z.record(z.any()).optional(),
});
function dataBlueprintToJSON(dataBlueprint) {
    return JSON.stringify(exports.DataBlueprint$outboundSchema.parse(dataBlueprint));
}
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.GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type$outboundSchema = exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type$inboundSchema;
/** @internal */
exports.DataDefaultValue$inboundSchema = z.union([z.string(), z.number(), z.boolean()]);
/** @internal */
exports.DataDefaultValue$outboundSchema = z.union([z.string(), z.number(), z.boolean()]);
function dataDefaultValueToJSON(dataDefaultValue) {
    return JSON.stringify(exports.DataDefaultValue$outboundSchema.parse(dataDefaultValue));
}
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",
    });
});
/** @internal */
exports.DataArguments$outboundSchema = z.object({
    type: exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type$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 dataArgumentsToJSON(dataArguments) {
    return JSON.stringify(exports.DataArguments$outboundSchema.parse(dataArguments));
}
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(),
});
/** @internal */
exports.GetAllToolsDataHttp$outboundSchema = z.object({
    blueprint: z.lazy(() => exports.DataBlueprint$outboundSchema),
    arguments: z.record(z.lazy(() => exports.DataArguments$outboundSchema)).optional(),
});
function getAllToolsDataHttpToJSON(getAllToolsDataHttp) {
    return JSON.stringify(exports.GetAllToolsDataHttp$outboundSchema.parse(getAllToolsDataHttp));
}
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_01KAXX9J5TJ64S4SKM0N1YNNEV"),
    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"),
    version_hash: z.string().optional(),
    type: exports.GetAllToolsDataToolsResponseType$inboundSchema,
    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",
        "version_hash": "versionHash",
    });
});
/** @internal */
exports.DataHTTPTool$outboundSchema = z.object({
    id: z.string().default("tool_01KAXX9J5TJ64S4SKM0N1YNNEV"),
    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.GetAllToolsDataToolsStatus$outboundSchema.default("live"),
    versionHash: z.string().optional(),
    type: exports.GetAllToolsDataToolsResponseType$outboundSchema,
    http: z.lazy(() => exports.GetAllToolsDataHttp$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 dataHTTPToolToJSON(dataHTTPTool) {
    return JSON.stringify(exports.DataHTTPTool$outboundSchema.parse(dataHTTPTool));
}
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.GetAllToolsDataStatus$outboundSchema = exports.GetAllToolsDataStatus$inboundSchema;
/** @internal */
exports.GetAllToolsDataToolsType$inboundSchema = z.nativeEnum(exports.GetAllToolsDataToolsType);
/** @internal */
exports.GetAllToolsDataToolsType$outboundSchema = exports.GetAllToolsDataToolsType$inboundSchema;
/** @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);
/** @internal */
exports.DataSchema$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 dataSchemaToJSON(dataSchema) {
    return JSON.stringify(exports.DataSchema$outboundSchema.parse(dataSchema));
}
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(),
});
/** @internal */
exports.DataJsonSchema$outboundSchema = z.object({
    name: z.string(),
    description: z.string(),
    schema: z.lazy(() => exports.DataSchema$outboundSchema),
    strict: z.boolean().optional(),
});
function dataJsonSchemaToJSON(dataJsonSchema) {
    return JSON.stringify(exports.DataJsonSchema$outboundSchema.parse(dataJsonSchema));
}
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_01KAXX9J5RRA44K1E6HKV9TFNB"),
    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"),
    version_hash: z.string().optional(),
    type: exports.GetAllToolsDataToolsType$inboundSchema,
    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",
        "version_hash": "versionHash",
        "json_schema": "jsonSchema",
    });
});
/** @internal */
exports.DataJSONSchemaTool$outboundSchema = z.object({
    id: z.string().default("tool_01KAXX9J5RRA44K1E6HKV9TFNB"),
    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.GetAllToolsDataStatus$outboundSchema.default("live"),
    versionHash: z.string().optional(),
    type: exports.GetAllToolsDataToolsType$outboundSchema,
    jsonSchema: z.lazy(() => exports.DataJsonSchema$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 dataJSONSchemaToolToJSON(dataJSONSchemaTool) {
    return JSON.stringify(exports.DataJSONSchemaTool$outboundSchema.parse(dataJSONSchemaTool));
}
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.DataStatus$outboundSchema = exports.DataStatus$inboundSchema;
/** @internal */
exports.GetAllToolsDataType$inboundSchema = z.nativeEnum(exports.GetAllToolsDataType);
/** @internal */
exports.GetAllToolsDataType$outboundSchema = exports.GetAllToolsDataType$inboundSchema;
/** @internal */
exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$inboundSchema = z.nativeEnum(exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType);
/** @internal */
exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$outboundSchema = exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$inboundSchema;
/** @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);
/** @internal */
exports.DataParameters$outboundSchema = z.object({
    type: exports.GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$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 dataParametersToJSON(dataParameters) {
    return JSON.stringify(exports.DataParameters$outboundSchema.parse(dataParameters));
}
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(),
});
/** @internal */
exports.GetAllToolsDataFunction$outboundSchema = z.object({
    name: z.string(),
    description: z.string().optional(),
    strict: z.boolean().optional(),
    parameters: z.lazy(() => exports.DataParameters$outboundSchema).optional(),
});
function getAllToolsDataFunctionToJSON(getAllToolsDataFunction) {
    return JSON.stringify(exports.GetAllToolsDataFunction$outboundSchema.parse(getAllToolsDataFunction));
}
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_01KAXX9J5QHY1YVP5HDYRD7BY9"),
    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"),
    version_hash: z.string().optional(),
    type: exports.GetAllToolsDataType$inboundSchema,
    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",
        "version_hash": "versionHash",
    });
});
/** @internal */
exports.DataFunctionTool$outboundSchema = z.object({
    id: z.string().default("tool_01KAXX9J5QHY1YVP5HDYRD7BY9"),
    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.DataStatus$outboundSchema.default("live"),
    versionHash: z.string().optional(),
    type: exports.GetAllToolsDataType$outboundSchema,
    function: z.lazy(() => exports.GetAllToolsDataFunction$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 dataFunctionToolToJSON(dataFunctionTool) {
    return JSON.stringify(exports.DataFunctionTool$outboundSchema.parse(dataFunctionTool));
}
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),
]);
/** @internal */
exports.GetAllToolsData$outboundSchema = z.union([
    z.lazy(() => exports.DataFunctionTool$outboundSchema),
    z.lazy(() => exports.DataJSONSchemaTool$outboundSchema),
    z.lazy(() => exports.DataHTTPTool$outboundSchema),
    z.lazy(() => exports.DataMCPTool$outboundSchema),
    z.lazy(() => exports.DataCodeExecutionTool$outboundSchema),
]);
function getAllToolsDataToJSON(getAllToolsData) {
    return JSON.stringify(exports.GetAllToolsData$outboundSchema.parse(getAllToolsData));
}
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",
    });
});
/** @internal */
exports.GetAllToolsResponseBody$outboundSchema = z.object({
    object: exports.GetAllToolsObject$outboundSchema,
    data: z.array(z.union([
        z.lazy(() => exports.DataFunctionTool$outboundSchema),
        z.lazy(() => exports.DataJSONSchemaTool$outboundSchema),
        z.lazy(() => exports.DataHTTPTool$outboundSchema),
        z.lazy(() => exports.DataMCPTool$outboundSchema),
        z.lazy(() => exports.DataCodeExecutionTool$outboundSchema),
    ])),
    hasMore: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        hasMore: "has_more",
    });
});
function getAllToolsResponseBodyToJSON(getAllToolsResponseBody) {
    return JSON.stringify(exports.GetAllToolsResponseBody$outboundSchema.parse(getAllToolsResponseBody));
}
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