@orq-ai/node 3.3.0-rc.15 → 3.3.0-rc.17

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 (55) hide show
  1. package/bin/mcp-server.js +54 -46
  2. package/bin/mcp-server.js.map +23 -23
  3. package/docs/sdks/datasets/README.md +6 -0
  4. package/docs/sdks/prompts/README.md +6 -0
  5. package/jsr.json +1 -1
  6. package/lib/config.d.ts +3 -3
  7. package/lib/config.js +3 -3
  8. package/mcp-server/mcp-server.js +1 -1
  9. package/mcp-server/server.js +1 -1
  10. package/models/operations/bulkcreatedatapoints.js +2 -2
  11. package/models/operations/createchunk.js +2 -2
  12. package/models/operations/createcontact.js +2 -2
  13. package/models/operations/createdataset.js +2 -2
  14. package/models/operations/createdatasetitem.js +2 -2
  15. package/models/operations/createdatasource.js +2 -2
  16. package/models/operations/fileget.js +2 -2
  17. package/models/operations/filelist.js +2 -2
  18. package/models/operations/fileupload.js +2 -2
  19. package/models/operations/listdatasetdatapoints.js +2 -2
  20. package/models/operations/listdatasets.js +2 -2
  21. package/models/operations/listdatasources.js +2 -2
  22. package/models/operations/retrievedatapoint.js +2 -2
  23. package/models/operations/retrievedataset.js +2 -2
  24. package/models/operations/retrievedatasource.js +2 -2
  25. package/models/operations/updatedatapoint.js +2 -2
  26. package/models/operations/updatedataset.d.ts +15 -2
  27. package/models/operations/updatedataset.d.ts.map +1 -1
  28. package/models/operations/updatedataset.js +10 -4
  29. package/models/operations/updatedataset.js.map +1 -1
  30. package/models/operations/updateprompt.d.ts +5 -0
  31. package/models/operations/updateprompt.d.ts.map +1 -1
  32. package/models/operations/updateprompt.js +2 -0
  33. package/models/operations/updateprompt.js.map +1 -1
  34. package/package.json +1 -1
  35. package/src/lib/config.ts +3 -3
  36. package/src/mcp-server/mcp-server.ts +1 -1
  37. package/src/mcp-server/server.ts +1 -1
  38. package/src/models/operations/bulkcreatedatapoints.ts +2 -2
  39. package/src/models/operations/createchunk.ts +2 -2
  40. package/src/models/operations/createcontact.ts +2 -2
  41. package/src/models/operations/createdataset.ts +2 -2
  42. package/src/models/operations/createdatasetitem.ts +2 -2
  43. package/src/models/operations/createdatasource.ts +2 -2
  44. package/src/models/operations/fileget.ts +2 -2
  45. package/src/models/operations/filelist.ts +2 -2
  46. package/src/models/operations/fileupload.ts +2 -2
  47. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  48. package/src/models/operations/listdatasets.ts +2 -2
  49. package/src/models/operations/listdatasources.ts +2 -2
  50. package/src/models/operations/retrievedatapoint.ts +2 -2
  51. package/src/models/operations/retrievedataset.ts +2 -2
  52. package/src/models/operations/retrievedatasource.ts +2 -2
  53. package/src/models/operations/updatedatapoint.ts +2 -2
  54. package/src/models/operations/updatedataset.ts +25 -6
  55. package/src/models/operations/updateprompt.ts +7 -0
@@ -1649,7 +1649,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
1649
1649
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
1650
1650
  .optional(),
1651
1651
  updated: z.string().datetime({ offset: true }).default(
1652
- "2025-03-31T06:21:55.956Z",
1652
+ "2025-03-31T17:17:52.525Z",
1653
1653
  ).transform(v => new Date(v)),
