@orq-ai/node 3.13.8 → 3.13.9

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 (170) hide show
  1. package/bin/mcp-server.js +215 -229
  2. package/bin/mcp-server.js.map +44 -44
  3. package/examples/package-lock.json +1 -1
  4. package/jsr.json +1 -1
  5. package/lib/config.d.ts +2 -2
  6. package/lib/config.js +2 -2
  7. package/mcp-server/mcp-server.js +1 -1
  8. package/mcp-server/server.js +1 -1
  9. package/models/components/deployments.d.ts +0 -6
  10. package/models/components/deployments.d.ts.map +1 -1
  11. package/models/components/deployments.js +0 -2
  12. package/models/components/deployments.js.map +1 -1
  13. package/models/operations/createbudget.js +2 -2
  14. package/models/operations/createcontact.js +2 -2
  15. package/models/operations/createdataset.js +2 -2
  16. package/models/operations/createdatasetitem.d.ts +0 -6
  17. package/models/operations/createdatasetitem.d.ts.map +1 -1
  18. package/models/operations/createdatasetitem.js +2 -4
  19. package/models/operations/createdatasetitem.js.map +1 -1
  20. package/models/operations/createdatasource.js +2 -2
  21. package/models/operations/createeval.js +28 -28
  22. package/models/operations/createtool.js +14 -14
  23. package/models/operations/deploymentcreatemetric.d.ts +0 -6
  24. package/models/operations/deploymentcreatemetric.d.ts.map +1 -1
  25. package/models/operations/deploymentcreatemetric.js +0 -2
  26. package/models/operations/deploymentcreatemetric.js.map +1 -1
  27. package/models/operations/deploymentgetconfig.d.ts +0 -6
  28. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  29. package/models/operations/deploymentgetconfig.js +0 -2
  30. package/models/operations/deploymentgetconfig.js.map +1 -1
  31. package/models/operations/deploymentstream.d.ts +0 -6
  32. package/models/operations/deploymentstream.d.ts.map +1 -1
  33. package/models/operations/deploymentstream.js +0 -2
  34. package/models/operations/deploymentstream.js.map +1 -1
  35. package/models/operations/duplicatetool.js +10 -10
  36. package/models/operations/fileget.js +2 -2
  37. package/models/operations/filelist.js +2 -2
  38. package/models/operations/fileupload.js +2 -2
  39. package/models/operations/getagent.js +2 -2
  40. package/models/operations/getalltools.js +10 -10
  41. package/models/operations/getbudget.js +2 -2
  42. package/models/operations/getevals.js +28 -28
  43. package/models/operations/listagents.js +2 -2
  44. package/models/operations/listbudgets.js +2 -2
  45. package/models/operations/listcontacts.js +2 -2
  46. package/models/operations/listdatasetdatapoints.d.ts +0 -3
  47. package/models/operations/listdatasetdatapoints.d.ts.map +1 -1
  48. package/models/operations/listdatasetdatapoints.js +2 -3
  49. package/models/operations/listdatasetdatapoints.js.map +1 -1
  50. package/models/operations/listdatasets.js +2 -2
  51. package/models/operations/listdatasources.js +2 -2
  52. package/models/operations/retrievecontact.js +2 -2
  53. package/models/operations/retrievedatapoint.d.ts +0 -3
  54. package/models/operations/retrievedatapoint.d.ts.map +1 -1
  55. package/models/operations/retrievedatapoint.js +2 -3
  56. package/models/operations/retrievedatapoint.js.map +1 -1
  57. package/models/operations/retrievedataset.js +2 -2
  58. package/models/operations/retrievedatasource.js +2 -2
  59. package/models/operations/retrievetool.js +10 -10
  60. package/models/operations/runagent.js +2 -2
  61. package/models/operations/streamrunagent.js +2 -2
  62. package/models/operations/updatebudget.js +2 -2
  63. package/models/operations/updatecontact.js +2 -2
  64. package/models/operations/updatedatapoint.d.ts +0 -6
  65. package/models/operations/updatedatapoint.d.ts.map +1 -1
  66. package/models/operations/updatedatapoint.js +2 -4
  67. package/models/operations/updatedatapoint.js.map +1 -1
  68. package/models/operations/updatedataset.js +2 -2
  69. package/models/operations/updatedatasource.js +2 -2
  70. package/models/operations/updateeval.js +28 -28
  71. package/models/operations/updatetool.js +14 -14
  72. package/package.json +1 -1
  73. package/packages/orq-rc/docs/sdks/knowledge/README.md +6 -0
  74. package/packages/orq-rc/examples/package-lock.json +1 -1
  75. package/packages/orq-rc/jsr.json +1 -1
  76. package/packages/orq-rc/package-lock.json +2 -2
  77. package/packages/orq-rc/package.json +1 -1
  78. package/packages/orq-rc/src/lib/config.ts +2 -2
  79. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  80. package/packages/orq-rc/src/mcp-server/server.ts +1 -1
  81. package/packages/orq-rc/src/models/components/deployments.ts +0 -2
  82. package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
  83. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  84. package/packages/orq-rc/src/models/operations/createdataset.ts +9 -3
  85. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +8 -10
  86. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  87. package/packages/orq-rc/src/models/operations/createeval.ts +236 -201
  88. package/packages/orq-rc/src/models/operations/createknowledge.ts +1231 -275
  89. package/packages/orq-rc/src/models/operations/creatememorystore.ts +7 -1
  90. package/packages/orq-rc/src/models/operations/createprompt.ts +7 -1
  91. package/packages/orq-rc/src/models/operations/createtool.ts +192 -116
  92. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -2
  93. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -2
  94. package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -2
  95. package/packages/orq-rc/src/models/operations/duplicatetool.ts +45 -15
  96. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  97. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  98. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  99. package/packages/orq-rc/src/models/operations/getagent.ts +9 -3
  100. package/packages/orq-rc/src/models/operations/getalltools.ts +167 -118
  101. package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
  102. package/packages/orq-rc/src/models/operations/getevals.ts +157 -143
  103. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +912 -166
  104. package/packages/orq-rc/src/models/operations/listagents.ts +9 -3
  105. package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
  106. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  107. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +8 -9
  108. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  109. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  110. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +755 -150
  111. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  112. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +8 -9
  113. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  114. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  115. package/packages/orq-rc/src/models/operations/retrievetool.ts +45 -15
  116. package/packages/orq-rc/src/models/operations/runagent.ts +7 -1
  117. package/packages/orq-rc/src/models/operations/searchknowledge.ts +49 -62
  118. package/packages/orq-rc/src/models/operations/streamrunagent.ts +7 -1
  119. package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
  120. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  121. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +8 -10
  122. package/packages/orq-rc/src/models/operations/updatedataset.ts +9 -3
  123. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  124. package/packages/orq-rc/src/models/operations/updateeval.ts +56 -32
  125. package/packages/orq-rc/src/models/operations/updateknowledge.ts +1710 -367
  126. package/packages/orq-rc/src/models/operations/updatememorystore.ts +7 -1
  127. package/packages/orq-rc/src/models/operations/updateprompt.ts +7 -1
  128. package/packages/orq-rc/src/models/operations/updatetool.ts +80 -20
  129. package/src/lib/config.ts +2 -2
  130. package/src/mcp-server/mcp-server.ts +1 -1
  131. package/src/mcp-server/server.ts +1 -1
  132. package/src/models/components/deployments.ts +0 -2
  133. package/src/models/operations/createbudget.ts +2 -2
  134. package/src/models/operations/createcontact.ts +2 -2
  135. package/src/models/operations/createdataset.ts +2 -2
  136. package/src/models/operations/createdatasetitem.ts +2 -4
  137. package/src/models/operations/createdatasource.ts +2 -2
  138. package/src/models/operations/createeval.ts +28 -28
  139. package/src/models/operations/createtool.ts +14 -14
  140. package/src/models/operations/deploymentcreatemetric.ts +0 -2
  141. package/src/models/operations/deploymentgetconfig.ts +0 -2
  142. package/src/models/operations/deploymentstream.ts +0 -2
  143. package/src/models/operations/duplicatetool.ts +10 -10
  144. package/src/models/operations/fileget.ts +2 -2
  145. package/src/models/operations/filelist.ts +2 -2
  146. package/src/models/operations/fileupload.ts +2 -2
  147. package/src/models/operations/getagent.ts +2 -2
  148. package/src/models/operations/getalltools.ts +10 -10
  149. package/src/models/operations/getbudget.ts +2 -2
  150. package/src/models/operations/getevals.ts +28 -28
  151. package/src/models/operations/listagents.ts +2 -2
  152. package/src/models/operations/listbudgets.ts +2 -2
  153. package/src/models/operations/listcontacts.ts +2 -2
  154. package/src/models/operations/listdatasetdatapoints.ts +2 -3
  155. package/src/models/operations/listdatasets.ts +2 -2
  156. package/src/models/operations/listdatasources.ts +2 -2
  157. package/src/models/operations/retrievecontact.ts +2 -2
  158. package/src/models/operations/retrievedatapoint.ts +2 -3
  159. package/src/models/operations/retrievedataset.ts +2 -2
  160. package/src/models/operations/retrievedatasource.ts +2 -2
  161. package/src/models/operations/retrievetool.ts +10 -10
  162. package/src/models/operations/runagent.ts +2 -2
  163. package/src/models/operations/streamrunagent.ts +2 -2
  164. package/src/models/operations/updatebudget.ts +2 -2
  165. package/src/models/operations/updatecontact.ts +2 -2
  166. package/src/models/operations/updatedatapoint.ts +2 -4
  167. package/src/models/operations/updatedataset.ts +2 -2
  168. package/src/models/operations/updatedatasource.ts +2 -2
  169. package/src/models/operations/updateeval.ts +28 -28
  170. package/src/models/operations/updatetool.ts +14 -14
