@voiceflow/dtos-interact 1.58.0 → 1.58.1-e23544f7c5.1

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 (29) hide show
  1. package/build/cjs/socket/socket-action-trace.dto.d.ts +938 -84
  2. package/build/cjs/socket/socket-action-trace.dto.d.ts.map +1 -1
  3. package/build/cjs/socket/socket-message.dto.d.ts +1878 -170
  4. package/build/cjs/socket/socket-message.dto.d.ts.map +1 -1
  5. package/build/cjs/trace/any.dto.d.ts +793 -251
  6. package/build/cjs/trace/any.dto.d.ts.map +1 -1
  7. package/build/cjs/trace/completion.dto.d.ts +271 -0
  8. package/build/cjs/trace/completion.dto.d.ts.map +1 -1
  9. package/build/cjs/trace/completion.dto.js +2 -0
  10. package/build/cjs/trace/completion.dto.js.map +1 -1
  11. package/build/cjs/trace/text.dto.d.ts +271 -0
  12. package/build/cjs/trace/text.dto.d.ts.map +1 -1
  13. package/build/cjs/trace/text.dto.js +2 -0
  14. package/build/cjs/trace/text.dto.js.map +1 -1
  15. package/build/esm/socket/socket-action-trace.dto.d.ts +938 -84
  16. package/build/esm/socket/socket-action-trace.dto.d.ts.map +1 -1
  17. package/build/esm/socket/socket-message.dto.d.ts +1878 -170
  18. package/build/esm/socket/socket-message.dto.d.ts.map +1 -1
  19. package/build/esm/trace/any.dto.d.ts +793 -251
  20. package/build/esm/trace/any.dto.d.ts.map +1 -1
  21. package/build/esm/trace/completion.dto.d.ts +271 -0
  22. package/build/esm/trace/completion.dto.d.ts.map +1 -1
  23. package/build/esm/trace/completion.dto.js +2 -0
  24. package/build/esm/trace/completion.dto.js.map +1 -1
  25. package/build/esm/trace/text.dto.d.ts +271 -0
  26. package/build/esm/trace/text.dto.d.ts.map +1 -1
  27. package/build/esm/trace/text.dto.js +2 -0
  28. package/build/esm/trace/text.dto.js.map +1 -1
  29. package/package.json +2 -2
@@ -1216,114 +1216,6 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1216
1216
  state: "content";
1217
1217
  }>, z.ZodObject<{
1218
1218
  state: z.ZodLiteral<"end">;
1219
- }, "strip", z.ZodTypeAny, {
1220
- state: "end";
1221
- }, {
1222
- state: "end";
1223
- }>]>;
1224
- }, "strip", z.ZodTypeAny, {
1225
- type: "completion";
1226
- payload: {
1227
- messageID: string;
1228
- state: "start";
1229
- ai?: boolean | undefined;
1230
- delay?: number | undefined;
1231
- sourceUrls?: {
1232
- url: string;
1233
- name?: string | undefined;
1234
- }[] | undefined;
1235
- } | {
1236
- content: string;
1237
- state: "content";
1238
- } | {
1239
- state: "end";
1240
- };
1241
- time?: number | undefined;
1242
- paths?: {
1243
- label?: string | undefined;
1244
- event?: {
1245
- type: string;
1246
- payload?: any;
1247
- diagramID?: string | undefined;
1248
- time?: number | undefined;
1249
- } | undefined;
1250
- }[] | undefined;
1251
- defaultPath?: number | undefined;
1252
- turnID?: string | undefined;
1253
- handleID?: string | undefined;
1254
- }, {
1255
- type: "completion";
1256
- payload: {
1257
- messageID: string;
1258
- state: "start";
1259
- ai?: boolean | undefined;
1260
- delay?: number | undefined;
1261
- sourceUrls?: {
1262
- url: string;
1263
- name?: string | undefined;
1264
- }[] | undefined;
1265
- } | {
1266
- content: string;
1267
- state: "content";
1268
- } | {
1269
- state: "end";
1270
- };
1271
- time?: number | undefined;
1272
- paths?: {
1273
- label?: string | undefined;
1274
- event?: {
1275
- type: string;
1276
- payload?: any;
1277
- diagramID?: string | undefined;
1278
- time?: number | undefined;
1279
- } | undefined;
1280
- }[] | undefined;
1281
- defaultPath?: number | undefined;
1282
- turnID?: string | undefined;
1283
- handleID?: string | undefined;
1284
- }>, z.ZodObject<{
1285
- paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
1286
- label: z.ZodOptional<z.ZodString>;
1287
- event: z.ZodOptional<z.ZodObject<{
1288
- type: z.ZodString;
1289
- payload: z.ZodOptional<z.ZodAny>;
1290
- diagramID: z.ZodOptional<z.ZodString>;
1291
- time: z.ZodOptional<z.ZodNumber>;
1292
- }, "strip", z.ZodTypeAny, {
1293
- type: string;
1294
- payload?: any;
1295
- diagramID?: string | undefined;
1296
- time?: number | undefined;
1297
- }, {
1298
- type: string;
1299
- payload?: any;
1300
- diagramID?: string | undefined;
1301
- time?: number | undefined;
1302
- }>>;
1303
- }, "strip", z.ZodTypeAny, {
1304
- label?: string | undefined;
1305
- event?: {
1306
- type: string;
1307
- payload?: any;
1308
- diagramID?: string | undefined;
1309
- time?: number | undefined;
1310
- } | undefined;
1311
- }, {
1312
- label?: string | undefined;
1313
- event?: {
1314
- type: string;
1315
- payload?: any;
1316
- diagramID?: string | undefined;
1317
- time?: number | undefined;
1318
- } | undefined;
1319
- }>, "many">>;
1320
- defaultPath: z.ZodOptional<z.ZodNumber>;
1321
- time: z.ZodOptional<z.ZodNumber>;
1322
- turnID: z.ZodOptional<z.ZodString>;
1323
- handleID: z.ZodOptional<z.ZodString>;
1324
- } & {
1325
- type: z.ZodLiteral<"debug">;
1326
- payload: z.ZodObject<{
1327
1219
  ref: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1328
1220
  type: z.ZodLiteral<"node">;
1329
1221
  nodeID: z.ZodString;
@@ -1439,21 +1331,8 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1439
1331
  nodeID: string;
1440
1332
  mcpToolName: string;
1441
1333
  }>]>>;
