@orq-ai/node 4.0.0-rc.30 → 4.0.0-rc.31

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.
Files changed (163) hide show
  1. package/README.md +24 -22
  2. package/bin/mcp-server.js +2116 -596
  3. package/bin/mcp-server.js.map +50 -47
  4. package/docs/sdks/tools/README.md +93 -12
  5. package/examples/package-lock.json +1 -1
  6. package/funcs/toolsCreate.d.ts +2 -1
  7. package/funcs/toolsCreate.d.ts.map +1 -1
  8. package/funcs/toolsCreate.js +6 -2
  9. package/funcs/toolsCreate.js.map +1 -1
  10. package/funcs/toolsSync.d.ts +18 -0
  11. package/funcs/toolsSync.d.ts.map +1 -0
  12. package/funcs/toolsSync.js +123 -0
  13. package/funcs/toolsSync.js.map +1 -0
  14. package/jsr.json +1 -1
  15. package/lib/config.d.ts +3 -3
  16. package/lib/config.js +3 -3
  17. package/mcp-server/mcp-server.js +1 -1
  18. package/mcp-server/server.d.ts.map +1 -1
  19. package/mcp-server/server.js +3 -1
  20. package/mcp-server/server.js.map +1 -1
  21. package/mcp-server/tools/toolsSync.d.ts +8 -0
  22. package/mcp-server/tools/toolsSync.d.ts.map +1 -0
  23. package/mcp-server/tools/toolsSync.js +64 -0
  24. package/mcp-server/tools/toolsSync.js.map +1 -0
  25. package/models/operations/createagent.d.ts +53 -24
  26. package/models/operations/createagent.d.ts.map +1 -1
  27. package/models/operations/createagent.js +51 -25
  28. package/models/operations/createagent.js.map +1 -1
  29. package/models/operations/createbudget.js +2 -2
  30. package/models/operations/createcontact.js +2 -2
  31. package/models/operations/createdataset.js +2 -2
  32. package/models/operations/createdatasetitem.js +8 -8
  33. package/models/operations/createdatasource.js +2 -2
  34. package/models/operations/createeval.js +28 -28
  35. package/models/operations/createtool.d.ts +373 -144
  36. package/models/operations/createtool.d.ts.map +1 -1
  37. package/models/operations/createtool.js +332 -133
  38. package/models/operations/createtool.js.map +1 -1
  39. package/models/operations/deploymentgetconfig.d.ts +8 -8
  40. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  41. package/models/operations/deploymentgetconfig.js +13 -12
  42. package/models/operations/deploymentgetconfig.js.map +1 -1
  43. package/models/operations/duplicateagent.d.ts +0 -19
  44. package/models/operations/duplicateagent.d.ts.map +1 -1
  45. package/models/operations/duplicateagent.js +3 -21
  46. package/models/operations/duplicateagent.js.map +1 -1
  47. package/models/operations/duplicatetool.d.ts +189 -49
  48. package/models/operations/duplicatetool.d.ts.map +1 -1
  49. package/models/operations/duplicatetool.js +172 -44
  50. package/models/operations/duplicatetool.js.map +1 -1
  51. package/models/operations/fileget.js +2 -2
  52. package/models/operations/filelist.js +2 -2
  53. package/models/operations/fileupload.js +2 -2
  54. package/models/operations/getagent.d.ts +0 -19
  55. package/models/operations/getagent.d.ts.map +1 -1
  56. package/models/operations/getagent.js +3 -20
  57. package/models/operations/getagent.js.map +1 -1
  58. package/models/operations/getalltools.d.ts +194 -54
  59. package/models/operations/getalltools.d.ts.map +1 -1
  60. package/models/operations/getalltools.js +176 -51
  61. package/models/operations/getalltools.js.map +1 -1
  62. package/models/operations/getbudget.js +2 -2
  63. package/models/operations/getevals.js +28 -28
  64. package/models/operations/index.d.ts +1 -0
  65. package/models/operations/index.d.ts.map +1 -1
  66. package/models/operations/index.js +1 -0
  67. package/models/operations/index.js.map +1 -1
  68. package/models/operations/listagents.d.ts +0 -19
  69. package/models/operations/listagents.d.ts.map +1 -1
  70. package/models/operations/listagents.js +3 -22
  71. package/models/operations/listagents.js.map +1 -1
  72. package/models/operations/listbudgets.js +2 -2
  73. package/models/operations/listcontacts.js +2 -2
  74. package/models/operations/listdatasetdatapoints.js +8 -8
  75. package/models/operations/listdatasets.js +2 -2
  76. package/models/operations/listdatasources.js +2 -2
  77. package/models/operations/retrievecontact.js +2 -2
  78. package/models/operations/retrievedatapoint.js +8 -8
  79. package/models/operations/retrievedataset.js +2 -2
  80. package/models/operations/retrievedatasource.js +2 -2
  81. package/models/operations/retrievetool.d.ts +189 -49
  82. package/models/operations/retrievetool.d.ts.map +1 -1
  83. package/models/operations/retrievetool.js +172 -44
  84. package/models/operations/retrievetool.js.map +1 -1
  85. package/models/operations/runagent.d.ts +279 -23
  86. package/models/operations/runagent.d.ts.map +1 -1
  87. package/models/operations/runagent.js +274 -15
  88. package/models/operations/runagent.js.map +1 -1
  89. package/models/operations/streamrunagent.d.ts +282 -26
  90. package/models/operations/streamrunagent.d.ts.map +1 -1
  91. package/models/operations/streamrunagent.js +268 -22
  92. package/models/operations/streamrunagent.js.map +1 -1
  93. package/models/operations/syncmcptool.d.ts +1113 -0
  94. package/models/operations/syncmcptool.d.ts.map +1 -0
  95. package/models/operations/syncmcptool.js +1070 -0
  96. package/models/operations/syncmcptool.js.map +1 -0
  97. package/models/operations/updateagent.d.ts +53 -43
  98. package/models/operations/updateagent.d.ts.map +1 -1
  99. package/models/operations/updateagent.js +52 -43
  100. package/models/operations/updateagent.js.map +1 -1
  101. package/models/operations/updatebudget.js +2 -2
  102. package/models/operations/updatecontact.js +2 -2
  103. package/models/operations/updatedatapoint.js +8 -8
  104. package/models/operations/updatedataset.js +2 -2
  105. package/models/operations/updatedatasource.js +2 -2
  106. package/models/operations/updateeval.js +28 -28
  107. package/models/operations/updatetool.d.ts +394 -114
  108. package/models/operations/updatetool.d.ts.map +1 -1
  109. package/models/operations/updatetool.js +356 -95
  110. package/models/operations/updatetool.js.map +1 -1
  111. package/package.json +1 -1
  112. package/sdk/tools.d.ts +7 -0
  113. package/sdk/tools.d.ts.map +1 -1
  114. package/sdk/tools.js +10 -0
  115. package/sdk/tools.js.map +1 -1
  116. package/src/funcs/toolsCreate.ts +11 -2
  117. package/src/funcs/toolsSync.ts +176 -0
  118. package/src/lib/config.ts +3 -3
  119. package/src/mcp-server/mcp-server.ts +1 -1
  120. package/src/mcp-server/server.ts +3 -1
  121. package/src/mcp-server/tools/toolsSync.ts +37 -0
  122. package/src/models/operations/createagent.ts +114 -40
  123. package/src/models/operations/createbudget.ts +2 -2
  124. package/src/models/operations/createcontact.ts +2 -2
  125. package/src/models/operations/createdataset.ts +2 -2
  126. package/src/models/operations/createdatasetitem.ts +8 -8
  127. package/src/models/operations/createdatasource.ts +2 -2
  128. package/src/models/operations/createeval.ts +28 -28
  129. package/src/models/operations/createtool.ts +873 -277
  130. package/src/models/operations/deploymentgetconfig.ts +29 -20
  131. package/src/models/operations/duplicateagent.ts +0 -37
  132. package/src/models/operations/duplicatetool.ts +466 -87
  133. package/src/models/operations/fileget.ts +2 -2
  134. package/src/models/operations/filelist.ts +2 -2
  135. package/src/models/operations/fileupload.ts +2 -2
  136. package/src/models/operations/getagent.ts +0 -38
  137. package/src/models/operations/getalltools.ts +447 -96
  138. package/src/models/operations/getbudget.ts +2 -2
  139. package/src/models/operations/getevals.ts +28 -28
  140. package/src/models/operations/index.ts +1 -0
  141. package/src/models/operations/listagents.ts +0 -37
  142. package/src/models/operations/listbudgets.ts +2 -2
  143. package/src/models/operations/listcontacts.ts +2 -2
  144. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  145. package/src/models/operations/listdatasets.ts +2 -2
  146. package/src/models/operations/listdatasources.ts +2 -2
  147. package/src/models/operations/retrievecontact.ts +2 -2
  148. package/src/models/operations/retrievedatapoint.ts +8 -8
  149. package/src/models/operations/retrievedataset.ts +2 -2
  150. package/src/models/operations/retrievedatasource.ts +2 -2
  151. package/src/models/operations/retrievetool.ts +466 -85
  152. package/src/models/operations/runagent.ts +656 -25
  153. package/src/models/operations/streamrunagent.ts +749 -34
  154. package/src/models/operations/syncmcptool.ts +2599 -0
  155. package/src/models/operations/updateagent.ts +121 -77
  156. package/src/models/operations/updatebudget.ts +2 -2
  157. package/src/models/operations/updatecontact.ts +2 -2
  158. package/src/models/operations/updatedatapoint.ts +8 -8
  159. package/src/models/operations/updatedataset.ts +2 -2
  160. package/src/models/operations/updatedatasource.ts +2 -2
  161. package/src/models/operations/updateeval.ts +28 -28
  162. package/src/models/operations/updatetool.ts +910 -190
  163. package/src/sdk/tools.ts +18 -0
