@orq-ai/node 3.5.21 → 3.5.23

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 (79) hide show
  1. package/bin/mcp-server.js +1018 -971
  2. package/bin/mcp-server.js.map +33 -24
  3. package/jsr.json +1 -1
  4. package/lib/config.d.ts +3 -3
  5. package/lib/config.js +3 -3
  6. package/mcp-server/mcp-server.js +1 -1
  7. package/mcp-server/server.js +1 -1
  8. package/models/operations/bulkcreatedatapoints.js +2 -2
  9. package/models/operations/createcontact.js +2 -2
  10. package/models/operations/createdataset.js +2 -2
  11. package/models/operations/createdatasetitem.js +2 -2
  12. package/models/operations/createdatasource.js +2 -2
  13. package/models/operations/fileget.js +2 -2
  14. package/models/operations/filelist.js +2 -2
  15. package/models/operations/fileupload.js +2 -2
  16. package/models/operations/listdatasetdatapoints.js +2 -2
  17. package/models/operations/listdatasets.js +2 -2
  18. package/models/operations/listdatasources.js +2 -2
  19. package/models/operations/retrievedatapoint.js +2 -2
  20. package/models/operations/retrievedataset.js +2 -2
  21. package/models/operations/retrievedatasource.js +2 -2
  22. package/models/operations/updatedatapoint.js +2 -2
  23. package/models/operations/updatedataset.js +2 -2
  24. package/models/operations/updatedatasource.js +2 -2
  25. package/package.json +2 -2
  26. package/packages/orq-rc/jsr.json +1 -1
  27. package/packages/orq-rc/package-lock.json +6 -6
  28. package/packages/orq-rc/package.json +2 -2
  29. package/packages/orq-rc/src/lib/config.ts +3 -3
  30. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  31. package/packages/orq-rc/src/mcp-server/server.ts +1 -1
  32. package/packages/orq-rc/src/models/components/deployments.ts +1217 -1677
  33. package/packages/orq-rc/src/models/operations/bulkcreatedatapoints.ts +416 -12
  34. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  35. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  36. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +410 -13
  37. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  38. package/packages/orq-rc/src/models/operations/createprompt.ts +400 -12
  39. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +1413 -1729
  40. package/packages/orq-rc/src/models/operations/deployments.ts +211 -23
  41. package/packages/orq-rc/src/models/operations/deploymentstream.ts +1314 -1761
  42. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  43. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  44. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  45. package/packages/orq-rc/src/models/operations/getallprompts.ts +200 -6
  46. package/packages/orq-rc/src/models/operations/getoneprompt.ts +195 -6
  47. package/packages/orq-rc/src/models/operations/getpromptversion.ts +204 -6
  48. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +207 -8
  49. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  50. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  51. package/packages/orq-rc/src/models/operations/listpromptversions.ts +202 -6
  52. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +204 -8
  53. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  54. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  55. package/packages/orq-rc/src/models/operations/searchknowledge.ts +1334 -1750
  56. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +412 -14
  57. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  58. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  59. package/packages/orq-rc/src/models/operations/updateprompt.ts +400 -12
  60. package/src/lib/config.ts +3 -3
  61. package/src/mcp-server/mcp-server.ts +1 -1
  62. package/src/mcp-server/server.ts +1 -1
  63. package/src/models/operations/bulkcreatedatapoints.ts +2 -2
  64. package/src/models/operations/createcontact.ts +2 -2
  65. package/src/models/operations/createdataset.ts +2 -2
  66. package/src/models/operations/createdatasetitem.ts +2 -2
  67. package/src/models/operations/createdatasource.ts +2 -2
  68. package/src/models/operations/fileget.ts +2 -2
  69. package/src/models/operations/filelist.ts +2 -2
  70. package/src/models/operations/fileupload.ts +2 -2
  71. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  72. package/src/models/operations/listdatasets.ts +2 -2
  73. package/src/models/operations/listdatasources.ts +2 -2
  74. package/src/models/operations/retrievedatapoint.ts +2 -2
  75. package/src/models/operations/retrievedataset.ts +2 -2
  76. package/src/models/operations/retrievedatasource.ts +2 -2
  77. package/src/models/operations/updatedatapoint.ts +2 -2
  78. package/src/models/operations/updatedataset.ts +2 -2
  79. package/src/models/operations/updatedatasource.ts +2 -2