1442
- type: z.ZodOptional<z.ZodString>;
1443
- level: z.ZodOptional<z.ZodNativeEnum<{
1444
- readonly FATAL: "fatal";
1445
- readonly ERROR: "error";
1446
- readonly WARN: "warn";
1447
- readonly INFO: "info";
1448
- readonly DEBUG: "debug";
1449
- }>>;
1450
- message: z.ZodString;
1451
- context: z.ZodOptional<z.ZodString>;
1452
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1453
1334
  }, "strip", z.ZodTypeAny, {
1454
- message: string;
1455
- type?: string | undefined;
1456
- metadata?: Record<string, unknown> | undefined;
1335
+ state: "end";
1457
1336
  ref?: {
1458
1337
  type: "node";
1459
1338
  diagramID: string;
@@ -1493,12 +1372,8 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1493
1372
  nodeID: string;
1494
1373
  promptID: string;
1495
1374
  } | undefined;
1496
- level?: "error" | "debug" | "fatal" | "warn" | "info" | undefined;
1497
- context?: string | undefined;
1498
1375
  }, {
1499
- message: string;
1500
- type?: string | undefined;
1501
- metadata?: Record<string, unknown> | undefined;
1376
+ state: "end";
1502
1377
  ref?: {
1503
1378
  type: "node";
1504
1379
  diagramID: string;
@@ -1538,15 +1413,23 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1538
1413
  nodeID: string;
1539
1414
  promptID: string;
1540
1415
  } | undefined;
1541
- level?: "error" | "debug" | "fatal" | "warn" | "info" | undefined;
1542
- context?: string | undefined;
1543
- }>;
1416
+ }>]>;
1544
1417
  }, "strip", z.ZodTypeAny, {
1545
- type: "debug";
1418
+ type: "completion";
1546
1419
  payload: {
1547
- message: string;
1548
- type?: string | undefined;
1549
- metadata?: Record<string, unknown> | undefined;
1420
+ messageID: string;
1421
+ state: "start";
1422
+ ai?: boolean | undefined;
1423
+ delay?: number | undefined;
1424
+ sourceUrls?: {
1425
+ url: string;
1426
+ name?: string | undefined;
1427
+ }[] | undefined;
1428
+ } | {
1429
+ content: string;
1430
+ state: "content";
1431
+ } | {
1432
+ state: "end";
1550
1433
  ref?: {
1551
1434
  type: "node";
1552
1435
  diagramID: string;
@@ -1586,8 +1469,6 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1586
1469
  nodeID: string;
1587
1470
  promptID: string;
1588
1471
  } | undefined;
1589
- level?: "error" | "debug" | "fatal" | "warn" | "info" | undefined;
1590
- context?: string | undefined;
1591
1472
  };
1592
1473
  time?: number | undefined;
1593
1474
  paths?: {
@@ -1603,11 +1484,21 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1603
1484
  turnID?: string | undefined;
1604
1485
  handleID?: string | undefined;
1605
1486
  }, {
1606
- type: "debug";
1487
+ type: "completion";
1607
1488
  payload: {
1608
- message: string;
1609
- type?: string | undefined;
1610
- metadata?: Record<string, unknown> | undefined;
1489
+ messageID: string;
1490
+ state: "start";
1491
+ ai?: boolean | undefined;
1492
+ delay?: number | undefined;
1493
+ sourceUrls?: {
1494
+ url: string;
1495
+ name?: string | undefined;
1496
+ }[] | undefined;
1497
+ } | {
1498
+ content: string;
1499
+ state: "content";
1500
+ } | {
1501
+ state: "end";
1611
1502
  ref?: {
1612
1503
  type: "node";
1613
1504
  diagramID: string;
@@ -1647,8 +1538,6 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1647
1538
  nodeID: string;
1648
1539
  promptID: string;
1649
1540
  } | undefined;
1650
- level?: "error" | "debug" | "fatal" | "warn" | "info" | undefined;
1651
- context?: string | undefined;
1652
1541
  };
1653
1542
  time?: number | undefined;
1654
1543
  paths?: {
@@ -1704,82 +1593,464 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1704
1593
  turnID: z.ZodOptional<z.ZodString>;
1705
1594
  handleID: z.ZodOptional<z.ZodString>;
1706
1595
  } & {
1707
- type: z.ZodLiteral<"dtmf">;
1596
+ type: z.ZodLiteral<"debug">;
1708
1597
  payload: z.ZodObject<{
1709
- enabled: z.ZodBoolean;
1710
- timeoutInSeconds: z.ZodNumber;
1711
- delimiter: z.ZodArray<z.ZodEnum<["#", "*"]>, "many">;
1712
- maxDigits: z.ZodNumber;
1713
- }, "strip", z.ZodTypeAny, {
1714
- enabled: boolean;
1715
- timeoutInSeconds: number;
1716
- delimiter: ("#" | "*")[];
1717
- maxDigits: number;
1718
- }, {
1719
- enabled: boolean;
1720
- timeoutInSeconds: number;
1721
- delimiter: ("#" | "*")[];
1722
- maxDigits: number;
1723
- }>;
1724
- }, "strip", z.ZodTypeAny, {
1725
- type: "dtmf";
1726
- payload: {
1727
- enabled: boolean;
1728
- timeoutInSeconds: number;
1729
- delimiter: ("#" | "*")[];
1730
- maxDigits: number;
1731
- };
1732
- time?: number | undefined;
1733
- paths?: {
1734
- label?: string | undefined;
1735
- event?: {
1736
- type: string;
1737
- payload?: any;
1738
- diagramID?: string | undefined;
1739
- time?: number | undefined;
1740
- } | undefined;
1741
- }[] | undefined;
1742
- defaultPath?: number | undefined;
1743
- turnID?: string | undefined;
1744
- handleID?: string | undefined;
1745
- }, {
1746
- type: "dtmf";
1747
- payload: {
1748
- enabled: boolean;
1749
- timeoutInSeconds: number;
1750
- delimiter: ("#" | "*")[];
1751
- maxDigits: number;
1752
- };
1753
- time?: number | undefined;
1754
- paths?: {
1755
- label?: string | undefined;
1756
- event?: {
1757
- type: string;
1758
- payload?: any;
1759
- diagramID?: string | undefined;
1760
- time?: number | undefined;
1761
- } | undefined;
1762
- }[] | undefined;
1763
- defaultPath?: number | undefined;
1764
- turnID?: string | undefined;
1765
- handleID?: string | undefined;
1766
- }>, z.ZodObject<{
1767
- paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
1768
- label: z.ZodOptional<z.ZodString>;
1769
- event: z.ZodOptional<z.ZodObject<{
1770
- type: z.ZodString;
1771
- payload: z.ZodOptional<z.ZodAny>;
1772
- diagramID: z.ZodOptional<z.ZodString>;
1773
- time: z.ZodOptional<z.ZodNumber>;
1598
+ ref: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1599
+ type: z.ZodLiteral<"node">;
1600
+ nodeID: z.ZodString;
1601
+ nodeType: z.ZodString;
1602
+ diagramID: z.ZodString;
1774
1603
  }, "strip", z.ZodTypeAny, {
1775
- type: string;
1776
- payload?: any;
1777
- diagramID?: string | undefined;
1778
- time?: number | undefined;
1604
+ type: "node";
1605
+ diagramID: string;
1606
+ nodeID: string;
1607
+ nodeType: string;
1779
1608
  }, {
1780
- type: string;
1781
- payload?: any;
1782
- diagramID?: string | undefined;
1609
+ type: "node";
1610
+ diagramID: string;
1611
+ nodeID: string;
1612
+ nodeType: string;
1613
+ }>, z.ZodObject<{
1614
+ type: z.ZodLiteral<"agent">;
1615
+ nodeID: z.ZodString;
1616
+ agentID: z.ZodString;
1617
+ diagramID: z.ZodString;
1618
+ agentName: z.ZodOptional<z.ZodString>;
1619
+ }, "strip", z.ZodTypeAny, {
1620
+ type: "agent";
1621
+ diagramID: string;
1622
+ nodeID: string;
1623
+ agentID: string;
1624
+ agentName?: string | undefined;
1625
+ }, {
1626
+ type: "agent";
1627
+ diagramID: string;
1628
+ nodeID: string;
1629
+ agentID: string;
1630
+ agentName?: string | undefined;
1631
+ }>, z.ZodObject<{
1632
+ type: z.ZodLiteral<"prompt">;
1633
+ nodeID: z.ZodString;
1634
+ promptID: z.ZodString;
1635
+ diagramID: z.ZodString;
1636
+ }, "strip", z.ZodTypeAny, {
1637
+ type: "prompt";
1638
+ diagramID: string;
1639
+ nodeID: string;
1640
+ promptID: string;
1641
+ }, {
1642
+ type: "prompt";
1643
+ diagramID: string;
1644
+ nodeID: string;
1645
+ promptID: string;
1646
+ }>, z.ZodObject<{
1647
+ type: z.ZodLiteral<"api-tool">;
1648
+ nodeID: z.ZodString;
1649
+ diagramID: z.ZodString;
1650
+ apiToolID: z.ZodString;
1651
+ apiToolName: z.ZodOptional<z.ZodString>;
1652
+ }, "strip", z.ZodTypeAny, {
1653
+ type: "api-tool";
1654
+ diagramID: string;
1655
+ nodeID: string;
1656
+ apiToolID: string;
1657
+ apiToolName?: string | undefined;
1658
+ }, {
1659
+ type: "api-tool";
1660
+ diagramID: string;
1661
+ nodeID: string;
1662
+ apiToolID: string;
1663
+ apiToolName?: string | undefined;
1664
+ }>, z.ZodObject<{
1665
+ type: z.ZodLiteral<"function">;
1666
+ nodeID: z.ZodString;
1667
+ diagramID: z.ZodString;
1668
+ functionID: z.ZodString;
1669
+ functionName: z.ZodOptional<z.ZodString>;
1670
+ }, "strip", z.ZodTypeAny, {
1671
+ type: "function";
1672
+ diagramID: string;
1673
+ nodeID: string;
1674
+ functionID: string;
1675
+ functionName?: string | undefined;
1676
+ }, {
1677
+ type: "function";
1678
+ diagramID: string;
1679
+ nodeID: string;
1680
+ functionID: string;
1681
+ functionName?: string | undefined;
1682
+ }>, z.ZodObject<{
1683
+ type: z.ZodLiteral<"integration-tool">;
1684
+ nodeID: z.ZodString;
1685
+ diagramID: z.ZodString;
1686
+ integrationToolName: z.ZodString;
1687
+ }, "strip", z.ZodTypeAny, {
1688
+ type: "integration-tool";
1689
+ diagramID: string;
1690
+ nodeID: string;
1691
+ integrationToolName: string;
1692
+ }, {
1693
+ type: "integration-tool";
1694
+ diagramID: string;
1695
+ nodeID: string;
1696
+ integrationToolName: string;
1697
+ }>, z.ZodObject<{
1698
+ type: z.ZodLiteral<"mcp-integration-tool">;
1699
+ nodeID: z.ZodString;
1700
+ diagramID: z.ZodString;
1701
+ mcpToolName: z.ZodString;
1702
+ }, "strip", z.ZodTypeAny, {
1703
+ type: "mcp-integration-tool";
1704
+ diagramID: string;
1705
+ nodeID: string;
1706
+ mcpToolName: string;
1707
+ }, {
1708
+ type: "mcp-integration-tool";
1709
+ diagramID: string;
1710
+ nodeID: string;
1711
+ mcpToolName: string;
1712
+ }>]>>;
1713
+ type: z.ZodOptional<z.ZodString>;
1714
+ level: z.ZodOptional<z.ZodNativeEnum<{
1715
+ readonly FATAL: "fatal";
1716
+ readonly ERROR: "error";
1717
+ readonly WARN: "warn";
1718
+ readonly INFO: "info";
1719
+ readonly DEBUG: "debug";
1720
+ }>>;
1721
+ message: z.ZodString;
1722
+ context: z.ZodOptional<z.ZodString>;
1723
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1724
+ }, "strip", z.ZodTypeAny, {
1725
+ message: string;
1726
+ type?: string | undefined;
1727
+ metadata?: Record<string, unknown> | undefined;
1728
+ ref?: {
1729
+ type: "node";
1730
+ diagramID: string;
1731
+ nodeID: string;
1732
+ nodeType: string;
1733
+ } | {
1734
+ type: "agent";
1735
+ diagramID: string;
1736
+ nodeID: string;
1737
+ agentID: string;
1738
+ agentName?: string | undefined;
1739
+ } | {
1740
+ type: "api-tool";
1741
+ diagramID: string;
1742
+ nodeID: string;
1743
+ apiToolID: string;
1744
+ apiToolName?: string | undefined;
1745
+ } | {
1746
+ type: "integration-tool";
1747
+ diagramID: string;
1748
+ nodeID: string;
1749
+ integrationToolName: string;
1750
+ } | {
1751
+ type: "mcp-integration-tool";
1752
+ diagramID: string;
1753
+ nodeID: string;
1754
+ mcpToolName: string;
1755
+ } | {
1756
+ type: "function";
1757
+ diagramID: string;
1758
+ nodeID: string;
1759
+ functionID: string;
1760
+ functionName?: string | undefined;
1761
+ } | {
1762
+ type: "prompt";
1763
+ diagramID: string;
1764
+ nodeID: string;
1765
+ promptID: string;
1766
+ } | undefined;
1767
+ level?: "error" | "debug" | "fatal" | "warn" | "info" | undefined;
1768
+ context?: string | undefined;
1769
+ }, {
1770
+ message: string;
1771
+ type?: string | undefined;
1772
+ metadata?: Record<string, unknown> | undefined;
1773
+ ref?: {
1774
+ type: "node";
1775
+ diagramID: string;
1776
+ nodeID: string;
1777
+ nodeType: string;
1778
+ } | {
1779
+ type: "agent";
1780
+ diagramID: string;
1781
+ nodeID: string;
1782
+ agentID: string;
1783
+ agentName?: string | undefined;
1784
+ } | {
1785
+ type: "api-tool";
1786
+ diagramID: string;
1787
+ nodeID: string;
1788
+ apiToolID: string;
1789
+ apiToolName?: string | undefined;
1790
+ } | {
1791
+ type: "integration-tool";
1792
+ diagramID: string;
1793
+ nodeID: string;
1794
+ integrationToolName: string;
1795
+ } | {
1796
+ type: "mcp-integration-tool";
1797
+ diagramID: string;
1798
+ nodeID: string;
1799
+ mcpToolName: string;
1800
+ } | {
1801
+ type: "function";
1802
+ diagramID: string;
1803
+ nodeID: string;
1804
+ functionID: string;
1805
+ functionName?: string | undefined;
1806
+ } | {
1807
+ type: "prompt";
1808
+ diagramID: string;
1809
+ nodeID: string;
1810
+ promptID: string;
1811
+ } | undefined;
1812
+ level?: "error" | "debug" | "fatal" | "warn" | "info" | undefined;
1813
+ context?: string | undefined;
1814
+ }>;
1815
+ }, "strip", z.ZodTypeAny, {
1816
+ type: "debug";
1817
+ payload: {
1818
+ message: string;
1819
+ type?: string | undefined;
1820
+ metadata?: Record<string, unknown> | undefined;
1821
+ ref?: {
1822
+ type: "node";
1823
+ diagramID: string;
1824
+ nodeID: string;
1825
+ nodeType: string;
1826
+ } | {
1827
+ type: "agent";
1828
+ diagramID: string;
1829
+ nodeID: string;
1830
+ agentID: string;
1831
+ agentName?: string | undefined;
1832
+ } | {
1833
+ type: "api-tool";
1834
+ diagramID: string;
1835
+ nodeID: string;
1836
+ apiToolID: string;
1837
+ apiToolName?: string | undefined;
1838
+ } | {
1839
+ type: "integration-tool";
1840
+ diagramID: string;
1841
+ nodeID: string;
1842
+ integrationToolName: string;
1843
+ } | {
1844
+ type: "mcp-integration-tool";
1845
+ diagramID: string;
1846
+ nodeID: string;
1847
+ mcpToolName: string;
1848
+ } | {
1849
+ type: "function";
1850
+ diagramID: string;
1851
+ nodeID: string;
1852
+ functionID: string;
1853
+ functionName?: string | undefined;
1854
+ } | {
1855
+ type: "prompt";
1856
+ diagramID: string;
1857
+ nodeID: string;
1858
+ promptID: string;
1859
+ } | undefined;
1860
+ level?: "error" | "debug" | "fatal" | "warn" | "info" | undefined;
1861
+ context?: string | undefined;
1862
+ };
1863
+ time?: number | undefined;
1864
+ paths?: {
1865
+ label?: string | undefined;
1866
+ event?: {
1867
+ type: string;
1868
+ payload?: any;
1869
+ diagramID?: string | undefined;
1870
+ time?: number | undefined;
1871
+ } | undefined;
1872
+ }[] | undefined;
1873
+ defaultPath?: number | undefined;
1874
+ turnID?: string | undefined;
1875
+ handleID?: string | undefined;
1876
+ }, {
1877
+ type: "debug";
1878
+ payload: {
1879
+ message: string;
1880
+ type?: string | undefined;
1881
+ metadata?: Record<string, unknown> | undefined;
1882
+ ref?: {
1883
+ type: "node";
1884
+ diagramID: string;
1885
+ nodeID: string;
1886
+ nodeType: string;
1887
+ } | {
1888
+ type: "agent";
1889
+ diagramID: string;
1890
+ nodeID: string;
1891
+ agentID: string;
1892
+ agentName?: string | undefined;
1893
+ } | {
1894
+ type: "api-tool";
1895
+ diagramID: string;
1896
+ nodeID: string;
1897
+ apiToolID: string;
1898
+ apiToolName?: string | undefined;
1899
+ } | {
1900
+ type: "integration-tool";
1901
+ diagramID: string;
1902
+ nodeID: string;
1903
+ integrationToolName: string;
1904
+ } | {
1905
+ type: "mcp-integration-tool";
1906
+ diagramID: string;
1907
+ nodeID: string;
1908
+ mcpToolName: string;
1909
+ } | {
1910
+ type: "function";
1911
+ diagramID: string;
1912
+ nodeID: string;
1913
+ functionID: string;
1914
+ functionName?: string | undefined;
1915
+ } | {
1916
+ type: "prompt";
1917
+ diagramID: string;
1918
+ nodeID: string;
1919
+ promptID: string;
1920
+ } | undefined;
1921
+ level?: "error" | "debug" | "fatal" | "warn" | "info" | undefined;
1922
+ context?: string | undefined;
1923
+ };
1924
+ time?: number | undefined;
1925
+ paths?: {
1926
+ label?: string | undefined;
1927
+ event?: {
1928
+ type: string;
1929
+ payload?: any;
1930
+ diagramID?: string | undefined;
1931
+ time?: number | undefined;
1932
+ } | undefined;
1933
+ }[] | undefined;
1934
+ defaultPath?: number | undefined;
1935
+ turnID?: string | undefined;
1936
+ handleID?: string | undefined;
1937
+ }>, z.ZodObject<{
1938
+ paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
1939
+ label: z.ZodOptional<z.ZodString>;
1940
+ event: z.ZodOptional<z.ZodObject<{
1941
+ type: z.ZodString;
1942
+ payload: z.ZodOptional<z.ZodAny>;
1943
+ diagramID: z.ZodOptional<z.ZodString>;
1944
+ time: z.ZodOptional<z.ZodNumber>;
1945
+ }, "strip", z.ZodTypeAny, {
1946
+ type: string;
1947
+ payload?: any;
1948
+ diagramID?: string | undefined;
1949
+ time?: number | undefined;
1950
+ }, {
1951
+ type: string;
1952
+ payload?: any;
1953
+ diagramID?: string | undefined;
1954
+ time?: number | undefined;
1955
+ }>>;
1956
+ }, "strip", z.ZodTypeAny, {
1957
+ label?: string | undefined;
1958
+ event?: {
1959
+ type: string;
1960
+ payload?: any;
1961
+ diagramID?: string | undefined;
1962
+ time?: number | undefined;
1963
+ } | undefined;
1964
+ }, {
1965
+ label?: string | undefined;
1966
+ event?: {
1967
+ type: string;
1968
+ payload?: any;
1969
+ diagramID?: string | undefined;
1970
+ time?: number | undefined;
1971
+ } | undefined;
1972
+ }>, "many">>;
1973
+ defaultPath: z.ZodOptional<z.ZodNumber>;
1974
+ time: z.ZodOptional<z.ZodNumber>;
1975
+ turnID: z.ZodOptional<z.ZodString>;
1976
+ handleID: z.ZodOptional<z.ZodString>;
1977
+ } & {
1978
+ type: z.ZodLiteral<"dtmf">;
1979
+ payload: z.ZodObject<{
1980
+ enabled: z.ZodBoolean;
1981
+ timeoutInSeconds: z.ZodNumber;
1982
+ delimiter: z.ZodArray<z.ZodEnum<["#", "*"]>, "many">;
1983
+ maxDigits: z.ZodNumber;
1984
+ }, "strip", z.ZodTypeAny, {
1985
+ enabled: boolean;
1986
+ timeoutInSeconds: number;
1987
+ delimiter: ("#" | "*")[];
1988
+ maxDigits: number;
1989
+ }, {
1990
+ enabled: boolean;
1991
+ timeoutInSeconds: number;
1992
+ delimiter: ("#" | "*")[];
1993
+ maxDigits: number;
1994
+ }>;
1995
+ }, "strip", z.ZodTypeAny, {
1996
+ type: "dtmf";
1997
+ payload: {
1998
+ enabled: boolean;
1999
+ timeoutInSeconds: number;
2000
+ delimiter: ("#" | "*")[];
2001
+ maxDigits: number;
2002
+ };
2003
+ time?: number | undefined;
2004
+ paths?: {
2005
+ label?: string | undefined;
2006
+ event?: {
2007
+ type: string;
2008
+ payload?: any;
2009
+ diagramID?: string | undefined;
2010
+ time?: number | undefined;
2011
+ } | undefined;
2012
+ }[] | undefined;
2013
+ defaultPath?: number | undefined;
2014
+ turnID?: string | undefined;
2015
+ handleID?: string | undefined;
2016
+ }, {
2017
+ type: "dtmf";
2018
+ payload: {
2019
+ enabled: boolean;
2020
+ timeoutInSeconds: number;
2021
+ delimiter: ("#" | "*")[];
2022
+ maxDigits: number;
2023
+ };
2024
+ time?: number | undefined;
2025
+ paths?: {
2026
+ label?: string | undefined;
2027
+ event?: {
2028
+ type: string;
2029
+ payload?: any;
2030
+ diagramID?: string | undefined;
2031
+ time?: number | undefined;
2032
+ } | undefined;
2033
+ }[] | undefined;
2034
+ defaultPath?: number | undefined;
2035
+ turnID?: string | undefined;
2036
+ handleID?: string | undefined;
2037
+ }>, z.ZodObject<{
2038
+ paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
2039
+ label: z.ZodOptional<z.ZodString>;
2040
+ event: z.ZodOptional<z.ZodObject<{
2041
+ type: z.ZodString;
2042
+ payload: z.ZodOptional<z.ZodAny>;
2043
+ diagramID: z.ZodOptional<z.ZodString>;
2044
+ time: z.ZodOptional<z.ZodNumber>;
2045
+ }, "strip", z.ZodTypeAny, {
2046
+ type: string;
2047
+ payload?: any;
2048
+ diagramID?: string | undefined;
2049
+ time?: number | undefined;
2050
+ }, {
2051
+ type: string;
2052
+ payload?: any;
2053
+ diagramID?: string | undefined;
1783
2054
  time?: number | undefined;
1784
2055
  }>>;
1785
2056
  }, "strip", z.ZodTypeAny, {
@@ -2680,43 +2951,158 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2680
2951
  diagramID: z.ZodOptional<z.ZodString>;
2681
2952
  time: z.ZodOptional<z.ZodNumber>;
2682
2953
  }, "strip", z.ZodTypeAny, {
2683
- type: string;
2684
- payload?: any;
2685
- diagramID?: string | undefined;
2686
- time?: number | undefined;
2954
+ type: string;
2955
+ payload?: any;
2956
+ diagramID?: string | undefined;
2957
+ time?: number | undefined;
2958
+ }, {
2959
+ type: string;
2960
+ payload?: any;
2961
+ diagramID?: string | undefined;
2962
+ time?: number | undefined;
2963
+ }>>;
2964
+ }, "strip", z.ZodTypeAny, {
2965
+ label?: string | undefined;
2966
+ event?: {
2967
+ type: string;
2968
+ payload?: any;
2969
+ diagramID?: string | undefined;
2970
+ time?: number | undefined;
2971
+ } | undefined;
2972
+ }, {
2973
+ label?: string | undefined;
2974
+ event?: {
2975
+ type: string;
2976
+ payload?: any;
2977
+ diagramID?: string | undefined;
2978
+ time?: number | undefined;
2979
+ } | undefined;
2980
+ }>, "many">>;
2981
+ defaultPath: z.ZodOptional<z.ZodNumber>;
2982
+ time: z.ZodOptional<z.ZodNumber>;
2983
+ turnID: z.ZodOptional<z.ZodString>;
2984
+ handleID: z.ZodOptional<z.ZodString>;
2985
+ } & {
2986
+ type: z.ZodLiteral<"text">;
2987
+ payload: z.ZodObject<{
2988
+ ai: z.ZodOptional<z.ZodBoolean>;
2989
+ message: z.ZodString;
2990
+ } & {
2991
+ ref: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2992
+ type: z.ZodLiteral<"node">;
2993
+ nodeID: z.ZodString;
2994
+ nodeType: z.ZodString;
2995
+ diagramID: z.ZodString;
2996
+ }, "strip", z.ZodTypeAny, {
2997
+ type: "node";
2998
+ diagramID: string;
2999
+ nodeID: string;
3000
+ nodeType: string;
3001
+ }, {
3002
+ type: "node";
3003
+ diagramID: string;
3004
+ nodeID: string;
3005
+ nodeType: string;
3006
+ }>, z.ZodObject<{
3007
+ type: z.ZodLiteral<"agent">;
3008
+ nodeID: z.ZodString;
3009
+ agentID: z.ZodString;
3010
+ diagramID: z.ZodString;
3011
+ agentName: z.ZodOptional<z.ZodString>;
3012
+ }, "strip", z.ZodTypeAny, {
3013
+ type: "agent";
3014
+ diagramID: string;
3015
+ nodeID: string;
3016
+ agentID: string;
3017
+ agentName?: string | undefined;
3018
+ }, {
3019
+ type: "agent";
3020
+ diagramID: string;
3021
+ nodeID: string;
3022
+ agentID: string;
3023
+ agentName?: string | undefined;
3024
+ }>, z.ZodObject<{
3025
+ type: z.ZodLiteral<"prompt">;
3026
+ nodeID: z.ZodString;
3027
+ promptID: z.ZodString;
3028
+ diagramID: z.ZodString;
3029
+ }, "strip", z.ZodTypeAny, {
3030
+ type: "prompt";
3031
+ diagramID: string;
3032
+ nodeID: string;
3033
+ promptID: string;
3034
+ }, {
3035
+ type: "prompt";
3036
+ diagramID: string;
3037
+ nodeID: string;
3038
+ promptID: string;
3039
+ }>, z.ZodObject<{
3040
+ type: z.ZodLiteral<"api-tool">;
3041
+ nodeID: z.ZodString;
3042
+ diagramID: z.ZodString;
3043
+ apiToolID: z.ZodString;
3044
+ apiToolName: z.ZodOptional<z.ZodString>;
3045
+ }, "strip", z.ZodTypeAny, {
3046
+ type: "api-tool";
3047
+ diagramID: string;
3048
+ nodeID: string;
3049
+ apiToolID: string;
3050
+ apiToolName?: string | undefined;
2687
3051
  }, {
2688
- type: string;
2689
- payload?: any;
2690
- diagramID?: string | undefined;
2691
- time?: number | undefined;
2692
- }>>;
2693
- }, "strip", z.ZodTypeAny, {
2694
- label?: string | undefined;
2695
- event?: {
2696
- type: string;
2697
- payload?: any;
2698
- diagramID?: string | undefined;
2699
- time?: number | undefined;
2700
- } | undefined;
2701
- }, {
2702
- label?: string | undefined;
2703
- event?: {
2704
- type: string;
2705
- payload?: any;
2706
- diagramID?: string | undefined;
2707
- time?: number | undefined;
2708
- } | undefined;
2709
- }>, "many">>;
2710
- defaultPath: z.ZodOptional<z.ZodNumber>;
2711
- time: z.ZodOptional<z.ZodNumber>;
2712
- turnID: z.ZodOptional<z.ZodString>;
2713
- handleID: z.ZodOptional<z.ZodString>;
2714
- } & {
2715
- type: z.ZodLiteral<"text">;
2716
- payload: z.ZodObject<{
2717
- ai: z.ZodOptional<z.ZodBoolean>;
2718
- message: z.ZodString;
2719
- } & {
3052
+ type: "api-tool";
3053
+ diagramID: string;
3054
+ nodeID: string;
3055
+ apiToolID: string;
3056
+ apiToolName?: string | undefined;
3057
+ }>, z.ZodObject<{
3058
+ type: z.ZodLiteral<"function">;
3059
+ nodeID: z.ZodString;
3060
+ diagramID: z.ZodString;
3061
+ functionID: z.ZodString;
3062
+ functionName: z.ZodOptional<z.ZodString>;
3063
+ }, "strip", z.ZodTypeAny, {
3064
+ type: "function";
3065
+ diagramID: string;
3066
+ nodeID: string;
3067
+ functionID: string;
3068
+ functionName?: string | undefined;
3069
+ }, {
3070
+ type: "function";
3071
+ diagramID: string;
3072
+ nodeID: string;
3073
+ functionID: string;
3074
+ functionName?: string | undefined;
3075
+ }>, z.ZodObject<{
3076
+ type: z.ZodLiteral<"integration-tool">;
3077
+ nodeID: z.ZodString;
3078
+ diagramID: z.ZodString;
3079
+ integrationToolName: z.ZodString;
3080
+ }, "strip", z.ZodTypeAny, {
3081
+ type: "integration-tool";
3082
+ diagramID: string;
3083
+ nodeID: string;
3084
+ integrationToolName: string;
3085
+ }, {
3086
+ type: "integration-tool";
3087
+ diagramID: string;
3088
+ nodeID: string;
3089
+ integrationToolName: string;
3090
+ }>, z.ZodObject<{
3091
+ type: z.ZodLiteral<"mcp-integration-tool">;
3092
+ nodeID: z.ZodString;
3093
+ diagramID: z.ZodString;
3094
+ mcpToolName: z.ZodString;
3095
+ }, "strip", z.ZodTypeAny, {
3096
+ type: "mcp-integration-tool";
3097
+ diagramID: string;
3098
+ nodeID: string;
3099
+ mcpToolName: string;
3100
+ }, {
3101
+ type: "mcp-integration-tool";
3102
+ diagramID: string;
3103
+ nodeID: string;
3104
+ mcpToolName: string;
3105
+ }>]>>;
2720
3106
  slate: z.ZodObject<{
2721
3107
  id: z.ZodString;
2722
3108
  content: z.ZodArray<z.ZodEffects<z.ZodAny, import("../main").SlateText | import("../main").SlateTextElement | import("../main").SlateTextLinkElement | import("../main").SlateTextVariableElement, any>, "many">;
@@ -2760,6 +3146,45 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2760
3146
  } | undefined;
