@orq-ai/node 3.13.3 → 3.13.4

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 (178) hide show
  1. package/bin/mcp-server.js +216 -246
  2. package/bin/mcp-server.js.map +42 -42
  3. package/docs/sdks/agents/README.md +3 -3
  4. package/examples/package-lock.json +1 -1
  5. package/funcs/agentsRetrieveTask.js +2 -2
  6. package/funcs/agentsRetrieveTask.js.map +1 -1
  7. package/jsr.json +1 -1
  8. package/lib/config.d.ts +3 -3
  9. package/lib/config.js +3 -3
  10. package/mcp-server/mcp-server.js +1 -1
  11. package/mcp-server/server.js +1 -1
  12. package/models/operations/createbudget.js +2 -2
  13. package/models/operations/createcontact.js +2 -2
  14. package/models/operations/createdataset.js +2 -2
  15. package/models/operations/createdatasetitem.js +2 -2
  16. package/models/operations/createdatasource.js +2 -2
  17. package/models/operations/createeval.js +28 -28
  18. package/models/operations/createtool.js +14 -14
  19. package/models/operations/duplicatetool.js +10 -10
  20. package/models/operations/fileget.js +2 -2
  21. package/models/operations/filelist.js +2 -2
  22. package/models/operations/fileupload.js +2 -2
  23. package/models/operations/getagent.d.ts +5 -2
  24. package/models/operations/getagent.d.ts.map +1 -1
  25. package/models/operations/getagent.js +4 -12
  26. package/models/operations/getagent.js.map +1 -1
  27. package/models/operations/getagenttask.d.ts +2 -2
  28. package/models/operations/getagenttask.d.ts.map +1 -1
  29. package/models/operations/getagenttask.js +4 -2
  30. package/models/operations/getagenttask.js.map +1 -1
  31. package/models/operations/getalltools.js +10 -10
  32. package/models/operations/getbudget.js +2 -2
  33. package/models/operations/getevals.js +28 -28
  34. package/models/operations/listagents.d.ts +5 -2
  35. package/models/operations/listagents.d.ts.map +1 -1
  36. package/models/operations/listagents.js +4 -12
  37. package/models/operations/listagents.js.map +1 -1
  38. package/models/operations/listbudgets.js +2 -2
  39. package/models/operations/listcontacts.js +2 -2
  40. package/models/operations/listdatasetdatapoints.js +2 -2
  41. package/models/operations/listdatasets.js +2 -2
  42. package/models/operations/listdatasources.js +2 -2
  43. package/models/operations/retrievecontact.js +2 -2
  44. package/models/operations/retrievedatapoint.js +2 -2
  45. package/models/operations/retrievedataset.js +2 -2
  46. package/models/operations/retrievedatasource.js +2 -2
  47. package/models/operations/retrievetool.js +10 -10
  48. package/models/operations/runagent.d.ts +5 -2
  49. package/models/operations/runagent.d.ts.map +1 -1
  50. package/models/operations/runagent.js +4 -12
  51. package/models/operations/runagent.js.map +1 -1
  52. package/models/operations/streamrunagent.d.ts +5 -2
  53. package/models/operations/streamrunagent.d.ts.map +1 -1
  54. package/models/operations/streamrunagent.js +4 -12
  55. package/models/operations/streamrunagent.js.map +1 -1
  56. package/models/operations/updatebudget.js +2 -2
  57. package/models/operations/updatecontact.js +2 -2
  58. package/models/operations/updatedatapoint.js +2 -2
  59. package/models/operations/updatedataset.js +2 -2
  60. package/models/operations/updatedatasource.js +2 -2
  61. package/models/operations/updateeval.js +28 -28
  62. package/models/operations/updatetool.js +14 -14
  63. package/package.json +1 -1
  64. package/packages/orq-rc/README.md +97 -91
  65. package/packages/orq-rc/docs/sdks/agents/README.md +3 -3
  66. package/packages/orq-rc/docs/sdks/knowledge/README.md +228 -0
  67. package/packages/orq-rc/docs/sdks/tools/README.md +14 -16
  68. package/packages/orq-rc/examples/package-lock.json +1 -1
  69. package/packages/orq-rc/jsr.json +1 -1
  70. package/packages/orq-rc/package-lock.json +2 -2
  71. package/packages/orq-rc/package.json +1 -1
  72. package/packages/orq-rc/src/funcs/agentsRetrieveTask.ts +2 -2
  73. package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +170 -0
  74. package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +170 -0
  75. package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +171 -0
  76. package/packages/orq-rc/src/funcs/toolsDelete.ts +2 -2
  77. package/packages/orq-rc/src/funcs/toolsDuplicate.ts +3 -3
  78. package/packages/orq-rc/src/funcs/toolsRetrieve.ts +3 -3
  79. package/packages/orq-rc/src/funcs/toolsUpdate.ts +2 -2
  80. package/packages/orq-rc/src/lib/config.ts +3 -3
  81. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  82. package/packages/orq-rc/src/mcp-server/server.ts +7 -1
  83. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunks.ts +35 -0
  84. package/packages/orq-rc/src/mcp-server/tools/knowledgeGetChunksCount.ts +35 -0
  85. package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunksPaginated.ts +35 -0
  86. package/packages/orq-rc/src/mcp-server/tools/toolsDuplicate.ts +1 -1
  87. package/packages/orq-rc/src/mcp-server/tools/toolsRetrieve.ts +1 -1
  88. package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
  89. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  90. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  91. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2 -2
  92. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  93. package/packages/orq-rc/src/models/operations/createeval.ts +28 -28
  94. package/packages/orq-rc/src/models/operations/createprompt.ts +8 -0
  95. package/packages/orq-rc/src/models/operations/createtool.ts +10 -22
  96. package/packages/orq-rc/src/models/operations/deletechunks.ts +243 -0
  97. package/packages/orq-rc/src/models/operations/deletetool.ts +6 -6
  98. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +4 -0
  99. package/packages/orq-rc/src/models/operations/deployments.ts +4 -0
  100. package/packages/orq-rc/src/models/operations/duplicatetool.ts +23 -15
  101. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  102. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  103. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  104. package/packages/orq-rc/src/models/operations/getagent.ts +9 -14
  105. package/packages/orq-rc/src/models/operations/getagenttask.ts +6 -4
  106. package/packages/orq-rc/src/models/operations/getallprompts.ts +4 -0
  107. package/packages/orq-rc/src/models/operations/getalltools.ts +10 -10
  108. package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
  109. package/packages/orq-rc/src/models/operations/getchunkscount.ts +230 -0
  110. package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
  111. package/packages/orq-rc/src/models/operations/getoneprompt.ts +4 -0
  112. package/packages/orq-rc/src/models/operations/getpromptversion.ts +4 -0
  113. package/packages/orq-rc/src/models/operations/index.ts +3 -0
  114. package/packages/orq-rc/src/models/operations/listagents.ts +9 -14
  115. package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
  116. package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +507 -0
  117. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  118. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
  119. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  120. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  121. package/packages/orq-rc/src/models/operations/listpromptversions.ts +4 -0
  122. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  123. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
  124. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  125. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  126. package/packages/orq-rc/src/models/operations/retrievetool.ts +16 -16
  127. package/packages/orq-rc/src/models/operations/runagent.ts +7 -18
  128. package/packages/orq-rc/src/models/operations/streamrunagent.ts +7 -18
  129. package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
  130. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  131. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
  132. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  133. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  134. package/packages/orq-rc/src/models/operations/updateeval.ts +28 -28
  135. package/packages/orq-rc/src/models/operations/updateprompt.ts +8 -0
  136. package/packages/orq-rc/src/models/operations/updatetool.ts +44 -28
  137. package/packages/orq-rc/src/sdk/knowledge.ts +45 -0
  138. package/packages/orq-rc/src/sdk/tools.ts +2 -2
  139. package/src/funcs/agentsRetrieveTask.ts +2 -2
  140. package/src/lib/config.ts +3 -3
  141. package/src/mcp-server/mcp-server.ts +1 -1
  142. package/src/mcp-server/server.ts +1 -1
  143. package/src/models/operations/createbudget.ts +2 -2
  144. package/src/models/operations/createcontact.ts +2 -2
  145. package/src/models/operations/createdataset.ts +2 -2
  146. package/src/models/operations/createdatasetitem.ts +2 -2
  147. package/src/models/operations/createdatasource.ts +2 -2
  148. package/src/models/operations/createeval.ts +28 -28
  149. package/src/models/operations/createtool.ts +14 -14
  150. package/src/models/operations/duplicatetool.ts +10 -10
  151. package/src/models/operations/fileget.ts +2 -2
  152. package/src/models/operations/filelist.ts +2 -2
  153. package/src/models/operations/fileupload.ts +2 -2
  154. package/src/models/operations/getagent.ts +9 -14
  155. package/src/models/operations/getagenttask.ts +6 -4
  156. package/src/models/operations/getalltools.ts +10 -10
  157. package/src/models/operations/getbudget.ts +2 -2
  158. package/src/models/operations/getevals.ts +28 -28
  159. package/src/models/operations/listagents.ts +9 -14
  160. package/src/models/operations/listbudgets.ts +2 -2
  161. package/src/models/operations/listcontacts.ts +2 -2
  162. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  163. package/src/models/operations/listdatasets.ts +2 -2
  164. package/src/models/operations/listdatasources.ts +2 -2
  165. package/src/models/operations/retrievecontact.ts +2 -2
  166. package/src/models/operations/retrievedatapoint.ts +2 -2
  167. package/src/models/operations/retrievedataset.ts +2 -2
  168. package/src/models/operations/retrievedatasource.ts +2 -2
  169. package/src/models/operations/retrievetool.ts +10 -10
  170. package/src/models/operations/runagent.ts +9 -14
  171. package/src/models/operations/streamrunagent.ts +9 -14
  172. package/src/models/operations/updatebudget.ts +2 -2
  173. package/src/models/operations/updatecontact.ts +2 -2
  174. package/src/models/operations/updatedatapoint.ts +2 -2
  175. package/src/models/operations/updatedataset.ts +2 -2
  176. package/src/models/operations/updatedatasource.ts +2 -2
  177. package/src/models/operations/updateeval.ts +28 -28
  178. package/src/models/operations/updatetool.ts +14 -14