@@ -184,7 +184,13 @@ export type CreateMemoryStoreRequestBody = {
184
184
  */
185
185
  ttl?: number | undefined;
186
186
  /**
187
- * The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
187
+ * Entity storage path in the format: `project/folder/subfolder/...`
188
+ *
189
+ * @remarks
190
+ *
191
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
192
+ *
193
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
188
194
  */
189
195
  path: string;
190
196
  };
@@ -518,7 +518,13 @@ export type CreatePromptRequestBody = {
518
518
  promptConfig: PromptConfig;
519
519
  metadata?: CreatePromptMetadata | undefined;
520
520
  /**
521
- * The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
521
+ * Entity storage path in the format: `project/folder/subfolder/...`
522
+ *
523
+ * @remarks
524
+ *
525
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
526
+ *
527
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
522
528
  */
523
529
  path: string;
524
530
  };
@@ -51,7 +51,13 @@ export type RequestBodyCodeTool = {
51
51
 
52
52
  export type RequestBody5 = {
53
53
  /**
54
- * The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
54
+ * Entity storage path in the format: `project/folder/subfolder/...`
55
+ *
56
+ * @remarks
57
+ *
58
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
59
+ *
60
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
55
61
  */
56
62
  path: string;
57
63
  /**
@@ -159,7 +165,13 @@ export type Mcp = {
159
165
 
160
166
  export type RequestBody4 = {
161
167
  /**
162
- * The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
168
+ * Entity storage path in the format: `project/folder/subfolder/...`
169
+ *
170
+ * @remarks
171
+ *
172
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
173
+ *
174
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
163
175
  */
164
176
  path: string;
165
177
  /**
@@ -295,7 +307,13 @@ export type CreateToolRequestBodyHttp = {
295
307
 
296
308
  export type RequestBody3 = {
297
309
  /**
298
- * The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
310
+ * Entity storage path in the format: `project/folder/subfolder/...`
311
+ *
312
+ * @remarks
313
+ *
314
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
315
+ *
316
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
299
317
  */
300
318
  path: string;
301
319
  /**
@@ -360,9 +378,15 @@ export type RequestBodyJsonSchema = {
360
378
  strict?: boolean | null | undefined;
361
379
  };
362
380
 
363
- export type RequestBody2 = {
381
+ export type CreateToolRequestBody2 = {
364
382
  /**
365
- * The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
383
+ * Entity storage path in the format: `project/folder/subfolder/...`
384
+ *
385
+ * @remarks
386
+ *
387
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
388
+ *
389
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
366
390
  */
367
391
  path: string;
368
392
  /**
@@ -425,9 +449,15 @@ export type RequestBodyFunction = {
425
449
  parameters?: { [k: string]: any } | undefined;
426
450
  };
427
451
 
428
- export type RequestBody1 = {
452
+ export type CreateToolRequestBody1 = {
429
453
  /**
430
- * The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
454
+ * Entity storage path in the format: `project/folder/subfolder/...`
455
+ *
456
+ * @remarks
457
+ *
458
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
459
+ *
460
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
431
461
  */
432
462
  path: string;
433
463
  /**
@@ -454,8 +484,8 @@ export type RequestBody1 = {
454
484
  * The tool to create
455
485
  */
456
486
  export type CreateToolRequestBody =
457
- | RequestBody1
458
- | RequestBody2
487
+ | CreateToolRequestBody1
488
+ | CreateToolRequestBody2
459
489
  | RequestBody3
460
490
  | RequestBody4
461
491
  | RequestBody5;
@@ -502,7 +532,13 @@ export type ResponseBodyCodeTool = {
502
532
  export type ResponseBody5 = {
503
533
  id?: string | undefined;
504
534
  /**
505
- * The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
535
+ * Entity storage path in the format: `project/folder/subfolder/...`
536
+ *
537
+ * @remarks
538
+ *
539
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
540
+ *
541
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
506
542
  */
507
543
  path: string;
508
544
  /**
@@ -625,7 +661,13 @@ export type ResponseBodyMcp = {
625
661
  export type ResponseBody4 = {
626
662
  id?: string | undefined;
627
663
  /**
628
- * The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
664
+ * Entity storage path in the format: `project/folder/subfolder/...`
665
+ *
666
+ * @remarks
667
+ *
668
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
669
+ *
670
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
629
671
  */
630
672
  path: string;
631
673
  /**
@@ -774,7 +816,13 @@ export type CreateToolResponseBodyHttp = {
774
816
  export type ResponseBody3 = {
775
817
  id?: string | undefined;
776
818
  /**
777
- * The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
819
+ * Entity storage path in the format: `project/folder/subfolder/...`
820
+ *
821
+ * @remarks
822
+ *
823
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
824
+ *
825
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
778
826
  */
779
827
  path: string;
780
828
  /**
@@ -852,10 +900,16 @@ export type ResponseBodyJsonSchema = {
852
900
  strict?: boolean | null | undefined;
853
901
  };
854
902
 
855
- export type ResponseBody2 = {
903
+ export type CreateToolResponseBody2 = {
856
904
  id?: string | undefined;
857
905
  /**
858
- * The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
906
+ * Entity storage path in the format: `project/folder/subfolder/...`
907
+ *
908
+ * @remarks
909
+ *
910
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
911
+ *
912
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
859
913
  */
860
914
  path: string;
861
915
  /**
@@ -931,10 +985,16 @@ export type CreateToolResponseBodyFunction = {
931
985
  parameters?: { [k: string]: any } | undefined;
932
986
  };
933
987
 
934
- export type ResponseBody1 = {
988
+ export type CreateToolResponseBody1 = {
935
989
  id?: string | undefined;
936
990
  /**
937
- * The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
991
+ * Entity storage path in the format: `project/folder/subfolder/...`
992
+ *
993
+ * @remarks
994
+ *
995
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
996
+ *
997
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
938
998
  */
939
999
  path: string;
940
1000
  /**
@@ -974,8 +1034,8 @@ export type ResponseBody1 = {
974
1034
  * Successfully created the tool.
975
1035
  */
976
1036
  export type CreateToolResponseBody =
977
- | ResponseBody1
978
- | ResponseBody2
1037
+ | CreateToolResponseBody1
1038
+ | CreateToolResponseBody2
979
1039
  | ResponseBody3
980
1040
  | ResponseBody4
981
1041
  | ResponseBody5;
@@ -2055,8 +2115,8 @@ export function requestBodyJsonSchemaFromJSON(
2055
2115
  }
2056
2116
 
2057
2117
  /** @internal */
2058
- export const RequestBody2$inboundSchema: z.ZodType<
2059
- RequestBody2,
2118
+ export const CreateToolRequestBody2$inboundSchema: z.ZodType<
2119
+ CreateToolRequestBody2,
2060
2120
  z.ZodTypeDef,
2061
2121
  unknown
2062
2122
  > = z.object({
@@ -2075,7 +2135,7 @@ export const RequestBody2$inboundSchema: z.ZodType<
2075
2135
  });
2076
2136
 
2077
2137
  /** @internal */
2078
- export type RequestBody2$Outbound = {
2138
+ export type CreateToolRequestBody2$Outbound = {
2079
2139
  path: string;
2080
2140
  key: string;
2081
2141
  display_name: string;
@@ -2086,10 +2146,10 @@ export type RequestBody2$Outbound = {
2086
2146
  };
2087
2147
 
2088
2148
  /** @internal */
2089
- export const RequestBody2$outboundSchema: z.ZodType<
2090
- RequestBody2$Outbound,
2149
+ export const CreateToolRequestBody2$outboundSchema: z.ZodType<
2150
+ CreateToolRequestBody2$Outbound,
2091
2151
  z.ZodTypeDef,
2092
- RequestBody2
2152
+ CreateToolRequestBody2
2093
2153
  > = z.object({
2094
2154
  path: z.string(),
2095
2155
  key: z.string(),
@@ -2109,26 +2169,30 @@ export const RequestBody2$outboundSchema: z.ZodType<
2109
2169
  * @internal
2110
2170
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2111
2171
  */
2112
- export namespace RequestBody2$ {
2113
- /** @deprecated use `RequestBody2$inboundSchema` instead. */
2114
- export const inboundSchema = RequestBody2$inboundSchema;
2115
- /** @deprecated use `RequestBody2$outboundSchema` instead. */
2116
- export const outboundSchema = RequestBody2$outboundSchema;
2117
- /** @deprecated use `RequestBody2$Outbound` instead. */
2118
- export type Outbound = RequestBody2$Outbound;
2172
+ export namespace CreateToolRequestBody2$ {
2173
+ /** @deprecated use `CreateToolRequestBody2$inboundSchema` instead. */
2174
+ export const inboundSchema = CreateToolRequestBody2$inboundSchema;
2175
+ /** @deprecated use `CreateToolRequestBody2$outboundSchema` instead. */
2176
+ export const outboundSchema = CreateToolRequestBody2$outboundSchema;
2177
+ /** @deprecated use `CreateToolRequestBody2$Outbound` instead. */
2178
+ export type Outbound = CreateToolRequestBody2$Outbound;
2119
2179
  }
2120
2180
 
2121
- export function requestBody2ToJSON(requestBody2: RequestBody2): string {
2122
- return JSON.stringify(RequestBody2$outboundSchema.parse(requestBody2));
2181
+ export function createToolRequestBody2ToJSON(
2182
+ createToolRequestBody2: CreateToolRequestBody2,
2183
+ ): string {
2184
+ return JSON.stringify(
2185
+ CreateToolRequestBody2$outboundSchema.parse(createToolRequestBody2),
2186
+ );
2123
2187
  }
2124
2188
 
2125
- export function requestBody2FromJSON(
2189
+ export function createToolRequestBody2FromJSON(
2126
2190
  jsonString: string,
2127
- ): SafeParseResult<RequestBody2, SDKValidationError> {
2191
+ ): SafeParseResult<CreateToolRequestBody2, SDKValidationError> {
2128
2192
  return safeParse(
2129
2193
  jsonString,
2130
- (x) => RequestBody2$inboundSchema.parse(JSON.parse(x)),
2131
- `Failed to parse 'RequestBody2' from JSON`,
2194
+ (x) => CreateToolRequestBody2$inboundSchema.parse(JSON.parse(x)),
2195
+ `Failed to parse 'CreateToolRequestBody2' from JSON`,
2132
2196
  );
2133
2197
  }
2134
2198
 
@@ -2238,8 +2302,8 @@ export function requestBodyFunctionFromJSON(
2238
2302
  }
2239
2303
 
2240
2304
  /** @internal */
2241
- export const RequestBody1$inboundSchema: z.ZodType<
2242
- RequestBody1,
2305
+ export const CreateToolRequestBody1$inboundSchema: z.ZodType<
2306
+ CreateToolRequestBody1,
2243
2307
  z.ZodTypeDef,
2244
2308
  unknown
2245
2309
  > = z.object({
@@ -2257,7 +2321,7 @@ export const RequestBody1$inboundSchema: z.ZodType<
2257
2321
  });
2258
2322
 
2259
2323
  /** @internal */
2260
- export type RequestBody1$Outbound = {
2324
+ export type CreateToolRequestBody1$Outbound = {
2261
2325
  path: string;
2262
2326
  key: string;
2263
2327
  display_name: string;
@@ -2268,10 +2332,10 @@ export type RequestBody1$Outbound = {
2268
2332
  };
2269
2333
 
2270
2334
  /** @internal */
2271
- export const RequestBody1$outboundSchema: z.ZodType<
2272
- RequestBody1$Outbound,
2335
+ export const CreateToolRequestBody1$outboundSchema: z.ZodType<
2336
+ CreateToolRequestBody1$Outbound,
2273
2337
  z.ZodTypeDef,
2274
- RequestBody1
2338
+ CreateToolRequestBody1
2275
2339
  > = z.object({
2276
2340
  path: z.string(),
2277
2341
  key: z.string(),
@@ -2290,26 +2354,30 @@ export const RequestBody1$outboundSchema: z.ZodType<
2290
2354
  * @internal
2291
2355
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2292
2356
  */
2293
- export namespace RequestBody1$ {
2294
- /** @deprecated use `RequestBody1$inboundSchema` instead. */
2295
- export const inboundSchema = RequestBody1$inboundSchema;
2296
- /** @deprecated use `RequestBody1$outboundSchema` instead. */
2297
- export const outboundSchema = RequestBody1$outboundSchema;
2298
- /** @deprecated use `RequestBody1$Outbound` instead. */
2299
- export type Outbound = RequestBody1$Outbound;
2357
+ export namespace CreateToolRequestBody1$ {
2358
+ /** @deprecated use `CreateToolRequestBody1$inboundSchema` instead. */
2359
+ export const inboundSchema = CreateToolRequestBody1$inboundSchema;
2360
+ /** @deprecated use `CreateToolRequestBody1$outboundSchema` instead. */
2361
+ export const outboundSchema = CreateToolRequestBody1$outboundSchema;
2362
+ /** @deprecated use `CreateToolRequestBody1$Outbound` instead. */
2363
+ export type Outbound = CreateToolRequestBody1$Outbound;
2300
2364
  }
2301
2365
 
2302
- export function requestBody1ToJSON(requestBody1: RequestBody1): string {
2303
- return JSON.stringify(RequestBody1$outboundSchema.parse(requestBody1));
2366
+ export function createToolRequestBody1ToJSON(
2367
+ createToolRequestBody1: CreateToolRequestBody1,
2368
+ ): string {
2369
+ return JSON.stringify(
2370
+ CreateToolRequestBody1$outboundSchema.parse(createToolRequestBody1),
2371
+ );
2304
2372
  }
2305
2373
 
2306
- export function requestBody1FromJSON(
2374
+ export function createToolRequestBody1FromJSON(
2307
2375
  jsonString: string,
2308
- ): SafeParseResult<RequestBody1, SDKValidationError> {
2376
+ ): SafeParseResult<CreateToolRequestBody1, SDKValidationError> {
2309
2377
  return safeParse(
2310
2378
  jsonString,
2311
- (x) => RequestBody1$inboundSchema.parse(JSON.parse(x)),
2312
- `Failed to parse 'RequestBody1' from JSON`,
2379
+ (x) => CreateToolRequestBody1$inboundSchema.parse(JSON.parse(x)),
2380
+ `Failed to parse 'CreateToolRequestBody1' from JSON`,
2313
2381
  );
2314
2382
  }
2315
2383
 
@@ -2319,8 +2387,8 @@ export const CreateToolRequestBody$inboundSchema: z.ZodType<
2319
2387
  z.ZodTypeDef,
2320
2388
  unknown
2321
2389
  > = z.union([
2322
- z.lazy(() => RequestBody1$inboundSchema),
2323
- z.lazy(() => RequestBody2$inboundSchema),
2390
+ z.lazy(() => CreateToolRequestBody1$inboundSchema),
2391
+ z.lazy(() => CreateToolRequestBody2$inboundSchema),
2324
2392
  z.lazy(() => RequestBody3$inboundSchema),
2325
2393
  z.lazy(() => RequestBody4$inboundSchema),
2326
2394
  z.lazy(() => RequestBody5$inboundSchema),
@@ -2328,8 +2396,8 @@ export const CreateToolRequestBody$inboundSchema: z.ZodType<
2328
2396
 
2329
2397
  /** @internal */
2330
2398
  export type CreateToolRequestBody$Outbound =
2331
- | RequestBody1$Outbound
2332
- | RequestBody2$Outbound
2399
+ | CreateToolRequestBody1$Outbound
2400
+ | CreateToolRequestBody2$Outbound
2333
2401
  | RequestBody3$Outbound
2334
2402
  | RequestBody4$Outbound
2335
2403
  | RequestBody5$Outbound;
@@ -2340,8 +2408,8 @@ export const CreateToolRequestBody$outboundSchema: z.ZodType<
2340
2408
  z.ZodTypeDef,
2341
2409
  CreateToolRequestBody
2342
2410
  > = z.union([
2343
- z.lazy(() => RequestBody1$outboundSchema),
2344
- z.lazy(() => RequestBody2$outboundSchema),
2411
+ z.lazy(() => CreateToolRequestBody1$outboundSchema),
2412
+ z.lazy(() => CreateToolRequestBody2$outboundSchema),
2345
2413
  z.lazy(() => RequestBody3$outboundSchema),
2346
2414
  z.lazy(() => RequestBody4$outboundSchema),
2347
2415
  z.lazy(() => RequestBody5$outboundSchema),
@@ -2513,7 +2581,7 @@ export const ResponseBody5$inboundSchema: z.ZodType<
2513
2581
  z.ZodTypeDef,
2514
2582
  unknown
2515
2583
  > = z.object({
2516
- _id: z.string().default("01K7GJX61T1NWBSSMJ08PVJDZD"),
2584
+ _id: z.string().default("01K7K4ZPHJYT9J32JKJTPNTK1H"),
2517
2585
  path: z.string(),
2518
2586
  key: z.string(),
2519
2587
  display_name: z.string(),
@@ -2568,7 +2636,7 @@ export const ResponseBody5$outboundSchema: z.ZodType<
2568
2636
  z.ZodTypeDef,
2569
2637
  ResponseBody5
2570
2638
  > = z.object({
2571
- id: z.string().default("01K7GJX61T1NWBSSMJ08PVJDZD"),
2639
+ id: z.string().default("01K7K4ZPHJYT9J32JKJTPNTK1H"),
2572
2640
  path: z.string(),
2573
2641
  key: z.string(),
2574
2642
  displayName: z.string(),
@@ -2927,7 +2995,7 @@ export const ResponseBody4$inboundSchema: z.ZodType<
2927
2995
  z.ZodTypeDef,
2928
2996
  unknown
2929
2997
  > = z.object({
2930
- _id: z.string().default("01K7GJX61T4QTGMXRQPSXSCTX7"),
2998
+ _id: z.string().default("01K7K4ZPHJ9CV333V8YWP3XR3B"),
2931
2999
  path: z.string(),
2932
3000
  key: z.string(),
2933
3001
  display_name: z.string(),
@@ -2981,7 +3049,7 @@ export const ResponseBody4$outboundSchema: z.ZodType<
2981
3049
  z.ZodTypeDef,
2982
3050
  ResponseBody4
2983
3051
  > = z.object({
2984
- id: z.string().default("01K7GJX61T4QTGMXRQPSXSCTX7"),
3052
+ id: z.string().default("01K7K4ZPHJ9CV333V8YWP3XR3B"),
2985
3053
  path: z.string(),
2986
3054
  key: z.string(),
2987
3055
  displayName: z.string(),
@@ -3379,7 +3447,7 @@ export const ResponseBody3$inboundSchema: z.ZodType<
3379
3447
  z.ZodTypeDef,
3380
3448
  unknown
3381
3449
  > = z.object({
3382
- _id: z.string().default("01K7GJX61T6QPFTJVXB30Z6M05"),
3450
+ _id: z.string().default("01K7K4ZPHHGY1BW3DMK5WSSPSR"),
3383
3451
  path: z.string(),
3384
3452
  key: z.string(),
3385
3453
  display_name: z.string(),
@@ -3431,7 +3499,7 @@ export const ResponseBody3$outboundSchema: z.ZodType<
3431
3499
  z.ZodTypeDef,
3432
3500
  ResponseBody3
3433
3501
  > = z.object({
3434
- id: z.string().default("01K7GJX61T6QPFTJVXB30Z6M05"),
3502
+ id: z.string().default("01K7K4ZPHHGY1BW3DMK5WSSPSR"),
3435
3503
  path: z.string(),
3436
3504
  key: z.string(),
3437
3505
  displayName: z.string(),
@@ -3591,12 +3659,12 @@ export function responseBodyJsonSchemaFromJSON(
3591
3659
  }
3592
3660
 
3593
3661
  /** @internal */
3594
- export const ResponseBody2$inboundSchema: z.ZodType<
3595
- ResponseBody2,
3662
+ export const CreateToolResponseBody2$inboundSchema: z.ZodType<
3663
+ CreateToolResponseBody2,
3596
3664
  z.ZodTypeDef,
3597
3665
  unknown
3598
3666
  > = z.object({
3599
- _id: z.string().default("01K7GJX61SVTRTEJ6YNG9V5EHF"),
3667
+ _id: z.string().default("01K7K4ZPHHAWGCQ8EVDTETSXTQ"),
3600
3668
  path: z.string(),
3601
3669
  key: z.string(),
3602
3670
  display_name: z.string(),
@@ -3625,7 +3693,7 @@ export const ResponseBody2$inboundSchema: z.ZodType<
3625
3693
  });
3626
3694
 
3627
3695
  /** @internal */
3628
- export type ResponseBody2$Outbound = {
3696
+ export type CreateToolResponseBody2$Outbound = {
3629
3697
  _id: string;
3630
3698
  path: string;
3631
3699
  key: string;
@@ -3644,12 +3712,12 @@ export type ResponseBody2$Outbound = {
3644
3712
  };
3645
3713
 
3646
3714
  /** @internal */
3647
- export const ResponseBody2$outboundSchema: z.ZodType<
3648
- ResponseBody2$Outbound,
3715
+ export const CreateToolResponseBody2$outboundSchema: z.ZodType<
3716
+ CreateToolResponseBody2$Outbound,
3649
3717
  z.ZodTypeDef,
3650
- ResponseBody2
3718
+ CreateToolResponseBody2
3651
3719
  > = z.object({
3652
- id: z.string().default("01K7GJX61SVTRTEJ6YNG9V5EHF"),
3720
+ id: z.string().default("01K7K4ZPHHAWGCQ8EVDTETSXTQ"),
3653
3721
  path: z.string(),
3654
3722
  key: z.string(),
3655
3723
  displayName: z.string(),
@@ -3681,26 +3749,30 @@ export const ResponseBody2$outboundSchema: z.ZodType<
3681
3749
  * @internal
3682
3750
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3683
3751
  */
3684
- export namespace ResponseBody2$ {
3685
- /** @deprecated use `ResponseBody2$inboundSchema` instead. */
3686
- export const inboundSchema = ResponseBody2$inboundSchema;
3687
- /** @deprecated use `ResponseBody2$outboundSchema` instead. */
3688
- export const outboundSchema = ResponseBody2$outboundSchema;
3689
- /** @deprecated use `ResponseBody2$Outbound` instead. */
3690
- export type Outbound = ResponseBody2$Outbound;
3752
+ export namespace CreateToolResponseBody2$ {
3753
+ /** @deprecated use `CreateToolResponseBody2$inboundSchema` instead. */
3754
+ export const inboundSchema = CreateToolResponseBody2$inboundSchema;
3755
+ /** @deprecated use `CreateToolResponseBody2$outboundSchema` instead. */
3756
+ export const outboundSchema = CreateToolResponseBody2$outboundSchema;
3757
+ /** @deprecated use `CreateToolResponseBody2$Outbound` instead. */
3758
+ export type Outbound = CreateToolResponseBody2$Outbound;
3691
3759
  }
3692
3760
 
3693
- export function responseBody2ToJSON(responseBody2: ResponseBody2): string {
3694
- return JSON.stringify(ResponseBody2$outboundSchema.parse(responseBody2));
3761
+ export function createToolResponseBody2ToJSON(
3762
+ createToolResponseBody2: CreateToolResponseBody2,
3763
+ ): string {
3764
+ return JSON.stringify(
3765
+ CreateToolResponseBody2$outboundSchema.parse(createToolResponseBody2),
3766
+ );
3695
3767
  }
3696
3768
 
3697
- export function responseBody2FromJSON(
3769
+ export function createToolResponseBody2FromJSON(
3698
3770
  jsonString: string,
3699
- ): SafeParseResult<ResponseBody2, SDKValidationError> {
3771
+ ): SafeParseResult<CreateToolResponseBody2, SDKValidationError> {
3700
3772
  return safeParse(
3701
3773
  jsonString,
3702
- (x) => ResponseBody2$inboundSchema.parse(JSON.parse(x)),
3703
- `Failed to parse 'ResponseBody2' from JSON`,
3774
+ (x) => CreateToolResponseBody2$inboundSchema.parse(JSON.parse(x)),
3775
+ `Failed to parse 'CreateToolResponseBody2' from JSON`,
3704
3776
  );
3705
3777
  }
3706
3778
 
@@ -3812,12 +3884,12 @@ export function createToolResponseBodyFunctionFromJSON(
3812
3884
  }
3813
3885
 
3814
3886
  /** @internal */
3815
- export const ResponseBody1$inboundSchema: z.ZodType<
3816
- ResponseBody1,
3887
+ export const CreateToolResponseBody1$inboundSchema: z.ZodType<
3888
+ CreateToolResponseBody1,
3817
3889
  z.ZodTypeDef,
3818
3890
  unknown
3819
3891
  > = z.object({
3820
- _id: z.string().default("01K7GJX61SSTG76AZY59K86B65"),
3892
+ _id: z.string().default("01K7K4ZPHHF67PBVHC0Z7GG2DX"),
3821
3893
  path: z.string(),
3822
3894
  key: z.string(),
3823
3895
  display_name: z.string(),
@@ -3845,7 +3917,7 @@ export const ResponseBody1$inboundSchema: z.ZodType<
3845
3917
  });
3846
3918
 
3847
3919
  /** @internal */
3848
- export type ResponseBody1$Outbound = {
3920
+ export type CreateToolResponseBody1$Outbound = {
3849
3921
  _id: string;
3850
3922
  path: string;
3851
3923
  key: string;
@@ -3864,12 +3936,12 @@ export type ResponseBody1$Outbound = {
3864
3936
  };
3865
3937
 
3866
3938
  /** @internal */
3867
- export const ResponseBody1$outboundSchema: z.ZodType<
3868
- ResponseBody1$Outbound,
3939
+ export const CreateToolResponseBody1$outboundSchema: z.ZodType<
3940
+ CreateToolResponseBody1$Outbound,
3869
3941
  z.ZodTypeDef,
3870
- ResponseBody1
3942
+ CreateToolResponseBody1
3871
3943
  > = z.object({
3872
- id: z.string().default("01K7GJX61SSTG76AZY59K86B65"),
3944
+ id: z.string().default("01K7K4ZPHHF67PBVHC0Z7GG2DX"),
3873
3945
  path: z.string(),
3874
3946
  key: z.string(),
3875
3947
  displayName: z.string(),
@@ -3900,26 +3972,30 @@ export const ResponseBody1$outboundSchema: z.ZodType<
3900
3972
  * @internal
3901
3973
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3902
3974
  */
3903
- export namespace ResponseBody1$ {
3904
- /** @deprecated use `ResponseBody1$inboundSchema` instead. */
3905
- export const inboundSchema = ResponseBody1$inboundSchema;
3906
- /** @deprecated use `ResponseBody1$outboundSchema` instead. */
3907
- export const outboundSchema = ResponseBody1$outboundSchema;
3908
- /** @deprecated use `ResponseBody1$Outbound` instead. */
3909
- export type Outbound = ResponseBody1$Outbound;
3975
+ export namespace CreateToolResponseBody1$ {
3976
+ /** @deprecated use `CreateToolResponseBody1$inboundSchema` instead. */
3977
+ export const inboundSchema = CreateToolResponseBody1$inboundSchema;
3978
+ /** @deprecated use `CreateToolResponseBody1$outboundSchema` instead. */
3979
+ export const outboundSchema = CreateToolResponseBody1$outboundSchema;
3980
+ /** @deprecated use `CreateToolResponseBody1$Outbound` instead. */
3981
+ export type Outbound = CreateToolResponseBody1$Outbound;
3910
3982
  }
3911
3983
 
3912
- export function responseBody1ToJSON(responseBody1: ResponseBody1): string {
3913
- return JSON.stringify(ResponseBody1$outboundSchema.parse(responseBody1));
3984
+ export function createToolResponseBody1ToJSON(
3985
+ createToolResponseBody1: CreateToolResponseBody1,
3986
+ ): string {
3987
+ return JSON.stringify(
3988
+ CreateToolResponseBody1$outboundSchema.parse(createToolResponseBody1),
3989
+ );
3914
3990
  }
3915
3991
 
3916
- export function responseBody1FromJSON(
3992
+ export function createToolResponseBody1FromJSON(
3917
3993
  jsonString: string,
3918
- ): SafeParseResult<ResponseBody1, SDKValidationError> {
3994
+ ): SafeParseResult<CreateToolResponseBody1, SDKValidationError> {
3919
3995
  return safeParse(
3920
3996
  jsonString,
3921
- (x) => ResponseBody1$inboundSchema.parse(JSON.parse(x)),
3922
- `Failed to parse 'ResponseBody1' from JSON`,
3997
+ (x) => CreateToolResponseBody1$inboundSchema.parse(JSON.parse(x)),
3998
+ `Failed to parse 'CreateToolResponseBody1' from JSON`,
3923
3999
  );
3924
4000
  }
3925
4001
 
@@ -3929,8 +4005,8 @@ export const CreateToolResponseBody$inboundSchema: z.ZodType<
3929
4005
  z.ZodTypeDef,
3930
4006
  unknown
3931
4007
  > = z.union([
3932
- z.lazy(() => ResponseBody1$inboundSchema),
3933
- z.lazy(() => ResponseBody2$inboundSchema),
4008
+ z.lazy(() => CreateToolResponseBody1$inboundSchema),
4009
+ z.lazy(() => CreateToolResponseBody2$inboundSchema),
3934
4010
  z.lazy(() => ResponseBody3$inboundSchema),
3935
4011
  z.lazy(() => ResponseBody4$inboundSchema),
3936
4012
  z.lazy(() => ResponseBody5$inboundSchema),
@@ -3938,8 +4014,8 @@ export const CreateToolResponseBody$inboundSchema: z.ZodType<
3938
4014
 
3939
4015
  /** @internal */
3940
4016
  export type CreateToolResponseBody$Outbound =
3941
- | ResponseBody1$Outbound
3942
- | ResponseBody2$Outbound
4017
+ | CreateToolResponseBody1$Outbound
4018
+ | CreateToolResponseBody2$Outbound
3943
4019
  | ResponseBody3$Outbound
3944
4020
  | ResponseBody4$Outbound
3945
4021
  | ResponseBody5$Outbound;
@@ -3950,8 +4026,8 @@ export const CreateToolResponseBody$outboundSchema: z.ZodType<
3950
4026
  z.ZodTypeDef,
3951
4027
  CreateToolResponseBody
3952
4028
  > = z.union([
3953
- z.lazy(() => ResponseBody1$outboundSchema),
3954
- z.lazy(() => ResponseBody2$outboundSchema),
4029
+ z.lazy(() => CreateToolResponseBody1$outboundSchema),
4030
+ z.lazy(() => CreateToolResponseBody2$outboundSchema),
3955
4031
  z.lazy(() => ResponseBody3$outboundSchema),
3956
4032
  z.lazy(() => ResponseBody4$outboundSchema),
3957
4033
  z.lazy(() => ResponseBody5$outboundSchema),
@@ -198,7 +198,6 @@ export type DeploymentCreateMetricMessagesDeploymentsMetricsContent =
198
198
  export const DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyRole =
199
199
  {
200
200
  Assistant: "assistant",
201
- Exception: "exception",
202
201
  } as const;
203
202
  /**
204
203
  * The role of the messages author, in this case `assistant` or `exception`.
@@ -702,7 +701,6 @@ export type DeploymentCreateMetricChoicesContent =
702
701
  */
703
702
  export const DeploymentCreateMetricChoicesDeploymentsMetricsRequestRole = {
704
703
  Assistant: "assistant",
705
- Exception: "exception",
706
704
  } as const;
707
705
  /**
708
706
  * The role of the messages author, in this case `assistant` or `exception`.