@orq-ai/node 3.13.3 → 3.13.5

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 (187) 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 +102 -93
  65. package/packages/orq-rc/docs/sdks/agents/README.md +97 -22
  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/agentsListTasks.ts +183 -0
  73. package/packages/orq-rc/src/funcs/agentsRetrieve.ts +3 -3
  74. package/packages/orq-rc/src/funcs/agentsRetrieveTask.ts +2 -2
  75. package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +170 -0
  76. package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +170 -0
  77. package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +171 -0
  78. package/packages/orq-rc/src/funcs/toolsDelete.ts +2 -2
  79. package/packages/orq-rc/src/funcs/toolsDuplicate.ts +3 -3
  80. package/packages/orq-rc/src/funcs/toolsRetrieve.ts +3 -3
  81. package/packages/orq-rc/src/funcs/toolsUpdate.ts +2 -2
  82. package/packages/orq-rc/src/lib/config.ts +3 -3
  83. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  84. package/packages/orq-rc/src/mcp-server/server.ts +10 -2
  85. package/packages/orq-rc/src/mcp-server/tools/agentsListTasks.ts +37 -0
  86. package/packages/orq-rc/src/mcp-server/tools/agentsRetrieve.ts +1 -1
  87. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunks.ts +35 -0
  88. package/packages/orq-rc/src/mcp-server/tools/knowledgeGetChunksCount.ts +35 -0
  89. package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunksPaginated.ts +35 -0
  90. package/packages/orq-rc/src/mcp-server/tools/toolsDuplicate.ts +1 -1
  91. package/packages/orq-rc/src/mcp-server/tools/toolsRetrieve.ts +1 -1
  92. package/packages/orq-rc/src/models/errors/index.ts +1 -0
  93. package/packages/orq-rc/src/models/errors/listagenttasks.ts +80 -0
  94. package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
  95. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  96. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  97. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2 -2
  98. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  99. package/packages/orq-rc/src/models/operations/createeval.ts +28 -28
  100. package/packages/orq-rc/src/models/operations/createprompt.ts +8 -0
  101. package/packages/orq-rc/src/models/operations/createtool.ts +10 -22
  102. package/packages/orq-rc/src/models/operations/deletechunks.ts +243 -0
  103. package/packages/orq-rc/src/models/operations/deletetool.ts +6 -6
  104. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +4 -0
  105. package/packages/orq-rc/src/models/operations/deployments.ts +4 -0
  106. package/packages/orq-rc/src/models/operations/duplicatetool.ts +23 -15
  107. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  108. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  109. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  110. package/packages/orq-rc/src/models/operations/getagent.ts +30 -27
  111. package/packages/orq-rc/src/models/operations/getagenttask.ts +6 -4
  112. package/packages/orq-rc/src/models/operations/getallprompts.ts +4 -0
  113. package/packages/orq-rc/src/models/operations/getalltools.ts +10 -10
  114. package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
  115. package/packages/orq-rc/src/models/operations/getchunkscount.ts +230 -0
  116. package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
  117. package/packages/orq-rc/src/models/operations/getoneprompt.ts +4 -0
  118. package/packages/orq-rc/src/models/operations/getpromptversion.ts +4 -0
  119. package/packages/orq-rc/src/models/operations/index.ts +4 -0
  120. package/packages/orq-rc/src/models/operations/listagents.ts +17 -22
  121. package/packages/orq-rc/src/models/operations/listagenttasks.ts +1099 -0
  122. package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
  123. package/packages/orq-rc/src/models/operations/listchunks.ts +21 -21
  124. package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +507 -0
  125. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  126. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
  127. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  128. package/packages/orq-rc/src/models/operations/listdatasources.ts +29 -22
  129. package/packages/orq-rc/src/models/operations/listpromptversions.ts +4 -0
  130. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  131. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
  132. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  133. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  134. package/packages/orq-rc/src/models/operations/retrievetool.ts +16 -16
  135. package/packages/orq-rc/src/models/operations/runagent.ts +7 -18
  136. package/packages/orq-rc/src/models/operations/streamrunagent.ts +7 -18
  137. package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
  138. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  139. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
  140. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  141. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  142. package/packages/orq-rc/src/models/operations/updateeval.ts +28 -28
  143. package/packages/orq-rc/src/models/operations/updateprompt.ts +8 -0
  144. package/packages/orq-rc/src/models/operations/updatetool.ts +44 -28
  145. package/packages/orq-rc/src/sdk/agents.ts +25 -7
  146. package/packages/orq-rc/src/sdk/knowledge.ts +45 -0
  147. package/packages/orq-rc/src/sdk/tools.ts +2 -2
  148. package/src/funcs/agentsRetrieveTask.ts +2 -2
  149. package/src/lib/config.ts +3 -3
  150. package/src/mcp-server/mcp-server.ts +1 -1
  151. package/src/mcp-server/server.ts +1 -1
  152. package/src/models/operations/createbudget.ts +2 -2
  153. package/src/models/operations/createcontact.ts +2 -2
  154. package/src/models/operations/createdataset.ts +2 -2
  155. package/src/models/operations/createdatasetitem.ts +2 -2
  156. package/src/models/operations/createdatasource.ts +2 -2
  157. package/src/models/operations/createeval.ts +28 -28
  158. package/src/models/operations/createtool.ts +14 -14
  159. package/src/models/operations/duplicatetool.ts +10 -10
  160. package/src/models/operations/fileget.ts +2 -2
  161. package/src/models/operations/filelist.ts +2 -2
  162. package/src/models/operations/fileupload.ts +2 -2
  163. package/src/models/operations/getagent.ts +9 -14
  164. package/src/models/operations/getagenttask.ts +6 -4
  165. package/src/models/operations/getalltools.ts +10 -10
  166. package/src/models/operations/getbudget.ts +2 -2
  167. package/src/models/operations/getevals.ts +28 -28
  168. package/src/models/operations/listagents.ts +9 -14
  169. package/src/models/operations/listbudgets.ts +2 -2
  170. package/src/models/operations/listcontacts.ts +2 -2
  171. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  172. package/src/models/operations/listdatasets.ts +2 -2
  173. package/src/models/operations/listdatasources.ts +2 -2
  174. package/src/models/operations/retrievecontact.ts +2 -2
  175. package/src/models/operations/retrievedatapoint.ts +2 -2
  176. package/src/models/operations/retrievedataset.ts +2 -2
  177. package/src/models/operations/retrievedatasource.ts +2 -2
  178. package/src/models/operations/retrievetool.ts +10 -10
  179. package/src/models/operations/runagent.ts +9 -14
  180. package/src/models/operations/streamrunagent.ts +9 -14
  181. package/src/models/operations/updatebudget.ts +2 -2
  182. package/src/models/operations/updatecontact.ts +2 -2
  183. package/src/models/operations/updatedatapoint.ts +2 -2
  184. package/src/models/operations/updatedataset.ts +2 -2
  185. package/src/models/operations/updatedatasource.ts +2 -2
  186. package/src/models/operations/updateeval.ts +28 -28
  187. package/src/models/operations/updatetool.ts +14 -14