@@ -336,6 +336,38 @@ export const DeploymentsRole = {
336
336
  */
337
337
  export type DeploymentsRole = ClosedEnum<typeof DeploymentsRole>;
338
338
 
339
+ /**
340
+ * The type of the content part. Always `file`.
341
+ */
342
+ export const Deployments2DeploymentsType = {
343
+ File: "file",
344
+ } as const;
345
+ /**
346
+ * The type of the content part. Always `file`.
347
+ */
348
+ export type Deployments2DeploymentsType = ClosedEnum<
349
+ typeof Deployments2DeploymentsType
350
+ >;
351
+
352
+ export type Deployments2File = {
353
+ /**
354
+ * The base64 encoded file data, used when passing the file to the model as a string.
355
+ */
356
+ fileData: string;
357
+ /**
358
+ * The name of the file, used when passing the file to the model as a string.
359
+ */
360
+ filename?: string | undefined;
361
+ };
362
+
363
+ export type Deployments23 = {
364
+ /**
365
+ * The type of the content part. Always `file`.
366
+ */
367
+ type: Deployments2DeploymentsType;
368
+ file: Deployments2File;
369
+ };
370
+
339
371
  export const Deployments2Type = {
340
372
  ImageUrl: "image_url",
341
373
  } as const;
@@ -364,27 +396,29 @@ export type Deployments22 = {
364
396
  imageUrl: Deployments2ImageUrl;
365
397
  };
366
398
 
367
- export const Deployments2DeploymentsType = {
399
+ export const Deployments2DeploymentsResponseType = {
368
400
  Text: "text",
369
401
  } as const;
370
- export type Deployments2DeploymentsType = ClosedEnum<
371
- typeof Deployments2DeploymentsType
402
+ export type Deployments2DeploymentsResponseType = ClosedEnum<
403
+ typeof Deployments2DeploymentsResponseType
372
404
  >;
373
405
 
374
406
  /**
375
407
  * Text content part of a prompt message
376
408
  */
377
409
  export type Deployments21 = {
378
- type: Deployments2DeploymentsType;
410
+ type: Deployments2DeploymentsResponseType;
379
411
  text: string;
380
412
  };
381
413
 
382
- export type DeploymentsContent2 = Deployments21 | Deployments22;
414
+ export type DeploymentsContent2 = Deployments21 | Deployments22 | Deployments23;
383
415
 
384
416
  /**
385
417
  * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
386
418
  */
387
- export type DeploymentsContent = string | Array<Deployments21 | Deployments22>;
419
+ export type DeploymentsContent =
420
+ | string
421
+ | Array<Deployments21 | Deployments22 | Deployments23>;
388
422
 
389
423
  export const DeploymentsDeploymentsType = {
390
424
  Function: "function",
@@ -416,7 +450,7 @@ export type DeploymentsMessages = {
416
450
  /**
417
451
  * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
418
452
  */
419
- content: string | Array<Deployments21 | Deployments22>;
453
+ content: string | Array<Deployments21 | Deployments22 | Deployments23>;
420
454
  toolCalls?: Array<DeploymentsToolCalls> | undefined;
421
455
  toolCallId?: string | undefined;
422
456
  };
@@ -1346,6 +1380,145 @@ export namespace DeploymentsRole$ {
1346
1380
  export const outboundSchema = DeploymentsRole$outboundSchema;
1347
1381
  }
1348
1382
 
1383
+ /** @internal */
1384
+ export const Deployments2DeploymentsType$inboundSchema: z.ZodNativeEnum<
1385
+ typeof Deployments2DeploymentsType
1386
+ > = z.nativeEnum(Deployments2DeploymentsType);
1387
+
1388
+ /** @internal */
1389
+ export const Deployments2DeploymentsType$outboundSchema: z.ZodNativeEnum<
1390
+ typeof Deployments2DeploymentsType
1391
+ > = Deployments2DeploymentsType$inboundSchema;
1392
+
1393
+ /**
1394
+ * @internal
1395
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1396
+ */
1397
+ export namespace Deployments2DeploymentsType$ {
1398
+ /** @deprecated use `Deployments2DeploymentsType$inboundSchema` instead. */
1399
+ export const inboundSchema = Deployments2DeploymentsType$inboundSchema;
1400
+ /** @deprecated use `Deployments2DeploymentsType$outboundSchema` instead. */
1401
+ export const outboundSchema = Deployments2DeploymentsType$outboundSchema;
1402
+ }
1403
+
1404
+ /** @internal */
1405
+ export const Deployments2File$inboundSchema: z.ZodType<
1406
+ Deployments2File,
1407
+ z.ZodTypeDef,
1408
+ unknown
1409
+ > = z.object({
1410
+ file_data: z.string(),
1411
+ filename: z.string().optional(),
1412
+ }).transform((v) => {
1413
+ return remap$(v, {
1414
+ "file_data": "fileData",
1415
+ });
1416
+ });
1417
+
1418
+ /** @internal */
1419
+ export type Deployments2File$Outbound = {
1420
+ file_data: string;
1421
+ filename?: string | undefined;
1422
+ };
1423
+
1424
+ /** @internal */
1425
+ export const Deployments2File$outboundSchema: z.ZodType<
1426
+ Deployments2File$Outbound,
1427
+ z.ZodTypeDef,
1428
+ Deployments2File
1429
+ > = z.object({
1430
+ fileData: z.string(),
1431
+ filename: z.string().optional(),
1432
+ }).transform((v) => {
1433
+ return remap$(v, {
1434
+ fileData: "file_data",
1435
+ });
1436
+ });
1437
+
1438
+ /**
1439
+ * @internal
1440
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1441
+ */
1442
+ export namespace Deployments2File$ {
1443
+ /** @deprecated use `Deployments2File$inboundSchema` instead. */
1444
+ export const inboundSchema = Deployments2File$inboundSchema;
1445
+ /** @deprecated use `Deployments2File$outboundSchema` instead. */
1446
+ export const outboundSchema = Deployments2File$outboundSchema;
1447
+ /** @deprecated use `Deployments2File$Outbound` instead. */
1448
+ export type Outbound = Deployments2File$Outbound;
1449
+ }
1450
+
1451
+ export function deployments2FileToJSON(
1452
+ deployments2File: Deployments2File,
1453
+ ): string {
1454
+ return JSON.stringify(
1455
+ Deployments2File$outboundSchema.parse(deployments2File),
1456
+ );
1457
+ }
1458
+
1459
+ export function deployments2FileFromJSON(
1460
+ jsonString: string,
1461
+ ): SafeParseResult<Deployments2File, SDKValidationError> {
1462
+ return safeParse(
1463
+ jsonString,
1464
+ (x) => Deployments2File$inboundSchema.parse(JSON.parse(x)),
1465
+ `Failed to parse 'Deployments2File' from JSON`,
1466
+ );
1467
+ }
1468
+
1469
+ /** @internal */
1470
+ export const Deployments23$inboundSchema: z.ZodType<
1471
+ Deployments23,
1472
+ z.ZodTypeDef,
1473
+ unknown
1474
+ > = z.object({
1475
+ type: Deployments2DeploymentsType$inboundSchema,
1476
+ file: z.lazy(() => Deployments2File$inboundSchema),
1477
+ });
1478
+
1479
+ /** @internal */
1480
+ export type Deployments23$Outbound = {
1481
+ type: string;
1482
+ file: Deployments2File$Outbound;
1483
+ };
1484
+
1485
+ /** @internal */
1486
+ export const Deployments23$outboundSchema: z.ZodType<
1487
+ Deployments23$Outbound,
1488
+ z.ZodTypeDef,
1489
+ Deployments23
1490
+ > = z.object({
1491
+ type: Deployments2DeploymentsType$outboundSchema,
1492
+ file: z.lazy(() => Deployments2File$outboundSchema),
1493
+ });
1494
+
1495
+ /**
1496
+ * @internal
1497
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1498
+ */
1499
+ export namespace Deployments23$ {
1500
+ /** @deprecated use `Deployments23$inboundSchema` instead. */
1501
+ export const inboundSchema = Deployments23$inboundSchema;
1502
+ /** @deprecated use `Deployments23$outboundSchema` instead. */
1503
+ export const outboundSchema = Deployments23$outboundSchema;
1504
+ /** @deprecated use `Deployments23$Outbound` instead. */
1505
+ export type Outbound = Deployments23$Outbound;
1506
+ }
1507
+
1508
+ export function deployments23ToJSON(deployments23: Deployments23): string {
1509
+ return JSON.stringify(Deployments23$outboundSchema.parse(deployments23));
1510
+ }
1511
+
1512
+ export function deployments23FromJSON(
1513
+ jsonString: string,
1514
+ ): SafeParseResult<Deployments23, SDKValidationError> {
1515
+ return safeParse(
1516
+ jsonString,
1517
+ (x) => Deployments23$inboundSchema.parse(JSON.parse(x)),
1518
+ `Failed to parse 'Deployments23' from JSON`,
1519
+ );
1520
+ }
1521
+
1349
1522
  /** @internal */
1350
1523
  export const Deployments2Type$inboundSchema: z.ZodNativeEnum<
1351
1524
  typeof Deployments2Type
@@ -1489,24 +1662,26 @@ export function deployments22FromJSON(
1489
1662
  }
1490
1663
 
1491
1664
  /** @internal */
1492
- export const Deployments2DeploymentsType$inboundSchema: z.ZodNativeEnum<
1493
- typeof Deployments2DeploymentsType
1494
- > = z.nativeEnum(Deployments2DeploymentsType);
1665
+ export const Deployments2DeploymentsResponseType$inboundSchema: z.ZodNativeEnum<
1666
+ typeof Deployments2DeploymentsResponseType
1667
+ > = z.nativeEnum(Deployments2DeploymentsResponseType);
1495
1668
 
1496
1669
  /** @internal */
1497
- export const Deployments2DeploymentsType$outboundSchema: z.ZodNativeEnum<
1498
- typeof Deployments2DeploymentsType
1499
- > = Deployments2DeploymentsType$inboundSchema;
1670
+ export const Deployments2DeploymentsResponseType$outboundSchema:
1671
+ z.ZodNativeEnum<typeof Deployments2DeploymentsResponseType> =
1672
+ Deployments2DeploymentsResponseType$inboundSchema;
1500
1673
 
1501
1674
  /**
1502
1675
  * @internal
1503
1676
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1504
1677
  */
1505
- export namespace Deployments2DeploymentsType$ {
1506
- /** @deprecated use `Deployments2DeploymentsType$inboundSchema` instead. */
1507
- export const inboundSchema = Deployments2DeploymentsType$inboundSchema;
1508
- /** @deprecated use `Deployments2DeploymentsType$outboundSchema` instead. */
1509
- export const outboundSchema = Deployments2DeploymentsType$outboundSchema;
1678
+ export namespace Deployments2DeploymentsResponseType$ {
1679
+ /** @deprecated use `Deployments2DeploymentsResponseType$inboundSchema` instead. */
1680
+ export const inboundSchema =
1681
+ Deployments2DeploymentsResponseType$inboundSchema;
1682
+ /** @deprecated use `Deployments2DeploymentsResponseType$outboundSchema` instead. */
1683
+ export const outboundSchema =
1684
+ Deployments2DeploymentsResponseType$outboundSchema;
1510
1685
  }
1511
1686
 
1512
1687
  /** @internal */
@@ -1515,7 +1690,7 @@ export const Deployments21$inboundSchema: z.ZodType<
1515
1690
  z.ZodTypeDef,
1516
1691
  unknown
1517
1692
  > = z.object({
1518
- type: Deployments2DeploymentsType$inboundSchema,
1693
+ type: Deployments2DeploymentsResponseType$inboundSchema,
1519
1694
  text: z.string(),
1520
1695
  });
1521
1696
 
@@ -1531,7 +1706,7 @@ export const Deployments21$outboundSchema: z.ZodType<
1531
1706
  z.ZodTypeDef,
1532
1707
  Deployments21
1533
1708
  > = z.object({
1534
- type: Deployments2DeploymentsType$outboundSchema,
1709
+ type: Deployments2DeploymentsResponseType$outboundSchema,
1535
1710
  text: z.string(),
1536
1711
  });
1537
1712
 
@@ -1570,12 +1745,14 @@ export const DeploymentsContent2$inboundSchema: z.ZodType<
1570
1745
  > = z.union([
1571
1746
  z.lazy(() => Deployments21$inboundSchema),
1572
1747
  z.lazy(() => Deployments22$inboundSchema),
1748
+ z.lazy(() => Deployments23$inboundSchema),
1573
1749
  ]);
1574
1750
 
1575
1751
  /** @internal */
1576
1752
  export type DeploymentsContent2$Outbound =
1577
1753
  | Deployments21$Outbound
1578
- | Deployments22$Outbound;
1754
+ | Deployments22$Outbound
1755
+ | Deployments23$Outbound;
1579
1756
 
1580
1757
  /** @internal */
1581
1758
  export const DeploymentsContent2$outboundSchema: z.ZodType<
@@ -1585,6 +1762,7 @@ export const DeploymentsContent2$outboundSchema: z.ZodType<
1585
1762
  > = z.union([
1586
1763
  z.lazy(() => Deployments21$outboundSchema),
1587
1764
  z.lazy(() => Deployments22$outboundSchema),
1765
+ z.lazy(() => Deployments23$outboundSchema),
1588
1766
  ]);
1589
1767
 
1590
1768
  /**
@@ -1628,13 +1806,16 @@ export const DeploymentsContent$inboundSchema: z.ZodType<
1628
1806
  z.array(z.union([
1629
1807
  z.lazy(() => Deployments21$inboundSchema),
1630
1808
  z.lazy(() => Deployments22$inboundSchema),
1809
+ z.lazy(() => Deployments23$inboundSchema),
1631
1810
  ])),
1632
1811
  ]);
1633
1812
 
1634
1813
  /** @internal */
1635
1814
  export type DeploymentsContent$Outbound =
1636
1815
  | string
1637
- | Array<Deployments21$Outbound | Deployments22$Outbound>;
1816
+ | Array<
1817
+ Deployments21$Outbound | Deployments22$Outbound | Deployments23$Outbound
1818
+ >;
1638
1819
 
1639
1820
  /** @internal */
1640
1821
  export const DeploymentsContent$outboundSchema: z.ZodType<
@@ -1646,6 +1827,7 @@ export const DeploymentsContent$outboundSchema: z.ZodType<
1646
1827
  z.array(z.union([
1647
1828
  z.lazy(() => Deployments21$outboundSchema),
1648
1829
  z.lazy(() => Deployments22$outboundSchema),
1830
+ z.lazy(() => Deployments23$outboundSchema),
1649
1831
  ])),
1650
1832
  ]);
1651
1833
 
@@ -1835,6 +2017,7 @@ export const DeploymentsMessages$inboundSchema: z.ZodType<
1835
2017
  z.array(z.union([
1836
2018
  z.lazy(() => Deployments21$inboundSchema),
1837
2019
  z.lazy(() => Deployments22$inboundSchema),
2020
+ z.lazy(() => Deployments23$inboundSchema),
1838
2021
  ])),
1839
2022
  ]),