2761
3147
  ai?: boolean | undefined;
2762
3148
  delay?: number | undefined;
3149
+ ref?: {
3150
+ type: "node";
3151
+ diagramID: string;
3152
+ nodeID: string;
3153
+ nodeType: string;
3154
+ } | {
3155
+ type: "agent";
3156
+ diagramID: string;
3157
+ nodeID: string;
3158
+ agentID: string;
3159
+ agentName?: string | undefined;
3160
+ } | {
3161
+ type: "api-tool";
3162
+ diagramID: string;
3163
+ nodeID: string;
3164
+ apiToolID: string;
3165
+ apiToolName?: string | undefined;
3166
+ } | {
3167
+ type: "integration-tool";
3168
+ diagramID: string;
3169
+ nodeID: string;
3170
+ integrationToolName: string;
3171
+ } | {
3172
+ type: "mcp-integration-tool";
3173
+ diagramID: string;
3174
+ nodeID: string;
3175
+ mcpToolName: string;
3176
+ } | {
3177
+ type: "function";
3178
+ diagramID: string;
3179
+ nodeID: string;
3180
+ functionID: string;
3181
+ functionName?: string | undefined;
3182
+ } | {
3183
+ type: "prompt";
3184
+ diagramID: string;
3185
+ nodeID: string;
3186
+ promptID: string;
3187
+ } | undefined;
2763
3188
  sourceUrls?: {
2764
3189
  url: string;
2765
3190
  name?: string | undefined;
@@ -2777,6 +3202,45 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2777
3202
  } | undefined;
