@orq-ai/node 4.14.0-rc.19 → 4.14.0-rc.20

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 (115) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +3 -3
  3. package/lib/config.js +3 -3
  4. package/models/components/evaluatorresponsefunction.js +2 -2
  5. package/models/components/evaluatorresponsehttp.js +2 -2
  6. package/models/components/evaluatorresponsejsonschema.js +2 -2
  7. package/models/components/evaluatorresponsellm.js +2 -2
  8. package/models/components/evaluatorresponsepython.js +2 -2
  9. package/models/components/evaluatorresponseragas.js +2 -2
  10. package/models/components/evaluatorresponsetypescript.js +2 -2
  11. package/models/components/reasoningpart.js +1 -1
  12. package/models/operations/createagentrequest.d.ts +1 -1
  13. package/models/operations/createannotationqueue.js +1 -1
  14. package/models/operations/createdataset.d.ts +1 -1
  15. package/models/operations/createdataset.js +1 -1
  16. package/models/operations/createdatasetitem.js +5 -5
  17. package/models/operations/createdatasource.js +1 -1
  18. package/models/operations/createknowledge.d.ts +4 -4
  19. package/models/operations/creatememorystore.d.ts +1 -1
  20. package/models/operations/createprompt.d.ts +1 -1
  21. package/models/operations/createtool.d.ts +42 -297
  22. package/models/operations/createtool.d.ts.map +1 -1
  23. package/models/operations/createtool.js +35 -206
  24. package/models/operations/createtool.js.map +1 -1
  25. package/models/operations/getalltools.d.ts +21 -157
  26. package/models/operations/getalltools.d.ts.map +1 -1
  27. package/models/operations/getalltools.js +18 -123
  28. package/models/operations/getalltools.js.map +1 -1
  29. package/models/operations/geteval.js +16 -16
  30. package/models/operations/getoneknowledge.d.ts +2 -2
  31. package/models/operations/getv2humanevalsets.js +2 -2
  32. package/models/operations/getv2humanevalsetsid.js +2 -2
  33. package/models/operations/listagents.d.ts +1 -1
  34. package/models/operations/listannotationqueues.js +1 -1
  35. package/models/operations/listdatasetdatapoints.js +5 -5
  36. package/models/operations/listdatasets.js +1 -1
  37. package/models/operations/listdatasources.js +1 -1
  38. package/models/operations/listknowledgebases.d.ts +2 -2
  39. package/models/operations/patchv2humanevalsetsid.js +2 -2
  40. package/models/operations/postv2feedbackevaluation.js +4 -4
  41. package/models/operations/postv2humanevalsets.js +2 -2
  42. package/models/operations/retrieveagentrequest.d.ts +1 -1
  43. package/models/operations/retrieveannotationqueue.js +1 -1
  44. package/models/operations/retrievedatapoint.js +5 -5
  45. package/models/operations/retrievedataset.js +1 -1
  46. package/models/operations/retrievedatasource.js +1 -1
  47. package/models/operations/retrievetool.d.ts +20 -156
  48. package/models/operations/retrievetool.d.ts.map +1 -1
  49. package/models/operations/retrievetool.js +19 -125
  50. package/models/operations/retrievetool.js.map +1 -1
  51. package/models/operations/runagent.d.ts +1 -1
  52. package/models/operations/runagent.js +1 -1
  53. package/models/operations/streamrunagent.d.ts +1 -1
  54. package/models/operations/streamrunagent.js +1 -1
  55. package/models/operations/updateagent.d.ts +2 -2
  56. package/models/operations/updateannotationqueue.js +1 -1
  57. package/models/operations/updatedatapoint.js +5 -5
  58. package/models/operations/updatedataset.d.ts +1 -1
  59. package/models/operations/updatedataset.js +1 -1
  60. package/models/operations/updatedatasource.js +1 -1
  61. package/models/operations/updateknowledge.d.ts +4 -4
  62. package/models/operations/updateprompt.d.ts +1 -1
  63. package/models/operations/updatetool.d.ts +43 -355
  64. package/models/operations/updatetool.d.ts.map +1 -1
  65. package/models/operations/updatetool.js +35 -249
  66. package/models/operations/updatetool.js.map +1 -1
  67. package/package.json +7 -7
  68. package/src/lib/config.ts +3 -3
  69. package/src/models/components/evaluatorresponsefunction.ts +2 -2
  70. package/src/models/components/evaluatorresponsehttp.ts +2 -2
  71. package/src/models/components/evaluatorresponsejsonschema.ts +2 -2
  72. package/src/models/components/evaluatorresponsellm.ts +2 -2
  73. package/src/models/components/evaluatorresponsepython.ts +2 -2
  74. package/src/models/components/evaluatorresponseragas.ts +2 -2
  75. package/src/models/components/evaluatorresponsetypescript.ts +2 -2
  76. package/src/models/components/reasoningpart.ts +1 -1
  77. package/src/models/operations/createagentrequest.ts +1 -1
  78. package/src/models/operations/createannotationqueue.ts +1 -1
  79. package/src/models/operations/createdataset.ts +2 -2
  80. package/src/models/operations/createdatasetitem.ts +5 -5
  81. package/src/models/operations/createdatasource.ts +1 -1
  82. package/src/models/operations/createknowledge.ts +4 -4
  83. package/src/models/operations/creatememorystore.ts +1 -1
  84. package/src/models/operations/createprompt.ts +1 -1
  85. package/src/models/operations/createtool.ts +75 -550
  86. package/src/models/operations/getalltools.ts +41 -327
  87. package/src/models/operations/geteval.ts +16 -16
  88. package/src/models/operations/getoneknowledge.ts +2 -2
  89. package/src/models/operations/getv2humanevalsets.ts +2 -2
  90. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  91. package/src/models/operations/listagents.ts +1 -1
  92. package/src/models/operations/listannotationqueues.ts +1 -1
  93. package/src/models/operations/listdatasetdatapoints.ts +5 -5
  94. package/src/models/operations/listdatasets.ts +1 -1
  95. package/src/models/operations/listdatasources.ts +1 -1
  96. package/src/models/operations/listknowledgebases.ts +2 -2
  97. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  98. package/src/models/operations/postv2feedbackevaluation.ts +4 -4
  99. package/src/models/operations/postv2humanevalsets.ts +2 -2
  100. package/src/models/operations/retrieveagentrequest.ts +1 -1
  101. package/src/models/operations/retrieveannotationqueue.ts +1 -1
  102. package/src/models/operations/retrievedatapoint.ts +5 -5
  103. package/src/models/operations/retrievedataset.ts +1 -1
  104. package/src/models/operations/retrievedatasource.ts +1 -1
  105. package/src/models/operations/retrievetool.ts +42 -336
  106. package/src/models/operations/runagent.ts +2 -2
  107. package/src/models/operations/streamrunagent.ts +2 -2
  108. package/src/models/operations/updateagent.ts +2 -2
  109. package/src/models/operations/updateannotationqueue.ts +1 -1
  110. package/src/models/operations/updatedatapoint.ts +5 -5
  111. package/src/models/operations/updatedataset.ts +2 -2
  112. package/src/models/operations/updatedatasource.ts +1 -1
  113. package/src/models/operations/updateknowledge.ts +4 -4
  114. package/src/models/operations/updateprompt.ts +1 -1
  115. package/src/models/operations/updatetool.ts +78 -674