@@ -12,7 +12,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
12
  /**
13
13
  * Filter datasources by status.
14
14
  */
15
- export type Status = Array<string> | string;
15
+ export type QueryParamStatus = Array<string> | string;
16
16
 
17
17
  export type ListDatasourcesRequest = {
18
18
  /**
@@ -109,43 +109,50 @@ export type ListDatasourcesResponseBody = {
109
109
  };
110
110
 
111
111
  /** @internal */
112
- export const Status$inboundSchema: z.ZodType<Status, z.ZodTypeDef, unknown> = z
113
- .union([z.array(z.string()), z.string()]);
112
+ export const QueryParamStatus$inboundSchema: z.ZodType<
113
+ QueryParamStatus,
114
+ z.ZodTypeDef,
115
+ unknown
116
+ > = z.union([z.array(z.string()), z.string()]);
114
117
 
115
118
  /** @internal */
116
- export type Status$Outbound = Array<string> | string;
119
+ export type QueryParamStatus$Outbound = Array<string> | string;
117
120
 
118
121
  /** @internal */
119
- export const Status$outboundSchema: z.ZodType<
120
- Status$Outbound,
122
+ export const QueryParamStatus$outboundSchema: z.ZodType<
123
+ QueryParamStatus$Outbound,
121
124
  z.ZodTypeDef,
122
- Status
125
+ QueryParamStatus
123
126
  > = z.union([z.array(z.string()), z.string()]);
124
127
 
125
128
  /**
126
129
  * @internal
127
130
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
128
131
  */
129
- export namespace Status$ {
130
- /** @deprecated use `Status$inboundSchema` instead. */
131
- export const inboundSchema = Status$inboundSchema;
132
- /** @deprecated use `Status$outboundSchema` instead. */
133
- export const outboundSchema = Status$outboundSchema;
134
- /** @deprecated use `Status$Outbound` instead. */
135
- export type Outbound = Status$Outbound;
132
+ export namespace QueryParamStatus$ {
133
+ /** @deprecated use `QueryParamStatus$inboundSchema` instead. */
134
+ export const inboundSchema = QueryParamStatus$inboundSchema;
135
+ /** @deprecated use `QueryParamStatus$outboundSchema` instead. */
136
+ export const outboundSchema = QueryParamStatus$outboundSchema;
137
+ /** @deprecated use `QueryParamStatus$Outbound` instead. */
138
+ export type Outbound = QueryParamStatus$Outbound;
136
139
  }
137
140
 
138
- export function statusToJSON(status: Status): string {
139
- return JSON.stringify(Status$outboundSchema.parse(status));
141
+ export function queryParamStatusToJSON(
142
+ queryParamStatus: QueryParamStatus,
143
+ ): string {
144
+ return JSON.stringify(
145
+ QueryParamStatus$outboundSchema.parse(queryParamStatus),
146
+ );
140
147
  }
141
148
 
142
- export function statusFromJSON(
149
+ export function queryParamStatusFromJSON(
143
150
  jsonString: string,
144
- ): SafeParseResult<Status, SDKValidationError> {
151
+ ): SafeParseResult<QueryParamStatus, SDKValidationError> {
145
152
  return safeParse(
146
153
  jsonString,
147
- (x) => Status$inboundSchema.parse(JSON.parse(x)),
148
- `Failed to parse 'Status' from JSON`,
154
+ (x) => QueryParamStatus$inboundSchema.parse(JSON.parse(x)),
155
+ `Failed to parse 'QueryParamStatus' from JSON`,
149
156
  );
150
157
  }
151
158
 
@@ -278,7 +285,7 @@ export const ListDatasourcesData$inboundSchema: z.ZodType<
278
285
  z.ZodTypeDef,
279
286
  unknown
280
287
  > = z.object({
281
- _id: z.string().default("01K6J0GC1C7PFPJZ88ZY8B0W98"),
288
+ _id: z.string().default("01K6N5KY0ZBGY6P4YQE7D30BJ4"),
282
289
  display_name: z.string(),
283
290
  description: z.string().optional(),
284
291
  status: ListDatasourcesStatus$inboundSchema,
@@ -322,7 +329,7 @@ export const ListDatasourcesData$outboundSchema: z.ZodType<
322
329
  z.ZodTypeDef,
323
330
  ListDatasourcesData
324
331
  > = z.object({
325
- id: z.string().default("01K6J0GC1C7PFPJZ88ZY8B0W98"),
332
+ id: z.string().default("01K6N5KY0ZBGY6P4YQE7D30BJ4"),
326
333
  displayName: z.string(),
327
334
  description: z.string().optional(),
328
335
  status: ListDatasourcesStatus$outboundSchema,
@@ -131,6 +131,7 @@ export type ListPromptVersions1Type = ClosedEnum<
131
131
 
132
132
  export type ListPromptVersions1JsonSchema = {
133
133
  name: string;
134
+ description?: string | undefined;
134
135
  strict?: boolean | undefined;
135
136
  schema: { [k: string]: any };
136
137
  };
@@ -981,6 +982,7 @@ export const ListPromptVersions1JsonSchema$inboundSchema: z.ZodType<
981
982
  unknown
982
983
  > = z.object({
983
984
  name: z.string(),
985
+ description: z.string().optional(),
984
986
  strict: z.boolean().optional(),
985
987
  schema: z.record(z.any()),
986
988
  });
@@ -988,6 +990,7 @@ export const ListPromptVersions1JsonSchema$inboundSchema: z.ZodType<
988
990
  /** @internal */
989
991
  export type ListPromptVersions1JsonSchema$Outbound = {
990
992
  name: string;
993
+ description?: string | undefined;
991
994
  strict?: boolean | undefined;
992
995
  schema: { [k: string]: any };
993
996
  };
@@ -999,6 +1002,7 @@ export const ListPromptVersions1JsonSchema$outboundSchema: z.ZodType<
999
1002
  ListPromptVersions1JsonSchema
1000
1003
  > = z.object({
1001
1004
  name: z.string(),
1005
+ description: z.string().optional(),
1002
1006
  strict: z.boolean().optional(),
1003
1007
  schema: z.record(z.any()),
1004
1008
  });
@@ -127,7 +127,7 @@ export const RetrieveContactResponseBody$inboundSchema: z.ZodType<
127
127
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
128
128
  .optional(),
129
129
  updated: z.string().datetime({ offset: true }).default(
130
- "2025-10-02T08:26:54.292Z",
130
+ "2025-10-03T13:53:58.021Z",
131
131
  ).transform(v => new Date(v)),
132
132
  }).transform((v) => {
133
133
  return remap$(v, {
@@ -165,7 +165,7 @@ export const RetrieveContactResponseBody$outboundSchema: z.ZodType<
165
165
  tags: z.array(z.string()).optional(),
166
166
  metadata: z.record(z.any()).optional(),
167
167
  created: z.date().transform(v => v.toISOString()).optional(),
168
- updated: z.date().default(() => new Date("2025-10-02T08:26:54.292Z"))
168
+ updated: z.date().default(() => new Date("2025-10-03T13:53:58.021Z"))
169
169
  .transform(v => v.toISOString()),
170
170
  }).transform((v) => {
171
171
  return remap$(v, {
@@ -2958,7 +2958,7 @@ export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
2958
2958
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
2959
2959
  .optional(),
2960
2960
  updated: z.string().datetime({ offset: true }).default(
2961
- "2025-10-02T08:26:54.292Z",
2961
+ "2025-10-03T13:53:58.021Z",
2962
2962
  ).transform(v => new Date(v)),
2963
2963
  }).transform((v) => {
2964
2964
  return remap$(v, {
@@ -3016,7 +3016,7 @@ export const RetrieveDatapointResponseBody$outboundSchema: z.ZodType<
3016
3016
  createdById: z.string().optional(),
3017
3017
  updatedById: z.string().optional(),
3018
3018
  created: z.date().transform(v => v.toISOString()).optional(),
3019
- updated: z.date().default(() => new Date("2025-10-02T08:26:54.292Z"))
3019
+ updated: z.date().default(() => new Date("2025-10-03T13:53:58.021Z"))
3020
3020
  .transform(v => v.toISOString()),
3021
3021
  }).transform((v) => {
3022
3022
  return remap$(v, {
@@ -201,7 +201,7 @@ export const RetrieveDatasetResponseBody$inboundSchema: z.ZodType<
201
201
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
202
202
  .optional(),
203
203
  updated: z.string().datetime({ offset: true }).default(
204
- "2025-10-02T08:26:54.292Z",
204
+ "2025-10-03T13:53:58.021Z",
205
205
  ).transform(v => new Date(v)),
206
206
  }).transform((v) => {
207
207
  return remap$(v, {
@@ -241,7 +241,7 @@ export const RetrieveDatasetResponseBody$outboundSchema: z.ZodType<
241
241
  updatedById: z.string().optional(),
242
242
  metadata: z.lazy(() => RetrieveDatasetMetadata$outboundSchema),
243
243
  created: z.date().transform(v => v.toISOString()).optional(),
244
- updated: z.date().default(() => new Date("2025-10-02T08:26:54.292Z"))
244
+ updated: z.date().default(() => new Date("2025-10-03T13:53:58.021Z"))
245
245
  .transform(v => v.toISOString()),
246
246
  }).transform((v) => {
247
247
  return remap$(v, {
@@ -172,7 +172,7 @@ export const RetrieveDatasourceResponseBody$inboundSchema: z.ZodType<
172
172
  z.ZodTypeDef,
173
173
  unknown
174
174
  > = z.object({
175
- _id: z.string().default("01K6J0GC1D0AJ5SZJNRZ4RAXZ4"),
175
+ _id: z.string().default("01K6N5KY10E9CJWA3E23K18MA9"),
176
176
  display_name: z.string(),
177
177
  description: z.string().optional(),
178
178
  status: RetrieveDatasourceStatus$inboundSchema,
@@ -216,7 +216,7 @@ export const RetrieveDatasourceResponseBody$outboundSchema: z.ZodType<
216
216
  z.ZodTypeDef,
217
217
  RetrieveDatasourceResponseBody
218
218
  > = z.object({
219
- id: z.string().default("01K6J0GC1D0AJ5SZJNRZ4RAXZ4"),
219
+ id: z.string().default("01K6N5KY10E9CJWA3E23K18MA9"),
220
220
  displayName: z.string(),
221
221
  description: z.string().optional(),
222
222
  status: RetrieveDatasourceStatus$outboundSchema,
@@ -10,7 +10,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
12
  export type RetrieveToolRequest = {
13
- toolKey: string;
13
+ toolId: string;
14
14
  };
15
15
 
16
16
  /**
@@ -552,16 +552,16 @@ export const RetrieveToolRequest$inboundSchema: z.ZodType<
552
552
  z.ZodTypeDef,
553
553
  unknown
554
554
  > = z.object({
555
- tool_key: z.string(),
555
+ tool_id: z.string(),
556
556
  }).transform((v) => {
557
557
  return remap$(v, {
558
- "tool_key": "toolKey",
558
+ "tool_id": "toolId",
559
559
  });
560
560
  });
561
561
 
562
562
  /** @internal */
563
563
  export type RetrieveToolRequest$Outbound = {
564
- tool_key: string;
564
+ tool_id: string;
565
565
  };
566
566
 
567
567
  /** @internal */
@@ -570,10 +570,10 @@ export const RetrieveToolRequest$outboundSchema: z.ZodType<
570
570
  z.ZodTypeDef,
571
571
  RetrieveToolRequest
572
572
  > = z.object({
573
- toolKey: z.string(),
573
+ toolId: z.string(),
574
574
  }).transform((v) => {
575
575
  return remap$(v, {
576
- toolKey: "tool_key",
576
+ toolId: "tool_id",
577
577
  });
578
578
  });
579
579
 
@@ -750,7 +750,7 @@ export const RetrieveToolResponseBody5$inboundSchema: z.ZodType<
750
750
  z.ZodTypeDef,
751
751
  unknown
752
752
  > = z.object({
753
- _id: z.string().default("01K6J0GC5DQ562F8X6WCDY90S1"),
753
+ _id: z.string().default("01K6N5KY49VRJDE7TKMHY0MSCN"),
754
754
  path: z.string(),
755
755
  key: z.string(),
756
756
  display_name: z.string(),
@@ -806,7 +806,7 @@ export const RetrieveToolResponseBody5$outboundSchema: z.ZodType<
806
806
  z.ZodTypeDef,
807
807
  RetrieveToolResponseBody5
808
808
  > = z.object({
809
- id: z.string().default("01K6J0GC5DQ562F8X6WCDY90S1"),
809
+ id: z.string().default("01K6N5KY49VRJDE7TKMHY0MSCN"),
810
810
  path: z.string(),
811
811
  key: z.string(),
812
812
  displayName: z.string(),
@@ -1190,7 +1190,7 @@ export const RetrieveToolResponseBody4$inboundSchema: z.ZodType<
1190
1190
  z.ZodTypeDef,
1191
1191
  unknown
1192
1192
  > = z.object({
1193
- _id: z.string().default("01K6J0GC5D63FJWZBH828XZHS5"),
1193
+ _id: z.string().default("01K6N5KY48P1V48SJ2HGMFSPNY"),
1194
1194
  path: z.string(),
1195
1195
  key: z.string(),
1196
1196
  display_name: z.string(),
@@ -1244,7 +1244,7 @@ export const RetrieveToolResponseBody4$outboundSchema: z.ZodType<
1244
1244
  z.ZodTypeDef,
1245
1245
  RetrieveToolResponseBody4
1246
1246
  > = z.object({
1247
- id: z.string().default("01K6J0GC5D63FJWZBH828XZHS5"),
1247
+ id: z.string().default("01K6N5KY48P1V48SJ2HGMFSPNY"),
1248
1248
  path: z.string(),
1249
1249
  key: z.string(),
1250
1250
  displayName: z.string(),
@@ -1670,7 +1670,7 @@ export const RetrieveToolResponseBody3$inboundSchema: z.ZodType<
1670
1670
  z.ZodTypeDef,
1671
1671
  unknown
1672
1672
  > = z.object({
1673
- _id: z.string().default("01K6J0GC5C02QX54YF53RBY8TN"),
1673
+ _id: z.string().default("01K6N5KY48SKRYWQ616WRTJD9V"),
1674
1674
  path: z.string(),
1675
1675
  key: z.string(),
1676
1676
  display_name: z.string(),
@@ -1724,7 +1724,7 @@ export const RetrieveToolResponseBody3$outboundSchema: z.ZodType<
1724
1724
  z.ZodTypeDef,
1725
1725
  RetrieveToolResponseBody3
1726
1726
  > = z.object({
1727
- id: z.string().default("01K6J0GC5C02QX54YF53RBY8TN"),
1727
+ id: z.string().default("01K6N5KY48SKRYWQ616WRTJD9V"),
1728
1728
  path: z.string(),
1729
1729
  key: z.string(),
1730
1730
  displayName: z.string(),
@@ -1902,7 +1902,7 @@ export const RetrieveToolResponseBody2$inboundSchema: z.ZodType<
1902
1902
  z.ZodTypeDef,
1903
1903
  unknown
1904
1904
  > = z.object({
1905
- _id: z.string().default("01K6J0GC5C55J5VFJ9W69TD74Q"),
1905
+ _id: z.string().default("01K6N5KY47TYPKSJ7PV5MZVGR4"),
1906
1906
  path: z.string(),
1907
1907
  key: z.string(),
1908
1908
  display_name: z.string(),
@@ -1955,7 +1955,7 @@ export const RetrieveToolResponseBody2$outboundSchema: z.ZodType<
1955
1955
  z.ZodTypeDef,
1956
1956
  RetrieveToolResponseBody2
1957
1957
  > = z.object({
1958
- id: z.string().default("01K6J0GC5C55J5VFJ9W69TD74Q"),
1958
+ id: z.string().default("01K6N5KY47TYPKSJ7PV5MZVGR4"),
1959
1959
  path: z.string(),
1960
1960
  key: z.string(),
1961
1961
  displayName: z.string(),
@@ -2127,7 +2127,7 @@ export const RetrieveToolResponseBody1$inboundSchema: z.ZodType<
2127
2127
  z.ZodTypeDef,
2128
2128
  unknown
2129
2129
  > = z.object({
2130
- _id: z.string().default("01K6J0GC5CXNJDJCY07Y1X0HWG"),
2130
+ _id: z.string().default("01K6N5KY479THNPKH0D2FG4X6J"),
2131
2131
  path: z.string(),
2132
2132
  key: z.string(),
2133
2133
  display_name: z.string(),
@@ -2179,7 +2179,7 @@ export const RetrieveToolResponseBody1$outboundSchema: z.ZodType<
2179
2179
  z.ZodTypeDef,
2180
2180
  RetrieveToolResponseBody1
2181
2181
  > = z.object({
2182
- id: z.string().default("01K6J0GC5CXNJDJCY07Y1X0HWG"),
2182
+ id: z.string().default("01K6N5KY479THNPKH0D2FG4X6J"),
2183
2183
  path: z.string(),
2184
2184
  key: z.string(),
2185
2185
  displayName: z.string(),
@@ -239,7 +239,10 @@ export type KnowledgeBases = {
239
239
  };
240
240
 
241
241
  export type TeamOfAgents = {
242
- id: string;
242
+ /**
243
+ * The unique key of the agent within the workspace
244
+ */
245
+ key: string;
243
246
  /**
244
247
  * The role of the agent in this context. This is used to give extra information to the leader to help it decide which agent to hand off to.
245
248
  */
@@ -425,7 +428,6 @@ export type Http = {
425
428
  * Makes HTTP requests to external APIs
426
429
  */
427
430
  export type HTTPTool = {
428
- id?: string | undefined;
429
431
  /**
430
432
  * Unique key of the tool as it will be displayed in the UI
431
433
  */
@@ -1951,17 +1953,13 @@ export const TeamOfAgents$inboundSchema: z.ZodType<
1951
1953
  z.ZodTypeDef,
1952
1954
  unknown
1953
1955
  > = z.object({
1954
- _id: z.string(),
1956
+ key: z.string(),
1955
1957
  role: z.string().optional(),
1956
- }).transform((v) => {
1957
- return remap$(v, {
1958
- "_id": "id",
1959
- });
1960
1958
  });
1961
1959
 
1962
1960
  /** @internal */
1963
1961
  export type TeamOfAgents$Outbound = {
1964
- _id: string;
1962
+ key: string;
1965
1963
  role?: string | undefined;
1966
1964
  };
1967
1965
 
@@ -1971,12 +1969,8 @@ export const TeamOfAgents$outboundSchema: z.ZodType<
1971
1969
  z.ZodTypeDef,
1972
1970
  TeamOfAgents
1973
1971
  > = z.object({
1974
- id: z.string(),
1972
+ key: z.string(),
1975
1973
  role: z.string().optional(),
1976
- }).transform((v) => {
1977
- return remap$(v, {
1978
- id: "_id",
1979
- });
1980
1974
  });
1981
1975
 
1982
1976
  /**
@@ -2674,7 +2668,6 @@ export const HTTPTool$inboundSchema: z.ZodType<
2674
2668
  z.ZodTypeDef,
2675
2669
  unknown
2676
2670
  > = z.object({
2677
- _id: z.string().default("01K6J0GBY0P5PGP2YCZTH8RYA3"),
2678
2671
  key: z.string(),
2679
2672
  display_name: z.string(),
2680
2673
  description: z.string(),
@@ -2684,7 +2677,6 @@ export const HTTPTool$inboundSchema: z.ZodType<
2684
2677
  requires_approval: z.boolean().default(false),
2685
2678
  }).transform((v) => {
2686
2679
  return remap$(v, {
2687
- "_id": "id",
2688
2680
  "display_name": "displayName",
2689
2681
  "requires_approval": "requiresApproval",
2690
2682
  });
@@ -2692,7 +2684,6 @@ export const HTTPTool$inboundSchema: z.ZodType<
2692
2684
 
2693
2685
  /** @internal */
2694
2686
  export type HTTPTool$Outbound = {
2695
- _id: string;
2696
2687
  key: string;
2697
2688
  display_name: string;
2698
2689
  description: string;
@@ -2707,7 +2698,6 @@ export const HTTPTool$outboundSchema: z.ZodType<
2707
2698
  z.ZodTypeDef,
2708
2699
  HTTPTool
2709
2700
  > = z.object({
2710
- id: z.string().default("01K6J0GBY0P5PGP2YCZTH8RYA3"),
2711
2701
  key: z.string(),
2712
2702
  displayName: z.string(),
2713
2703
  description: z.string(),
@@ -2717,7 +2707,6 @@ export const HTTPTool$outboundSchema: z.ZodType<
2717
2707
  requiresApproval: z.boolean().default(false),
2718
2708
  }).transform((v) => {
2719
2709
  return remap$(v, {
2720
- id: "_id",
2721
2710
  displayName: "display_name",
2722
2711
  requiresApproval: "requires_approval",
2723
2712
  });
@@ -260,7 +260,10 @@ export type StreamRunAgentKnowledgeBases = {
260
260
  };
261
261
 
262
262
  export type StreamRunAgentTeamOfAgents = {
263
- id: string;
263
+ /**
264
+ * The unique key of the agent within the workspace
265
+ */
266
+ key: string;
264
267
  /**
265
268
  * The role of the agent in this context. This is used to give extra information to the leader to help it decide which agent to hand off to.
266
269
  */
@@ -452,7 +455,6 @@ export type RunAgentRequestToolHttp = {
452
455
  * Makes HTTP requests to external APIs
453
456
  */
454
457
  export type RunAgentRequestToolHTTPTool = {
455
- id?: string | undefined;
456
458
  /**
457
459
  * Unique key of the tool as it will be displayed in the UI
458
460
  */
@@ -2032,17 +2034,13 @@ export const StreamRunAgentTeamOfAgents$inboundSchema: z.ZodType<
2032
2034
  z.ZodTypeDef,
2033
2035
  unknown
2034
2036
  > = z.object({
2035
- _id: z.string(),
2037
+ key: z.string(),
2036
2038
  role: z.string().optional(),
2037
- }).transform((v) => {
2038
- return remap$(v, {
2039
- "_id": "id",
2040
- });
2041
2039
  });
2042
2040
 
2043
2041
  /** @internal */
2044
2042
  export type StreamRunAgentTeamOfAgents$Outbound = {
2045
- _id: string;
2043
+ key: string;
2046
2044
  role?: string | undefined;
2047
2045
  };
2048
2046
 
@@ -2052,12 +2050,8 @@ export const StreamRunAgentTeamOfAgents$outboundSchema: z.ZodType<
2052
2050
  z.ZodTypeDef,
2053
2051
  StreamRunAgentTeamOfAgents
2054
2052
  > = z.object({
2055
- id: z.string(),
2053
+ key: z.string(),
2056
2054
  role: z.string().optional(),
2057
- }).transform((v) => {
2058
- return remap$(v, {
2059
- id: "_id",
2060
- });
2061
2055
  });
2062
2056
 
2063
2057
  /**
@@ -2829,7 +2823,6 @@ export const RunAgentRequestToolHTTPTool$inboundSchema: z.ZodType<
2829
2823
  z.ZodTypeDef,
2830
2824
  unknown
2831
2825
  > = z.object({
2832
- _id: z.string().default("01K6J0GBY6KWDFE5DH8SJT0HNV"),
2833
2826
  key: z.string(),
2834
2827
  display_name: z.string(),
2835
2828
  description: z.string(),
@@ -2839,7 +2832,6 @@ export const RunAgentRequestToolHTTPTool$inboundSchema: z.ZodType<
2839
2832
  requires_approval: z.boolean().default(false),
2840
2833
  }).transform((v) => {
2841
2834
  return remap$(v, {
2842
- "_id": "id",
2843
2835
  "display_name": "displayName",
2844
2836
  "requires_approval": "requiresApproval",
2845
2837
  });
@@ -2847,7 +2839,6 @@ export const RunAgentRequestToolHTTPTool$inboundSchema: z.ZodType<
2847
2839
 
2848
2840
  /** @internal */
2849
2841
  export type RunAgentRequestToolHTTPTool$Outbound = {
2850
- _id: string;
2851
2842
  key: string;
2852
2843
  display_name: string;
2853
2844
  description: string;
@@ -2862,7 +2853,6 @@ export const RunAgentRequestToolHTTPTool$outboundSchema: z.ZodType<
2862
2853
  z.ZodTypeDef,
2863
2854
  RunAgentRequestToolHTTPTool
2864
2855
  > = z.object({
2865
- id: z.string().default("01K6J0GBY6KWDFE5DH8SJT0HNV"),
2866
2856
  key: z.string(),
2867
2857
  displayName: z.string(),
2868
2858
  description: z.string(),
@@ -2872,7 +2862,6 @@ export const RunAgentRequestToolHTTPTool$outboundSchema: z.ZodType<
2872
2862
  requiresApproval: z.boolean().default(false),
2873
2863
  }).transform((v) => {
2874
2864
  return remap$(v, {
2875
- id: "_id",
2876
2865
  displayName: "display_name",
2877
2866
  requiresApproval: "requires_approval",
2878
2867
  });
@@ -538,7 +538,7 @@ export const UpdateBudgetResponseBody$inboundSchema: z.ZodType<
538
538
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
539
539
  .optional(),
540
540
  updated: z.string().datetime({ offset: true }).default(
541
- "2025-10-02T08:26:54.292Z",
541
+ "2025-10-03T13:53:58.021Z",
542
542
  ).transform(v => new Date(v)),
543
543
  }).transform((v) => {
544
544
  return remap$(v, {
@@ -573,7 +573,7 @@ export const UpdateBudgetResponseBody$outboundSchema: z.ZodType<
573
573
  isActive: z.boolean(),
574
574
  consumption: z.lazy(() => UpdateBudgetConsumption$outboundSchema).optional(),
575
575
  created: z.date().transform(v => v.toISOString()).optional(),
576
- updated: z.date().default(() => new Date("2025-10-02T08:26:54.292Z"))
576
+ updated: z.date().default(() => new Date("2025-10-03T13:53:58.021Z"))
577
577
  .transform(v => v.toISOString()),
578
578
  }).transform((v) => {
579
579
  return remap$(v, {
@@ -244,7 +244,7 @@ export const UpdateContactResponseBody$inboundSchema: z.ZodType<
244
244
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
245
245
  .optional(),
246
246
  updated: z.string().datetime({ offset: true }).default(
247
- "2025-10-02T08:26:54.292Z",
247
+ "2025-10-03T13:53:58.021Z",
248
248
  ).transform(v => new Date(v)),
249
249
  }).transform((v) => {
250
250
  return remap$(v, {
@@ -282,7 +282,7 @@ export const UpdateContactResponseBody$outboundSchema: z.ZodType<
282
282
  tags: z.array(z.string()).optional(),
283
283
  metadata: z.record(z.any()).optional(),
284
284
  created: z.date().transform(v => v.toISOString()).optional(),
285
- updated: z.date().default(() => new Date("2025-10-02T08:26:54.292Z"))
285
+ updated: z.date().default(() => new Date("2025-10-03T13:53:58.021Z"))
286
286
  .transform(v => v.toISOString()),
287
287
  }).transform((v) => {
288
288
  return remap$(v, {
@@ -6020,7 +6020,7 @@ export const UpdateDatapointResponseBody$inboundSchema: z.ZodType<
6020
6020
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
6021
6021
  .optional(),
6022
6022
  updated: z.string().datetime({ offset: true }).default(
6023
- "2025-10-02T08:26:54.292Z",
6023
+ "2025-10-03T13:53:58.021Z",
6024
6024
  ).transform(v => new Date(v)),
6025
6025
  }).transform((v) => {
6026
6026
  return remap$(v, {
@@ -6082,7 +6082,7 @@ export const UpdateDatapointResponseBody$outboundSchema: z.ZodType<
6082
6082
  createdById: z.string().optional(),
6083
6083
  updatedById: z.string().optional(),
6084
6084
  created: z.date().transform(v => v.toISOString()).optional(),
6085
- updated: z.date().default(() => new Date("2025-10-02T08:26:54.292Z"))
6085
+ updated: z.date().default(() => new Date("2025-10-03T13:53:58.021Z"))
6086
6086
  .transform(v => v.toISOString()),
6087
6087
  }).transform((v) => {
6088
6088
  return remap$(v, {
@@ -302,7 +302,7 @@ export const UpdateDatasetResponseBody$inboundSchema: z.ZodType<
302
302
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
303
303
  .optional(),
304
304
  updated: z.string().datetime({ offset: true }).default(
305
- "2025-10-02T08:26:54.292Z",
305
+ "2025-10-03T13:53:58.021Z",
306
306
  ).transform(v => new Date(v)),
307
307
  }).transform((v) => {
308
308
  return remap$(v, {
@@ -347,7 +347,7 @@ export const UpdateDatasetResponseBody$outboundSchema: z.ZodType<
347
347
  parentId: z.string().optional(),
348
348
  version: z.string().optional(),
349
349
  created: z.date().transform(v => v.toISOString()).optional(),
350
- updated: z.date().default(() => new Date("2025-10-02T08:26:54.292Z"))
350
+ updated: z.date().default(() => new Date("2025-10-03T13:53:58.021Z"))
351
351
  .transform(v => v.toISOString()),
352
352
  }).transform((v) => {
353
353
  return remap$(v, {
@@ -244,7 +244,7 @@ export const UpdateDatasourceResponseBody$inboundSchema: z.ZodType<
244
244
  z.ZodTypeDef,
245
245
  unknown
246
246
  > = z.object({
247
- _id: z.string().default("01K6J0GC1F9BM8GB8R4WZFNGWY"),
247
+ _id: z.string().default("01K6N5KY11P0MM3FJHM1K8JC6P"),
248
248
  display_name: z.string(),
249
249
  description: z.string().optional(),
250
250
  status: UpdateDatasourceStatus$inboundSchema,
@@ -288,7 +288,7 @@ export const UpdateDatasourceResponseBody$outboundSchema: z.ZodType<
288
288
  z.ZodTypeDef,
289
289
  UpdateDatasourceResponseBody
290
290
  > = z.object({
291
- id: z.string().default("01K6J0GC1F9BM8GB8R4WZFNGWY"),
291
+ id: z.string().default("01K6N5KY11P0MM3FJHM1K8JC6P"),
292
292
  displayName: z.string(),
293
293
  description: z.string().optional(),
294
294
  status: UpdateDatasourceStatus$outboundSchema,