2778
3203
  ai?: boolean | undefined;
2779
3204
  delay?: number | undefined;
3205
+ ref?: {
3206
+ type: "node";
3207
+ diagramID: string;
3208
+ nodeID: string;
3209
+ nodeType: string;
3210
+ } | {
3211
+ type: "agent";
3212
+ diagramID: string;
3213
+ nodeID: string;
3214
+ agentID: string;
3215
+ agentName?: string | undefined;
3216
+ } | {
3217
+ type: "api-tool";
3218
+ diagramID: string;
3219
+ nodeID: string;
3220
+ apiToolID: string;
3221
+ apiToolName?: string | undefined;
3222
+ } | {
3223
+ type: "integration-tool";
3224
+ diagramID: string;
3225
+ nodeID: string;
3226
+ integrationToolName: string;
3227
+ } | {
3228
+ type: "mcp-integration-tool";
3229
+ diagramID: string;
3230
+ nodeID: string;
3231
+ mcpToolName: string;
3232
+ } | {
3233
+ type: "function";
3234
+ diagramID: string;
3235
+ nodeID: string;
3236
+ functionID: string;
3237
+ functionName?: string | undefined;
3238
+ } | {
3239
+ type: "prompt";
3240
+ diagramID: string;
3241
+ nodeID: string;
3242
+ promptID: string;
3243
+ } | undefined;
2780
3244
  sourceUrls?: {
2781
3245
  url: string;
2782
3246
  name?: string | undefined;
@@ -2797,6 +3261,45 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2797
3261
  } | undefined;