@@ -35,7 +35,7 @@ export type GetAllToolsObject = ClosedEnum<typeof GetAllToolsObject>;
35
35
  /**
36
36
  * 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.
37
37
  */
38
- export const GetAllToolsDataToolsResponse200Status = {
38
+ export const GetAllToolsDataToolsResponseStatus = {
39
39
  Live: "live",
40
40
  Draft: "draft",
41
41
  Pending: "pending",
@@ -44,22 +44,22 @@ export const GetAllToolsDataToolsResponse200Status = {
44
44
  /**
45
45
  * 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.
46
46
  */
47
- export type GetAllToolsDataToolsResponse200Status = ClosedEnum<
48
- typeof GetAllToolsDataToolsResponse200Status
47
+ export type GetAllToolsDataToolsResponseStatus = ClosedEnum<
48
+ typeof GetAllToolsDataToolsResponseStatus
49
49
  >;
50
50
 
51
51
  /**
52
52
  * The type must be "object"
53
53
  */
54
- export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type = {
54
+ export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType = {
55
55
  Object: "object",
56
56
  } as const;
57
57
  /**
58
58
  * The type must be "object"
59
59
  */
60
- export type GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type =
60
+ export type GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType =
61
61
  ClosedEnum<
62
- typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type
62
+ typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType
63
63
  >;
64
64
 
65
65
  /**
@@ -69,7 +69,7 @@ export type GetAllToolsDataParameters = {
69
69
  /**
70
70
  * The type must be "object"
71
71
  */
72
- type: GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type;
72
+ type: GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType;
73
73
  /**
74
74
  * The properties of the function parameters
75
75
  */
@@ -108,7 +108,7 @@ export type DataCodeExecutionTool = {
108
108
  *
109
109
  * @remarks
110
110
  *
111
- * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element identifies the project, followed by nested folders (auto-created as needed). Example: `Default/agents`.
111
+ * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element must be the display name of an existing project, followed by nested folders (auto-created as needed). Example: `Default Project/agents`.
112
112
  *
113
113
  * With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
114
114
  */
@@ -140,135 +140,11 @@ export type DataCodeExecutionTool = {
140
140
  /**
141
141
  * 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.
142
142
  */
143
- status: GetAllToolsDataToolsResponse200Status;
143
+ status: GetAllToolsDataToolsResponseStatus;
144
144
  type: "code";
145
145
  codeTool: DataCodeTool;
146
146
  };
147
147
 
148
- /**
149
- * 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.
150
- */
151
- export const GetAllToolsDataToolsResponseStatus = {
152
- Live: "live",
153
- Draft: "draft",
154
- Pending: "pending",
155
- Published: "published",
156
- } as const;
157
- /**
158
- * 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.
159
- */
160
- export type GetAllToolsDataToolsResponseStatus = ClosedEnum<
161
- typeof GetAllToolsDataToolsResponseStatus
162
- >;
163
-
164
- export type DataHeaders = {
165
- value: string;
166
- encrypted: boolean;
167
- };
168
-
169
- export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type = {
170
- Object: "object",
171
- } as const;
172
- export type GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type =
173
- ClosedEnum<
174
- typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type
175
- >;
176
-
177
- export type GetAllToolsDataSchema = {
178
- type: GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type;
179
- properties?: { [k: string]: any } | undefined;
180
- required?: Array<string> | undefined;
181
- };
182
-
183
- export type DataTools = {
184
- id: string;
185
- name: string;
186
- description?: string | undefined;
187
- schema: GetAllToolsDataSchema;
188
- };
189
-
190
- /**
191
- * The connection type used by the MCP server
192
- */
193
- export const DataConnectionType = {
194
- Http: "http",
195
- Sse: "sse",
196
- } as const;
197
- /**
198
- * The connection type used by the MCP server
199
- */
200
- export type DataConnectionType = ClosedEnum<typeof DataConnectionType>;
201
-
202
- export type DataMcp = {
203
- /**
204
- * The MCP server URL (cached for execution)
205
- */
206
- serverUrl: string;
207
- /**
208
- * HTTP headers for MCP server requests with encryption support
209
- */
210
- headers?: { [k: string]: DataHeaders } | undefined;
211
- /**
212
- * Array of tools available from the MCP server
213
- */
214
- tools: Array<DataTools>;
215
- /**
216
- * The connection type used by the MCP server
217
- */
218
- connectionType: DataConnectionType;
219
- /**
220
- * Names of template variables detected in server_url and headers. Used by the FE to prompt for one-time values on sync/refresh.
221
- */
222
- templateVariables?: Array<string> | null | undefined;
223
- };
224
-
225
- /**
226
- * A tool from a Model Context Protocol (MCP) server that provides standardized access to external capabilities.
227
- */
228
- export type DataMCPTool = {
229
- id: string;
230
- /**
231
- * Entity storage path.
232
- *
233
- * @remarks
234
- *
235
- * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element identifies the project, followed by nested folders (auto-created as needed). Example: `Default/agents`.
236
- *
237
- * With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
238
- */
239
- path: string;
240
- /**
241
- * Unique key of the tool as it will be displayed in the UI
242
- */
243
- key: string;
244
- /**
245
- * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
246
- */
247
- displayName?: string | undefined;
248
- /**
249
- * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
250
- */
251
- description: string;
252
- /**
253
- * The id of the user that created the tool
254
- */
255
- createdById?: string | null | undefined;
256
- /**
257
- * The id of the user that last updated the tool
258
- */
259
- updatedById?: string | null | undefined;
260
- projectId: string;
261
- workspaceId: string;
262
- created: string;
263
- updated: string;
264
- /**
265
- * 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.
266
- */
267
- status: GetAllToolsDataToolsResponseStatus;
268
- type: "mcp";
269
- mcp: DataMcp;
270
- };
271
-
272
148
  /**
273
149
  * 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.
274
150
  */
@@ -304,7 +180,7 @@ export type GetAllToolsHeaders2 = {
304
180
  encrypted: boolean;
305
181
  };
306
182
 
307
- export type GetAllToolsDataHeaders = GetAllToolsHeaders2 | string;
183
+ export type DataHeaders = GetAllToolsHeaders2 | string;
308
184
 
309
185
  /**
310
186
  * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
@@ -335,7 +211,7 @@ export type DataBlueprint = {
335
211
  /**
336
212
  * The type of the argument.
337
213
  */
338
- export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType = {
214
+ export const GetAllToolsDataToolsResponse200Type = {
339
215
  String: "string",
340
216
  Number: "number",
341
217
  Boolean: "boolean",
@@ -343,10 +219,9 @@ export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType = {
343
219
  /**
344
220
  * The type of the argument.
345
221
  */
346
- export type GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType =
347
- ClosedEnum<
348
- typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType
349
- >;
222
+ export type GetAllToolsDataToolsResponse200Type = ClosedEnum<
223
+ typeof GetAllToolsDataToolsResponse200Type
224
+ >;
350
225
 
351
226
  /**
352
227
  * The default value of the argument.
@@ -357,7 +232,7 @@ export type DataArguments = {
357
232
  /**
358
233
  * The type of the argument.
359
234
  */
360
- type: GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType;
235
+ type: GetAllToolsDataToolsResponse200Type;
361
236
  /**
362
237
  * A description of the argument.
363
238
  */
@@ -393,7 +268,7 @@ export type DataHTTPTool = {
393
268
  *
394
269
  * @remarks
395
270
  *
396
- * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element identifies the project, followed by nested folders (auto-created as needed). Example: `Default/agents`.
271
+ * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element must be the display name of an existing project, followed by nested folders (auto-created as needed). Example: `Default Project/agents`.
397
272
  *
398
273
  * With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
399
274
  */
@@ -492,7 +367,7 @@ export type DataJSONSchemaTool = {
492
367
  *
493
368
  * @remarks
494
369
  *
495
- * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element identifies the project, followed by nested folders (auto-created as needed). Example: `Default/agents`.
370
+ * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element must be the display name of an existing project, followed by nested folders (auto-created as needed). Example: `Default Project/agents`.
496
371
  *
497
372
  * With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
498
373
  */
@@ -604,7 +479,7 @@ export type DataFunctionTool = {
604
479
  *
605
480
  * @remarks
606
481
  *
607
- * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element identifies the project, followed by nested folders (auto-created as needed). Example: `Default/agents`.
482
+ * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element must be the display name of an existing project, followed by nested folders (auto-created as needed). Example: `Default Project/agents`.
608
483
  *
609
484
  * With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
610
485
  */
@@ -645,7 +520,6 @@ export type GetAllToolsData =
645
520
  | DataFunctionTool
646
521
  | DataJSONSchemaTool
647
522
  | DataHTTPTool
648
- | DataMCPTool
649
523
  | DataCodeExecutionTool;
650
524
 
651
525
  /**
@@ -654,11 +528,7 @@ export type GetAllToolsData =
654
528
  export type GetAllToolsResponseBody = {
655
529
  object: GetAllToolsObject;
656
530
  data: Array<
657
- | DataFunctionTool
658
- | DataJSONSchemaTool
659
- | DataHTTPTool
660
- | DataMCPTool
661
- | DataCodeExecutionTool
531
+ DataFunctionTool | DataJSONSchemaTool | DataHTTPTool | DataCodeExecutionTool
662
532
  >;
663
533
  hasMore: boolean;
664
534
  };
@@ -700,17 +570,16 @@ export const GetAllToolsObject$inboundSchema: z.ZodNativeEnum<
700
570
  > = z.nativeEnum(GetAllToolsObject);
701
571
 
702
572
  /** @internal */
703
- export const GetAllToolsDataToolsResponse200Status$inboundSchema:
704
- z.ZodNativeEnum<typeof GetAllToolsDataToolsResponse200Status> = z.nativeEnum(
705
- GetAllToolsDataToolsResponse200Status,
706
- );
573
+ export const GetAllToolsDataToolsResponseStatus$inboundSchema: z.ZodNativeEnum<
574
+ typeof GetAllToolsDataToolsResponseStatus
575
+ > = z.nativeEnum(GetAllToolsDataToolsResponseStatus);
707
576
 
708
577
  /** @internal */
709
- export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type$inboundSchema:
578
+ export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$inboundSchema:
710
579
  z.ZodNativeEnum<
711
- typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type
580
+ typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType
712
581
  > = z.nativeEnum(
713
- GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type,
582
+ GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType,
714
583
  );
715
584
 
716
585
  /** @internal */
@@ -721,7 +590,7 @@ export const GetAllToolsDataParameters$inboundSchema: z.ZodType<
721
590
  > = collectExtraKeys$(
722
591
  z.object({
723
592
  type:
724
- GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type$inboundSchema,
593
+ GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$inboundSchema,
725
594
  properties: z.record(z.any()),
726
595
  required: z.array(z.string()),
727
596
  }).catchall(z.any()),
@@ -770,7 +639,7 @@ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
770
639
  z.ZodTypeDef,
771
640
  unknown
772
641
  > = z.object({
773
- _id: z.string().default("tool_01M0083HZ7F364WP68HG2KT8MX"),
642
+ _id: z.string().default("tool_01M06YQWMHGA3VFT9W9TQDXTTH"),
774
643
  path: z.string(),
775
644
  key: z.string(),
776
645
  display_name: z.string().optional(),
@@ -781,7 +650,7 @@ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
781
650
  workspace_id: z.string(),
782
651
  created: z.string(),
783
652
  updated: z.string(),
784
- status: GetAllToolsDataToolsResponse200Status$inboundSchema.default("live"),
653
+ status: GetAllToolsDataToolsResponseStatus$inboundSchema.default("live"),
785
654
  type: z.literal("code"),
786
655
  code_tool: z.lazy(() => DataCodeTool$inboundSchema),
787
656
  }).transform((v) => {
@@ -806,155 +675,6 @@ export function dataCodeExecutionToolFromJSON(
806
675
  );
807
676
  }
808
677
 
809
- /** @internal */
810
- export const GetAllToolsDataToolsResponseStatus$inboundSchema: z.ZodNativeEnum<
811
- typeof GetAllToolsDataToolsResponseStatus
812
- > = z.nativeEnum(GetAllToolsDataToolsResponseStatus);
813
-
814
- /** @internal */
815
- export const DataHeaders$inboundSchema: z.ZodType<
816
- DataHeaders,
817
- z.ZodTypeDef,
818
- unknown
819
- > = z.object({
820
- value: z.string(),
821
- encrypted: z.boolean().default(false),
822
- });
823
-
824
- export function dataHeadersFromJSON(
825
- jsonString: string,
826
- ): SafeParseResult<DataHeaders, SDKValidationError> {
827
- return safeParse(
828
- jsonString,
829
- (x) => DataHeaders$inboundSchema.parse(JSON.parse(x)),
830
- `Failed to parse 'DataHeaders' from JSON`,
831
- );
832
- }
833
-
834
- /** @internal */
835
- export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type$inboundSchema:
836
- z.ZodNativeEnum<
837
- typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type
838
- > = z.nativeEnum(
839
- GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type,
840
- );
841
-
842
- /** @internal */
843
- export const GetAllToolsDataSchema$inboundSchema: z.ZodType<
844
- GetAllToolsDataSchema,
845
- z.ZodTypeDef,
846
- unknown
847
- > = z.object({
848
- type:
849
- GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type$inboundSchema,
850
- properties: z.record(z.any()).optional(),
851
- required: z.array(z.string()).optional(),
852
- });
853
-
854
- export function getAllToolsDataSchemaFromJSON(
855
- jsonString: string,
856
- ): SafeParseResult<GetAllToolsDataSchema, SDKValidationError> {
857
- return safeParse(
858
- jsonString,
859
- (x) => GetAllToolsDataSchema$inboundSchema.parse(JSON.parse(x)),
860
- `Failed to parse 'GetAllToolsDataSchema' from JSON`,
861
- );
862
- }
863
-
864
- /** @internal */
865
- export const DataTools$inboundSchema: z.ZodType<
866
- DataTools,
867
- z.ZodTypeDef,
868
- unknown
869
- > = z.object({
870
- id: z.string().default("01M0083HZ5MEVCP2RYRP1B41XR"),
871
- name: z.string(),
872
- description: z.string().optional(),
873
- schema: z.lazy(() => GetAllToolsDataSchema$inboundSchema),
874
- });
875
-
876
- export function dataToolsFromJSON(
877
- jsonString: string,
878
- ): SafeParseResult<DataTools, SDKValidationError> {
879
- return safeParse(
880
- jsonString,
881
- (x) => DataTools$inboundSchema.parse(JSON.parse(x)),
882
- `Failed to parse 'DataTools' from JSON`,
883
- );
884
- }
885
-
886
- /** @internal */
887
- export const DataConnectionType$inboundSchema: z.ZodNativeEnum<
888
- typeof DataConnectionType
889
- > = z.nativeEnum(DataConnectionType);
890
-
891
- /** @internal */
892
- export const DataMcp$inboundSchema: z.ZodType<DataMcp, z.ZodTypeDef, unknown> =
893
- z.object({
894
- server_url: z.string(),
895
- headers: z.record(z.lazy(() => DataHeaders$inboundSchema)).optional(),
896
- tools: z.array(z.lazy(() => DataTools$inboundSchema)),
897
- connection_type: DataConnectionType$inboundSchema,
898
- template_variables: z.nullable(z.array(z.string())).optional(),
899
- }).transform((v) => {
900
- return remap$(v, {
901
- "server_url": "serverUrl",
902
- "connection_type": "connectionType",
903
- "template_variables": "templateVariables",
904
- });
905
- });
906
-
907
- export function dataMcpFromJSON(
908
- jsonString: string,
909
- ): SafeParseResult<DataMcp, SDKValidationError> {
910
- return safeParse(
911
- jsonString,
912
- (x) => DataMcp$inboundSchema.parse(JSON.parse(x)),
913
- `Failed to parse 'DataMcp' from JSON`,
914
- );
915
- }
916
-
917
- /** @internal */
918
- export const DataMCPTool$inboundSchema: z.ZodType<
919
- DataMCPTool,
920
- z.ZodTypeDef,
921
- unknown
922
- > = z.object({
923
- _id: z.string().default("tool_01M0083HZ3DNXQRDVVBNT68254"),
924
- path: z.string(),
925
- key: z.string(),
926
- display_name: z.string().optional(),
927
- description: z.string(),
928
- created_by_id: z.nullable(z.string()).optional(),
929
- updated_by_id: z.nullable(z.string()).optional(),
930
- project_id: z.string(),
931
- workspace_id: z.string(),
932
- created: z.string(),
933
- updated: z.string(),
934
- status: GetAllToolsDataToolsResponseStatus$inboundSchema.default("live"),
935
- type: z.literal("mcp"),
936
- mcp: z.lazy(() => DataMcp$inboundSchema),
937
- }).transform((v) => {
938
- return remap$(v, {
939
- "_id": "id",
940
- "display_name": "displayName",
941
- "created_by_id": "createdById",
942
- "updated_by_id": "updatedById",
943
- "project_id": "projectId",
944
- "workspace_id": "workspaceId",
945
- });
946
- });
947
-
948
- export function dataMCPToolFromJSON(
949
- jsonString: string,
950
- ): SafeParseResult<DataMCPTool, SDKValidationError> {
951
- return safeParse(
952
- jsonString,
953
- (x) => DataMCPTool$inboundSchema.parse(JSON.parse(x)),
954
- `Failed to parse 'DataMCPTool' from JSON`,
955
- );
956
- }
957
-
958
678
  /** @internal */
959
679
  export const GetAllToolsDataToolsStatus$inboundSchema: z.ZodNativeEnum<
960
680
  typeof GetAllToolsDataToolsStatus
@@ -985,19 +705,19 @@ export function getAllToolsHeaders2FromJSON(
985
705
  }
986
706
 
987
707
  /** @internal */
988
- export const GetAllToolsDataHeaders$inboundSchema: z.ZodType<
989
- GetAllToolsDataHeaders,
708
+ export const DataHeaders$inboundSchema: z.ZodType<
709
+ DataHeaders,
990
710
  z.ZodTypeDef,
991
711
  unknown
992
712
  > = z.union([z.lazy(() => GetAllToolsHeaders2$inboundSchema), z.string()]);
993
713
 
994
- export function getAllToolsDataHeadersFromJSON(
714
+ export function dataHeadersFromJSON(
995
715
  jsonString: string,
996
- ): SafeParseResult<GetAllToolsDataHeaders, SDKValidationError> {
716
+ ): SafeParseResult<DataHeaders, SDKValidationError> {
997
717
  return safeParse(
998
718
  jsonString,
999
- (x) => GetAllToolsDataHeaders$inboundSchema.parse(JSON.parse(x)),
1000
- `Failed to parse 'GetAllToolsDataHeaders' from JSON`,
719
+ (x) => DataHeaders$inboundSchema.parse(JSON.parse(x)),
720
+ `Failed to parse 'DataHeaders' from JSON`,
1001
721
  );
1002
722
  }
1003
723
 
@@ -1027,12 +747,9 @@ export function dataBlueprintFromJSON(
1027
747
  }
1028
748
 
1029
749
  /** @internal */
1030
- export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$inboundSchema:
1031
- z.ZodNativeEnum<
1032
- typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType
1033
- > = z.nativeEnum(
1034
- GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType,
1035
- );
750
+ export const GetAllToolsDataToolsResponse200Type$inboundSchema: z.ZodNativeEnum<
751
+ typeof GetAllToolsDataToolsResponse200Type
752
+ > = z.nativeEnum(GetAllToolsDataToolsResponse200Type);
1036
753
 
1037
754
  /** @internal */
1038
755
  export const DataDefaultValue$inboundSchema: z.ZodType<
@@ -1057,8 +774,7 @@ export const DataArguments$inboundSchema: z.ZodType<
1057
774
  z.ZodTypeDef,
1058
775
  unknown
1059
776
  > = z.object({
1060
- type:
1061
- GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$inboundSchema,
777
+ type: GetAllToolsDataToolsResponse200Type$inboundSchema,
1062
778
  description: z.string(),
1063
779
  send_to_model: z.boolean().default(true),
1064
780
  default_value: z.union([z.string(), z.number(), z.boolean()]).optional(),
@@ -1105,7 +821,7 @@ export const DataHTTPTool$inboundSchema: z.ZodType<
1105
821
  z.ZodTypeDef,
1106
822
  unknown
1107
823
  > = z.object({
1108
- _id: z.string().default("tool_01M0083HZ0WHVBVG2MK7DC6SRG"),
824
+ _id: z.string().default("tool_01M06YQWMDASYK2JCFZTBV7CB7"),
1109
825
  path: z.string(),
1110
826
  key: z.string(),
1111
827
  display_name: z.string().optional(),
@@ -1198,7 +914,7 @@ export const DataJSONSchemaTool$inboundSchema: z.ZodType<
1198
914
  z.ZodTypeDef,
1199
915
  unknown
1200
916
  > = z.object({
1201
- _id: z.string().default("tool_01M0083HYYRSYV16ESHKBB9X0S"),
917
+ _id: z.string().default("tool_01M06YQWMB6CN1PC6HB71B7S0T"),
1202
918
  path: z.string(),
1203
919
  key: z.string(),
1204
920
  display_name: z.string().optional(),
@@ -1296,7 +1012,7 @@ export const DataFunctionTool$inboundSchema: z.ZodType<
1296
1012
  z.ZodTypeDef,
1297
1013
  unknown
1298
1014
  > = z.object({
1299
- _id: z.string().default("tool_01M0083HYWCD8DABYJVC6B82RE"),
1015
+ _id: z.string().default("tool_01M06YQWM9YMHXJ8DTBB84MGDD"),
1300
1016
  path: z.string(),
1301
1017
  key: z.string(),
1302
1018
  display_name: z.string().optional(),
@@ -1340,7 +1056,6 @@ export const GetAllToolsData$inboundSchema: z.ZodType<
1340
1056
  z.lazy(() => DataFunctionTool$inboundSchema),
1341
1057
  z.lazy(() => DataJSONSchemaTool$inboundSchema),
1342
1058
  z.lazy(() => DataHTTPTool$inboundSchema),
1343
- z.lazy(() => DataMCPTool$inboundSchema),
1344
1059
  z.lazy(() => DataCodeExecutionTool$inboundSchema),
1345
1060
  ]);
1346
1061
 
@@ -1366,7 +1081,6 @@ export const GetAllToolsResponseBody$inboundSchema: z.ZodType<
1366
1081
  z.lazy(() => DataFunctionTool$inboundSchema),
1367
1082
  z.lazy(() => DataJSONSchemaTool$inboundSchema),
1368
1083
  z.lazy(() => DataHTTPTool$inboundSchema),
1369
- z.lazy(() => DataMCPTool$inboundSchema),
1370
1084
  z.lazy(() => DataCodeExecutionTool$inboundSchema),
1371
1085
  ]),
1372
1086
  ),
@@ -846,8 +846,8 @@ export const BedrockGuardrail$inboundSchema: z.ZodType<
846
846
  display_name: z.string(),
847
847
  description: z.string(),
848
848
  owner: z.string(),
849
- created: z.string().default("2026-08-14T13:41:27.001Z"),
850
- updated: z.string().default("2026-08-14T13:41:27.001Z"),
849
+ created: z.string().default("2026-08-17T04:12:28.242Z"),
850
+ updated: z.string().default("2026-08-17T04:12:28.242Z"),
851
851
  created_by_id: z.nullable(z.string()).optional(),
852
852
  updated_by_id: z.nullable(z.string()).optional(),
853
853
  domain_id: z.string(),
@@ -949,8 +949,8 @@ export const Typescript$inboundSchema: z.ZodType<
949
949
  display_name: z.string(),
950
950
  description: z.string(),
951
951
  owner: z.string(),
952
- created: z.string().default("2026-08-14T13:41:27.001Z"),
953
- updated: z.string().default("2026-08-14T13:41:27.001Z"),
952
+ created: z.string().default("2026-08-17T04:12:28.242Z"),
953
+ updated: z.string().default("2026-08-17T04:12:28.242Z"),
954
954
  created_by_id: z.nullable(z.string()).optional(),
955
955
  updated_by_id: z.nullable(z.string()).optional(),
956
956
  domain_id: z.string(),
@@ -1046,8 +1046,8 @@ export const ResponseBodyPython$inboundSchema: z.ZodType<
1046
1046
  display_name: z.string(),
1047
1047
  description: z.string(),
1048
1048
  owner: z.string(),
1049
- created: z.string().default("2026-08-14T13:41:27.001Z"),
1050
- updated: z.string().default("2026-08-14T13:41:27.001Z"),
1049
+ created: z.string().default("2026-08-17T04:12:28.242Z"),
1050
+ updated: z.string().default("2026-08-17T04:12:28.242Z"),
1051
1051
  created_by_id: z.nullable(z.string()).optional(),
1052
1052
  updated_by_id: z.nullable(z.string()).optional(),
1053
1053
  domain_id: z.string(),
@@ -1144,8 +1144,8 @@ export const GetEvalResponseBodyHTTP$inboundSchema: z.ZodType<
1144
1144
  display_name: z.string(),
1145
1145
  description: z.string(),
1146
1146
  owner: z.string(),
1147
- created: z.string().default("2026-08-14T13:41:27.001Z"),
1148
- updated: z.string().default("2026-08-14T13:41:27.001Z"),
1147
+ created: z.string().default("2026-08-17T04:12:28.242Z"),
1148
+ updated: z.string().default("2026-08-17T04:12:28.242Z"),
1149
1149
  created_by_id: z.nullable(z.string()).optional(),
1150
1150
  updated_by_id: z.nullable(z.string()).optional(),
1151
1151
  domain_id: z.string(),
@@ -1228,8 +1228,8 @@ export const Json$inboundSchema: z.ZodType<Json, z.ZodTypeDef, unknown> = z
1228
1228
  display_name: z.string(),
1229
1229
  description: z.string(),
1230
1230
  owner: z.string(),
1231
- created: z.string().default("2026-08-14T13:41:27.001Z"),
1232
- updated: z.string().default("2026-08-14T13:41:27.001Z"),
1231
+ created: z.string().default("2026-08-17T04:12:28.242Z"),
1232
+ updated: z.string().default("2026-08-17T04:12:28.242Z"),
1233
1233
  created_by_id: z.nullable(z.string()).optional(),
1234
1234
  updated_by_id: z.nullable(z.string()).optional(),
1235
1235
  domain_id: z.string(),
@@ -1337,8 +1337,8 @@ export const Ragas$inboundSchema: z.ZodType<Ragas, z.ZodTypeDef, unknown> = z
1337
1337
  display_name: z.string(),
1338
1338
  description: z.string(),
1339
1339
  owner: z.string(),
1340
- created: z.string().default("2026-08-14T13:41:27.001Z"),
1341
- updated: z.string().default("2026-08-14T13:41:27.001Z"),
1340
+ created: z.string().default("2026-08-17T04:12:28.242Z"),
1341
+ updated: z.string().default("2026-08-17T04:12:28.242Z"),
1342
1342
  created_by_id: z.nullable(z.string()).optional(),
1343
1343
  updated_by_id: z.nullable(z.string()).optional(),
1344
1344
  domain_id: z.string(),
@@ -2056,8 +2056,8 @@ export const ResponseBodyFunction$inboundSchema: z.ZodType<
2056
2056
  display_name: z.string(),
2057
2057
  description: z.string(),
2058
2058
  owner: z.string(),
2059
- created: z.string().default("2026-08-14T13:41:27.001Z"),
2060
- updated: z.string().default("2026-08-14T13:41:27.001Z"),
2059
+ created: z.string().default("2026-08-17T04:12:28.242Z"),
2060
+ updated: z.string().default("2026-08-17T04:12:28.242Z"),
2061
2061
  created_by_id: z.nullable(z.string()).optional(),
2062
2062
  updated_by_id: z.nullable(z.string()).optional(),
2063
2063
  domain_id: z.string(),
@@ -2726,8 +2726,8 @@ export const ResponseBodyLLM$inboundSchema: z.ZodType<
2726
2726
  display_name: z.string(),
2727
2727
  description: z.string(),
2728
2728
  owner: z.string(),
2729
- created: z.string().default("2026-08-14T13:41:27.001Z"),
2730
- updated: z.string().default("2026-08-14T13:41:27.001Z"),
2729
+ created: z.string().default("2026-08-17T04:12:28.242Z"),
2730
+ updated: z.string().default("2026-08-17T04:12:28.242Z"),
2731
2731
  created_by_id: z.nullable(z.string()).optional(),
2732
2732
  updated_by_id: z.nullable(z.string()).optional(),
2733
2733
  domain_id: z.string(),
@@ -116,7 +116,7 @@ export type GetOneKnowledgeResponseBody2 = {
116
116
  *
117
117
  * @remarks
118
118
  *
119
- * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element identifies the project, followed by nested folders (auto-created as needed). Example: `Default/agents`.
119
+ * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element must be the display name of an existing project, followed by nested folders (auto-created as needed). Example: `Default Project/agents`.
120
120
  *
121
121
  * With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
122
122
  */
@@ -242,7 +242,7 @@ export type GetOneKnowledgeResponseBody1 = {
242
242
  *
243
243
  * @remarks
244
244
  *
245
- * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element identifies the project, followed by nested folders (auto-created as needed). Example: `Default/agents`.
245
+ * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element must be the display name of an existing project, followed by nested folders (auto-created as needed). Example: `Default Project/agents`.
246
246
  *
247
247
  * With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
248
248
  */