1654
1654
  }).transform((v) => {
1655
1655
  return remap$(v, {
@@ -1693,7 +1693,7 @@ export const CreateDatasetItemResponseBody$outboundSchema: z.ZodType<
1693
1693
  createdById: z.string().optional(),
1694
1694
  updatedById: z.string().optional(),
1695
1695
  created: z.date().transform(v => v.toISOString()).optional(),
1696
- updated: z.date().default(() => new Date("2025-03-31T06:21:55.956Z"))
1696
+ updated: z.date().default(() => new Date("2025-03-31T17:17:52.525Z"))
1697
1697
  .transform(v => v.toISOString()),
1698
1698
  }).transform((v) => {
1699
1699
  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("01JQNDTED81QAJ4X2164MP45WR"),
754
+ _id: z.string().default("01JQPKBGKR9S3D5KEFCD2FJDA4"),
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("01JQNDTED81QAJ4X2164MP45WR"),
798
+ id: z.string().default("01JQPKBGKR9S3D5KEFCD2FJDA4"),
799
799
  displayName: z.string(),
800
800
  description: z.string().optional(),
801
801
  status: CreateDatasourceStatus$outboundSchema,
@@ -146,7 +146,7 @@ export const FileGetResponseBody$inboundSchema: z.ZodType<
146
146
  file_name: z.string(),
147
147
  workspace_id: z.string(),
148
148
  created: z.string().datetime({ offset: true }).default(
149
- "2025-03-31T06:21:57.466Z",
149
+ "2025-03-31T17:17:54.028Z",
150
150
  ).transform(v => new Date(v)),
151
151
  }).transform((v) => {
152
152
  return remap$(v, {
@@ -180,7 +180,7 @@ export const FileGetResponseBody$outboundSchema: z.ZodType<
180
180
  bytes: z.number(),
181
181
  fileName: z.string(),
182
182
  workspaceId: z.string(),
183
- created: z.date().default(() => new Date("2025-03-31T06:21:57.466Z"))
183
+ created: z.date().default(() => new Date("2025-03-31T17:17:54.028Z"))
184
184
  .transform(v => v.toISOString()),
185
185
  }).transform((v) => {
186
186
  return remap$(v, {
@@ -196,7 +196,7 @@ export const FileListData$inboundSchema: z.ZodType<
196
196
  file_name: z.string(),
197
197
  workspace_id: z.string(),
198
198
  created: z.string().datetime({ offset: true }).default(
199
- "2025-03-31T06:21:57.466Z",
199
+ "2025-03-31T17:17:54.028Z",
200
200
  ).transform(v => new Date(v)),
201
201
  }).transform((v) => {
202
202
  return remap$(v, {
@@ -230,7 +230,7 @@ export const FileListData$outboundSchema: z.ZodType<
230
230
  bytes: z.number(),
231
231
  fileName: z.string(),
232
232
  workspaceId: z.string(),
233
- created: z.date().default(() => new Date("2025-03-31T06:21:57.466Z"))
233
+ created: z.date().default(() => new Date("2025-03-31T17:17:54.028Z"))
234
234
  .transform(v => v.toISOString()),
235
235
  }).transform((v) => {
236
236
  return remap$(v, {
@@ -247,7 +247,7 @@ export const FileUploadResponseBody$inboundSchema: z.ZodType<
247
247
  file_name: z.string(),
248
248
  workspace_id: z.string(),
249
249
  created: z.string().datetime({ offset: true }).default(
250
- "2025-03-31T06:21:57.466Z",
250
+ "2025-03-31T17:17:54.028Z",
251
251
  ).transform(v => new Date(v)),
252
252
  }).transform((v) => {
253
253
  return remap$(v, {
@@ -281,7 +281,7 @@ export const FileUploadResponseBody$outboundSchema: z.ZodType<
281
281
  bytes: z.number(),
282
282
  fileName: z.string(),
283
283
  workspaceId: z.string(),
284
- created: z.date().default(() => new Date("2025-03-31T06:21:57.466Z"))
284
+ created: z.date().default(() => new Date("2025-03-31T17:17:54.028Z"))
285
285
  .transform(v => v.toISOString()),
286
286
  }).transform((v) => {
287
287
  return remap$(v, {
@@ -912,7 +912,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
912
912
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
913
913
  .optional(),
914
914
  updated: z.string().datetime({ offset: true }).default(
915
- "2025-03-31T06:21:55.956Z",
915
+ "2025-03-31T17:17:52.525Z",
916
916
  ).transform(v => new Date(v)),
917
917
  }).transform((v) => {
918
918
  return remap$(v, {
@@ -955,7 +955,7 @@ export const ListDatasetDatapointsData$outboundSchema: z.ZodType<
955
955
  createdById: z.string().optional(),
956
956
  updatedById: z.string().optional(),
957
957
  created: z.date().transform(v => v.toISOString()).optional(),
958
- updated: z.date().default(() => new Date("2025-03-31T06:21:55.956Z"))
958
+ updated: z.date().default(() => new Date("2025-03-31T17:17:52.525Z"))
959
959
  .transform(v => v.toISOString()),
960
960
  }).transform((v) => {
961
961
  return remap$(v, {
@@ -253,7 +253,7 @@ export const ListDatasetsData$inboundSchema: z.ZodType<
253
253
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
254
254
  .optional(),
255
255
  updated: z.string().datetime({ offset: true }).default(
256
- "2025-03-31T06:21:55.956Z",
256
+ "2025-03-31T17:17:52.525Z",
257
257
  ).transform(v => new Date(v)),
258
258
  }).transform((v) => {
259
259
  return remap$(v, {
@@ -293,7 +293,7 @@ export const ListDatasetsData$outboundSchema: z.ZodType<
293
293
  updatedById: z.string().optional(),
294
294
  metadata: z.lazy(() => ListDatasetsMetadata$outboundSchema),
295
295
  created: z.date().transform(v => v.toISOString()).optional(),
296
- updated: z.date().default(() => new Date("2025-03-31T06:21:55.956Z"))
296
+ updated: z.date().default(() => new Date("2025-03-31T17:17:52.525Z"))
297
297
  .transform(v => v.toISOString()),
298
298
  }).transform((v) => {
299
299
  return remap$(v, {
@@ -278,7 +278,7 @@ export const ListDatasourcesData$inboundSchema: z.ZodType<
278
278
  z.ZodTypeDef,
279
279
  unknown
280
280
  > = z.object({
281
- _id: z.string().default("01JQNDTED7Q668FGWAEE5YN3G1"),
281
+ _id: z.string().default("01JQPKBGKQ0YN3BN71Z0P51P3C"),
282
282
  display_name: z.string(),
283
283
  description: z.string().optional(),
284
284
  status: ListDatasourcesStatus$inboundSchema,
@@ -322,7 +322,7 @@ export const ListDatasourcesData$outboundSchema: z.ZodType<
322
322
  z.ZodTypeDef,
323
323
  ListDatasourcesData
324
324
  > = z.object({
325
- id: z.string().default("01JQNDTED7Q668FGWAEE5YN3G1"),
325
+ id: z.string().default("01JQPKBGKQ0YN3BN71Z0P51P3C"),
326
326
  displayName: z.string(),
327
327
  description: z.string().optional(),
328
328
  status: ListDatasourcesStatus$outboundSchema,
@@ -834,7 +834,7 @@ export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
834
834
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
835
835
  .optional(),
836
836
  updated: z.string().datetime({ offset: true }).default(
837
- "2025-03-31T06:21:55.956Z",
837
+ "2025-03-31T17:17:52.525Z",
838
838
  ).transform(v => new Date(v)),
839
839
  }).transform((v) => {
840
840
  return remap$(v, {
@@ -877,7 +877,7 @@ export const RetrieveDatapointResponseBody$outboundSchema: z.ZodType<
877
877
  createdById: z.string().optional(),
878
878
  updatedById: z.string().optional(),
879
879
  created: z.date().transform(v => v.toISOString()).optional(),
880
- updated: z.date().default(() => new Date("2025-03-31T06:21:55.956Z"))
880
+ updated: z.date().default(() => new Date("2025-03-31T17:17:52.525Z"))
881
881
  .transform(v => v.toISOString()),
882
882
  }).transform((v) => {
883
883
  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-03-31T06:21:55.956Z",
204
+ "2025-03-31T17:17:52.525Z",
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-03-31T06:21:55.956Z"))
244
+ updated: z.date().default(() => new Date("2025-03-31T17:17:52.525Z"))
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("01JQNDTED8RDH1B5H21HPP8ZEQ"),
175
+ _id: z.string().default("01JQPKBGKRCYSQVPTTD4E2CD21"),
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("01JQNDTED8RDH1B5H21HPP8ZEQ"),
219
+ id: z.string().default("01JQPKBGKRCYSQVPTTD4E2CD21"),
220
220
  displayName: z.string(),
221
221
  description: z.string().optional(),
222
222
  status: RetrieveDatasourceStatus$outboundSchema,
@@ -1638,7 +1638,7 @@ export const UpdateDatapointResponseBody$inboundSchema: z.ZodType<
1638
1638
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
1639
1639
  .optional(),
1640
1640
  updated: z.string().datetime({ offset: true }).default(
1641
- "2025-03-31T06:21:55.956Z",
1641
+ "2025-03-31T17:17:52.525Z",
1642
1642
  ).transform(v => new Date(v)),
1643
1643
  }).transform((v) => {
1644
1644
  return remap$(v, {
@@ -1682,7 +1682,7 @@ export const UpdateDatapointResponseBody$outboundSchema: z.ZodType<
1682
1682
  createdById: z.string().optional(),
1683
1683
  updatedById: z.string().optional(),
1684
1684
  created: z.date().transform(v => v.toISOString()).optional(),
1685
- updated: z.date().default(() => new Date("2025-03-31T06:21:55.956Z"))
1685
+ updated: z.date().default(() => new Date("2025-03-31T17:17:52.525Z"))
1686
1686
  .transform(v => v.toISOString()),
1687
1687
  }).transform((v) => {
1688
1688
  return remap$(v, {
@@ -9,7 +9,18 @@ import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
11
  export type UpdateDatasetRequestBody = {
12
- displayName: string;
12
+ /**
13
+ * The display name of the dataset
14
+ */
15
+ displayName?: string | undefined;
16
+ /**
17
+ * The unique identifier of the project it belongs to
18
+ */
19
+ projectId?: string | undefined;
20
+ /**
21
+ * 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.
22
+ */
23
+ path?: string | undefined;
13
24
  };
14
25
 
15
26
  export type UpdateDatasetRequest = {
@@ -75,16 +86,21 @@ export const UpdateDatasetRequestBody$inboundSchema: z.ZodType<
75
86
  z.ZodTypeDef,
76
87
  unknown
77
88
  > = z.object({
78
- display_name: z.string(),
89
+ display_name: z.string().optional(),
90
+ project_id: z.string().optional(),
91
+ path: z.string().optional(),
79
92
  }).transform((v) => {
80
93
  return remap$(v, {
81
94
  "display_name": "displayName",
95
+ "project_id": "projectId",
82
96
  });
83
97
  });
84
98
 
85
99
  /** @internal */
86
100
  export type UpdateDatasetRequestBody$Outbound = {
87
- display_name: string;
101
+ display_name?: string | undefined;
102
+ project_id?: string | undefined;
103
+ path?: string | undefined;
88
104
  };
89
105
 
90
106
  /** @internal */
@@ -93,10 +109,13 @@ export const UpdateDatasetRequestBody$outboundSchema: z.ZodType<
93
109
  z.ZodTypeDef,
94
110
  UpdateDatasetRequestBody
95
111
  > = z.object({
96
- displayName: z.string(),
112
+ displayName: z.string().optional(),
113
+ projectId: z.string().optional(),
114
+ path: z.string().optional(),
97
115
  }).transform((v) => {
98
116
  return remap$(v, {
99
117
  displayName: "display_name",
118
+ projectId: "project_id",
100
119
  });
101
120
  });
102
121
 
@@ -283,7 +302,7 @@ export const UpdateDatasetResponseBody$inboundSchema: z.ZodType<
283
302
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
284
303
  .optional(),
285
304
  updated: z.string().datetime({ offset: true }).default(
286
- "2025-03-31T06:21:55.956Z",
305
+ "2025-03-31T17:17:52.525Z",
287
306
  ).transform(v => new Date(v)),
288
307
  }).transform((v) => {
289
308
  return remap$(v, {
@@ -328,7 +347,7 @@ export const UpdateDatasetResponseBody$outboundSchema: z.ZodType<
328
347
  parentId: z.string().optional(),
329
348
  version: z.string().optional(),
330
349
  created: z.date().transform(v => v.toISOString()).optional(),
331
- updated: z.date().default(() => new Date("2025-03-31T06:21:55.956Z"))
350
+ updated: z.date().default(() => new Date("2025-03-31T17:17:52.525Z"))
332
351
  .transform(v => v.toISOString()),
333
352
  }).transform((v) => {
334
353
  return remap$(v, {
@@ -437,6 +437,10 @@ export type UpdatePromptRequestBody = {
437
437
  */
438
438
  promptConfig?: UpdatePromptPromptConfig | undefined;
439
439
  metadata?: UpdatePromptMetadata | undefined;
440
+ /**
441
+ * 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.
442
+ */
443
+ path?: string | undefined;
440
444
  };
441
445
 
442
446
  export type UpdatePromptRequest = {
@@ -2261,6 +2265,7 @@ export const UpdatePromptRequestBody$inboundSchema: z.ZodType<
2261
2265
  prompt_config: z.lazy(() => UpdatePromptPromptConfig$inboundSchema)
2262
2266
  .optional(),
2263
2267
  metadata: z.lazy(() => UpdatePromptMetadata$inboundSchema).optional(),
2268
+ path: z.string().optional(),
2264
2269
  }).transform((v) => {
2265
2270
  return remap$(v, {
2266
2271
  "domain_id": "domainId",
@@ -2283,6 +2288,7 @@ export type UpdatePromptRequestBody$Outbound = {
2283
2288
  description?: string | null | undefined;
2284
2289
  prompt_config?: UpdatePromptPromptConfig$Outbound | undefined;
2285
2290
  metadata?: UpdatePromptMetadata$Outbound | undefined;
2291
+ path?: string | undefined;
2286
2292
  };
2287
2293
 
2288
2294
  /** @internal */
@@ -2302,6 +2308,7 @@ export const UpdatePromptRequestBody$outboundSchema: z.ZodType<
2302
2308
  promptConfig: z.lazy(() => UpdatePromptPromptConfig$outboundSchema)
2303
2309
  .optional(),
2304
2310
  metadata: z.lazy(() => UpdatePromptMetadata$outboundSchema).optional(),
2311
+ path: z.string().optional(),
2305
2312
  }).transform((v) => {
2306
2313
  return remap$(v, {
2307
2314
  domainId: "domain_id",