2798
3262
  ai?: boolean | undefined;
2799
3263
  delay?: number | undefined;
3264
+ ref?: {
3265
+ type: "node";
3266
+ diagramID: string;
3267
+ nodeID: string;
3268
+ nodeType: string;
3269
+ } | {
3270
+ type: "agent";
3271
+ diagramID: string;
3272
+ nodeID: string;
3273
+ agentID: string;
3274
+ agentName?: string | undefined;
3275
+ } | {
3276
+ type: "api-tool";
3277
+ diagramID: string;
3278
+ nodeID: string;
3279
+ apiToolID: string;
3280
+ apiToolName?: string | undefined;
3281
+ } | {
3282
+ type: "integration-tool";
3283
+ diagramID: string;
3284
+ nodeID: string;
3285
+ integrationToolName: string;
3286
+ } | {
3287
+ type: "mcp-integration-tool";
3288
+ diagramID: string;
3289
+ nodeID: string;
3290
+ mcpToolName: string;
3291
+ } | {
3292
+ type: "function";
3293
+ diagramID: string;
3294
+ nodeID: string;
3295
+ functionID: string;
3296
+ functionName?: string | undefined;
3297
+ } | {
3298
+ type: "prompt";
3299
+ diagramID: string;
3300
+ nodeID: string;
3301
+ promptID: string;
3302
+ } | undefined;
2800
3303
  sourceUrls?: {
2801
3304
  url: string;
2802
3305
  name?: string | undefined;
@@ -2830,6 +3333,45 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2830
3333
  } | undefined;
