@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
@@ -5,7 +5,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
5
  /**
6
6
  * 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.
7
7
  */
8
- export declare const CreateToolRequestBodyToolsRequestStatus: {
8
+ export declare const CreateToolRequestBodyToolsStatus: {
9
9
  readonly Live: "live";
10
10
  readonly Draft: "draft";
11
11
  readonly Pending: "pending";
@@ -14,17 +14,17 @@ export declare const CreateToolRequestBodyToolsRequestStatus: {
14
14
  /**
15
15
  * 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.
16
16
  */
17
- export type CreateToolRequestBodyToolsRequestStatus = ClosedEnum<typeof CreateToolRequestBodyToolsRequestStatus>;
17
+ export type CreateToolRequestBodyToolsStatus = ClosedEnum<typeof CreateToolRequestBodyToolsStatus>;
18
18
  /**
19
19
  * The type must be "object"
20
20
  */
21
- export declare const CreateToolRequestBodyToolsRequest5CodeToolType: {
21
+ export declare const CreateToolRequestBodyToolsRequest4CodeToolType: {
22
22
  readonly Object: "object";
23
23
  };
24
24
  /**
25
25
  * The type must be "object"
26
26
  */
27
- export type CreateToolRequestBodyToolsRequest5CodeToolType = ClosedEnum<typeof CreateToolRequestBodyToolsRequest5CodeToolType>;
27
+ export type CreateToolRequestBodyToolsRequest4CodeToolType = ClosedEnum<typeof CreateToolRequestBodyToolsRequest4CodeToolType>;
28
28
  /**
29
29
  * 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.
30
30
  */
@@ -32,7 +32,7 @@ export type CreateToolRequestBodyParameters = {
32
32
  /**
33
33
  * The type must be "object"
34
34
  */
35
- type: CreateToolRequestBodyToolsRequest5CodeToolType;
35
+ type: CreateToolRequestBodyToolsRequest4CodeToolType;
36
36
  /**
37
37
  * The properties of the function parameters
38
38
  */
@@ -71,7 +71,7 @@ export type CodeExecutionTool = {
71
71
  *
72
72
  * @remarks
73
73
  *
74
- * 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`.
74
+ * 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`.
75
75
  *
76
76
  * 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.
77
77
  */
@@ -91,90 +91,10 @@ export type CodeExecutionTool = {
91
91
  /**
92
92
  * 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.
93
93
  */
94
- status?: CreateToolRequestBodyToolsRequestStatus | undefined;
94
+ status?: CreateToolRequestBodyToolsStatus | undefined;
95
95
  type: "code";
96
96
  codeTool: RequestBodyCodeTool;
97
97
  };
98
- /**
99
- * 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.
100
- */
101
- export declare const CreateToolRequestBodyToolsStatus: {
102
- readonly Live: "live";
103
- readonly Draft: "draft";
104
- readonly Pending: "pending";
105
- readonly Published: "published";
106
- };
107
- /**
108
- * 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.
109
- */
110
- export type CreateToolRequestBodyToolsStatus = ClosedEnum<typeof CreateToolRequestBodyToolsStatus>;
111
- export type RequestBodyHeaders = {
112
- value: string;
113
- encrypted?: boolean | undefined;
114
- };
115
- /**
116
- * The connection type used by the MCP server
117
- */
118
- export declare const RequestBodyConnectionType: {
119
- readonly Http: "http";
120
- readonly Sse: "sse";
121
- };
122
- /**
123
- * The connection type used by the MCP server
124
- */
125
- export type RequestBodyConnectionType = ClosedEnum<typeof RequestBodyConnectionType>;
126
- export type RequestBodyMcp = {
127
- /**
128
- * The MCP server URL (cached for execution)
129
- */
130
- serverUrl: string;
131
- /**
132
- * HTTP headers for MCP server requests with encryption support
133
- */
134
- headers?: {
135
- [k: string]: RequestBodyHeaders;
136
- } | undefined;
137
- /**
138
- * The connection type used by the MCP server
139
- */
140
- connectionType: RequestBodyConnectionType;
141
- };
142
- /**
143
- * A tool from a Model Context Protocol (MCP) server that provides standardized access to external capabilities.
144
- */
145
- export type RequestBodyMCPTool = {
146
- /**
147
- * Entity storage path.
148
- *
149
- * @remarks
150
- *
151
- * 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`.
152
- *
153
- * 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.
154
- */
155
- path: string;
156
- /**
157
- * Unique key of the tool as it will be displayed in the UI
158
- */
159
- key: string;
160
- /**
161
- * 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.
162
- */
163
- displayName?: string | undefined;
164
- /**
165
- * 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.
166
- */
167
- description: string;
168
- /**
169
- * 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.
170
- */
171
- status?: CreateToolRequestBodyToolsStatus | undefined;
172
- type: "mcp";
173
- mcp: RequestBodyMcp;
174
- discoveryVariables?: {
175
- [k: string]: string;
176
- } | undefined;
177
- };
178
98
  /**
179
99
  * 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.
180
100
  */
@@ -205,7 +125,7 @@ export type CreateToolHeaders2 = {
205
125
  value: string;
206
126
  encrypted?: boolean | undefined;
207
127
  };
208
- export type CreateToolRequestBodyHeaders = CreateToolHeaders2 | string;
128
+ export type RequestBodyHeaders = CreateToolHeaders2 | string;
209
129
  /**
210
130
  * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
211
131
  */
@@ -290,7 +210,7 @@ export type HTTPTool = {
290
210
  *
291
211
  * @remarks
292
212
  *
293
- * 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`.
213
+ * 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`.
294
214
  *
295
215
  * 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.
296
216
  */
@@ -376,7 +296,7 @@ export type JSONSchemaTool = {
376
296
  *
377
297
  * @remarks
378
298
  *
379
- * 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`.
299
+ * 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`.
380
300
  *
381
301
  * 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.
382
302
  */
@@ -403,7 +323,7 @@ export type JSONSchemaTool = {
403
323
  /**
404
324
  * 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.
405
325
  */
406
- export declare const CreateToolRequestBodyToolsRequest1Status: {
326
+ export declare const CreateToolRequestBodyToolsRequestStatus: {
407
327
  readonly Live: "live";
408
328
  readonly Draft: "draft";
409
329
  readonly Pending: "pending";
@@ -412,7 +332,7 @@ export declare const CreateToolRequestBodyToolsRequest1Status: {
412
332
  /**
413
333
  * 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.
414
334
  */
415
- export type CreateToolRequestBodyToolsRequest1Status = ClosedEnum<typeof CreateToolRequestBodyToolsRequest1Status>;
335
+ export type CreateToolRequestBodyToolsRequestStatus = ClosedEnum<typeof CreateToolRequestBodyToolsRequestStatus>;
416
336
  /**
417
337
  * The type must be "object"
418
338
  */
@@ -472,7 +392,7 @@ export type FunctionTool = {
472
392
  *
473
393
  * @remarks
474
394
  *
475
- * 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`.
395
+ * 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`.
476
396
  *
477
397
  * 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.
478
398
  */
@@ -492,18 +412,18 @@ export type FunctionTool = {
492
412
  /**
493
413
  * 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.
494
414
  */
495
- status?: CreateToolRequestBodyToolsRequest1Status | undefined;
415
+ status?: CreateToolRequestBodyToolsRequestStatus | undefined;
496
416
  type: "function";
497
417
  function: RequestBodyFunction;
498
418
  };
499
419
  /**
500
420
  * The tool to create
501
421
  */
502
- export type CreateToolRequestBody = FunctionTool | JSONSchemaTool | HTTPTool | RequestBodyMCPTool | CodeExecutionTool;
422
+ export type CreateToolRequestBody = FunctionTool | JSONSchemaTool | HTTPTool | CodeExecutionTool;
503
423
  /**
504
424
  * 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.
505
425
  */
506
- export declare const CreateToolResponseBodyToolsResponse200Status: {
426
+ export declare const CreateToolResponseBodyToolsResponseStatus: {
507
427
  readonly Live: "live";
508
428
  readonly Draft: "draft";
509
429
  readonly Pending: "pending";
@@ -512,17 +432,17 @@ export declare const CreateToolResponseBodyToolsResponse200Status: {
512
432
  /**
513
433
  * 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.
514
434
  */
515
- export type CreateToolResponseBodyToolsResponse200Status = ClosedEnum<typeof CreateToolResponseBodyToolsResponse200Status>;
435
+ export type CreateToolResponseBodyToolsResponseStatus = ClosedEnum<typeof CreateToolResponseBodyToolsResponseStatus>;
516
436
  /**
517
437
  * The type must be "object"
518
438
  */
519
- export declare const CreateToolResponseBodyToolsResponse200ApplicationJson5Type: {
439
+ export declare const CreateToolResponseBodyToolsResponse200ApplicationJson4Type: {
520
440
  readonly Object: "object";
521
441
  };
522
442
  /**
523
443
  * The type must be "object"
524
444
  */
525
- export type CreateToolResponseBodyToolsResponse200ApplicationJson5Type = ClosedEnum<typeof CreateToolResponseBodyToolsResponse200ApplicationJson5Type>;
445
+ export type CreateToolResponseBodyToolsResponse200ApplicationJson4Type = ClosedEnum<typeof CreateToolResponseBodyToolsResponse200ApplicationJson4Type>;
526
446
  /**
527
447
  * 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.
528
448
  */
@@ -530,7 +450,7 @@ export type CreateToolResponseBodyParameters = {
530
450
  /**
531
451
  * The type must be "object"
532
452
  */
533
- type: CreateToolResponseBodyToolsResponse200ApplicationJson5Type;
453
+ type: CreateToolResponseBodyToolsResponse200ApplicationJson4Type;
534
454
  /**
535
455
  * The properties of the function parameters
536
456
  */
@@ -570,7 +490,7 @@ export type ResponseBodyCodeExecutionTool = {
570
490
  *
571
491
  * @remarks
572
492
  *
573
- * 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`.
493
+ * 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`.
574
494
  *
575
495
  * 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.
576
496
  */
@@ -602,125 +522,10 @@ export type ResponseBodyCodeExecutionTool = {
602
522
  /**
603
523
  * 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.
604
524
  */
605
- status: CreateToolResponseBodyToolsResponse200Status;
525
+ status: CreateToolResponseBodyToolsResponseStatus;
606
526
  type: "code";
607
527
  codeTool: ResponseBodyCodeTool;
608
528
  };
609
- /**
610
- * 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.
611
- */
612
- export declare const CreateToolResponseBodyToolsResponseStatus: {
613
- readonly Live: "live";
614
- readonly Draft: "draft";
615
- readonly Pending: "pending";
616
- readonly Published: "published";
617
- };
618
- /**
619
- * 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.
620
- */
621
- export type CreateToolResponseBodyToolsResponseStatus = ClosedEnum<typeof CreateToolResponseBodyToolsResponseStatus>;
622
- export type ResponseBodyHeaders = {
623
- value: string;
624
- encrypted: boolean;
625
- };
626
- export declare const CreateToolResponseBodyToolsResponse200ApplicationJson4Type: {
627
- readonly Object: "object";
628
- };
629
- export type CreateToolResponseBodyToolsResponse200ApplicationJson4Type = ClosedEnum<typeof CreateToolResponseBodyToolsResponse200ApplicationJson4Type>;
630
- export type CreateToolResponseBodySchema = {
631
- type: CreateToolResponseBodyToolsResponse200ApplicationJson4Type;
632
- properties?: {
633
- [k: string]: any;
634
- } | undefined;
635
- required?: Array<string> | undefined;
636
- };
637
- export type ResponseBodyTools = {
638
- id: string;
639
- name: string;
640
- description?: string | undefined;
641
- schema: CreateToolResponseBodySchema;
642
- };
643
- /**
644
- * The connection type used by the MCP server
645
- */
646
- export declare const ResponseBodyConnectionType: {
647
- readonly Http: "http";
648
- readonly Sse: "sse";
649
- };
650
- /**
651
- * The connection type used by the MCP server
652
- */
653
- export type ResponseBodyConnectionType = ClosedEnum<typeof ResponseBodyConnectionType>;
654
- export type ResponseBodyMcp = {
655
- /**
656
- * The MCP server URL (cached for execution)
657
- */
658
- serverUrl: string;
659
- /**
660
- * HTTP headers for MCP server requests with encryption support
661
- */
662
- headers?: {
663
- [k: string]: ResponseBodyHeaders;
664
- } | undefined;
665
- /**
666
- * Array of tools available from the MCP server
667
- */
668
- tools: Array<ResponseBodyTools>;
669
- /**
670
- * The connection type used by the MCP server
671
- */
672
- connectionType: ResponseBodyConnectionType;
673
- /**
674
- * Names of template variables detected in server_url and headers. Used by the FE to prompt for one-time values on sync/refresh.
675
- */
676
- templateVariables?: Array<string> | null | undefined;
677
- };
678
- /**
679
- * A tool from a Model Context Protocol (MCP) server that provides standardized access to external capabilities.
680
- */
681
- export type ResponseBodyMCPTool = {
682
- id: string;
683
- /**
684
- * Entity storage path.
685
- *
686
- * @remarks
687
- *
688
- * 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`.
689
- *
690
- * 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.
691
- */
692
- path: string;
693
- /**
694
- * Unique key of the tool as it will be displayed in the UI
695
- */
696
- key: string;
697
- /**
698
- * 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.
699
- */
700
- displayName?: string | undefined;
701
- /**
702
- * 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.
703
- */
704
- description: string;
705
- /**
706
- * The id of the user that created the tool
707
- */
708
- createdById?: string | null | undefined;
709
- /**
710
- * The id of the user that last updated the tool
711
- */
712
- updatedById?: string | null | undefined;
713
- projectId: string;
714
- workspaceId: string;
715
- created: string;
716
- updated: string;
717
- /**
718
- * 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.
719
- */
720
- status: CreateToolResponseBodyToolsResponseStatus;
721
- type: "mcp";
722
- mcp: ResponseBodyMcp;
723
- };
724
529
  /**
725
530
  * 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.
726
531
  */
@@ -751,7 +556,7 @@ export type CreateToolHeadersTools2 = {
751
556
  value: string;
752
557
  encrypted: boolean;
753
558
  };
754
- export type CreateToolResponseBodyHeaders = CreateToolHeadersTools2 | string;
559
+ export type ResponseBodyHeaders = CreateToolHeadersTools2 | string;
755
560
  /**
756
561
  * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
757
562
  */
@@ -784,7 +589,7 @@ export type ResponseBodyBlueprint = {
784
589
  /**
785
590
  * The type of the argument.
786
591
  */
787
- export declare const CreateToolResponseBodyToolsResponse200ApplicationJson3Type: {
592
+ export declare const CreateToolResponseBodyToolsResponse200ApplicationJSONType: {
788
593
  readonly String: "string";
789
594
  readonly Number: "number";
790
595
  readonly Boolean: "boolean";
@@ -792,7 +597,7 @@ export declare const CreateToolResponseBodyToolsResponse200ApplicationJson3Type:
792
597
  /**
793
598
  * The type of the argument.
794
599
  */
795
- export type CreateToolResponseBodyToolsResponse200ApplicationJson3Type = ClosedEnum<typeof CreateToolResponseBodyToolsResponse200ApplicationJson3Type>;
600
+ export type CreateToolResponseBodyToolsResponse200ApplicationJSONType = ClosedEnum<typeof CreateToolResponseBodyToolsResponse200ApplicationJSONType>;
796
601
  /**
797
602
  * The default value of the argument.
798
603
  */
@@ -801,7 +606,7 @@ export type ResponseBodyArguments = {
801
606
  /**
802
607
  * The type of the argument.
803
608
  */
804
- type: CreateToolResponseBodyToolsResponse200ApplicationJson3Type;
609
+ type: CreateToolResponseBodyToolsResponse200ApplicationJSONType;
805
610
  /**
806
611
  * A description of the argument.
807
612
  */
@@ -837,7 +642,7 @@ export type ResponseBodyHTTPTool = {
837
642
  *
838
643
  * @remarks
839
644
  *
840
- * 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`.
645
+ * 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`.
841
646
  *
842
647
  * 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.
843
648
  */
@@ -936,7 +741,7 @@ export type ResponseBodyJSONSchemaTool = {
936
741
  *
937
742
  * @remarks
938
743
  *
939
- * 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`.
744
+ * 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`.
940
745
  *
941
746
  * 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.
942
747
  */
@@ -1045,7 +850,7 @@ export type ResponseBodyFunctionTool = {
1045
850
  *
1046
851
  * @remarks
1047
852
  *
1048
- * 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`.
853
+ * 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`.
1049
854
  *
1050
855
  * 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.
1051
856
  */
@@ -1084,11 +889,11 @@ export type ResponseBodyFunctionTool = {
1084
889
  /**
1085
890
  * Successfully created the tool.
1086
891
  */
1087
- export type CreateToolResponseBody = ResponseBodyFunctionTool | ResponseBodyJSONSchemaTool | ResponseBodyHTTPTool | ResponseBodyMCPTool | ResponseBodyCodeExecutionTool;
892
+ export type CreateToolResponseBody = ResponseBodyFunctionTool | ResponseBodyJSONSchemaTool | ResponseBodyHTTPTool | ResponseBodyCodeExecutionTool;
1088
893
  /** @internal */
1089
- export declare const CreateToolRequestBodyToolsRequestStatus$outboundSchema: z.ZodNativeEnum<typeof CreateToolRequestBodyToolsRequestStatus>;
894
+ export declare const CreateToolRequestBodyToolsStatus$outboundSchema: z.ZodNativeEnum<typeof CreateToolRequestBodyToolsStatus>;
1090
895
  /** @internal */
1091
- export declare const CreateToolRequestBodyToolsRequest5CodeToolType$outboundSchema: z.ZodNativeEnum<typeof CreateToolRequestBodyToolsRequest5CodeToolType>;
896
+ export declare const CreateToolRequestBodyToolsRequest4CodeToolType$outboundSchema: z.ZodNativeEnum<typeof CreateToolRequestBodyToolsRequest4CodeToolType>;
1092
897
  /** @internal */
1093
898
  export type CreateToolRequestBodyParameters$Outbound = {
1094
899
  type: string;
@@ -1126,45 +931,6 @@ export type CodeExecutionTool$Outbound = {
1126
931
  export declare const CodeExecutionTool$outboundSchema: z.ZodType<CodeExecutionTool$Outbound, z.ZodTypeDef, CodeExecutionTool>;
1127
932
  export declare function codeExecutionToolToJSON(codeExecutionTool: CodeExecutionTool): string;
1128
933
  /** @internal */
1129
- export declare const CreateToolRequestBodyToolsStatus$outboundSchema: z.ZodNativeEnum<typeof CreateToolRequestBodyToolsStatus>;
1130
- /** @internal */
1131
- export type RequestBodyHeaders$Outbound = {
1132
- value: string;
1133
- encrypted: boolean;
1134
- };
1135
- /** @internal */
1136
- export declare const RequestBodyHeaders$outboundSchema: z.ZodType<RequestBodyHeaders$Outbound, z.ZodTypeDef, RequestBodyHeaders>;
1137
- export declare function requestBodyHeadersToJSON(requestBodyHeaders: RequestBodyHeaders): string;
1138
- /** @internal */
1139
- export declare const RequestBodyConnectionType$outboundSchema: z.ZodNativeEnum<typeof RequestBodyConnectionType>;
1140
- /** @internal */
1141
- export type RequestBodyMcp$Outbound = {
1142
- server_url: string;
1143
- headers?: {
1144
- [k: string]: RequestBodyHeaders$Outbound;
1145
- } | undefined;
1146
- connection_type: string;
1147
- };
1148
- /** @internal */
1149
- export declare const RequestBodyMcp$outboundSchema: z.ZodType<RequestBodyMcp$Outbound, z.ZodTypeDef, RequestBodyMcp>;
1150
- export declare function requestBodyMcpToJSON(requestBodyMcp: RequestBodyMcp): string;
1151
- /** @internal */
1152
- export type RequestBodyMCPTool$Outbound = {
1153
- path: string;
1154
- key: string;
1155
- display_name?: string | undefined;
1156
- description: string;
1157
- status: string;
1158
- type: "mcp";
1159
- mcp: RequestBodyMcp$Outbound;
1160
- discovery_variables?: {
1161
- [k: string]: string;
1162
- } | undefined;
1163
- };
1164
- /** @internal */
1165
- export declare const RequestBodyMCPTool$outboundSchema: z.ZodType<RequestBodyMCPTool$Outbound, z.ZodTypeDef, RequestBodyMCPTool>;
1166
- export declare function requestBodyMCPToolToJSON(requestBodyMCPTool: RequestBodyMCPTool): string;
1167
- /** @internal */
1168
934
  export declare const CreateToolRequestBodyStatus$outboundSchema: z.ZodNativeEnum<typeof CreateToolRequestBodyStatus>;
1169
935
  /** @internal */
1170
936
  export declare const RequestBodyMethod$outboundSchema: z.ZodNativeEnum<typeof RequestBodyMethod>;
@@ -1177,10 +943,10 @@ export type CreateToolHeaders2$Outbound = {
1177
943
  export declare const CreateToolHeaders2$outboundSchema: z.ZodType<CreateToolHeaders2$Outbound, z.ZodTypeDef, CreateToolHeaders2>;
1178
944
  export declare function createToolHeaders2ToJSON(createToolHeaders2: CreateToolHeaders2): string;
1179
945
  /** @internal */
1180
- export type CreateToolRequestBodyHeaders$Outbound = CreateToolHeaders2$Outbound | string;
946
+ export type RequestBodyHeaders$Outbound = CreateToolHeaders2$Outbound | string;
1181
947
  /** @internal */
1182
- export declare const CreateToolRequestBodyHeaders$outboundSchema: z.ZodType<CreateToolRequestBodyHeaders$Outbound, z.ZodTypeDef, CreateToolRequestBodyHeaders>;
1183
- export declare function createToolRequestBodyHeadersToJSON(createToolRequestBodyHeaders: CreateToolRequestBodyHeaders): string;
948
+ export declare const RequestBodyHeaders$outboundSchema: z.ZodType<RequestBodyHeaders$Outbound, z.ZodTypeDef, RequestBodyHeaders>;
949
+ export declare function requestBodyHeadersToJSON(requestBodyHeaders: RequestBodyHeaders): string;
1184
950
  /** @internal */
1185
951
  export type RequestBodyBlueprint$Outbound = {
1186
952
  url: string;
@@ -1274,7 +1040,7 @@ export type JSONSchemaTool$Outbound = {
1274
1040
  export declare const JSONSchemaTool$outboundSchema: z.ZodType<JSONSchemaTool$Outbound, z.ZodTypeDef, JSONSchemaTool>;
1275
1041
  export declare function jsonSchemaToolToJSON(jsonSchemaTool: JSONSchemaTool): string;
1276
1042
  /** @internal */
1277
- export declare const CreateToolRequestBodyToolsRequest1Status$outboundSchema: z.ZodNativeEnum<typeof CreateToolRequestBodyToolsRequest1Status>;
1043
+ export declare const CreateToolRequestBodyToolsRequestStatus$outboundSchema: z.ZodNativeEnum<typeof CreateToolRequestBodyToolsRequestStatus>;
1278
1044
  /** @internal */
1279
1045
  export declare const CreateToolRequestBodyToolsRequest1Type$outboundSchema: z.ZodNativeEnum<typeof CreateToolRequestBodyToolsRequest1Type>;
1280
1046
  /** @internal */
@@ -1313,14 +1079,14 @@ export type FunctionTool$Outbound = {
1313
1079
  export declare const FunctionTool$outboundSchema: z.ZodType<FunctionTool$Outbound, z.ZodTypeDef, FunctionTool>;
1314
1080
  export declare function functionToolToJSON(functionTool: FunctionTool): string;
1315
1081
  /** @internal */
1316
- export type CreateToolRequestBody$Outbound = FunctionTool$Outbound | JSONSchemaTool$Outbound | HTTPTool$Outbound | RequestBodyMCPTool$Outbound | CodeExecutionTool$Outbound;
1082
+ export type CreateToolRequestBody$Outbound = FunctionTool$Outbound | JSONSchemaTool$Outbound | HTTPTool$Outbound | CodeExecutionTool$Outbound;
1317
1083
  /** @internal */
1318
1084
  export declare const CreateToolRequestBody$outboundSchema: z.ZodType<CreateToolRequestBody$Outbound, z.ZodTypeDef, CreateToolRequestBody>;
1319
1085
  export declare function createToolRequestBodyToJSON(createToolRequestBody: CreateToolRequestBody): string;
1320
1086
  /** @internal */
1321
- export declare const CreateToolResponseBodyToolsResponse200Status$inboundSchema: z.ZodNativeEnum<typeof CreateToolResponseBodyToolsResponse200Status>;
1087
+ export declare const CreateToolResponseBodyToolsResponseStatus$inboundSchema: z.ZodNativeEnum<typeof CreateToolResponseBodyToolsResponseStatus>;
1322
1088
  /** @internal */
1323
- export declare const CreateToolResponseBodyToolsResponse200ApplicationJson5Type$inboundSchema: z.ZodNativeEnum<typeof CreateToolResponseBodyToolsResponse200ApplicationJson5Type>;
1089
+ export declare const CreateToolResponseBodyToolsResponse200ApplicationJson4Type$inboundSchema: z.ZodNativeEnum<typeof CreateToolResponseBodyToolsResponse200ApplicationJson4Type>;
1324
1090
  /** @internal */
1325
1091
  export declare const CreateToolResponseBodyParameters$inboundSchema: z.ZodType<CreateToolResponseBodyParameters, z.ZodTypeDef, unknown>;
1326
1092
  export declare function createToolResponseBodyParametersFromJSON(jsonString: string): SafeParseResult<CreateToolResponseBodyParameters, SDKValidationError>;
@@ -1333,27 +1099,6 @@ export declare function responseBodyCodeToolFromJSON(jsonString: string): SafePa
1333
1099
  export declare const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<ResponseBodyCodeExecutionTool, z.ZodTypeDef, unknown>;
1334
1100
  export declare function responseBodyCodeExecutionToolFromJSON(jsonString: string): SafeParseResult<ResponseBodyCodeExecutionTool, SDKValidationError>;
1335
1101
  /** @internal */
1336
- export declare const CreateToolResponseBodyToolsResponseStatus$inboundSchema: z.ZodNativeEnum<typeof CreateToolResponseBodyToolsResponseStatus>;
1337
- /** @internal */
1338
- export declare const ResponseBodyHeaders$inboundSchema: z.ZodType<ResponseBodyHeaders, z.ZodTypeDef, unknown>;
1339
- export declare function responseBodyHeadersFromJSON(jsonString: string): SafeParseResult<ResponseBodyHeaders, SDKValidationError>;
1340
- /** @internal */
1341
- export declare const CreateToolResponseBodyToolsResponse200ApplicationJson4Type$inboundSchema: z.ZodNativeEnum<typeof CreateToolResponseBodyToolsResponse200ApplicationJson4Type>;
1342
- /** @internal */
1343
- export declare const CreateToolResponseBodySchema$inboundSchema: z.ZodType<CreateToolResponseBodySchema, z.ZodTypeDef, unknown>;
1344
- export declare function createToolResponseBodySchemaFromJSON(jsonString: string): SafeParseResult<CreateToolResponseBodySchema, SDKValidationError>;
1345
- /** @internal */
1346
- export declare const ResponseBodyTools$inboundSchema: z.ZodType<ResponseBodyTools, z.ZodTypeDef, unknown>;
1347
- export declare function responseBodyToolsFromJSON(jsonString: string): SafeParseResult<ResponseBodyTools, SDKValidationError>;
1348
- /** @internal */
1349
- export declare const ResponseBodyConnectionType$inboundSchema: z.ZodNativeEnum<typeof ResponseBodyConnectionType>;
1350
- /** @internal */
1351
- export declare const ResponseBodyMcp$inboundSchema: z.ZodType<ResponseBodyMcp, z.ZodTypeDef, unknown>;
1352
- export declare function responseBodyMcpFromJSON(jsonString: string): SafeParseResult<ResponseBodyMcp, SDKValidationError>;
1353
- /** @internal */
1354
- export declare const ResponseBodyMCPTool$inboundSchema: z.ZodType<ResponseBodyMCPTool, z.ZodTypeDef, unknown>;
1355
- export declare function responseBodyMCPToolFromJSON(jsonString: string): SafeParseResult<ResponseBodyMCPTool, SDKValidationError>;
1356
- /** @internal */
1357
1102
  export declare const CreateToolResponseBodyToolsStatus$inboundSchema: z.ZodNativeEnum<typeof CreateToolResponseBodyToolsStatus>;
1358
1103
  /** @internal */
1359
1104
  export declare const CreateToolResponseBodyMethod$inboundSchema: z.ZodNativeEnum<typeof CreateToolResponseBodyMethod>;
@@ -1361,13 +1106,13 @@ export declare const CreateToolResponseBodyMethod$inboundSchema: z.ZodNativeEnum
1361
1106
  export declare const CreateToolHeadersTools2$inboundSchema: z.ZodType<CreateToolHeadersTools2, z.ZodTypeDef, unknown>;
1362
1107
  export declare function createToolHeadersTools2FromJSON(jsonString: string): SafeParseResult<CreateToolHeadersTools2, SDKValidationError>;
1363
1108
  /** @internal */
1364
- export declare const CreateToolResponseBodyHeaders$inboundSchema: z.ZodType<CreateToolResponseBodyHeaders, z.ZodTypeDef, unknown>;
1365
- export declare function createToolResponseBodyHeadersFromJSON(jsonString: string): SafeParseResult<CreateToolResponseBodyHeaders, SDKValidationError>;
1109
+ export declare const ResponseBodyHeaders$inboundSchema: z.ZodType<ResponseBodyHeaders, z.ZodTypeDef, unknown>;
1110
+ export declare function responseBodyHeadersFromJSON(jsonString: string): SafeParseResult<ResponseBodyHeaders, SDKValidationError>;
1366
1111
  /** @internal */
1367
1112
  export declare const ResponseBodyBlueprint$inboundSchema: z.ZodType<ResponseBodyBlueprint, z.ZodTypeDef, unknown>;
1368
1113
  export declare function responseBodyBlueprintFromJSON(jsonString: string): SafeParseResult<ResponseBodyBlueprint, SDKValidationError>;
1369
1114
  /** @internal */
1370
- export declare const CreateToolResponseBodyToolsResponse200ApplicationJson3Type$inboundSchema: z.ZodNativeEnum<typeof CreateToolResponseBodyToolsResponse200ApplicationJson3Type>;
1115
+ export declare const CreateToolResponseBodyToolsResponse200ApplicationJSONType$inboundSchema: z.ZodNativeEnum<typeof CreateToolResponseBodyToolsResponse200ApplicationJSONType>;
1371
1116
  /** @internal */
1372
1117
  export declare const ResponseBodyDefaultValue$inboundSchema: z.ZodType<ResponseBodyDefaultValue, z.ZodTypeDef, unknown>;
1373
1118
  export declare function responseBodyDefaultValueFromJSON(jsonString: string): SafeParseResult<ResponseBodyDefaultValue, SDKValidationError>;