1840
2023
  tool_calls: z.array(z.lazy(() => DeploymentsToolCalls$inboundSchema))
@@ -1850,7 +2033,11 @@ export const DeploymentsMessages$inboundSchema: z.ZodType<
1850
2033
  /** @internal */
1851
2034
  export type DeploymentsMessages$Outbound = {
1852
2035
  role: string;
1853
- content: string | Array<Deployments21$Outbound | Deployments22$Outbound>;
2036
+ content:
2037
+ | string
2038
+ | Array<
2039
+ Deployments21$Outbound | Deployments22$Outbound | Deployments23$Outbound
2040
+ >;
1854
2041
  tool_calls?: Array<DeploymentsToolCalls$Outbound> | undefined;
1855
2042
  tool_call_id?: string | undefined;
1856
2043
  };
@@ -1867,6 +2054,7 @@ export const DeploymentsMessages$outboundSchema: z.ZodType<
1867
2054
  z.array(z.union([
1868
2055
  z.lazy(() => Deployments21$outboundSchema),
1869
2056
  z.lazy(() => Deployments22$outboundSchema),
2057
+ z.lazy(() => Deployments23$outboundSchema),
1870
2058
  ])),
1871
2059
  ]),
1872
2060
  toolCalls: z.array(z.lazy(() => DeploymentsToolCalls$outboundSchema))