@@ -162,6 +162,10 @@ export type UpdateToolRequestBody4 = {
162
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.
163
163
  */
164
164
  path?: string | undefined;
165
+ /**
166
+ * Unique key of the tool as it will be displayed in the UI
167
+ */
168
+ key?: string | undefined;
165
169
  /**
166
170
  * 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.
167
171
  */
@@ -290,11 +294,14 @@ export type UpdateToolRequestBodyHttp = {
290
294
  };
291
295
 
292
296
  export type UpdateToolRequestBody3 = {
293
- id?: string | undefined;
294
297
  /**
295
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.
296
299
  */
297
300
  path?: string | undefined;
301
+ /**
302
+ * Unique key of the tool as it will be displayed in the UI
303
+ */
304
+ key?: string | undefined;
298
305
  /**
299
306
  * 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.
300
307
  */
@@ -354,11 +361,14 @@ export type UpdateToolRequestBodyJsonSchema = {
354
361
  };
355
362
 
356
363
  export type UpdateToolRequestBody2 = {
357
- id?: string | undefined;
358
364
  /**
359
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.
360
366
  */
361
367
  path?: string | undefined;
368
+ /**
369
+ * Unique key of the tool as it will be displayed in the UI
370
+ */
371
+ key?: string | undefined;
362
372
  /**
363
373
  * 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.
364
374
  */
@@ -422,6 +432,10 @@ export type UpdateToolRequestBody1 = {
422
432
  * 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.
423
433
  */
424
434
  path?: string | undefined;
435
+ /**
436
+ * Unique key of the tool as it will be displayed in the UI
437
+ */
438
+ key?: string | undefined;
425
439
  /**
426
440
  * 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.
427
441
  */
@@ -449,7 +463,7 @@ export type UpdateToolRequestBody =
449
463
  | UpdateToolRequestBody3;
450
464
 
451
465
  export type UpdateToolRequest = {
452
- toolKey: string;
466
+ toolId: string;
453
467
  /**
454
468
  * The tool to update
455
469
  */
@@ -1500,6 +1514,7 @@ export const UpdateToolRequestBody4$inboundSchema: z.ZodType<
1500
1514
  unknown
1501
1515
  > = z.object({
1502
1516
  path: z.string().optional(),
1517
+ key: z.string().optional(),
1503
1518
  display_name: z.string(),
1504
1519
  description: z.string().optional(),
1505
1520
  status: UpdateToolRequestBodyToolsRequest4Status$inboundSchema.default(
@@ -1516,6 +1531,7 @@ export const UpdateToolRequestBody4$inboundSchema: z.ZodType<
1516
1531
  /** @internal */
1517
1532
  export type UpdateToolRequestBody4$Outbound = {
1518
1533
  path?: string | undefined;
1534
+ key?: string | undefined;
1519
1535
  display_name: string;
1520
1536
  description?: string | undefined;
1521
1537
  status: string;
@@ -1530,6 +1546,7 @@ export const UpdateToolRequestBody4$outboundSchema: z.ZodType<
1530
1546
  UpdateToolRequestBody4
1531
1547
  > = z.object({
1532
1548
  path: z.string().optional(),
1549
+ key: z.string().optional(),
1533
1550
  displayName: z.string(),
1534
1551
  description: z.string().optional(),
1535
1552
  status: UpdateToolRequestBodyToolsRequest4Status$outboundSchema.default(
@@ -1929,8 +1946,8 @@ export const UpdateToolRequestBody3$inboundSchema: z.ZodType<
1929
1946
  z.ZodTypeDef,
1930
1947
  unknown
1931
1948
  > = z.object({
1932
- _id: z.string().default("01K6J0GC59QVAMCZZ2MBHY7CYJ"),
1933
1949
  path: z.string().optional(),
1950
+ key: z.string().optional(),
1934
1951
  display_name: z.string().optional(),
1935
1952
  description: z.string().optional(),
1936
1953
  status: UpdateToolRequestBodyToolsRequestStatus$inboundSchema.default("live"),
@@ -1938,15 +1955,14 @@ export const UpdateToolRequestBody3$inboundSchema: z.ZodType<
1938
1955
  http: z.lazy(() => UpdateToolRequestBodyHttp$inboundSchema).optional(),
1939
1956
  }).transform((v) => {
1940
1957
  return remap$(v, {
1941
- "_id": "id",
1942
1958
  "display_name": "displayName",
1943
1959
  });
1944
1960
  });
1945
1961
 
1946
1962
  /** @internal */
1947
1963
  export type UpdateToolRequestBody3$Outbound = {
1948
- _id: string;
1949
1964
  path?: string | undefined;
1965
+ key?: string | undefined;
1950
1966
  display_name?: string | undefined;
1951
1967
  description?: string | undefined;
1952
1968
  status: string;
@@ -1960,8 +1976,8 @@ export const UpdateToolRequestBody3$outboundSchema: z.ZodType<
1960
1976
  z.ZodTypeDef,
1961
1977
  UpdateToolRequestBody3
1962
1978
  > = z.object({
1963
- id: z.string().default("01K6J0GC59QVAMCZZ2MBHY7CYJ"),
1964
1979
  path: z.string().optional(),
1980
+ key: z.string().optional(),
1965
1981
  displayName: z.string().optional(),
1966
1982
  description: z.string().optional(),
1967
1983
  status: UpdateToolRequestBodyToolsRequestStatus$outboundSchema.default(
@@ -1971,7 +1987,6 @@ export const UpdateToolRequestBody3$outboundSchema: z.ZodType<
1971
1987
  http: z.lazy(() => UpdateToolRequestBodyHttp$outboundSchema).optional(),
1972
1988
  }).transform((v) => {
1973
1989
  return remap$(v, {
1974
- id: "_id",
1975
1990
  displayName: "display_name",
1976
1991
  });
1977
1992
  });
@@ -2120,8 +2135,8 @@ export const UpdateToolRequestBody2$inboundSchema: z.ZodType<
2120
2135
  z.ZodTypeDef,
2121
2136
  unknown
2122
2137
  > = z.object({
2123
- _id: z.string().default("01K6J0GC59R6X261KSFE5AB71N"),
2124
2138
  path: z.string().optional(),
2139
+ key: z.string().optional(),
2125
2140
  display_name: z.string().optional(),
2126
2141
  description: z.string().optional(),
2127
2142
  status: UpdateToolRequestBodyToolsStatus$inboundSchema.default("live"),
@@ -2130,7 +2145,6 @@ export const UpdateToolRequestBody2$inboundSchema: z.ZodType<
2130
2145
  .optional(),
2131
2146
  }).transform((v) => {
2132
2147
  return remap$(v, {
2133
- "_id": "id",
2134
2148
  "display_name": "displayName",
2135
2149
  "json_schema": "jsonSchema",
2136
2150
  });
@@ -2138,8 +2152,8 @@ export const UpdateToolRequestBody2$inboundSchema: z.ZodType<
2138
2152
 
2139
2153
  /** @internal */
2140
2154
  export type UpdateToolRequestBody2$Outbound = {
2141
- _id: string;
2142
2155
  path?: string | undefined;
2156
+ key?: string | undefined;
2143
2157
  display_name?: string | undefined;
2144
2158
  description?: string | undefined;
2145
2159
  status: string;
@@ -2153,8 +2167,8 @@ export const UpdateToolRequestBody2$outboundSchema: z.ZodType<
2153
2167
  z.ZodTypeDef,
2154
2168
  UpdateToolRequestBody2
2155
2169
  > = z.object({
2156
- id: z.string().default("01K6J0GC59R6X261KSFE5AB71N"),
2157
2170
  path: z.string().optional(),
2171
+ key: z.string().optional(),
2158
2172
  displayName: z.string().optional(),
2159
2173
  description: z.string().optional(),
2160
2174
  status: UpdateToolRequestBodyToolsStatus$outboundSchema.default("live"),
@@ -2163,7 +2177,6 @@ export const UpdateToolRequestBody2$outboundSchema: z.ZodType<
2163
2177
  .optional(),
2164
2178
  }).transform((v) => {
2165
2179
  return remap$(v, {
2166
- id: "_id",
2167
2180
  displayName: "display_name",
2168
2181
  jsonSchema: "json_schema",
2169
2182
  });
@@ -2314,6 +2327,7 @@ export const UpdateToolRequestBody1$inboundSchema: z.ZodType<
2314
2327
  unknown
2315
2328
  > = z.object({
2316
2329
  path: z.string().optional(),
2330
+ key: z.string().optional(),
2317
2331
  display_name: z.string().optional(),
2318
2332
  description: z.string().optional(),
2319
2333
  status: UpdateToolRequestBodyStatus$inboundSchema.default("live"),
@@ -2329,6 +2343,7 @@ export const UpdateToolRequestBody1$inboundSchema: z.ZodType<
2329
2343
  /** @internal */
2330
2344
  export type UpdateToolRequestBody1$Outbound = {
2331
2345
  path?: string | undefined;
2346
+ key?: string | undefined;
2332
2347
  display_name?: string | undefined;
2333
2348
  description?: string | undefined;
2334
2349
  status: string;
@@ -2343,6 +2358,7 @@ export const UpdateToolRequestBody1$outboundSchema: z.ZodType<
2343
2358
  UpdateToolRequestBody1
2344
2359
  > = z.object({
2345
2360
  path: z.string().optional(),
2361
+ key: z.string().optional(),
2346
2362
  displayName: z.string().optional(),
2347
2363
  description: z.string().optional(),
2348
2364
  status: UpdateToolRequestBodyStatus$outboundSchema.default("live"),
@@ -2457,7 +2473,7 @@ export const UpdateToolRequest$inboundSchema: z.ZodType<
2457
2473
  z.ZodTypeDef,
2458
2474
  unknown
2459
2475
  > = z.object({
2460
- tool_key: z.string(),
2476
+ tool_id: z.string(),
2461
2477
  RequestBody: z.union([
2462
2478
  z.lazy(() => UpdateToolRequestBody4$inboundSchema),
2463
2479
  z.lazy(() => UpdateToolRequestBody5$inboundSchema),
@@ -2467,14 +2483,14 @@ export const UpdateToolRequest$inboundSchema: z.ZodType<
2467
2483
  ]).optional(),
2468
2484
  }).transform((v) => {
2469
2485
  return remap$(v, {
2470
- "tool_key": "toolKey",
2486
+ "tool_id": "toolId",
2471
2487
  "RequestBody": "requestBody",
2472
2488
  });
2473
2489
  });
2474
2490
 
2475
2491
  /** @internal */
2476
2492
  export type UpdateToolRequest$Outbound = {
2477
- tool_key: string;
2493
+ tool_id: string;
2478
2494
  RequestBody?:
2479
2495
  | UpdateToolRequestBody4$Outbound
2480
2496
  | UpdateToolRequestBody5$Outbound
@@ -2490,7 +2506,7 @@ export const UpdateToolRequest$outboundSchema: z.ZodType<
2490
2506
  z.ZodTypeDef,
2491
2507
  UpdateToolRequest
2492
2508
  > = z.object({
2493
- toolKey: z.string(),
2509
+ toolId: z.string(),
2494
2510
  requestBody: z.union([
2495
2511
  z.lazy(() => UpdateToolRequestBody4$outboundSchema),
2496
2512
  z.lazy(() => UpdateToolRequestBody5$outboundSchema),
@@ -2500,7 +2516,7 @@ export const UpdateToolRequest$outboundSchema: z.ZodType<
2500
2516
  ]).optional(),
2501
2517
  }).transform((v) => {
2502
2518
  return remap$(v, {
2503
- toolKey: "tool_key",
2519
+ toolId: "tool_id",
2504
2520
  requestBody: "RequestBody",
2505
2521
  });
2506
2522
  });
@@ -2675,7 +2691,7 @@ export const UpdateToolResponseBody5$inboundSchema: z.ZodType<
2675
2691
  z.ZodTypeDef,
2676
2692
  unknown
2677
2693
  > = z.object({
2678
- _id: z.string().default("01K6J0GC58P386EETHEFBH5JNG"),
2694
+ _id: z.string().default("01K6MDVPTNPB7VCPGCM77J2THH"),
2679
2695
  path: z.string(),
2680
2696
  key: z.string(),
2681
2697
  display_name: z.string(),
@@ -2730,7 +2746,7 @@ export const UpdateToolResponseBody5$outboundSchema: z.ZodType<
2730
2746
  z.ZodTypeDef,
2731
2747
  UpdateToolResponseBody5
2732
2748
  > = z.object({
2733
- id: z.string().default("01K6J0GC58P386EETHEFBH5JNG"),
2749
+ id: z.string().default("01K6MDVPTNPB7VCPGCM77J2THH"),
2734
2750
  path: z.string(),
2735
2751
  key: z.string(),
2736
2752
  displayName: z.string(),
@@ -3104,7 +3120,7 @@ export const UpdateToolResponseBody4$inboundSchema: z.ZodType<
3104
3120
  z.ZodTypeDef,
3105
3121
  unknown
3106
3122
  > = z.object({
3107
- _id: z.string().default("01K6J0GC58GF0K8VK9A6G1WEEN"),
3123
+ _id: z.string().default("01K6MDVPTM6HRTBDX27Z3Q5HET"),
3108
3124
  path: z.string(),
3109
3125
  key: z.string(),
3110
3126
  display_name: z.string(),
@@ -3158,7 +3174,7 @@ export const UpdateToolResponseBody4$outboundSchema: z.ZodType<
3158
3174
  z.ZodTypeDef,
3159
3175
  UpdateToolResponseBody4
3160
3176
  > = z.object({
3161
- id: z.string().default("01K6J0GC58GF0K8VK9A6G1WEEN"),
3177
+ id: z.string().default("01K6MDVPTM6HRTBDX27Z3Q5HET"),
3162
3178
  path: z.string(),
3163
3179
  key: z.string(),
3164
3180
  displayName: z.string(),
@@ -3576,7 +3592,7 @@ export const UpdateToolResponseBody3$inboundSchema: z.ZodType<
3576
3592
  z.ZodTypeDef,
3577
3593
  unknown
3578
3594
  > = z.object({
3579
- _id: z.string().default("01K6J0GC578EFQ51ER8AMD587D"),
3595
+ _id: z.string().default("01K6MDVPTM1Z13TJ1D9FDKB35R"),
3580
3596
  path: z.string(),
3581
3597
  key: z.string(),
3582
3598
  display_name: z.string(),
@@ -3630,7 +3646,7 @@ export const UpdateToolResponseBody3$outboundSchema: z.ZodType<
3630
3646
  z.ZodTypeDef,
3631
3647
  UpdateToolResponseBody3
3632
3648
  > = z.object({
3633
- id: z.string().default("01K6J0GC578EFQ51ER8AMD587D"),
3649
+ id: z.string().default("01K6MDVPTM1Z13TJ1D9FDKB35R"),
3634
3650
  path: z.string(),
3635
3651
  key: z.string(),
3636
3652
  displayName: z.string(),
@@ -3804,7 +3820,7 @@ export const UpdateToolResponseBody2$inboundSchema: z.ZodType<
3804
3820
  z.ZodTypeDef,
3805
3821
  unknown
3806
3822
  > = z.object({
3807
- _id: z.string().default("01K6J0GC57SHHBNHHZ0092N969"),
3823
+ _id: z.string().default("01K6MDVPTM6TND4MEXHHVA6F6F"),
3808
3824
  path: z.string(),
3809
3825
  key: z.string(),
3810
3826
  display_name: z.string(),
@@ -3857,7 +3873,7 @@ export const UpdateToolResponseBody2$outboundSchema: z.ZodType<
3857
3873
  z.ZodTypeDef,
3858
3874
  UpdateToolResponseBody2
3859
3875
  > = z.object({
3860
- id: z.string().default("01K6J0GC57SHHBNHHZ0092N969"),
3876
+ id: z.string().default("01K6MDVPTM6TND4MEXHHVA6F6F"),
3861
3877
  path: z.string(),
3862
3878
  key: z.string(),
3863
3879
  displayName: z.string(),
@@ -4029,7 +4045,7 @@ export const UpdateToolResponseBody1$inboundSchema: z.ZodType<
4029
4045
  z.ZodTypeDef,
4030
4046
  unknown
4031
4047
  > = z.object({
4032
- _id: z.string().default("01K6J0GC56G7RQEXJRHWP1HX3N"),
4048
+ _id: z.string().default("01K6MDVPTKHAST2NDDM39EXHA8"),
4033
4049
  path: z.string(),
4034
4050
  key: z.string(),
4035
4051
  display_name: z.string(),
@@ -4081,7 +4097,7 @@ export const UpdateToolResponseBody1$outboundSchema: z.ZodType<
4081
4097
  z.ZodTypeDef,
4082
4098
  UpdateToolResponseBody1
4083
4099
  > = z.object({
4084
- id: z.string().default("01K6J0GC56G7RQEXJRHWP1HX3N"),
4100
+ id: z.string().default("01K6MDVPTKHAST2NDDM39EXHA8"),
4085
4101
  path: z.string(),
4086
4102
  key: z.string(),
4087
4103
  displayName: z.string(),
@@ -7,9 +7,12 @@ import { knowledgeCreateChunks } from "../funcs/knowledgeCreateChunks.js";
7
7
  import { knowledgeCreateDatasource } from "../funcs/knowledgeCreateDatasource.js";
8
8
  import { knowledgeDelete } from "../funcs/knowledgeDelete.js";
9
9
  import { knowledgeDeleteChunk } from "../funcs/knowledgeDeleteChunk.js";
10
+ import { knowledgeDeleteChunks } from "../funcs/knowledgeDeleteChunks.js";
10
11
  import { knowledgeDeleteDatasource } from "../funcs/knowledgeDeleteDatasource.js";
12
+ import { knowledgeGetChunksCount } from "../funcs/knowledgeGetChunksCount.js";
11
13
  import { knowledgeList } from "../funcs/knowledgeList.js";
12
14
  import { knowledgeListChunks } from "../funcs/knowledgeListChunks.js";
15
+ import { knowledgeListChunksPaginated } from "../funcs/knowledgeListChunksPaginated.js";
13
16
  import { knowledgeListDatasources } from "../funcs/knowledgeListDatasources.js";
14
17
  import { knowledgeRetrieve } from "../funcs/knowledgeRetrieve.js";
15
18
  import { knowledgeRetrieveChunk } from "../funcs/knowledgeRetrieveChunk.js";
@@ -220,6 +223,48 @@ export class Knowledge extends ClientSDK {
220
223
  ));
221
224
  }
222
225
 
226
+ /**
227
+ * Delete multiple chunks
228
+ */
229
+ async deleteChunks(
230
+ request: operations.DeleteChunksRequest,
231
+ options?: RequestOptions,
232
+ ): Promise<operations.DeleteChunksResponseBody> {
233
+ return unwrapAsync(knowledgeDeleteChunks(
234
+ this,
235
+ request,
236
+ options,
237
+ ));
238
+ }
239
+
240
+ /**
241
+ * List chunks with offset-based pagination
242
+ */
243
+ async listChunksPaginated(
244
+ request: operations.ListChunksPaginatedRequest,
245
+ options?: RequestOptions,
246
+ ): Promise<operations.ListChunksPaginatedResponseBody> {
247
+ return unwrapAsync(knowledgeListChunksPaginated(
248
+ this,
249
+ request,
250
+ options,
251
+ ));
252
+ }
253
+
254
+ /**
255
+ * Get chunks total count
256
+ */
257
+ async getChunksCount(
258
+ request: operations.GetChunksCountRequest,
259
+ options?: RequestOptions,
260
+ ): Promise<operations.GetChunksCountResponseBody> {
261
+ return unwrapAsync(knowledgeGetChunksCount(
262
+ this,
263
+ request,
264
+ options,
265
+ ));
266
+ }
267
+
223
268
  /**
224
269
  * Update a chunk
225
270
  */
@@ -85,7 +85,7 @@ export class Tools extends ClientSDK {
85
85
  * Retrieve tool
86
86
  *
87
87
  * @remarks
88
- * Retrieves a tool by key.
88
+ * Retrieves a tool by id.
89
89
  */
90
90
  async retrieve(
91
91
  request: operations.RetrieveToolRequest,
@@ -102,7 +102,7 @@ export class Tools extends ClientSDK {
102
102
  * Duplicate tool
103
103
  *
104
104
  * @remarks
105
- * Creates a copy of an existing tool with a new key and ID.
105
+ * Creates a copy of an existing tool with a new id and ID.
106
106
  */
107
107
  async duplicate(
108
108
  request: operations.DuplicateToolRequest,
@@ -89,7 +89,7 @@ async function $do(
89
89
  const body = null;
90
90
 
91
91
  const pathParams = {
92
- id: encodeSimple("id", payload.id, {
92
+ agent_key: encodeSimple("agent_key", payload.agent_key, {
93
93
  explode: false,
94
94
  charEncoding: "percent",
95
95
  }),
@@ -99,7 +99,7 @@ async function $do(
99
99
  }),
100
100
  };
101
101
 
102
- const path = pathToFunc("/v2/agents/{id}/tasks/{task_id}")(pathParams);
102
+ const path = pathToFunc("/v2/agents/{agent_key}/tasks/{task_id}")(pathParams);
103
103
 
104
104
  const headers = new Headers(compactMap({
105
105
  Accept: "application/json",
package/src/lib/config.ts CHANGED
@@ -68,7 +68,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
68
68
  export const SDK_METADATA = {
69
69
  language: "typescript",
70
70
  openapiDocVersion: "2.0",
71
- sdkVersion: "3.13.3",
72
- genVersion: "2.720.1",
73
- userAgent: "speakeasy-sdk/typescript 3.13.3 2.720.1 2.0 @orq-ai/node",
71
+ sdkVersion: "3.13.4",
72
+ genVersion: "2.721.0",
73
+ userAgent: "speakeasy-sdk/typescript 3.13.4 2.721.0 2.0 @orq-ai/node",
74
74
  } as const;
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "3.13.3",
22
+ currentVersion: "3.13.4",
23
23
  },
24
24
  });
25
25
 
@@ -153,7 +153,7 @@ export function createMCPServer(deps: {
153
153
  }) {
154
154
  const server = new McpServer({
155
155
  name: "Orq",
156
- version: "3.13.3",
156
+ version: "3.13.4",
157
157
  });
158
158
 
159
159
  const client = new OrqCore({
@@ -658,7 +658,7 @@ export const CreateBudgetResponseBody$inboundSchema: z.ZodType<
658
658
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
659
659
  .optional(),
660
660
  updated: z.string().datetime({ offset: true }).default(
661
- "2025-10-02T09:08:24.976Z",
661
+ "2025-10-03T07:40:54.894Z",
662
662
  ).transform(v => new Date(v)),
663
663
  }).transform((v) => {
664
664
  return remap$(v, {
@@ -693,7 +693,7 @@ export const CreateBudgetResponseBody$outboundSchema: z.ZodType<
693
693
  isActive: z.boolean(),
694
694
  consumption: z.lazy(() => Consumption$outboundSchema).optional(),
695
695
  created: z.date().transform(v => v.toISOString()).optional(),
696
- updated: z.date().default(() => new Date("2025-10-02T09:08:24.976Z"))
696
+ updated: z.date().default(() => new Date("2025-10-03T07:40:54.894Z"))
697
697
  .transform(v => v.toISOString()),
698
698
  }).transform((v) => {
699
699
  return remap$(v, {
@@ -182,7 +182,7 @@ export const CreateContactResponseBody$inboundSchema: z.ZodType<
182
182
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
183
183
  .optional(),
184
184
  updated: z.string().datetime({ offset: true }).default(
185
- "2025-10-02T09:08:24.976Z",
185
+ "2025-10-03T07:40:54.894Z",
186
186
  ).transform(v => new Date(v)),
187
187
  }).transform((v) => {
188
188
  return remap$(v, {
@@ -223,7 +223,7 @@ export const CreateContactResponseBody$outboundSchema: z.ZodType<
223
223
  tags: z.array(z.string()).optional(),
224
224
  metadata: z.record(z.any()).optional(),
225
225
  created: z.date().transform(v => v.toISOString()).optional(),
226
- updated: z.date().default(() => new Date("2025-10-02T09:08:24.976Z"))
226
+ updated: z.date().default(() => new Date("2025-10-03T07:40:54.894Z"))
227
227
  .transform(v => v.toISOString()),
228
228
  }).transform((v) => {
229
229
  return remap$(v, {
@@ -211,7 +211,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
211
211
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
212
212
  .optional(),
213
213
  updated: z.string().datetime({ offset: true }).default(
214
- "2025-10-02T09:08:24.976Z",
214
+ "2025-10-03T07:40:54.894Z",
215
215
  ).transform(v => new Date(v)),
216
216
  }).transform((v) => {
217
217
  return remap$(v, {
@@ -251,7 +251,7 @@ export const CreateDatasetResponseBody$outboundSchema: z.ZodType<
251
251
  updatedById: z.string().optional(),
252
252
  metadata: z.lazy(() => CreateDatasetMetadata$outboundSchema),
253
253
  created: z.date().transform(v => v.toISOString()).optional(),
254
- updated: z.date().default(() => new Date("2025-10-02T09:08:24.976Z"))
254
+ updated: z.date().default(() => new Date("2025-10-03T07:40:54.894Z"))
255
255
  .transform(v => v.toISOString()),
256
256
  }).transform((v) => {
257
257
  return remap$(v, {
@@ -6083,7 +6083,7 @@ export const ResponseBody$inboundSchema: z.ZodType<
6083
6083
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
6084
6084
  .optional(),
6085
6085
  updated: z.string().datetime({ offset: true }).default(
6086
- "2025-10-02T09:08:24.976Z",
6086
+ "2025-10-03T07:40:54.894Z",
6087
6087
  ).transform(v => new Date(v)),
6088
6088
  }).transform((v) => {
6089
6089
  return remap$(v, {
@@ -6147,7 +6147,7 @@ export const ResponseBody$outboundSchema: z.ZodType<
6147
6147
  createdById: z.string().optional(),
6148
6148
  updatedById: z.string().optional(),
6149
6149
  created: z.date().transform(v => v.toISOString()).optional(),
6150
- updated: z.date().default(() => new Date("2025-10-02T09:08:24.976Z"))
6150
+ updated: z.date().default(() => new Date("2025-10-03T07:40:54.894Z"))
6151
6151
  .transform(v => v.toISOString()),
6152
6152
  }).transform((v) => {
6153
6153
  return remap$(v, {
@@ -751,7 +751,7 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
751
751
  z.ZodTypeDef,
752
752
  unknown
753
753
  > = z.object({
754
- _id: z.string().default("01K6J2WBV7SM3FQ4Y3H5B8Z46X"),
754
+ _id: z.string().default("01K6MG8W2198SHS9RAB4PY90JN"),
755
755
  display_name: z.string(),
756
756
  description: z.string().optional(),
757
757
  status: CreateDatasourceStatus$inboundSchema,
@@ -795,7 +795,7 @@ export const CreateDatasourceResponseBody$outboundSchema: z.ZodType<
795
795
  z.ZodTypeDef,
796
796
  CreateDatasourceResponseBody
797
797
  > = z.object({
798
- id: z.string().default("01K6J2WBV7SM3FQ4Y3H5B8Z46X"),
798
+ id: z.string().default("01K6MG8W2198SHS9RAB4PY90JN"),
799
799
  displayName: z.string(),
800
800
  description: z.string().optional(),
801
801
  status: CreateDatasourceStatus$outboundSchema,