2831
3334
  ai?: boolean | undefined;
2832
3335
  delay?: number | undefined;
3336
+ ref?: {
3337
+ type: "node";
3338
+ diagramID: string;
3339
+ nodeID: string;
3340
+ nodeType: string;
3341
+ } | {
3342
+ type: "agent";
3343
+ diagramID: string;
3344
+ nodeID: string;
3345
+ agentID: string;
3346
+ agentName?: string | undefined;
3347
+ } | {
3348
+ type: "api-tool";
3349
+ diagramID: string;
3350
+ nodeID: string;
3351
+ apiToolID: string;
3352
+ apiToolName?: string | undefined;
3353
+ } | {
3354
+ type: "integration-tool";
3355
+ diagramID: string;
3356
+ nodeID: string;
3357
+ integrationToolName: string;
3358
+ } | {
3359
+ type: "mcp-integration-tool";
3360
+ diagramID: string;
3361
+ nodeID: string;
3362
+ mcpToolName: string;
3363
+ } | {
3364
+ type: "function";
3365
+ diagramID: string;
3366
+ nodeID: string;
3367
+ functionID: string;
3368
+ functionName?: string | undefined;
3369
+ } | {
3370
+ type: "prompt";
3371
+ diagramID: string;
3372
+ nodeID: string;
3373
+ promptID: string;
3374
+ } | undefined;
2833
3375
  sourceUrls?: {
2834
3376
  url: string;
2835
3377
  name?: string | undefined;