@@ -19,6 +19,38 @@ export declare const CreateToolRequestBodyToolsRequest5Type: {
19
19
  readonly Code: "code";
20
20
  };
21
21
  export type CreateToolRequestBodyToolsRequest5Type = ClosedEnum<typeof CreateToolRequestBodyToolsRequest5Type>;
22
+ /**
23
+ * The type must be "object"
24
+ */
25
+ export declare const CreateToolRequestBodyToolsRequest5CodeToolType: {
26
+ readonly Object: "object";
27
+ };
28
+ /**
29
+ * The type must be "object"
30
+ */
31
+ export type CreateToolRequestBodyToolsRequest5CodeToolType = ClosedEnum<typeof CreateToolRequestBodyToolsRequest5CodeToolType>;
32
+ /**
33
+ * 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.
34
+ */
35
+ export type CreateToolRequestBodyParameters = {
36
+ /**
37
+ * The type must be "object"
38
+ */
39
+ type: CreateToolRequestBodyToolsRequest5CodeToolType;
40
+ /**
41
+ * The properties of the function parameters
42
+ */
43
+ properties: {
44
+ [k: string]: any;
45
+ };
46
+ /**
47
+ * Array of required parameter names
48
+ */
49
+ required: Array<string>;
50
+ additionalProperties?: {
51
+ [k: string]: any;
52
+ } | undefined;
53
+ };
22
54
  export declare const RequestBodyLanguage: {
23
55
  readonly Python: "python";
24
56
  };
