@orq-ai/node 3.14.34 → 3.14.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bin/mcp-server.js +529 -517
- package/bin/mcp-server.js.map +52 -52
- package/docs/sdks/deployments/README.md +43 -43
- package/examples/package-lock.json +1 -1
- package/funcs/deploymentsInvoke.d.ts +1 -1
- package/funcs/deploymentsInvoke.d.ts.map +1 -1
- package/funcs/deploymentsInvoke.js +1 -1
- package/funcs/deploymentsInvoke.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +2 -2
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/deploymentsInvoke.d.ts +1 -1
- package/mcp-server/tools/deploymentsInvoke.js +1 -1
- package/mcp-server/tools/deploymentsInvoke.js.map +1 -1
- package/models/components/index.d.ts +1 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -1
- package/models/components/index.js.map +1 -1
- package/models/components/{deployments.d.ts → invokedeploymentrequest.d.ts} +280 -266
- package/models/components/invokedeploymentrequest.d.ts.map +1 -0
- package/models/components/{deployments.js → invokedeploymentrequest.js} +377 -363
- package/models/components/invokedeploymentrequest.js.map +1 -0
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +8 -8
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/createprompt.d.ts +2 -0
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +2 -0
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createtool.js +10 -10
- package/models/operations/deploymentgetconfig.d.ts +42 -32
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +42 -42
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +15 -15
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +17 -17
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/deployments.d.ts +1 -0
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +1 -0
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +41 -32
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +42 -41
- package/models/operations/deploymentstream.js.map +1 -1
- package/models/operations/duplicatetool.js +10 -10
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getallprompts.d.ts +1 -0
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +1 -0
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +10 -10
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/getoneprompt.d.ts +1 -0
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +1 -0
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +1 -0
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +1 -0
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +8 -8
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/listpromptversions.d.ts +1 -0
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +1 -0
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +8 -8
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.js +10 -10
- package/models/operations/searchknowledge.d.ts +41 -32
- package/models/operations/searchknowledge.d.ts.map +1 -1
- package/models/operations/searchknowledge.js +40 -40
- package/models/operations/searchknowledge.js.map +1 -1
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +8 -8
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updateprompt.d.ts +2 -0
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +2 -0
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +10 -10
- package/package.json +1 -1
- package/packages/orq-rc/README.md +24 -22
- package/packages/orq-rc/docs/sdks/tools/README.md +93 -12
- package/packages/orq-rc/examples/package-lock.json +1 -1
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/funcs/toolsCreate.ts +11 -2
- package/packages/orq-rc/src/funcs/toolsSync.ts +176 -0
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +3 -1
- package/packages/orq-rc/src/mcp-server/tools/toolsSync.ts +37 -0
- package/packages/orq-rc/src/models/operations/createagent.ts +114 -40
- package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +8 -8
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +28 -28
- package/packages/orq-rc/src/models/operations/createtool.ts +873 -277
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +29 -20
- package/packages/orq-rc/src/models/operations/duplicateagent.ts +0 -37
- package/packages/orq-rc/src/models/operations/duplicatetool.ts +466 -87
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getagent.ts +0 -38
- package/packages/orq-rc/src/models/operations/getalltools.ts +447 -96
- package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
- package/packages/orq-rc/src/models/operations/index.ts +1 -0
- package/packages/orq-rc/src/models/operations/listagents.ts +0 -37
- package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +8 -8
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievetool.ts +466 -85
- package/packages/orq-rc/src/models/operations/runagent.ts +656 -25
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +749 -34
- package/packages/orq-rc/src/models/operations/syncmcptool.ts +2599 -0
- package/packages/orq-rc/src/models/operations/updateagent.ts +121 -77
- package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +8 -8
- package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateeval.ts +28 -28
- package/packages/orq-rc/src/models/operations/updatetool.ts +910 -190
- package/packages/orq-rc/src/sdk/tools.ts +18 -0
- package/sdk/deployments.d.ts +7 -7
- package/sdk/deployments.d.ts.map +1 -1
- package/sdk/deployments.js +9 -9
- package/sdk/deployments.js.map +1 -1
- package/src/funcs/deploymentsInvoke.ts +3 -3
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +2 -2
- package/src/mcp-server/tools/deploymentsInvoke.ts +1 -1
- package/src/models/components/index.ts +1 -1
- package/src/models/components/{deployments.ts → invokedeploymentrequest.ts} +822 -728
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +8 -8
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/createprompt.ts +2 -0
- package/src/models/operations/createtool.ts +10 -10
- package/src/models/operations/deploymentgetconfig.ts +78 -66
- package/src/models/operations/deploymentinvoke.ts +35 -35
- package/src/models/operations/deployments.ts +1 -0
- package/src/models/operations/deploymentstream.ts +80 -78
- package/src/models/operations/duplicatetool.ts +10 -10
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getallprompts.ts +1 -0
- package/src/models/operations/getalltools.ts +10 -10
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/getoneprompt.ts +1 -0
- package/src/models/operations/getpromptversion.ts +1 -0
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/listpromptversions.ts +1 -0
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +8 -8
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +10 -10
- package/src/models/operations/searchknowledge.ts +79 -70
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +8 -8
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updateprompt.ts +2 -0
- package/src/models/operations/updatetool.ts +10 -10
- package/src/sdk/deployments.ts +17 -17
- package/models/components/deployments.d.ts.map +0 -1
- package/models/components/deployments.js.map +0 -1
|
@@ -4,7 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
collectExtraKeys as collectExtraKeys$,
|
|
9
|
+
safeParse,
|
|
10
|
+
} from "../../lib/schemas.js";
|
|
8
11
|
import { ClosedEnum } from "../../types/enums.js";
|
|
9
12
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
13
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
@@ -52,6 +55,39 @@ export type GetAllToolsDataToolsResponse200ApplicationJSONType = ClosedEnum<
|
|
|
52
55
|
typeof GetAllToolsDataToolsResponse200ApplicationJSONType
|
|
53
56
|
>;
|
|
54
57
|
|
|
58
|
+
/**
|
|
59
|
+
* The type must be "object"
|
|
60
|
+
*/
|
|
61
|
+
export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type = {
|
|
62
|
+
Object: "object",
|
|
63
|
+
} as const;
|
|
64
|
+
/**
|
|
65
|
+
* The type must be "object"
|
|
66
|
+
*/
|
|
67
|
+
export type GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type =
|
|
68
|
+
ClosedEnum<
|
|
69
|
+
typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type
|
|
70
|
+
>;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
74
|
+
*/
|
|
75
|
+
export type GetAllToolsDataParameters = {
|
|
76
|
+
/**
|
|
77
|
+
* The type must be "object"
|
|
78
|
+
*/
|
|
79
|
+
type: GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type;
|
|
80
|
+
/**
|
|
81
|
+
* The properties of the function parameters
|
|
82
|
+
*/
|
|
83
|
+
properties: { [k: string]: any };
|
|
84
|
+
/**
|
|
85
|
+
* Array of required parameter names
|
|
86
|
+
*/
|
|
87
|
+
required: Array<string>;
|
|
88
|
+
additionalProperties?: { [k: string]: any } | undefined;
|
|
89
|
+
};
|
|
90
|
+
|
|
55
91
|
export const DataLanguage = {
|
|
56
92
|
Python: "python",
|
|
57
93
|
} as const;
|
|
@@ -61,7 +97,7 @@ export type DataCodeTool = {
|
|
|
61
97
|
/**
|
|
62
98
|
* The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
63
99
|
*/
|
|
64
|
-
parameters?:
|
|
100
|
+
parameters?: GetAllToolsDataParameters | undefined;
|
|
65
101
|
language: DataLanguage;
|
|
66
102
|
/**
|
|
67
103
|
* The code to execute.
|
|
@@ -142,23 +178,26 @@ export type DataHeaders = {
|
|
|
142
178
|
encrypted?: boolean | undefined;
|
|
143
179
|
};
|
|
144
180
|
|
|
145
|
-
export const
|
|
181
|
+
export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type = {
|
|
146
182
|
Object: "object",
|
|
147
183
|
} as const;
|
|
148
|
-
export type
|
|
184
|
+
export type GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type =
|
|
149
185
|
ClosedEnum<
|
|
150
|
-
typeof
|
|
186
|
+
typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type
|
|
151
187
|
>;
|
|
152
188
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
*/
|
|
156
|
-
export type DataInputSchema = {
|
|
157
|
-
type: GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType;
|
|
189
|
+
export type GetAllToolsDataSchema = {
|
|
190
|
+
type: GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type;
|
|
158
191
|
properties?: { [k: string]: any } | undefined;
|
|
159
192
|
required?: Array<string> | undefined;
|
|
160
193
|
};
|
|
161
194
|
|
|
195
|
+
export type DataTools = {
|
|
196
|
+
name: string;
|
|
197
|
+
description?: string | undefined;
|
|
198
|
+
schema: GetAllToolsDataSchema;
|
|
199
|
+
};
|
|
200
|
+
|
|
162
201
|
/**
|
|
163
202
|
* The connection type used by the MCP server
|
|
164
203
|
*/
|
|
@@ -172,26 +211,18 @@ export const DataConnectionType = {
|
|
|
172
211
|
export type DataConnectionType = ClosedEnum<typeof DataConnectionType>;
|
|
173
212
|
|
|
174
213
|
export type DataMcp = {
|
|
175
|
-
/**
|
|
176
|
-
* The ID of the MCP server this tool belongs to
|
|
177
|
-
*/
|
|
178
|
-
serverId: string;
|
|
179
|
-
/**
|
|
180
|
-
* The original tool name from the MCP server
|
|
181
|
-
*/
|
|
182
|
-
toolName: string;
|
|
183
214
|
/**
|
|
184
215
|
* The MCP server URL (cached for execution)
|
|
185
216
|
*/
|
|
186
217
|
serverUrl: string;
|
|
187
218
|
/**
|
|
188
|
-
* HTTP headers for MCP server requests
|
|
219
|
+
* HTTP headers for MCP server requests with encryption support
|
|
189
220
|
*/
|
|
190
221
|
headers?: { [k: string]: DataHeaders } | undefined;
|
|
191
222
|
/**
|
|
192
|
-
*
|
|
223
|
+
* Array of tools available from the MCP server
|
|
193
224
|
*/
|
|
194
|
-
|
|
225
|
+
tools: Array<DataTools>;
|
|
195
226
|
/**
|
|
196
227
|
* The connection type used by the MCP server
|
|
197
228
|
*/
|
|
@@ -280,11 +311,13 @@ export const GetAllToolsDataMethod = {
|
|
|
280
311
|
*/
|
|
281
312
|
export type GetAllToolsDataMethod = ClosedEnum<typeof GetAllToolsDataMethod>;
|
|
282
313
|
|
|
283
|
-
export type
|
|
314
|
+
export type GetAllToolsHeaders2 = {
|
|
284
315
|
value: string;
|
|
285
316
|
encrypted?: boolean | undefined;
|
|
286
317
|
};
|
|
287
318
|
|
|
319
|
+
export type GetAllToolsDataHeaders = GetAllToolsHeaders2 | string;
|
|
320
|
+
|
|
288
321
|
/**
|
|
289
322
|
* The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
|
|
290
323
|
*/
|
|
@@ -298,9 +331,9 @@ export type DataBlueprint = {
|
|
|
298
331
|
*/
|
|
299
332
|
method: GetAllToolsDataMethod;
|
|
300
333
|
/**
|
|
301
|
-
* The headers to send with the request.
|
|
334
|
+
* The headers to send with the request. Can be a string value or an object with value and encrypted properties.
|
|
302
335
|
*/
|
|
303
|
-
headers?: { [k: string]:
|
|
336
|
+
headers?: { [k: string]: GetAllToolsHeaders2 | string } | undefined;
|
|
304
337
|
/**
|
|
305
338
|
* The body to send with the request.
|
|
306
339
|
*/
|
|
@@ -424,6 +457,25 @@ export type GetAllToolsDataToolsType = ClosedEnum<
|
|
|
424
457
|
typeof GetAllToolsDataToolsType
|
|
425
458
|
>;
|
|
426
459
|
|
|
460
|
+
/**
|
|
461
|
+
* The schema for the response format, described as a JSON Schema object. See the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
462
|
+
*/
|
|
463
|
+
export type DataSchema = {
|
|
464
|
+
/**
|
|
465
|
+
* The JSON Schema type
|
|
466
|
+
*/
|
|
467
|
+
type: string;
|
|
468
|
+
/**
|
|
469
|
+
* The properties of the JSON Schema object
|
|
470
|
+
*/
|
|
471
|
+
properties: { [k: string]: any };
|
|
472
|
+
/**
|
|
473
|
+
* Array of required property names
|
|
474
|
+
*/
|
|
475
|
+
required: Array<string>;
|
|
476
|
+
additionalProperties?: { [k: string]: any } | undefined;
|
|
477
|
+
};
|
|
478
|
+
|
|
427
479
|
export type DataJsonSchema = {
|
|
428
480
|
/**
|
|
429
481
|
* The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
|
|
@@ -432,11 +484,11 @@ export type DataJsonSchema = {
|
|
|
432
484
|
/**
|
|
433
485
|
* A description of what the response format is for. This will be shown to the user.
|
|
434
486
|
*/
|
|
435
|
-
description
|
|
487
|
+
description: string;
|
|
436
488
|
/**
|
|
437
489
|
* The schema for the response format, described as a JSON Schema object. See the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
438
490
|
*/
|
|
439
|
-
schema:
|
|
491
|
+
schema: DataSchema;
|
|
440
492
|
/**
|
|
441
493
|
* Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the `schema` field. Only a subset of JSON Schema is supported when `strict` is `true`. Only compatible with `OpenAI` models.
|
|
442
494
|
*/
|
|
@@ -507,6 +559,39 @@ export const GetAllToolsDataType = {
|
|
|
507
559
|
} as const;
|
|
508
560
|
export type GetAllToolsDataType = ClosedEnum<typeof GetAllToolsDataType>;
|
|
509
561
|
|
|
562
|
+
/**
|
|
563
|
+
* The type must be "object"
|
|
564
|
+
*/
|
|
565
|
+
export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType = {
|
|
566
|
+
Object: "object",
|
|
567
|
+
} as const;
|
|
568
|
+
/**
|
|
569
|
+
* The type must be "object"
|
|
570
|
+
*/
|
|
571
|
+
export type GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType =
|
|
572
|
+
ClosedEnum<
|
|
573
|
+
typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType
|
|
574
|
+
>;
|
|
575
|
+
|
|
576
|
+
/**
|
|
577
|
+
* The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
578
|
+
*/
|
|
579
|
+
export type DataParameters = {
|
|
580
|
+
/**
|
|
581
|
+
* The type must be "object"
|
|
582
|
+
*/
|
|
583
|
+
type: GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType;
|
|
584
|
+
/**
|
|
585
|
+
* The properties of the function parameters
|
|
586
|
+
*/
|
|
587
|
+
properties: { [k: string]: any };
|
|
588
|
+
/**
|
|
589
|
+
* Array of required parameter names
|
|
590
|
+
*/
|
|
591
|
+
required: Array<string>;
|
|
592
|
+
additionalProperties?: { [k: string]: any } | undefined;
|
|
593
|
+
};
|
|
594
|
+
|
|
510
595
|
export type GetAllToolsDataFunction = {
|
|
511
596
|
/**
|
|
512
597
|
* The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
|
|
@@ -523,7 +608,7 @@ export type GetAllToolsDataFunction = {
|
|
|
523
608
|
/**
|
|
524
609
|
* The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
525
610
|
*/
|
|
526
|
-
parameters?:
|
|
611
|
+
parameters?: DataParameters | undefined;
|
|
527
612
|
};
|
|
528
613
|
|
|
529
614
|
export type Data1 = {
|
|
@@ -665,6 +750,80 @@ export const GetAllToolsDataToolsResponse200ApplicationJSONType$outboundSchema:
|
|
|
665
750
|
z.ZodNativeEnum<typeof GetAllToolsDataToolsResponse200ApplicationJSONType> =
|
|
666
751
|
GetAllToolsDataToolsResponse200ApplicationJSONType$inboundSchema;
|
|
667
752
|
|
|
753
|
+
/** @internal */
|
|
754
|
+
export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type$inboundSchema:
|
|
755
|
+
z.ZodNativeEnum<
|
|
756
|
+
typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type
|
|
757
|
+
> = z.nativeEnum(
|
|
758
|
+
GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type,
|
|
759
|
+
);
|
|
760
|
+
/** @internal */
|
|
761
|
+
export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type$outboundSchema:
|
|
762
|
+
z.ZodNativeEnum<
|
|
763
|
+
typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type
|
|
764
|
+
> =
|
|
765
|
+
GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type$inboundSchema;
|
|
766
|
+
|
|
767
|
+
/** @internal */
|
|
768
|
+
export const GetAllToolsDataParameters$inboundSchema: z.ZodType<
|
|
769
|
+
GetAllToolsDataParameters,
|
|
770
|
+
z.ZodTypeDef,
|
|
771
|
+
unknown
|
|
772
|
+
> = collectExtraKeys$(
|
|
773
|
+
z.object({
|
|
774
|
+
type:
|
|
775
|
+
GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type$inboundSchema,
|
|
776
|
+
properties: z.record(z.any()),
|
|
777
|
+
required: z.array(z.string()),
|
|
778
|
+
}).catchall(z.any()),
|
|
779
|
+
"additionalProperties",
|
|
780
|
+
true,
|
|
781
|
+
);
|
|
782
|
+
/** @internal */
|
|
783
|
+
export type GetAllToolsDataParameters$Outbound = {
|
|
784
|
+
type: string;
|
|
785
|
+
properties: { [k: string]: any };
|
|
786
|
+
required: Array<string>;
|
|
787
|
+
[additionalProperties: string]: unknown;
|
|
788
|
+
};
|
|
789
|
+
|
|
790
|
+
/** @internal */
|
|
791
|
+
export const GetAllToolsDataParameters$outboundSchema: z.ZodType<
|
|
792
|
+
GetAllToolsDataParameters$Outbound,
|
|
793
|
+
z.ZodTypeDef,
|
|
794
|
+
GetAllToolsDataParameters
|
|
795
|
+
> = z.object({
|
|
796
|
+
type:
|
|
797
|
+
GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type$outboundSchema,
|
|
798
|
+
properties: z.record(z.any()),
|
|
799
|
+
required: z.array(z.string()),
|
|
800
|
+
additionalProperties: z.record(z.any()).optional(),
|
|
801
|
+
}).transform((v) => {
|
|
802
|
+
return {
|
|
803
|
+
...v.additionalProperties,
|
|
804
|
+
...remap$(v, {
|
|
805
|
+
additionalProperties: null,
|
|
806
|
+
}),
|
|
807
|
+
};
|
|
808
|
+
});
|
|
809
|
+
|
|
810
|
+
export function getAllToolsDataParametersToJSON(
|
|
811
|
+
getAllToolsDataParameters: GetAllToolsDataParameters,
|
|
812
|
+
): string {
|
|
813
|
+
return JSON.stringify(
|
|
814
|
+
GetAllToolsDataParameters$outboundSchema.parse(getAllToolsDataParameters),
|
|
815
|
+
);
|
|
816
|
+
}
|
|
817
|
+
export function getAllToolsDataParametersFromJSON(
|
|
818
|
+
jsonString: string,
|
|
819
|
+
): SafeParseResult<GetAllToolsDataParameters, SDKValidationError> {
|
|
820
|
+
return safeParse(
|
|
821
|
+
jsonString,
|
|
822
|
+
(x) => GetAllToolsDataParameters$inboundSchema.parse(JSON.parse(x)),
|
|
823
|
+
`Failed to parse 'GetAllToolsDataParameters' from JSON`,
|
|
824
|
+
);
|
|
825
|
+
}
|
|
826
|
+
|
|
668
827
|
/** @internal */
|
|
669
828
|
export const DataLanguage$inboundSchema: z.ZodNativeEnum<typeof DataLanguage> =
|
|
670
829
|
z.nativeEnum(DataLanguage);
|
|
@@ -678,13 +837,13 @@ export const DataCodeTool$inboundSchema: z.ZodType<
|
|
|
678
837
|
z.ZodTypeDef,
|
|
679
838
|
unknown
|
|
680
839
|
> = z.object({
|
|
681
|
-
parameters: z.
|
|
840
|
+
parameters: z.lazy(() => GetAllToolsDataParameters$inboundSchema).optional(),
|
|
682
841
|
language: DataLanguage$inboundSchema,
|
|
683
842
|
code: z.string(),
|
|
684
843
|
});
|
|
685
844
|
/** @internal */
|
|
686
845
|
export type DataCodeTool$Outbound = {
|
|
687
|
-
parameters?:
|
|
846
|
+
parameters?: GetAllToolsDataParameters$Outbound | undefined;
|
|
688
847
|
language: string;
|
|
689
848
|
code: string;
|
|
690
849
|
};
|
|
@@ -695,7 +854,7 @@ export const DataCodeTool$outboundSchema: z.ZodType<
|
|
|
695
854
|
z.ZodTypeDef,
|
|
696
855
|
DataCodeTool
|
|
697
856
|
> = z.object({
|
|
698
|
-
parameters: z.
|
|
857
|
+
parameters: z.lazy(() => GetAllToolsDataParameters$outboundSchema).optional(),
|
|
699
858
|
language: DataLanguage$outboundSchema,
|
|
700
859
|
code: z.string(),
|
|
701
860
|
});
|
|
@@ -716,7 +875,7 @@ export function dataCodeToolFromJSON(
|
|
|
716
875
|
/** @internal */
|
|
717
876
|
export const Data5$inboundSchema: z.ZodType<Data5, z.ZodTypeDef, unknown> = z
|
|
718
877
|
.object({
|
|
719
|
-
_id: z.string().default("
|
|
878
|
+
_id: z.string().default("tool_01KA0EAFMWKTZNVCA784DGZR9B"),
|
|
720
879
|
path: z.string(),
|
|
721
880
|
key: z.string(),
|
|
722
881
|
display_name: z.string().optional(),
|
|
@@ -768,7 +927,7 @@ export const Data5$outboundSchema: z.ZodType<
|
|
|
768
927
|
z.ZodTypeDef,
|
|
769
928
|
Data5
|
|
770
929
|
> = z.object({
|
|
771
|
-
id: z.string().default("
|
|
930
|
+
id: z.string().default("tool_01KA0EAFMWKTZNVCA784DGZR9B"),
|
|
772
931
|
path: z.string(),
|
|
773
932
|
key: z.string(),
|
|
774
933
|
displayName: z.string().optional(),
|
|
@@ -866,61 +1025,104 @@ export function dataHeadersFromJSON(
|
|
|
866
1025
|
}
|
|
867
1026
|
|
|
868
1027
|
/** @internal */
|
|
869
|
-
export const
|
|
1028
|
+
export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type$inboundSchema:
|
|
870
1029
|
z.ZodNativeEnum<
|
|
871
|
-
typeof
|
|
1030
|
+
typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type
|
|
872
1031
|
> = z.nativeEnum(
|
|
873
|
-
|
|
1032
|
+
GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type,
|
|
874
1033
|
);
|
|
875
1034
|
/** @internal */
|
|
876
|
-
export const
|
|
1035
|
+
export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type$outboundSchema:
|
|
877
1036
|
z.ZodNativeEnum<
|
|
878
|
-
typeof
|
|
1037
|
+
typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type
|
|
879
1038
|
> =
|
|
880
|
-
|
|
1039
|
+
GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type$inboundSchema;
|
|
881
1040
|
|
|
882
1041
|
/** @internal */
|
|
883
|
-
export const
|
|
884
|
-
|
|
1042
|
+
export const GetAllToolsDataSchema$inboundSchema: z.ZodType<
|
|
1043
|
+
GetAllToolsDataSchema,
|
|
885
1044
|
z.ZodTypeDef,
|
|
886
1045
|
unknown
|
|
887
1046
|
> = z.object({
|
|
888
1047
|
type:
|
|
889
|
-
|
|
1048
|
+
GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type$inboundSchema,
|
|
890
1049
|
properties: z.record(z.any()).optional(),
|
|
891
1050
|
required: z.array(z.string()).optional(),
|
|
892
1051
|
});
|
|
893
1052
|
/** @internal */
|
|
894
|
-
export type
|
|
1053
|
+
export type GetAllToolsDataSchema$Outbound = {
|
|
895
1054
|
type: string;
|
|
896
1055
|
properties?: { [k: string]: any } | undefined;
|
|
897
1056
|
required?: Array<string> | undefined;
|
|
898
1057
|
};
|
|
899
1058
|
|
|
900
1059
|
/** @internal */
|
|
901
|
-
export const
|
|
902
|
-
|
|
1060
|
+
export const GetAllToolsDataSchema$outboundSchema: z.ZodType<
|
|
1061
|
+
GetAllToolsDataSchema$Outbound,
|
|
903
1062
|
z.ZodTypeDef,
|
|
904
|
-
|
|
1063
|
+
GetAllToolsDataSchema
|
|
905
1064
|
> = z.object({
|
|
906
1065
|
type:
|
|
907
|
-
|
|
1066
|
+
GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type$outboundSchema,
|
|
908
1067
|
properties: z.record(z.any()).optional(),
|
|
909
1068
|
required: z.array(z.string()).optional(),
|
|
910
1069
|
});
|
|
911
1070
|
|
|
912
|
-
export function
|
|
913
|
-
|
|
1071
|
+
export function getAllToolsDataSchemaToJSON(
|
|
1072
|
+
getAllToolsDataSchema: GetAllToolsDataSchema,
|
|
914
1073
|
): string {
|
|
915
|
-
return JSON.stringify(
|
|
1074
|
+
return JSON.stringify(
|
|
1075
|
+
GetAllToolsDataSchema$outboundSchema.parse(getAllToolsDataSchema),
|
|
1076
|
+
);
|
|
916
1077
|
}
|
|
917
|
-
export function
|
|
1078
|
+
export function getAllToolsDataSchemaFromJSON(
|
|
918
1079
|
jsonString: string,
|
|
919
|
-
): SafeParseResult<
|
|
1080
|
+
): SafeParseResult<GetAllToolsDataSchema, SDKValidationError> {
|
|
920
1081
|
return safeParse(
|
|
921
1082
|
jsonString,
|
|
922
|
-
(x) =>
|
|
923
|
-
`Failed to parse '
|
|
1083
|
+
(x) => GetAllToolsDataSchema$inboundSchema.parse(JSON.parse(x)),
|
|
1084
|
+
`Failed to parse 'GetAllToolsDataSchema' from JSON`,
|
|
1085
|
+
);
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
/** @internal */
|
|
1089
|
+
export const DataTools$inboundSchema: z.ZodType<
|
|
1090
|
+
DataTools,
|
|
1091
|
+
z.ZodTypeDef,
|
|
1092
|
+
unknown
|
|
1093
|
+
> = z.object({
|
|
1094
|
+
name: z.string(),
|
|
1095
|
+
description: z.string().optional(),
|
|
1096
|
+
schema: z.lazy(() => GetAllToolsDataSchema$inboundSchema),
|
|
1097
|
+
});
|
|
1098
|
+
/** @internal */
|
|
1099
|
+
export type DataTools$Outbound = {
|
|
1100
|
+
name: string;
|
|
1101
|
+
description?: string | undefined;
|
|
1102
|
+
schema: GetAllToolsDataSchema$Outbound;
|
|
1103
|
+
};
|
|
1104
|
+
|
|
1105
|
+
/** @internal */
|
|
1106
|
+
export const DataTools$outboundSchema: z.ZodType<
|
|
1107
|
+
DataTools$Outbound,
|
|
1108
|
+
z.ZodTypeDef,
|
|
1109
|
+
DataTools
|
|
1110
|
+
> = z.object({
|
|
1111
|
+
name: z.string(),
|
|
1112
|
+
description: z.string().optional(),
|
|
1113
|
+
schema: z.lazy(() => GetAllToolsDataSchema$outboundSchema),
|
|
1114
|
+
});
|
|
1115
|
+
|
|
1116
|
+
export function dataToolsToJSON(dataTools: DataTools): string {
|
|
1117
|
+
return JSON.stringify(DataTools$outboundSchema.parse(dataTools));
|
|
1118
|
+
}
|
|
1119
|
+
export function dataToolsFromJSON(
|
|
1120
|
+
jsonString: string,
|
|
1121
|
+
): SafeParseResult<DataTools, SDKValidationError> {
|
|
1122
|
+
return safeParse(
|
|
1123
|
+
jsonString,
|
|
1124
|
+
(x) => DataTools$inboundSchema.parse(JSON.parse(x)),
|
|
1125
|
+
`Failed to parse 'DataTools' from JSON`,
|
|
924
1126
|
);
|
|
925
1127
|
}
|
|
926
1128
|
|
|
@@ -936,28 +1138,21 @@ export const DataConnectionType$outboundSchema: z.ZodNativeEnum<
|
|
|
936
1138
|
/** @internal */
|
|
937
1139
|
export const DataMcp$inboundSchema: z.ZodType<DataMcp, z.ZodTypeDef, unknown> =
|
|
938
1140
|
z.object({
|
|
939
|
-
server_id: z.string(),
|
|
940
|
-
tool_name: z.string(),
|
|
941
1141
|
server_url: z.string(),
|
|
942
1142
|
headers: z.record(z.lazy(() => DataHeaders$inboundSchema)).optional(),
|
|
943
|
-
|
|
1143
|
+
tools: z.array(z.lazy(() => DataTools$inboundSchema)),
|
|
944
1144
|
connection_type: DataConnectionType$inboundSchema,
|
|
945
1145
|
}).transform((v) => {
|
|
946
1146
|
return remap$(v, {
|
|
947
|
-
"server_id": "serverId",
|
|
948
|
-
"tool_name": "toolName",
|
|
949
1147
|
"server_url": "serverUrl",
|
|
950
|
-
"input_schema": "inputSchema",
|
|
951
1148
|
"connection_type": "connectionType",
|
|
952
1149
|
});
|
|
953
1150
|
});
|
|
954
1151
|
/** @internal */
|
|
955
1152
|
export type DataMcp$Outbound = {
|
|
956
|
-
server_id: string;
|
|
957
|
-
tool_name: string;
|
|
958
1153
|
server_url: string;
|
|
959
1154
|
headers?: { [k: string]: DataHeaders$Outbound } | undefined;
|
|
960
|
-
|
|
1155
|
+
tools: Array<DataTools$Outbound>;
|
|
961
1156
|
connection_type: string;
|
|
962
1157
|
};
|
|
963
1158
|
|
|
@@ -967,18 +1162,13 @@ export const DataMcp$outboundSchema: z.ZodType<
|
|
|
967
1162
|
z.ZodTypeDef,
|
|
968
1163
|
DataMcp
|
|
969
1164
|
> = z.object({
|
|
970
|
-
serverId: z.string(),
|
|
971
|
-
toolName: z.string(),
|
|
972
1165
|
serverUrl: z.string(),
|
|
973
1166
|
headers: z.record(z.lazy(() => DataHeaders$outboundSchema)).optional(),
|
|
974
|
-
|
|
1167
|
+
tools: z.array(z.lazy(() => DataTools$outboundSchema)),
|
|
975
1168
|
connectionType: DataConnectionType$outboundSchema,
|
|
976
1169
|
}).transform((v) => {
|
|
977
1170
|
return remap$(v, {
|
|
978
|
-
serverId: "server_id",
|
|
979
|
-
toolName: "tool_name",
|
|
980
1171
|
serverUrl: "server_url",
|
|
981
|
-
inputSchema: "input_schema",
|
|
982
1172
|
connectionType: "connection_type",
|
|
983
1173
|
});
|
|
984
1174
|
});
|
|
@@ -999,7 +1189,7 @@ export function dataMcpFromJSON(
|
|
|
999
1189
|
/** @internal */
|
|
1000
1190
|
export const Data4$inboundSchema: z.ZodType<Data4, z.ZodTypeDef, unknown> = z
|
|
1001
1191
|
.object({
|
|
1002
|
-
_id: z.string().default("
|
|
1192
|
+
_id: z.string().default("tool_01KA0EAFMSJ7BJEXCXT5APAS9F"),
|
|
1003
1193
|
path: z.string(),
|
|
1004
1194
|
key: z.string(),
|
|
1005
1195
|
display_name: z.string().optional(),
|
|
@@ -1050,7 +1240,7 @@ export const Data4$outboundSchema: z.ZodType<
|
|
|
1050
1240
|
z.ZodTypeDef,
|
|
1051
1241
|
Data4
|
|
1052
1242
|
> = z.object({
|
|
1053
|
-
id: z.string().default("
|
|
1243
|
+
id: z.string().default("tool_01KA0EAFMSJ7BJEXCXT5APAS9F"),
|
|
1054
1244
|
path: z.string(),
|
|
1055
1245
|
key: z.string(),
|
|
1056
1246
|
displayName: z.string().optional(),
|
|
@@ -1118,8 +1308,8 @@ export const GetAllToolsDataMethod$outboundSchema: z.ZodNativeEnum<
|
|
|
1118
1308
|
> = GetAllToolsDataMethod$inboundSchema;
|
|
1119
1309
|
|
|
1120
1310
|
/** @internal */
|
|
1121
|
-
export const
|
|
1122
|
-
|
|
1311
|
+
export const GetAllToolsHeaders2$inboundSchema: z.ZodType<
|
|
1312
|
+
GetAllToolsHeaders2,
|
|
1123
1313
|
z.ZodTypeDef,
|
|
1124
1314
|
unknown
|
|
1125
1315
|
> = z.object({
|
|
@@ -1127,21 +1317,56 @@ export const GetAllToolsDataHeaders$inboundSchema: z.ZodType<
|
|
|
1127
1317
|
encrypted: z.boolean().default(false),
|
|
1128
1318
|
});
|
|
1129
1319
|
/** @internal */
|
|
1130
|
-
export type
|
|
1320
|
+
export type GetAllToolsHeaders2$Outbound = {
|
|
1131
1321
|
value: string;
|
|
1132
1322
|
encrypted: boolean;
|
|
1133
1323
|
};
|
|
1134
1324
|
|
|
1135
1325
|
/** @internal */
|
|
1136
|
-
export const
|
|
1137
|
-
|
|
1326
|
+
export const GetAllToolsHeaders2$outboundSchema: z.ZodType<
|
|
1327
|
+
GetAllToolsHeaders2$Outbound,
|
|
1138
1328
|
z.ZodTypeDef,
|
|
1139
|
-
|
|
1329
|
+
GetAllToolsHeaders2
|
|
1140
1330
|
> = z.object({
|
|
1141
1331
|
value: z.string(),
|
|
1142
1332
|
encrypted: z.boolean().default(false),
|
|
1143
1333
|
});
|
|
1144
1334
|
|
|
1335
|
+
export function getAllToolsHeaders2ToJSON(
|
|
1336
|
+
getAllToolsHeaders2: GetAllToolsHeaders2,
|
|
1337
|
+
): string {
|
|
1338
|
+
return JSON.stringify(
|
|
1339
|
+
GetAllToolsHeaders2$outboundSchema.parse(getAllToolsHeaders2),
|
|
1340
|
+
);
|
|
1341
|
+
}
|
|
1342
|
+
export function getAllToolsHeaders2FromJSON(
|
|
1343
|
+
jsonString: string,
|
|
1344
|
+
): SafeParseResult<GetAllToolsHeaders2, SDKValidationError> {
|
|
1345
|
+
return safeParse(
|
|
1346
|
+
jsonString,
|
|
1347
|
+
(x) => GetAllToolsHeaders2$inboundSchema.parse(JSON.parse(x)),
|
|
1348
|
+
`Failed to parse 'GetAllToolsHeaders2' from JSON`,
|
|
1349
|
+
);
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1352
|
+
/** @internal */
|
|
1353
|
+
export const GetAllToolsDataHeaders$inboundSchema: z.ZodType<
|
|
1354
|
+
GetAllToolsDataHeaders,
|
|
1355
|
+
z.ZodTypeDef,
|
|
1356
|
+
unknown
|
|
1357
|
+
> = z.union([z.lazy(() => GetAllToolsHeaders2$inboundSchema), z.string()]);
|
|
1358
|
+
/** @internal */
|
|
1359
|
+
export type GetAllToolsDataHeaders$Outbound =
|
|
1360
|
+
| GetAllToolsHeaders2$Outbound
|
|
1361
|
+
| string;
|
|
1362
|
+
|
|
1363
|
+
/** @internal */
|
|
1364
|
+
export const GetAllToolsDataHeaders$outboundSchema: z.ZodType<
|
|
1365
|
+
GetAllToolsDataHeaders$Outbound,
|
|
1366
|
+
z.ZodTypeDef,
|
|
1367
|
+
GetAllToolsDataHeaders
|
|
1368
|
+
> = z.union([z.lazy(() => GetAllToolsHeaders2$outboundSchema), z.string()]);
|
|
1369
|
+
|
|
1145
1370
|
export function getAllToolsDataHeadersToJSON(
|
|
1146
1371
|
getAllToolsDataHeaders: GetAllToolsDataHeaders,
|
|
1147
1372
|
): string {
|
|
@@ -1167,15 +1392,16 @@ export const DataBlueprint$inboundSchema: z.ZodType<
|
|
|
1167
1392
|
> = z.object({
|
|
1168
1393
|
url: z.string(),
|
|
1169
1394
|
method: GetAllToolsDataMethod$inboundSchema,
|
|
1170
|
-
headers: z.record(
|
|
1171
|
-
.
|
|
1395
|
+
headers: z.record(
|
|
1396
|
+
z.union([z.lazy(() => GetAllToolsHeaders2$inboundSchema), z.string()]),
|
|
1397
|
+
).optional(),
|
|
1172
1398
|
body: z.record(z.any()).optional(),
|
|
1173
1399
|
});
|
|
1174
1400
|
/** @internal */
|
|
1175
1401
|
export type DataBlueprint$Outbound = {
|
|
1176
1402
|
url: string;
|
|
1177
1403
|
method: string;
|
|
1178
|
-
headers?: { [k: string]:
|
|
1404
|
+
headers?: { [k: string]: GetAllToolsHeaders2$Outbound | string } | undefined;
|
|
1179
1405
|
body?: { [k: string]: any } | undefined;
|
|
1180
1406
|
};
|
|
1181
1407
|
|
|
@@ -1187,8 +1413,9 @@ export const DataBlueprint$outboundSchema: z.ZodType<
|
|
|
1187
1413
|
> = z.object({
|
|
1188
1414
|
url: z.string(),
|
|
1189
1415
|
method: GetAllToolsDataMethod$outboundSchema,
|
|
1190
|
-
headers: z.record(
|
|
1191
|
-
.
|
|
1416
|
+
headers: z.record(
|
|
1417
|
+
z.union([z.lazy(() => GetAllToolsHeaders2$outboundSchema), z.string()]),
|
|
1418
|
+
).optional(),
|
|
1192
1419
|
body: z.record(z.any()).optional(),
|
|
1193
1420
|
});
|
|
1194
1421
|
|
|
@@ -1353,7 +1580,7 @@ export function getAllToolsDataHttpFromJSON(
|
|
|
1353
1580
|
/** @internal */
|
|
1354
1581
|
export const Data3$inboundSchema: z.ZodType<Data3, z.ZodTypeDef, unknown> = z
|
|
1355
1582
|
.object({
|
|
1356
|
-
_id: z.string().default("
|
|
1583
|
+
_id: z.string().default("tool_01KA0EAFMNQQS30M3CP5VRN98J"),
|
|
1357
1584
|
path: z.string(),
|
|
1358
1585
|
key: z.string(),
|
|
1359
1586
|
display_name: z.string().optional(),
|
|
@@ -1404,7 +1631,7 @@ export const Data3$outboundSchema: z.ZodType<
|
|
|
1404
1631
|
z.ZodTypeDef,
|
|
1405
1632
|
Data3
|
|
1406
1633
|
> = z.object({
|
|
1407
|
-
id: z.string().default("
|
|
1634
|
+
id: z.string().default("tool_01KA0EAFMNQQS30M3CP5VRN98J"),
|
|
1408
1635
|
path: z.string(),
|
|
1409
1636
|
key: z.string(),
|
|
1410
1637
|
displayName: z.string().optional(),
|
|
@@ -1462,6 +1689,60 @@ export const GetAllToolsDataToolsType$outboundSchema: z.ZodNativeEnum<
|
|
|
1462
1689
|
typeof GetAllToolsDataToolsType
|
|
1463
1690
|
> = GetAllToolsDataToolsType$inboundSchema;
|
|
1464
1691
|
|
|
1692
|
+
/** @internal */
|
|
1693
|
+
export const DataSchema$inboundSchema: z.ZodType<
|
|
1694
|
+
DataSchema,
|
|
1695
|
+
z.ZodTypeDef,
|
|
1696
|
+
unknown
|
|
1697
|
+
> = collectExtraKeys$(
|
|
1698
|
+
z.object({
|
|
1699
|
+
type: z.string(),
|
|
1700
|
+
properties: z.record(z.any()),
|
|
1701
|
+
required: z.array(z.string()),
|
|
1702
|
+
}).catchall(z.any()),
|
|
1703
|
+
"additionalProperties",
|
|
1704
|
+
true,
|
|
1705
|
+
);
|
|
1706
|
+
/** @internal */
|
|
1707
|
+
export type DataSchema$Outbound = {
|
|
1708
|
+
type: string;
|
|
1709
|
+
properties: { [k: string]: any };
|
|
1710
|
+
required: Array<string>;
|
|
1711
|
+
[additionalProperties: string]: unknown;
|
|
1712
|
+
};
|
|
1713
|
+
|
|
1714
|
+
/** @internal */
|
|
1715
|
+
export const DataSchema$outboundSchema: z.ZodType<
|
|
1716
|
+
DataSchema$Outbound,
|
|
1717
|
+
z.ZodTypeDef,
|
|
1718
|
+
DataSchema
|
|
1719
|
+
> = z.object({
|
|
1720
|
+
type: z.string(),
|
|
1721
|
+
properties: z.record(z.any()),
|
|
1722
|
+
required: z.array(z.string()),
|
|
1723
|
+
additionalProperties: z.record(z.any()).optional(),
|
|
1724
|
+
}).transform((v) => {
|
|
1725
|
+
return {
|
|
1726
|
+
...v.additionalProperties,
|
|
1727
|
+
...remap$(v, {
|
|
1728
|
+
additionalProperties: null,
|
|
1729
|
+
}),
|
|
1730
|
+
};
|
|
1731
|
+
});
|
|
1732
|
+
|
|
1733
|
+
export function dataSchemaToJSON(dataSchema: DataSchema): string {
|
|
1734
|
+
return JSON.stringify(DataSchema$outboundSchema.parse(dataSchema));
|
|
1735
|
+
}
|
|
1736
|
+
export function dataSchemaFromJSON(
|
|
1737
|
+
jsonString: string,
|
|
1738
|
+
): SafeParseResult<DataSchema, SDKValidationError> {
|
|
1739
|
+
return safeParse(
|
|
1740
|
+
jsonString,
|
|
1741
|
+
(x) => DataSchema$inboundSchema.parse(JSON.parse(x)),
|
|
1742
|
+
`Failed to parse 'DataSchema' from JSON`,
|
|
1743
|
+
);
|
|
1744
|
+
}
|
|
1745
|
+
|
|
1465
1746
|
/** @internal */
|
|
1466
1747
|
export const DataJsonSchema$inboundSchema: z.ZodType<
|
|
1467
1748
|
DataJsonSchema,
|
|
@@ -1469,15 +1750,15 @@ export const DataJsonSchema$inboundSchema: z.ZodType<
|
|
|
1469
1750
|
unknown
|
|
1470
1751
|
> = z.object({
|
|
1471
1752
|
name: z.string(),
|
|
1472
|
-
description: z.string()
|
|
1473
|
-
schema: z.
|
|
1753
|
+
description: z.string(),
|
|
1754
|
+
schema: z.lazy(() => DataSchema$inboundSchema),
|
|
1474
1755
|
strict: z.boolean().optional(),
|
|
1475
1756
|
});
|
|
1476
1757
|
/** @internal */
|
|
1477
1758
|
export type DataJsonSchema$Outbound = {
|
|
1478
1759
|
name: string;
|
|
1479
|
-
description
|
|
1480
|
-
schema:
|
|
1760
|
+
description: string;
|
|
1761
|
+
schema: DataSchema$Outbound;
|
|
1481
1762
|
strict?: boolean | undefined;
|
|
1482
1763
|
};
|
|
1483
1764
|
|
|
@@ -1488,8 +1769,8 @@ export const DataJsonSchema$outboundSchema: z.ZodType<
|
|
|
1488
1769
|
DataJsonSchema
|
|
1489
1770
|
> = z.object({
|
|
1490
1771
|
name: z.string(),
|
|
1491
|
-
description: z.string()
|
|
1492
|
-
schema: z.
|
|
1772
|
+
description: z.string(),
|
|
1773
|
+
schema: z.lazy(() => DataSchema$outboundSchema),
|
|
1493
1774
|
strict: z.boolean().optional(),
|
|
1494
1775
|
});
|
|
1495
1776
|
|
|
@@ -1509,7 +1790,7 @@ export function dataJsonSchemaFromJSON(
|
|
|
1509
1790
|
/** @internal */
|
|
1510
1791
|
export const Data2$inboundSchema: z.ZodType<Data2, z.ZodTypeDef, unknown> = z
|
|
1511
1792
|
.object({
|
|
1512
|
-
_id: z.string().default("
|
|
1793
|
+
_id: z.string().default("tool_01KA0EAFMK1JQCG5BPM0S4TWCV"),
|
|
1513
1794
|
path: z.string(),
|
|
1514
1795
|
key: z.string(),
|
|
1515
1796
|
display_name: z.string().optional(),
|
|
@@ -1561,7 +1842,7 @@ export const Data2$outboundSchema: z.ZodType<
|
|
|
1561
1842
|
z.ZodTypeDef,
|
|
1562
1843
|
Data2
|
|
1563
1844
|
> = z.object({
|
|
1564
|
-
id: z.string().default("
|
|
1845
|
+
id: z.string().default("tool_01KA0EAFMK1JQCG5BPM0S4TWCV"),
|
|
1565
1846
|
path: z.string(),
|
|
1566
1847
|
key: z.string(),
|
|
1567
1848
|
displayName: z.string().optional(),
|
|
@@ -1618,6 +1899,76 @@ export const GetAllToolsDataType$outboundSchema: z.ZodNativeEnum<
|
|
|
1618
1899
|
typeof GetAllToolsDataType
|
|
1619
1900
|
> = GetAllToolsDataType$inboundSchema;
|
|
1620
1901
|
|
|
1902
|
+
/** @internal */
|
|
1903
|
+
export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$inboundSchema:
|
|
1904
|
+
z.ZodNativeEnum<
|
|
1905
|
+
typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType
|
|
1906
|
+
> = z.nativeEnum(
|
|
1907
|
+
GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType,
|
|
1908
|
+
);
|
|
1909
|
+
/** @internal */
|
|
1910
|
+
export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$outboundSchema:
|
|
1911
|
+
z.ZodNativeEnum<
|
|
1912
|
+
typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType
|
|
1913
|
+
> =
|
|
1914
|
+
GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$inboundSchema;
|
|
1915
|
+
|
|
1916
|
+
/** @internal */
|
|
1917
|
+
export const DataParameters$inboundSchema: z.ZodType<
|
|
1918
|
+
DataParameters,
|
|
1919
|
+
z.ZodTypeDef,
|
|
1920
|
+
unknown
|
|
1921
|
+
> = collectExtraKeys$(
|
|
1922
|
+
z.object({
|
|
1923
|
+
type:
|
|
1924
|
+
GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$inboundSchema,
|
|
1925
|
+
properties: z.record(z.any()),
|
|
1926
|
+
required: z.array(z.string()),
|
|
1927
|
+
}).catchall(z.any()),
|
|
1928
|
+
"additionalProperties",
|
|
1929
|
+
true,
|
|
1930
|
+
);
|
|
1931
|
+
/** @internal */
|
|
1932
|
+
export type DataParameters$Outbound = {
|
|
1933
|
+
type: string;
|
|
1934
|
+
properties: { [k: string]: any };
|
|
1935
|
+
required: Array<string>;
|
|
1936
|
+
[additionalProperties: string]: unknown;
|
|
1937
|
+
};
|
|
1938
|
+
|
|
1939
|
+
/** @internal */
|
|
1940
|
+
export const DataParameters$outboundSchema: z.ZodType<
|
|
1941
|
+
DataParameters$Outbound,
|
|
1942
|
+
z.ZodTypeDef,
|
|
1943
|
+
DataParameters
|
|
1944
|
+
> = z.object({
|
|
1945
|
+
type:
|
|
1946
|
+
GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$outboundSchema,
|
|
1947
|
+
properties: z.record(z.any()),
|
|
1948
|
+
required: z.array(z.string()),
|
|
1949
|
+
additionalProperties: z.record(z.any()).optional(),
|
|
1950
|
+
}).transform((v) => {
|
|
1951
|
+
return {
|
|
1952
|
+
...v.additionalProperties,
|
|
1953
|
+
...remap$(v, {
|
|
1954
|
+
additionalProperties: null,
|
|
1955
|
+
}),
|
|
1956
|
+
};
|
|
1957
|
+
});
|
|
1958
|
+
|
|
1959
|
+
export function dataParametersToJSON(dataParameters: DataParameters): string {
|
|
1960
|
+
return JSON.stringify(DataParameters$outboundSchema.parse(dataParameters));
|
|
1961
|
+
}
|
|
1962
|
+
export function dataParametersFromJSON(
|
|
1963
|
+
jsonString: string,
|
|
1964
|
+
): SafeParseResult<DataParameters, SDKValidationError> {
|
|
1965
|
+
return safeParse(
|
|
1966
|
+
jsonString,
|
|
1967
|
+
(x) => DataParameters$inboundSchema.parse(JSON.parse(x)),
|
|
1968
|
+
`Failed to parse 'DataParameters' from JSON`,
|
|
1969
|
+
);
|
|
1970
|
+
}
|
|
1971
|
+
|
|
1621
1972
|
/** @internal */
|
|
1622
1973
|
export const GetAllToolsDataFunction$inboundSchema: z.ZodType<
|
|
1623
1974
|
GetAllToolsDataFunction,
|
|
@@ -1627,14 +1978,14 @@ export const GetAllToolsDataFunction$inboundSchema: z.ZodType<
|
|
|
1627
1978
|
name: z.string(),
|
|
1628
1979
|
description: z.string().optional(),
|
|
1629
1980
|
strict: z.boolean().optional(),
|
|
1630
|
-
parameters: z.
|
|
1981
|
+
parameters: z.lazy(() => DataParameters$inboundSchema).optional(),
|
|
1631
1982
|
});
|
|
1632
1983
|
/** @internal */
|
|
1633
1984
|
export type GetAllToolsDataFunction$Outbound = {
|
|
1634
1985
|
name: string;
|
|
1635
1986
|
description?: string | undefined;
|
|
1636
1987
|
strict?: boolean | undefined;
|
|
1637
|
-
parameters?:
|
|
1988
|
+
parameters?: DataParameters$Outbound | undefined;
|
|
1638
1989
|
};
|
|
1639
1990
|
|
|
1640
1991
|
/** @internal */
|
|
@@ -1646,7 +1997,7 @@ export const GetAllToolsDataFunction$outboundSchema: z.ZodType<
|
|
|
1646
1997
|
name: z.string(),
|
|
1647
1998
|
description: z.string().optional(),
|
|
1648
1999
|
strict: z.boolean().optional(),
|
|
1649
|
-
parameters: z.
|
|
2000
|
+
parameters: z.lazy(() => DataParameters$outboundSchema).optional(),
|
|
1650
2001
|
});
|
|
1651
2002
|
|
|
1652
2003
|
export function getAllToolsDataFunctionToJSON(
|
|
@@ -1669,7 +2020,7 @@ export function getAllToolsDataFunctionFromJSON(
|
|
|
1669
2020
|
/** @internal */
|
|
1670
2021
|
export const Data1$inboundSchema: z.ZodType<Data1, z.ZodTypeDef, unknown> = z
|
|
1671
2022
|
.object({
|
|
1672
|
-
_id: z.string().default("
|
|
2023
|
+
_id: z.string().default("tool_01KA0EAFMHP987V9QDMX82BHQH"),
|
|
1673
2024
|
path: z.string(),
|
|
1674
2025
|
key: z.string(),
|
|
1675
2026
|
display_name: z.string().optional(),
|
|
@@ -1720,7 +2071,7 @@ export const Data1$outboundSchema: z.ZodType<
|
|
|
1720
2071
|
z.ZodTypeDef,
|
|
1721
2072
|
Data1
|
|
1722
2073
|
> = z.object({
|
|
1723
|
-
id: z.string().default("
|
|
2074
|
+
id: z.string().default("tool_01KA0EAFMHP987V9QDMX82BHQH"),
|
|
1724
2075
|
path: z.string(),
|
|
1725
2076
|
key: z.string(),
|
|
1726
2077
|
displayName: z.string().optional(),
|