@@ -27,9 +59,7 @@ export type RequestBodyCodeTool = {
27
59
  /**
28
60
  * 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.
29
61
  */
30
- parameters?: {
31
- [k: string]: any;
32
- } | undefined;
62
+ parameters?: CreateToolRequestBodyParameters | undefined;
33
63
  language: RequestBodyLanguage;
34
64
  /**
35
65
  * The code to execute.
@@ -90,63 +120,37 @@ export type RequestBodyHeaders = {
90
120
  value: string;
91
121
  encrypted?: boolean | undefined;
92
122
  };
93
- export declare const CreateToolRequestBodyToolsRequest4McpType: {
94
- readonly Object: "object";
95
- };
96
- export type CreateToolRequestBodyToolsRequest4McpType = ClosedEnum<typeof CreateToolRequestBodyToolsRequest4McpType>;
97
- /**
98
- * The original MCP tool input schema for LLM conversion
99
- */
100
- export type InputSchema = {
101
- type: CreateToolRequestBodyToolsRequest4McpType;
102
- properties?: {
103
- [k: string]: any;
104
- } | undefined;
105
- required?: Array<string> | undefined;
106
- };
107
123
  /**
108
124
  * The connection type used by the MCP server
109
125
  */
110
- export declare const ConnectionType: {
126
+ export declare const RequestBodyConnectionType: {
111
127
  readonly Http: "http";
112
128
  readonly Sse: "sse";
113
129
  };
114
130
  /**
115
131
  * The connection type used by the MCP server
116
132
  */
117
- export type ConnectionType = ClosedEnum<typeof ConnectionType>;
118
- export type Mcp = {
119
- /**
120
- * The ID of the MCP server this tool belongs to
121
- */
122
- serverId: string;
123
- /**
124
- * The original tool name from the MCP server
125
- */
126
- toolName: string;
133
+ export type RequestBodyConnectionType = ClosedEnum<typeof RequestBodyConnectionType>;
134
+ export type RequestBodyMcp = {
127
135
  /**
128
136
  * The MCP server URL (cached for execution)
129
137
  */
130
138
  serverUrl: string;
131
139
  /**
132
- * HTTP headers for MCP server requests (encrypted format)
140
+ * HTTP headers for MCP server requests with encryption support
133
141
  */
134
142
  headers?: {
135
143
  [k: string]: RequestBodyHeaders;
136
144
  } | undefined;
137
- /**
138
- * The original MCP tool input schema for LLM conversion
139
- */
140
- inputSchema: InputSchema;
141
145
  /**
142
146
  * The connection type used by the MCP server
143
147
  */
144
- connectionType: ConnectionType;
148
+ connectionType: RequestBodyConnectionType;
145
149
  };
146
150
  /**
147
151
  * A tool from a Model Context Protocol (MCP) server that provides standardized access to external capabilities.
148
152
  */
149
- export type MCPTool = {
153
+ export type RequestBodyMCPTool = {
150
154
  /**
151
155
  * Entity storage path in the format: `project/folder/subfolder/...`
152
156
  *
@@ -174,7 +178,7 @@ export type MCPTool = {
174
178
  */
175
179
  status?: CreateToolRequestBodyToolsRequestStatus | undefined;
176
180
  type: CreateToolRequestBodyToolsRequest4Type;
177
- mcp: Mcp;
181
+ mcp: RequestBodyMcp;
178
182
  };
179
183
  /**
180
184
  * 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.
@@ -206,10 +210,11 @@ export declare const CreateToolRequestBodyMethod: {
206
210
  * The HTTP method to use.
207
211
  */
208
212
  export type CreateToolRequestBodyMethod = ClosedEnum<typeof CreateToolRequestBodyMethod>;
209
- export type CreateToolRequestBodyHeaders = {
213
+ export type CreateToolHeaders2 = {
210
214
  value: string;
211
215
  encrypted?: boolean | undefined;
212
216
  };
217
+ export type CreateToolRequestBodyHeaders = CreateToolHeaders2 | string;
213
218
  /**
214
219
  * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
215
220
  */
@@ -223,10 +228,10 @@ export type RequestBodyBlueprint = {
223
228
  */
224
229
  method: CreateToolRequestBodyMethod;
225
230
  /**
226
- * The headers to send with the request.
231
+ * The headers to send with the request. Can be a string value or an object with value and encrypted properties.
227
232
  */
228
233
  headers?: {
229
- [k: string]: CreateToolRequestBodyHeaders;
234
+ [k: string]: CreateToolHeaders2 | string;
230
235
  } | undefined;
231
236
  /**
232
237
  * The body to send with the request.
@@ -331,6 +336,28 @@ export declare const CreateToolRequestBodyToolsType: {
331
336
  readonly JsonSchema: "json_schema";
332
337
  };
333
338
  export type CreateToolRequestBodyToolsType = ClosedEnum<typeof CreateToolRequestBodyToolsType>;
339
+ /**
340
+ * 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.
341
+ */
342
+ export type RequestBodySchema = {
343
+ /**
344
+ * The JSON Schema type
345
+ */
346
+ type: string;
347
+ /**
348
+ * The properties of the JSON Schema object
349
+ */
350
+ properties: {
351
+ [k: string]: any;
352
+ };
353
+ /**
354
+ * Array of required property names
355
+ */
356
+ required: Array<string>;
357
+ additionalProperties?: {
358
+ [k: string]: any;
359
+ } | undefined;
360
+ };
334
361
  export type RequestBodyJsonSchema = {
335
362
  /**
336
363
  * 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.
@@ -339,13 +366,11 @@ export type RequestBodyJsonSchema = {
339
366
  /**
340
367
  * A description of what the response format is for. This will be shown to the user.
341
368
  */
342
- description?: string | undefined;
369
+ description: string;
343
370
  /**
344
371
  * 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.
345
372
  */
346
- schema: {
347
- [k: string]: any;
348
- };
373
+ schema: RequestBodySchema;
349
374
  /**
350
375
  * 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.
351
376
  */
@@ -401,6 +426,38 @@ export declare const CreateToolRequestBodyType: {
401
426
  readonly Function: "function";
402
427
  };
403
428
  export type CreateToolRequestBodyType = ClosedEnum<typeof CreateToolRequestBodyType>;
429
+ /**
430
+ * The type must be "object"
431
+ */
432
+ export declare const CreateToolRequestBodyToolsRequest1Type: {
433
+ readonly Object: "object";
434
+ };
435
+ /**
436
+ * The type must be "object"
437
+ */
438
+ export type CreateToolRequestBodyToolsRequest1Type = ClosedEnum<typeof CreateToolRequestBodyToolsRequest1Type>;
439
+ /**
440
+ * 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.
441
+ */
442
+ export type RequestBodyParameters = {
443
+ /**
444
+ * The type must be "object"
445
+ */
446
+ type: CreateToolRequestBodyToolsRequest1Type;
447
+ /**
448
+ * The properties of the function parameters
449
+ */
450
+ properties: {
451
+ [k: string]: any;
452
+ };
453
+ /**
454
+ * Array of required parameter names
455
+ */
456
+ required: Array<string>;
457
+ additionalProperties?: {
458
+ [k: string]: any;
459
+ } | undefined;
460
+ };
404
461
  export type RequestBodyFunction = {
405
462
  /**
406
463
  * 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.
@@ -417,9 +474,7 @@ export type RequestBodyFunction = {
417
474
  /**
418
475
  * 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.
419
476
  */
420
- parameters?: {
421
- [k: string]: any;
422
- } | undefined;
477
+ parameters?: RequestBodyParameters | undefined;
423
478
  };
424
479
  /**
425
480
  * A custom function tool that allows the model to call predefined functions with structured parameters.
@@ -457,7 +512,7 @@ export type RequestBodyFunctionTool = {
457
512
  /**
458
513
  * The tool to create
459
514
  */
460
- export type CreateToolRequestBody = RequestBodyFunctionTool | JSONSchemaTool | RequestBodyHTTPTool | MCPTool | RequestBodyCodeExecutionTool;
515
+ export type CreateToolRequestBody = RequestBodyFunctionTool | JSONSchemaTool | RequestBodyHTTPTool | RequestBodyMCPTool | RequestBodyCodeExecutionTool;
461
516
  /**
462
517
  * 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.
463
518
  */
@@ -475,6 +530,38 @@ export declare const CreateToolResponseBodyToolsResponse200ApplicationJSONType:
475
530
  readonly Code: "code";
476
531
  };
477
532
  export type CreateToolResponseBodyToolsResponse200ApplicationJSONType = ClosedEnum<typeof CreateToolResponseBodyToolsResponse200ApplicationJSONType>;
533
+ /**
534
+ * The type must be "object"
535
+ */
536
+ export declare const CreateToolResponseBodyToolsResponse200ApplicationJson5Type: {
537
+ readonly Object: "object";
538
+ };
539
+ /**
540
+ * The type must be "object"
541
+ */
542
+ export type CreateToolResponseBodyToolsResponse200ApplicationJson5Type = ClosedEnum<typeof CreateToolResponseBodyToolsResponse200ApplicationJson5Type>;
543
+ /**
544
+ * 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.
545
+ */
546
+ export type CreateToolResponseBodyParameters = {
547
+ /**
548
+ * The type must be "object"
549
+ */
550
+ type: CreateToolResponseBodyToolsResponse200ApplicationJson5Type;
551
+ /**
552
+ * The properties of the function parameters
553
+ */
554
+ properties: {
555
+ [k: string]: any;
556
+ };
557
+ /**
558
+ * Array of required parameter names
559
+ */
560
+ required: Array<string>;
561
+ additionalProperties?: {
562
+ [k: string]: any;
563
+ } | undefined;
564
+ };
478
565
  export declare const ResponseBodyLanguage: {
479
566
  readonly Python: "python";
480
567
  };
@@ -483,9 +570,7 @@ export type ResponseBodyCodeTool = {
483
570
  /**
484
571
  * 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.
485
572
  */
486
- parameters?: {
487
- [k: string]: any;
488
- } | undefined;
573
+ parameters?: CreateToolResponseBodyParameters | undefined;
489
574
  language: ResponseBodyLanguage;
490
575
  /**
491
576
  * The code to execute.
@@ -561,16 +646,18 @@ export declare const CreateToolResponseBodyToolsResponse200ApplicationJson4Type:
561
646
  readonly Object: "object";
562
647
  };
563
648
  export type CreateToolResponseBodyToolsResponse200ApplicationJson4Type = ClosedEnum<typeof CreateToolResponseBodyToolsResponse200ApplicationJson4Type>;
564
- /**
565
- * The original MCP tool input schema for LLM conversion
566
- */
567
- export type ResponseBodyInputSchema = {
649
+ export type CreateToolResponseBodySchema = {
568
650
  type: CreateToolResponseBodyToolsResponse200ApplicationJson4Type;
569
651
  properties?: {
570
652
  [k: string]: any;
571
653
  } | undefined;
572
654
  required?: Array<string> | undefined;
573
655
  };
656
+ export type ResponseBodyTools = {
657
+ name: string;
658
+ description?: string | undefined;
659
+ schema: CreateToolResponseBodySchema;
660
+ };
574
661
  /**
575
662
  * The connection type used by the MCP server
576
663
  */
@@ -583,28 +670,20 @@ export declare const ResponseBodyConnectionType: {
583
670
  */
584
671
  export type ResponseBodyConnectionType = ClosedEnum<typeof ResponseBodyConnectionType>;
585
672
  export type ResponseBodyMcp = {
586
- /**
587
- * The ID of the MCP server this tool belongs to
588
- */
589
- serverId: string;
590
- /**
591
- * The original tool name from the MCP server
592
- */
593
- toolName: string;
594
673
  /**
595
674
  * The MCP server URL (cached for execution)
596
675
  */
597
676
  serverUrl: string;
598
677
  /**
599
- * HTTP headers for MCP server requests (encrypted format)
678
+ * HTTP headers for MCP server requests with encryption support
600
679
  */
601
680
  headers?: {
602
681
  [k: string]: ResponseBodyHeaders;
603
682
  } | undefined;
604
683
  /**
605
- * The original MCP tool input schema for LLM conversion
684
+ * Array of tools available from the MCP server
606
685
  */
607
- inputSchema: ResponseBodyInputSchema;
686
+ tools: Array<ResponseBodyTools>;
608
687
  /**
609
688
  * The connection type used by the MCP server
610
689
  */
@@ -684,10 +763,11 @@ export declare const CreateToolResponseBodyMethod: {
684
763
  * The HTTP method to use.
685
764
  */
686
765
  export type CreateToolResponseBodyMethod = ClosedEnum<typeof CreateToolResponseBodyMethod>;
687
- export type CreateToolResponseBodyHeaders = {
766
+ export type CreateToolHeadersTools2 = {
688
767
  value: string;
689
768
  encrypted?: boolean | undefined;
690
769
  };
770
+ export type CreateToolResponseBodyHeaders = CreateToolHeadersTools2 | string;
691
771
  /**
692
772
  * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
693
773
  */
@@ -701,10 +781,10 @@ export type ResponseBodyBlueprint = {
701
781
  */
702
782
  method: CreateToolResponseBodyMethod;
703
783
  /**
704
- * The headers to send with the request.
784
+ * The headers to send with the request. Can be a string value or an object with value and encrypted properties.
705
785
  */
706
786
  headers?: {
707
- [k: string]: CreateToolResponseBodyHeaders;
787
+ [k: string]: CreateToolHeadersTools2 | string;
708
788
  } | undefined;
709
789
  /**
710
790
  * The body to send with the request.
@@ -820,6 +900,28 @@ export declare const CreateToolResponseBodyToolsType: {
820
900
  readonly JsonSchema: "json_schema";
821
901
  };
822
902
  export type CreateToolResponseBodyToolsType = ClosedEnum<typeof CreateToolResponseBodyToolsType>;
903
+ /**
904
+ * 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.
905
+ */
906
+ export type ResponseBodySchema = {
907
+ /**
908
+ * The JSON Schema type
909
+ */
910
+ type: string;
911
+ /**
912
+ * The properties of the JSON Schema object
913
+ */
914
+ properties: {
915
+ [k: string]: any;
916
+ };
917
+ /**
918
+ * Array of required property names
919
+ */
920
+ required: Array<string>;
921
+ additionalProperties?: {
922
+ [k: string]: any;
923
+ } | undefined;
924
+ };
823
925
  export type ResponseBodyJsonSchema = {
824
926
  /**
825
927
  * 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.
@@ -828,13 +930,11 @@ export type ResponseBodyJsonSchema = {
828
930
  /**
829
931
  * A description of what the response format is for. This will be shown to the user.
830
932
  */
831
- description?: string | undefined;
933
+ description: string;
832
934
  /**
833
935
  * 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.
834
936
  */
835
- schema: {
836
- [k: string]: any;
837
- };
937
+ schema: ResponseBodySchema;
838
938
  /**
839
939
  * 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.
840
940
  */
@@ -901,6 +1001,38 @@ export declare const CreateToolResponseBodyType: {
901
1001
  readonly Function: "function";
902
1002
  };
903
1003
  export type CreateToolResponseBodyType = ClosedEnum<typeof CreateToolResponseBodyType>;
1004
+ /**
1005
+ * The type must be "object"
1006
+ */
1007
+ export declare const CreateToolResponseBodyToolsResponse200ApplicationJson1Type: {
1008
+ readonly Object: "object";
1009
+ };
1010
+ /**
1011
+ * The type must be "object"
1012
+ */
1013
+ export type CreateToolResponseBodyToolsResponse200ApplicationJson1Type = ClosedEnum<typeof CreateToolResponseBodyToolsResponse200ApplicationJson1Type>;
1014
+ /**
1015
+ * 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.
1016
+ */
1017
+ export type ResponseBodyParameters = {
1018
+ /**
1019
+ * The type must be "object"
1020
+ */
1021
+ type: CreateToolResponseBodyToolsResponse200ApplicationJson1Type;
1022
+ /**
1023
+ * The properties of the function parameters
1024
+ */
1025
+ properties: {
1026
+ [k: string]: any;
1027
+ };
1028
+ /**
1029
+ * Array of required parameter names
1030
+ */
1031
+ required: Array<string>;
1032
+ additionalProperties?: {
1033
+ [k: string]: any;
1034
+ } | undefined;
1035
+ };
904
1036
  export type CreateToolResponseBodyFunction = {
905
1037
  /**
906
1038
  * 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.
@@ -917,9 +1049,7 @@ export type CreateToolResponseBodyFunction = {
917
1049
  /**
918
1050
  * 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.
919
1051
  */
920
- parameters?: {
921
- [k: string]: any;
922
- } | undefined;
1052
+ parameters?: ResponseBodyParameters | undefined;
923
1053
  };
924
1054
  export type ResponseBody1 = {
925
1055
  id?: string | undefined;
@@ -978,6 +1108,25 @@ export declare const CreateToolRequestBodyToolsRequest5Type$inboundSchema: z.Zod
978
1108
  /** @internal */
979
1109
  export declare const CreateToolRequestBodyToolsRequest5Type$outboundSchema: z.ZodNativeEnum<typeof CreateToolRequestBodyToolsRequest5Type>;
980
1110
  /** @internal */
1111
+ export declare const CreateToolRequestBodyToolsRequest5CodeToolType$inboundSchema: z.ZodNativeEnum<typeof CreateToolRequestBodyToolsRequest5CodeToolType>;
1112
+ /** @internal */
1113
+ export declare const CreateToolRequestBodyToolsRequest5CodeToolType$outboundSchema: z.ZodNativeEnum<typeof CreateToolRequestBodyToolsRequest5CodeToolType>;
1114
+ /** @internal */
1115
+ export declare const CreateToolRequestBodyParameters$inboundSchema: z.ZodType<CreateToolRequestBodyParameters, z.ZodTypeDef, unknown>;
1116
+ /** @internal */
1117
+ export type CreateToolRequestBodyParameters$Outbound = {
1118
+ type: string;
1119
+ properties: {
1120
+ [k: string]: any;
1121
+ };
1122
+ required: Array<string>;
1123
+ [additionalProperties: string]: unknown;
1124
+ };
1125
+ /** @internal */
1126
+ export declare const CreateToolRequestBodyParameters$outboundSchema: z.ZodType<CreateToolRequestBodyParameters$Outbound, z.ZodTypeDef, CreateToolRequestBodyParameters>;
1127
+ export declare function createToolRequestBodyParametersToJSON(createToolRequestBodyParameters: CreateToolRequestBodyParameters): string;
1128
+ export declare function createToolRequestBodyParametersFromJSON(jsonString: string): SafeParseResult<CreateToolRequestBodyParameters, SDKValidationError>;
1129
+ /** @internal */
981
1130
  export declare const RequestBodyLanguage$inboundSchema: z.ZodNativeEnum<typeof RequestBodyLanguage>;
982
1131
  /** @internal */
983
1132
  export declare const RequestBodyLanguage$outboundSchema: z.ZodNativeEnum<typeof RequestBodyLanguage>;
@@ -985,9 +1134,7 @@ export declare const RequestBodyLanguage$outboundSchema: z.ZodNativeEnum<typeof
985
1134
  export declare const RequestBodyCodeTool$inboundSchema: z.ZodType<RequestBodyCodeTool, z.ZodTypeDef, unknown>;
986
1135
  /** @internal */
987
1136
  export type RequestBodyCodeTool$Outbound = {
988
- parameters?: {
989
- [k: string]: any;
990
- } | undefined;
1137
+ parameters?: CreateToolRequestBodyParameters$Outbound | undefined;
991
1138
  language: string;
992
1139
  code: string;
993
1140
  };
@@ -1031,60 +1178,39 @@ export declare const RequestBodyHeaders$outboundSchema: z.ZodType<RequestBodyHea
1031
1178
  export declare function requestBodyHeadersToJSON(requestBodyHeaders: RequestBodyHeaders): string;
1032
1179
  export declare function requestBodyHeadersFromJSON(jsonString: string): SafeParseResult<RequestBodyHeaders, SDKValidationError>;
1033
1180
  /** @internal */
1034
- export declare const CreateToolRequestBodyToolsRequest4McpType$inboundSchema: z.ZodNativeEnum<typeof CreateToolRequestBodyToolsRequest4McpType>;
1035
- /** @internal */
1036
- export declare const CreateToolRequestBodyToolsRequest4McpType$outboundSchema: z.ZodNativeEnum<typeof CreateToolRequestBodyToolsRequest4McpType>;
1037
- /** @internal */
1038
- export declare const InputSchema$inboundSchema: z.ZodType<InputSchema, z.ZodTypeDef, unknown>;
1039
- /** @internal */
1040
- export type InputSchema$Outbound = {
1041
- type: string;
1042
- properties?: {
1043
- [k: string]: any;
1044
- } | undefined;
1045
- required?: Array<string> | undefined;
1046
- };
1181
+ export declare const RequestBodyConnectionType$inboundSchema: z.ZodNativeEnum<typeof RequestBodyConnectionType>;
1047
1182
  /** @internal */
1048
- export declare const InputSchema$outboundSchema: z.ZodType<InputSchema$Outbound, z.ZodTypeDef, InputSchema>;
1049
- export declare function inputSchemaToJSON(inputSchema: InputSchema): string;
1050
- export declare function inputSchemaFromJSON(jsonString: string): SafeParseResult<InputSchema, SDKValidationError>;
1183
+ export declare const RequestBodyConnectionType$outboundSchema: z.ZodNativeEnum<typeof RequestBodyConnectionType>;
1051
1184
  /** @internal */
1052
- export declare const ConnectionType$inboundSchema: z.ZodNativeEnum<typeof ConnectionType>;
1185
+ export declare const RequestBodyMcp$inboundSchema: z.ZodType<RequestBodyMcp, z.ZodTypeDef, unknown>;
1053
1186
  /** @internal */
1054
- export declare const ConnectionType$outboundSchema: z.ZodNativeEnum<typeof ConnectionType>;
1055
- /** @internal */
1056
- export declare const Mcp$inboundSchema: z.ZodType<Mcp, z.ZodTypeDef, unknown>;
1057
- /** @internal */
1058
- export type Mcp$Outbound = {
1059
- server_id: string;
1060
- tool_name: string;
1187
+ export type RequestBodyMcp$Outbound = {
1061
1188
  server_url: string;
1062
1189
  headers?: {
1063
1190
  [k: string]: RequestBodyHeaders$Outbound;
1064
1191
  } | undefined;
1065
- input_schema: InputSchema$Outbound;
1066
1192
  connection_type: string;
1067
1193
  };
1068
1194
  /** @internal */
1069
- export declare const Mcp$outboundSchema: z.ZodType<Mcp$Outbound, z.ZodTypeDef, Mcp>;
1070
- export declare function mcpToJSON(mcp: Mcp): string;
1071
- export declare function mcpFromJSON(jsonString: string): SafeParseResult<Mcp, SDKValidationError>;
1195
+ export declare const RequestBodyMcp$outboundSchema: z.ZodType<RequestBodyMcp$Outbound, z.ZodTypeDef, RequestBodyMcp>;
1196
+ export declare function requestBodyMcpToJSON(requestBodyMcp: RequestBodyMcp): string;
1197
+ export declare function requestBodyMcpFromJSON(jsonString: string): SafeParseResult<RequestBodyMcp, SDKValidationError>;
1072
1198
  /** @internal */
1073
- export declare const MCPTool$inboundSchema: z.ZodType<MCPTool, z.ZodTypeDef, unknown>;
1199
+ export declare const RequestBodyMCPTool$inboundSchema: z.ZodType<RequestBodyMCPTool, z.ZodTypeDef, unknown>;
1074
1200
  /** @internal */
1075
- export type MCPTool$Outbound = {
1201
+ export type RequestBodyMCPTool$Outbound = {
1076
1202
  path: string;
1077
1203
  key: string;
1078
1204
  display_name?: string | undefined;
1079
1205
  description: string;
1080
1206
  status: string;
1081
1207
  type: string;
1082
- mcp: Mcp$Outbound;
1208
+ mcp: RequestBodyMcp$Outbound;
1083
1209
  };
1084
1210
  /** @internal */
1085
- export declare const MCPTool$outboundSchema: z.ZodType<MCPTool$Outbound, z.ZodTypeDef, MCPTool>;
1086
- export declare function mcpToolToJSON(mcpTool: MCPTool): string;
1087
- export declare function mcpToolFromJSON(jsonString: string): SafeParseResult<MCPTool, SDKValidationError>;
1211
+ export declare const RequestBodyMCPTool$outboundSchema: z.ZodType<RequestBodyMCPTool$Outbound, z.ZodTypeDef, RequestBodyMCPTool>;
1212
+ export declare function requestBodyMCPToolToJSON(requestBodyMCPTool: RequestBodyMCPTool): string;
1213
+ export declare function requestBodyMCPToolFromJSON(jsonString: string): SafeParseResult<RequestBodyMCPTool, SDKValidationError>;
1088
1214
  /** @internal */
1089
1215
  export declare const CreateToolRequestBodyToolsStatus$inboundSchema: z.ZodNativeEnum<typeof CreateToolRequestBodyToolsStatus>;
1090
1216
  /** @internal */
@@ -1098,13 +1224,21 @@ export declare const CreateToolRequestBodyMethod$inboundSchema: z.ZodNativeEnum<
1098
1224
  /** @internal */
1099
1225
  export declare const CreateToolRequestBodyMethod$outboundSchema: z.ZodNativeEnum<typeof CreateToolRequestBodyMethod>;
1100
1226
  /** @internal */
1101
- export declare const CreateToolRequestBodyHeaders$inboundSchema: z.ZodType<CreateToolRequestBodyHeaders, z.ZodTypeDef, unknown>;
1227
+ export declare const CreateToolHeaders2$inboundSchema: z.ZodType<CreateToolHeaders2, z.ZodTypeDef, unknown>;
1102
1228
  /** @internal */
1103
- export type CreateToolRequestBodyHeaders$Outbound = {
1229
+ export type CreateToolHeaders2$Outbound = {
1104
1230
  value: string;
1105
1231
  encrypted: boolean;
1106
1232
  };
1107
1233
  /** @internal */
1234
+ export declare const CreateToolHeaders2$outboundSchema: z.ZodType<CreateToolHeaders2$Outbound, z.ZodTypeDef, CreateToolHeaders2>;
1235
+ export declare function createToolHeaders2ToJSON(createToolHeaders2: CreateToolHeaders2): string;
1236
+ export declare function createToolHeaders2FromJSON(jsonString: string): SafeParseResult<CreateToolHeaders2, SDKValidationError>;
1237
+ /** @internal */
1238
+ export declare const CreateToolRequestBodyHeaders$inboundSchema: z.ZodType<CreateToolRequestBodyHeaders, z.ZodTypeDef, unknown>;
1239
+ /** @internal */
1240
+ export type CreateToolRequestBodyHeaders$Outbound = CreateToolHeaders2$Outbound | string;
1241
+ /** @internal */
1108
1242
  export declare const CreateToolRequestBodyHeaders$outboundSchema: z.ZodType<CreateToolRequestBodyHeaders$Outbound, z.ZodTypeDef, CreateToolRequestBodyHeaders>;
1109
1243
  export declare function createToolRequestBodyHeadersToJSON(createToolRequestBodyHeaders: CreateToolRequestBodyHeaders): string;
1110
1244
  export declare function createToolRequestBodyHeadersFromJSON(jsonString: string): SafeParseResult<CreateToolRequestBodyHeaders, SDKValidationError>;
@@ -1115,7 +1249,7 @@ export type RequestBodyBlueprint$Outbound = {
1115
1249
  url: string;
1116
1250
  method: string;
1117
1251
  headers?: {
1118
- [k: string]: CreateToolRequestBodyHeaders$Outbound;
1252
+ [k: string]: CreateToolHeaders2$Outbound | string;
1119
1253
  } | undefined;
1120
1254
  body?: {
1121
1255
  [k: string]: any;
@@ -1188,14 +1322,27 @@ export declare const CreateToolRequestBodyToolsType$inboundSchema: z.ZodNativeEn
1188
1322
  /** @internal */
1189
1323
  export declare const CreateToolRequestBodyToolsType$outboundSchema: z.ZodNativeEnum<typeof CreateToolRequestBodyToolsType>;
1190
1324
  /** @internal */
1325
+ export declare const RequestBodySchema$inboundSchema: z.ZodType<RequestBodySchema, z.ZodTypeDef, unknown>;
1326
+ /** @internal */
1327
+ export type RequestBodySchema$Outbound = {
1328
+ type: string;
1329
+ properties: {
1330
+ [k: string]: any;
1331
+ };
1332
+ required: Array<string>;
1333
+ [additionalProperties: string]: unknown;
1334
+ };
1335
+ /** @internal */
1336
+ export declare const RequestBodySchema$outboundSchema: z.ZodType<RequestBodySchema$Outbound, z.ZodTypeDef, RequestBodySchema>;
1337
+ export declare function requestBodySchemaToJSON(requestBodySchema: RequestBodySchema): string;
1338
+ export declare function requestBodySchemaFromJSON(jsonString: string): SafeParseResult<RequestBodySchema, SDKValidationError>;
1339
+ /** @internal */
1191
1340
  export declare const RequestBodyJsonSchema$inboundSchema: z.ZodType<RequestBodyJsonSchema, z.ZodTypeDef, unknown>;
1192
1341
  /** @internal */
1193
1342
  export type RequestBodyJsonSchema$Outbound = {
1194
1343
  name: string;
1195
- description?: string | undefined;
1196
- schema: {
1197
- [k: string]: any;
1198
- };
1344
+ description: string;
1345
+ schema: RequestBodySchema$Outbound;
1199
1346
  strict?: boolean | undefined;
1200
1347
  };
1201
1348
  /** @internal */
@@ -1227,15 +1374,32 @@ export declare const CreateToolRequestBodyType$inboundSchema: z.ZodNativeEnum<ty
1227
1374
  /** @internal */
1228
1375
  export declare const CreateToolRequestBodyType$outboundSchema: z.ZodNativeEnum<typeof CreateToolRequestBodyType>;
1229
1376
  /** @internal */
1377
+ export declare const CreateToolRequestBodyToolsRequest1Type$inboundSchema: z.ZodNativeEnum<typeof CreateToolRequestBodyToolsRequest1Type>;
1378
+ /** @internal */
1379
+ export declare const CreateToolRequestBodyToolsRequest1Type$outboundSchema: z.ZodNativeEnum<typeof CreateToolRequestBodyToolsRequest1Type>;
1380
+ /** @internal */
1381
+ export declare const RequestBodyParameters$inboundSchema: z.ZodType<RequestBodyParameters, z.ZodTypeDef, unknown>;
1382
+ /** @internal */
1383
+ export type RequestBodyParameters$Outbound = {
1384
+ type: string;
1385
+ properties: {
1386
+ [k: string]: any;
1387
+ };
1388
+ required: Array<string>;
1389
+ [additionalProperties: string]: unknown;
1390
+ };
1391
+ /** @internal */
1392
+ export declare const RequestBodyParameters$outboundSchema: z.ZodType<RequestBodyParameters$Outbound, z.ZodTypeDef, RequestBodyParameters>;
1393
+ export declare function requestBodyParametersToJSON(requestBodyParameters: RequestBodyParameters): string;
1394
+ export declare function requestBodyParametersFromJSON(jsonString: string): SafeParseResult<RequestBodyParameters, SDKValidationError>;
1395
+ /** @internal */
1230
1396
  export declare const RequestBodyFunction$inboundSchema: z.ZodType<RequestBodyFunction, z.ZodTypeDef, unknown>;
1231
1397
  /** @internal */
1232
1398
  export type RequestBodyFunction$Outbound = {
1233
1399
  name: string;
1234
1400
  description?: string | undefined;
1235
1401
  strict?: boolean | undefined;
1236
- parameters?: {
1237
- [k: string]: any;
1238
- } | undefined;
1402
+ parameters?: RequestBodyParameters$Outbound | undefined;
1239
1403
  };
1240
1404
  /** @internal */
1241
1405
  export declare const RequestBodyFunction$outboundSchema: z.ZodType<RequestBodyFunction$Outbound, z.ZodTypeDef, RequestBodyFunction>;
@@ -1260,7 +1424,7 @@ export declare function requestBodyFunctionToolFromJSON(jsonString: string): Saf
1260
1424
  /** @internal */
1261
1425
  export declare const CreateToolRequestBody$inboundSchema: z.ZodType<CreateToolRequestBody, z.ZodTypeDef, unknown>;
1262
1426
  /** @internal */
1263
- export type CreateToolRequestBody$Outbound = RequestBodyFunctionTool$Outbound | JSONSchemaTool$Outbound | RequestBodyHTTPTool$Outbound | MCPTool$Outbound | RequestBodyCodeExecutionTool$Outbound;
1427
+ export type CreateToolRequestBody$Outbound = RequestBodyFunctionTool$Outbound | JSONSchemaTool$Outbound | RequestBodyHTTPTool$Outbound | RequestBodyMCPTool$Outbound | RequestBodyCodeExecutionTool$Outbound;
1264
1428
  /** @internal */
1265
1429
  export declare const CreateToolRequestBody$outboundSchema: z.ZodType<CreateToolRequestBody$Outbound, z.ZodTypeDef, CreateToolRequestBody>;
1266
1430
  export declare function createToolRequestBodyToJSON(createToolRequestBody: CreateToolRequestBody): string;
@@ -1274,6 +1438,25 @@ export declare const CreateToolResponseBodyToolsResponse200ApplicationJSONType$i
1274
1438
  /** @internal */
1275
1439
  export declare const CreateToolResponseBodyToolsResponse200ApplicationJSONType$outboundSchema: z.ZodNativeEnum<typeof CreateToolResponseBodyToolsResponse200ApplicationJSONType>;
1276
1440
  /** @internal */
1441
+ export declare const CreateToolResponseBodyToolsResponse200ApplicationJson5Type$inboundSchema: z.ZodNativeEnum<typeof CreateToolResponseBodyToolsResponse200ApplicationJson5Type>;
1442
+ /** @internal */
1443
+ export declare const CreateToolResponseBodyToolsResponse200ApplicationJson5Type$outboundSchema: z.ZodNativeEnum<typeof CreateToolResponseBodyToolsResponse200ApplicationJson5Type>;
1444
+ /** @internal */
1445
+ export declare const CreateToolResponseBodyParameters$inboundSchema: z.ZodType<CreateToolResponseBodyParameters, z.ZodTypeDef, unknown>;
1446
+ /** @internal */
1447
+ export type CreateToolResponseBodyParameters$Outbound = {
1448
+ type: string;
1449
+ properties: {
1450
+ [k: string]: any;
1451
+ };
1452
+ required: Array<string>;
1453
+ [additionalProperties: string]: unknown;
1454
+ };
1455
+ /** @internal */
1456
+ export declare const CreateToolResponseBodyParameters$outboundSchema: z.ZodType<CreateToolResponseBodyParameters$Outbound, z.ZodTypeDef, CreateToolResponseBodyParameters>;
1457
+ export declare function createToolResponseBodyParametersToJSON(createToolResponseBodyParameters: CreateToolResponseBodyParameters): string;
1458
+ export declare function createToolResponseBodyParametersFromJSON(jsonString: string): SafeParseResult<CreateToolResponseBodyParameters, SDKValidationError>;
1459
+ /** @internal */
1277
1460
  export declare const ResponseBodyLanguage$inboundSchema: z.ZodNativeEnum<typeof ResponseBodyLanguage>;
1278
1461
  /** @internal */
1279
1462
  export declare const ResponseBodyLanguage$outboundSchema: z.ZodNativeEnum<typeof ResponseBodyLanguage>;
@@ -1281,9 +1464,7 @@ export declare const ResponseBodyLanguage$outboundSchema: z.ZodNativeEnum<typeof
1281
1464
  export declare const ResponseBodyCodeTool$inboundSchema: z.ZodType<ResponseBodyCodeTool, z.ZodTypeDef, unknown>;
1282
1465
  /** @internal */
1283
1466
  export type ResponseBodyCodeTool$Outbound = {
1284
- parameters?: {
1285
- [k: string]: any;
1286
- } | undefined;
1467
+ parameters?: CreateToolResponseBodyParameters$Outbound | undefined;
1287
1468
  language: string;
1288
1469
  code: string;
1289
1470
  };
@@ -1339,9 +1520,9 @@ export declare const CreateToolResponseBodyToolsResponse200ApplicationJson4Type$
1339
1520
  /** @internal */
1340
1521
  export declare const CreateToolResponseBodyToolsResponse200ApplicationJson4Type$outboundSchema: z.ZodNativeEnum<typeof CreateToolResponseBodyToolsResponse200ApplicationJson4Type>;
1341
1522
  /** @internal */
1342
- export declare const ResponseBodyInputSchema$inboundSchema: z.ZodType<ResponseBodyInputSchema, z.ZodTypeDef, unknown>;
1523
+ export declare const CreateToolResponseBodySchema$inboundSchema: z.ZodType<CreateToolResponseBodySchema, z.ZodTypeDef, unknown>;
1343
1524
  /** @internal */
1344
- export type ResponseBodyInputSchema$Outbound = {
1525
+ export type CreateToolResponseBodySchema$Outbound = {
1345
1526
  type: string;
1346
1527
  properties?: {
1347
1528
  [k: string]: any;
@@ -1349,9 +1530,21 @@ export type ResponseBodyInputSchema$Outbound = {
1349
1530
  required?: Array<string> | undefined;
1350
1531
  };
1351
1532
  /** @internal */
1352
- export declare const ResponseBodyInputSchema$outboundSchema: z.ZodType<ResponseBodyInputSchema$Outbound, z.ZodTypeDef, ResponseBodyInputSchema>;
1353
- export declare function responseBodyInputSchemaToJSON(responseBodyInputSchema: ResponseBodyInputSchema): string;
1354
- export declare function responseBodyInputSchemaFromJSON(jsonString: string): SafeParseResult<ResponseBodyInputSchema, SDKValidationError>;
1533
+ export declare const CreateToolResponseBodySchema$outboundSchema: z.ZodType<CreateToolResponseBodySchema$Outbound, z.ZodTypeDef, CreateToolResponseBodySchema>;
1534
+ export declare function createToolResponseBodySchemaToJSON(createToolResponseBodySchema: CreateToolResponseBodySchema): string;
1535
+ export declare function createToolResponseBodySchemaFromJSON(jsonString: string): SafeParseResult<CreateToolResponseBodySchema, SDKValidationError>;
1536
+ /** @internal */
1537
+ export declare const ResponseBodyTools$inboundSchema: z.ZodType<ResponseBodyTools, z.ZodTypeDef, unknown>;
1538
+ /** @internal */
1539
+ export type ResponseBodyTools$Outbound = {
1540
+ name: string;
1541
+ description?: string | undefined;
1542
+ schema: CreateToolResponseBodySchema$Outbound;
1543
+ };
1544
+ /** @internal */
1545
+ export declare const ResponseBodyTools$outboundSchema: z.ZodType<ResponseBodyTools$Outbound, z.ZodTypeDef, ResponseBodyTools>;
1546
+ export declare function responseBodyToolsToJSON(responseBodyTools: ResponseBodyTools): string;
1547
+ export declare function responseBodyToolsFromJSON(jsonString: string): SafeParseResult<ResponseBodyTools, SDKValidationError>;
1355
1548
  /** @internal */
1356
1549
  export declare const ResponseBodyConnectionType$inboundSchema: z.ZodNativeEnum<typeof ResponseBodyConnectionType>;
1357
1550
  /** @internal */
@@ -1360,13 +1553,11 @@ export declare const ResponseBodyConnectionType$outboundSchema: z.ZodNativeEnum<
1360
1553
  export declare const ResponseBodyMcp$inboundSchema: z.ZodType<ResponseBodyMcp, z.ZodTypeDef, unknown>;
1361
1554
  /** @internal */
1362
1555
  export type ResponseBodyMcp$Outbound = {
1363
- server_id: string;
1364
- tool_name: string;
1365
1556
  server_url: string;
1366
1557
  headers?: {
1367
1558
  [k: string]: ResponseBodyHeaders$Outbound;
1368
1559
  } | undefined;
1369
- input_schema: ResponseBodyInputSchema$Outbound;
1560
+ tools: Array<ResponseBodyTools$Outbound>;
1370
1561
  connection_type: string;
1371
1562
  };
1372
1563
  /** @internal */
@@ -1410,13 +1601,21 @@ export declare const CreateToolResponseBodyMethod$inboundSchema: z.ZodNativeEnum
1410
1601
  /** @internal */
1411
1602
  export declare const CreateToolResponseBodyMethod$outboundSchema: z.ZodNativeEnum<typeof CreateToolResponseBodyMethod>;
1412
1603
  /** @internal */
1413
- export declare const CreateToolResponseBodyHeaders$inboundSchema: z.ZodType<CreateToolResponseBodyHeaders, z.ZodTypeDef, unknown>;
1604
+ export declare const CreateToolHeadersTools2$inboundSchema: z.ZodType<CreateToolHeadersTools2, z.ZodTypeDef, unknown>;
1414
1605
  /** @internal */
1415
- export type CreateToolResponseBodyHeaders$Outbound = {
1606
+ export type CreateToolHeadersTools2$Outbound = {
1416
1607
  value: string;
1417
1608
  encrypted: boolean;
1418
1609
  };
1419
1610
  /** @internal */
1611
+ export declare const CreateToolHeadersTools2$outboundSchema: z.ZodType<CreateToolHeadersTools2$Outbound, z.ZodTypeDef, CreateToolHeadersTools2>;
1612
+ export declare function createToolHeadersTools2ToJSON(createToolHeadersTools2: CreateToolHeadersTools2): string;
1613
+ export declare function createToolHeadersTools2FromJSON(jsonString: string): SafeParseResult<CreateToolHeadersTools2, SDKValidationError>;
1614
+ /** @internal */
1615
+ export declare const CreateToolResponseBodyHeaders$inboundSchema: z.ZodType<CreateToolResponseBodyHeaders, z.ZodTypeDef, unknown>;
1616
+ /** @internal */
1617
+ export type CreateToolResponseBodyHeaders$Outbound = CreateToolHeadersTools2$Outbound | string;
1618
+ /** @internal */
1420
1619
  export declare const CreateToolResponseBodyHeaders$outboundSchema: z.ZodType<CreateToolResponseBodyHeaders$Outbound, z.ZodTypeDef, CreateToolResponseBodyHeaders>;
1421
1620
  export declare function createToolResponseBodyHeadersToJSON(createToolResponseBodyHeaders: CreateToolResponseBodyHeaders): string;
1422
1621
  export declare function createToolResponseBodyHeadersFromJSON(jsonString: string): SafeParseResult<CreateToolResponseBodyHeaders, SDKValidationError>;
@@ -1427,7 +1626,7 @@ export type ResponseBodyBlueprint$Outbound = {
1427
1626
  url: string;
1428
1627
  method: string;
1429
1628
  headers?: {
1430
- [k: string]: CreateToolResponseBodyHeaders$Outbound;
1629
+ [k: string]: CreateToolHeadersTools2$Outbound | string;
1431
1630
  } | undefined;
1432
1631
  body?: {
1433
1632
  [k: string]: any;
@@ -1508,14 +1707,27 @@ export declare const CreateToolResponseBodyToolsType$inboundSchema: z.ZodNativeE
1508
1707
  /** @internal */
1509
1708
  export declare const CreateToolResponseBodyToolsType$outboundSchema: z.ZodNativeEnum<typeof CreateToolResponseBodyToolsType>;
1510
1709
  /** @internal */
1710
+ export declare const ResponseBodySchema$inboundSchema: z.ZodType<ResponseBodySchema, z.ZodTypeDef, unknown>;
1711
+ /** @internal */
1712
+ export type ResponseBodySchema$Outbound = {
1713
+ type: string;
1714
+ properties: {
1715
+ [k: string]: any;
1716
+ };
1717
+ required: Array<string>;
1718
+ [additionalProperties: string]: unknown;
1719
+ };
1720
+ /** @internal */
1721
+ export declare const ResponseBodySchema$outboundSchema: z.ZodType<ResponseBodySchema$Outbound, z.ZodTypeDef, ResponseBodySchema>;
1722
+ export declare function responseBodySchemaToJSON(responseBodySchema: ResponseBodySchema): string;
1723
+ export declare function responseBodySchemaFromJSON(jsonString: string): SafeParseResult<ResponseBodySchema, SDKValidationError>;
1724
+ /** @internal */
1511
1725
  export declare const ResponseBodyJsonSchema$inboundSchema: z.ZodType<ResponseBodyJsonSchema, z.ZodTypeDef, unknown>;
1512
1726
  /** @internal */
1513
1727
  export type ResponseBodyJsonSchema$Outbound = {
1514
1728
  name: string;
1515
- description?: string | undefined;
1516
- schema: {
1517
- [k: string]: any;
1518
- };
1729
+ description: string;
1730
+ schema: ResponseBodySchema$Outbound;
1519
1731
  strict?: boolean | undefined;
1520
1732
  };
1521
1733
  /** @internal */
@@ -1555,15 +1767,32 @@ export declare const CreateToolResponseBodyType$inboundSchema: z.ZodNativeEnum<t
1555
1767
  /** @internal */
1556
1768
  export declare const CreateToolResponseBodyType$outboundSchema: z.ZodNativeEnum<typeof CreateToolResponseBodyType>;
1557
1769
  /** @internal */
1770
+ export declare const CreateToolResponseBodyToolsResponse200ApplicationJson1Type$inboundSchema: z.ZodNativeEnum<typeof CreateToolResponseBodyToolsResponse200ApplicationJson1Type>;
1771
+ /** @internal */
1772
+ export declare const CreateToolResponseBodyToolsResponse200ApplicationJson1Type$outboundSchema: z.ZodNativeEnum<typeof CreateToolResponseBodyToolsResponse200ApplicationJson1Type>;
1773
+ /** @internal */
1774
+ export declare const ResponseBodyParameters$inboundSchema: z.ZodType<ResponseBodyParameters, z.ZodTypeDef, unknown>;
1775
+ /** @internal */
1776
+ export type ResponseBodyParameters$Outbound = {
1777
+ type: string;
1778
+ properties: {
1779
+ [k: string]: any;
1780
+ };
1781
+ required: Array<string>;
1782
+ [additionalProperties: string]: unknown;
1783
+ };
1784
+ /** @internal */
1785
+ export declare const ResponseBodyParameters$outboundSchema: z.ZodType<ResponseBodyParameters$Outbound, z.ZodTypeDef, ResponseBodyParameters>;
1786
+ export declare function responseBodyParametersToJSON(responseBodyParameters: ResponseBodyParameters): string;
1787
+ export declare function responseBodyParametersFromJSON(jsonString: string): SafeParseResult<ResponseBodyParameters, SDKValidationError>;
1788
+ /** @internal */
1558
1789
  export declare const CreateToolResponseBodyFunction$inboundSchema: z.ZodType<CreateToolResponseBodyFunction, z.ZodTypeDef, unknown>;
1559
1790
  /** @internal */
1560
1791
  export type CreateToolResponseBodyFunction$Outbound = {
1561
1792
  name: string;
1562
1793
  description?: string | undefined;
1563
1794
  strict?: boolean | undefined;
1564
- parameters?: {
1565
- [k: string]: any;
1566
- } | undefined;
1795
+ parameters?: ResponseBodyParameters$Outbound | undefined;
1567
1796
  };
1568
1797
  /** @internal */
1569
1798
  export declare const CreateToolResponseBodyFunction$outboundSchema: z.ZodType<CreateToolResponseBodyFunction$Outbound, z.ZodTypeDef, CreateToolResponseBodyFunction>;