chatbot-lex-design-builder 1.0.5 → 1.0.7

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 (109) hide show
  1. package/dist/cjs/types/graph/graph.d.ts +68 -5
  2. package/dist/cjs/types/nodes/closing-response-node.d.ts +8 -0
  3. package/dist/cjs/types/nodes/closing-response-node.js +1 -0
  4. package/dist/cjs/types/nodes/closing-response-node.js.map +1 -1
  5. package/dist/cjs/types/nodes/codehook-node.d.ts +8 -0
  6. package/dist/cjs/types/nodes/codehook-node.js +1 -0
  7. package/dist/cjs/types/nodes/codehook-node.js.map +1 -1
  8. package/dist/cjs/types/nodes/condition-node.d.ts +8 -0
  9. package/dist/cjs/types/nodes/condition-node.js +1 -0
  10. package/dist/cjs/types/nodes/condition-node.js.map +1 -1
  11. package/dist/cjs/types/nodes/confirmation-node.d.ts +8 -0
  12. package/dist/cjs/types/nodes/confirmation-node.js +1 -0
  13. package/dist/cjs/types/nodes/confirmation-node.js.map +1 -1
  14. package/dist/cjs/types/nodes/end-of-conversation-node.d.ts +20 -5
  15. package/dist/cjs/types/nodes/end-of-conversation-node.js +5 -3
  16. package/dist/cjs/types/nodes/end-of-conversation-node.js.map +1 -1
  17. package/dist/cjs/types/nodes/fullfillment-node.d.ts +8 -0
  18. package/dist/cjs/types/nodes/fullfillment-node.js +1 -0
  19. package/dist/cjs/types/nodes/fullfillment-node.js.map +1 -1
  20. package/dist/cjs/types/nodes/go-to-intent-node.d.ts +9 -0
  21. package/dist/cjs/types/nodes/go-to-intent-node.js +1 -0
  22. package/dist/cjs/types/nodes/go-to-intent-node.js.map +1 -1
  23. package/dist/cjs/types/nodes/index.d.ts +1 -0
  24. package/dist/cjs/types/nodes/index.js +1 -0
  25. package/dist/cjs/types/nodes/index.js.map +1 -1
  26. package/dist/cjs/types/nodes/node.d.ts +48 -3
  27. package/dist/cjs/types/nodes/node.js +2 -2
  28. package/dist/cjs/types/nodes/node.js.map +1 -1
  29. package/dist/cjs/types/nodes/slot-node.d.ts +8 -0
  30. package/dist/cjs/types/nodes/slot-node.js +1 -0
  31. package/dist/cjs/types/nodes/slot-node.js.map +1 -1
  32. package/dist/cjs/types/others/bot-flow.d.ts +196 -16
  33. package/dist/cjs/utils/find-first-fullfillment-node.d.ts +1 -0
  34. package/dist/cjs/utils/get-bfs-order.d.ts +10 -1
  35. package/dist/cjs/utils/get-end-of-conversation-node.d.ts +3 -1
  36. package/dist/cjs/utils/get-end-of-conversation-node.js +2 -2
  37. package/dist/cjs/utils/get-end-of-conversation-node.js.map +1 -1
  38. package/dist/cjs/utils/get-first-closing-response-node.d.ts +1 -0
  39. package/dist/cjs/utils/get-first-confirmation-node.d.ts +1 -0
  40. package/dist/cjs/utils/get-next-step.d.ts +3 -17
  41. package/dist/cjs/utils/get-next-step.js +9 -14
  42. package/dist/cjs/utils/get-next-step.js.map +1 -1
  43. package/dist/cjs/utils/get-slot-nodes.d.ts +1 -0
  44. package/dist/cjs/utils/node-builders/build-closing-response.d.ts +1 -1
  45. package/dist/cjs/utils/node-builders/build-intent.d.ts +3 -17
  46. package/dist/cjs/utils/node-builders/build-intent.js +15 -1
  47. package/dist/cjs/utils/node-builders/build-intent.js.map +1 -1
  48. package/dist/cjs/utils/parse-session-attributes.d.ts +1 -0
  49. package/dist/cjs/utils/parse-session-attributes.js +37 -0
  50. package/dist/cjs/utils/parse-session-attributes.js.map +1 -0
  51. package/dist/cjs/utils/validate-graph.d.ts +10 -1
  52. package/dist/esm/types/graph/graph.d.ts +68 -5
  53. package/dist/esm/types/nodes/closing-response-node.d.ts +8 -0
  54. package/dist/esm/types/nodes/closing-response-node.js +1 -0
  55. package/dist/esm/types/nodes/closing-response-node.js.map +1 -1
  56. package/dist/esm/types/nodes/codehook-node.d.ts +8 -0
  57. package/dist/esm/types/nodes/codehook-node.js +1 -0
  58. package/dist/esm/types/nodes/codehook-node.js.map +1 -1
  59. package/dist/esm/types/nodes/condition-node.d.ts +8 -0
  60. package/dist/esm/types/nodes/condition-node.js +1 -0
  61. package/dist/esm/types/nodes/condition-node.js.map +1 -1
  62. package/dist/esm/types/nodes/confirmation-node.d.ts +8 -0
  63. package/dist/esm/types/nodes/confirmation-node.js +1 -0
  64. package/dist/esm/types/nodes/confirmation-node.js.map +1 -1
  65. package/dist/esm/types/nodes/end-of-conversation-node.d.ts +20 -5
  66. package/dist/esm/types/nodes/end-of-conversation-node.js +3 -1
  67. package/dist/esm/types/nodes/end-of-conversation-node.js.map +1 -1
  68. package/dist/esm/types/nodes/fullfillment-node.d.ts +8 -0
  69. package/dist/esm/types/nodes/fullfillment-node.js +1 -0
  70. package/dist/esm/types/nodes/fullfillment-node.js.map +1 -1
  71. package/dist/esm/types/nodes/go-to-intent-node.d.ts +9 -0
  72. package/dist/esm/types/nodes/go-to-intent-node.js +1 -0
  73. package/dist/esm/types/nodes/go-to-intent-node.js.map +1 -1
  74. package/dist/esm/types/nodes/index.d.ts +1 -0
  75. package/dist/esm/types/nodes/index.js +1 -0
  76. package/dist/esm/types/nodes/index.js.map +1 -1
  77. package/dist/esm/types/nodes/node.d.ts +48 -3
  78. package/dist/esm/types/nodes/node.js +1 -1
  79. package/dist/esm/types/nodes/node.js.map +1 -1
  80. package/dist/esm/types/nodes/slot-node.d.ts +8 -0
  81. package/dist/esm/types/nodes/slot-node.js +1 -0
  82. package/dist/esm/types/nodes/slot-node.js.map +1 -1
  83. package/dist/esm/types/others/bot-flow.d.ts +196 -16
  84. package/dist/esm/utils/find-first-fullfillment-node.d.ts +1 -0
  85. package/dist/esm/utils/get-bfs-order.d.ts +10 -1
  86. package/dist/esm/utils/get-end-of-conversation-node.d.ts +3 -1
  87. package/dist/esm/utils/get-end-of-conversation-node.js +2 -2
  88. package/dist/esm/utils/get-end-of-conversation-node.js.map +1 -1
  89. package/dist/esm/utils/get-first-closing-response-node.d.ts +1 -0
  90. package/dist/esm/utils/get-first-confirmation-node.d.ts +1 -0
  91. package/dist/esm/utils/get-next-step.d.ts +3 -17
  92. package/dist/esm/utils/get-next-step.js +9 -14
  93. package/dist/esm/utils/get-next-step.js.map +1 -1
  94. package/dist/esm/utils/get-slot-nodes.d.ts +1 -0
  95. package/dist/esm/utils/node-builders/build-closing-response.d.ts +1 -1
  96. package/dist/esm/utils/node-builders/build-intent.d.ts +3 -17
  97. package/dist/esm/utils/node-builders/build-intent.js +15 -1
  98. package/dist/esm/utils/node-builders/build-intent.js.map +1 -1
  99. package/dist/esm/utils/parse-session-attributes.d.ts +1 -0
  100. package/dist/esm/utils/parse-session-attributes.js +33 -0
  101. package/dist/esm/utils/parse-session-attributes.js.map +1 -0
  102. package/dist/esm/utils/validate-graph.d.ts +10 -1
  103. package/package.json +1 -1
  104. package/dist/cjs/types/nodes/closing-response.d.ts +0 -201
  105. package/dist/cjs/types/nodes/closing-response.js +0 -16
  106. package/dist/cjs/types/nodes/closing-response.js.map +0 -1
  107. package/dist/esm/types/nodes/closing-response.d.ts +0 -201
  108. package/dist/esm/types/nodes/closing-response.js +0 -13
  109. package/dist/esm/types/nodes/closing-response.js.map +0 -1
@@ -63,6 +63,7 @@ export declare const GraphSchema: z.ZodObject<{
63
63
  action?: string | null | undefined;
64
64
  }[] | null | undefined;
65
65
  }>]>, "many">>;
66
+ sessionAttributes: z.ZodCatch<z.ZodString>;
66
67
  }, "strip", z.ZodTypeAny, {
67
68
  response: ({
68
69
  type: import("../responses").MessageType.text;
@@ -80,10 +81,12 @@ export declare const GraphSchema: z.ZodObject<{
80
81
  action?: string | null | undefined;
81
82
  }[] | null | undefined;
82
83
  })[];
84
+ sessionAttributes: string;
83
85
  active?: boolean | null | undefined;
84
86
  }, {
85
87
  active?: boolean | null | undefined;
86
88
  response?: unknown;
89
+ sessionAttributes?: unknown;
87
90
  }>;
88
91
  }, "strip", z.ZodTypeAny, {
89
92
  type: import("../nodes").NodeType.closingResponseNode;
@@ -104,6 +107,7 @@ export declare const GraphSchema: z.ZodObject<{
104
107
  action?: string | null | undefined;
105
108
  }[] | null | undefined;
106
109
  })[];
110
+ sessionAttributes: string;
107
111
  active?: boolean | null | undefined;
108
112
  };
109
113
  id: string;
@@ -112,6 +116,7 @@ export declare const GraphSchema: z.ZodObject<{
112
116
  data: {
113
117
  active?: boolean | null | undefined;
114
118
  response?: unknown;
119
+ sessionAttributes?: unknown;
115
120
  };
116
121
  id: string;
117
122
  }>, z.ZodObject<{
@@ -297,6 +302,7 @@ export declare const GraphSchema: z.ZodObject<{
297
302
  }>]>, "many">>;
298
303
  webhookId: z.ZodCatch<z.ZodString>;
299
304
  merchantId: z.ZodCatch<z.ZodString>;
305
+ sessionAttributes: z.ZodCatch<z.ZodString>;
300
306
  }, "strip", z.ZodTypeAny, {
301
307
  active: boolean | null;
302
308
  label: string;
@@ -332,6 +338,7 @@ export declare const GraphSchema: z.ZodObject<{
332
338
  action?: string | null | undefined;
333
339
  }[] | null | undefined;
334
340
  })[];
341
+ sessionAttributes: string;
335
342
  invocationLabel: string;
336
343
  failure: ({
337
344
  type: import("../responses").MessageType.text;
@@ -360,6 +367,7 @@ export declare const GraphSchema: z.ZodObject<{
360
367
  timeout?: unknown;
361
368
  webhookId?: unknown;
362
369
  merchantId?: unknown;
370
+ sessionAttributes?: unknown;
363
371
  }>;
364
372
  }, "strip", z.ZodTypeAny, {
365
373
  type: import("../nodes").NodeType.codeHookNode;
@@ -398,6 +406,7 @@ export declare const GraphSchema: z.ZodObject<{
398
406
  action?: string | null | undefined;
399
407
  }[] | null | undefined;
400
408
  })[];
409
+ sessionAttributes: string;
401
410
  invocationLabel: string;
402
411
  failure: ({
403
412
  type: import("../responses").MessageType.text;
@@ -430,6 +439,7 @@ export declare const GraphSchema: z.ZodObject<{
430
439
  timeout?: unknown;
431
440
  webhookId?: unknown;
432
441
  merchantId?: unknown;
442
+ sessionAttributes?: unknown;
433
443
  };
434
444
  id: string;
435
445
  }>, z.ZodObject<{
@@ -582,6 +592,7 @@ export declare const GraphSchema: z.ZodObject<{
582
592
  expression: string;
583
593
  response?: unknown;
584
594
  }>, "many">;
595
+ sessionAttributes: z.ZodCatch<z.ZodString>;
585
596
  }, "strip", z.ZodTypeAny, {
586
597
  response: ({
587
598
  type: import("../responses").MessageType.text;
@@ -599,6 +610,7 @@ export declare const GraphSchema: z.ZodObject<{
599
610
  action?: string | null | undefined;
600
611
  }[] | null | undefined;
601
612
  })[];
613
+ sessionAttributes: string;
602
614
  branches: {
603
615
  id: string;
604
616
  name: string;
@@ -628,6 +640,7 @@ export declare const GraphSchema: z.ZodObject<{
628
640
  response?: unknown;
629
641
  }[];
630
642
  response?: unknown;
643
+ sessionAttributes?: unknown;
631
644
  }>;
632
645
  }, "strip", z.ZodTypeAny, {
633
646
  type: import("../nodes").NodeType.conditionNode;
@@ -648,6 +661,7 @@ export declare const GraphSchema: z.ZodObject<{
648
661
  action?: string | null | undefined;
649
662
  }[] | null | undefined;
650
663
  })[];
664
+ sessionAttributes: string;
651
665
  branches: {
652
666
  id: string;
653
667
  name: string;
@@ -681,6 +695,7 @@ export declare const GraphSchema: z.ZodObject<{
681
695
  response?: unknown;
682
696
  }[];
683
697
  response?: unknown;
698
+ sessionAttributes?: unknown;
684
699
  };
685
700
  id: string;
686
701
  }>, z.ZodObject<{
@@ -920,6 +935,7 @@ export declare const GraphSchema: z.ZodObject<{
920
935
  action?: string | null | undefined;
921
936
  }[] | null | undefined;
922
937
  }>]>, "many">>;
938
+ sessionAttributes: z.ZodCatch<z.ZodString>;
923
939
  }, "strip", z.ZodTypeAny, {
924
940
  label: string;
925
941
  success: ({
@@ -954,6 +970,7 @@ export declare const GraphSchema: z.ZodObject<{
954
970
  action?: string | null | undefined;
955
971
  }[] | null | undefined;
956
972
  })[];
973
+ sessionAttributes: string;
957
974
  failure: ({
958
975
  type: import("../responses").MessageType.text;
959
976
  id: string;
@@ -1007,6 +1024,7 @@ export declare const GraphSchema: z.ZodObject<{
1007
1024
  success?: unknown;
1008
1025
  failure?: unknown;
1009
1026
  decline?: unknown;
1027
+ sessionAttributes?: unknown;
1010
1028
  }>;
1011
1029
  }, "strip", z.ZodTypeAny, {
1012
1030
  type: import("../nodes").NodeType.confirmationNode;
@@ -1044,6 +1062,7 @@ export declare const GraphSchema: z.ZodObject<{
1044
1062
  action?: string | null | undefined;
1045
1063
  }[] | null | undefined;
1046
1064
  })[];
1065
+ sessionAttributes: string;
1047
1066
  failure: ({
1048
1067
  type: import("../responses").MessageType.text;
1049
1068
  id: string;
@@ -1101,19 +1120,30 @@ export declare const GraphSchema: z.ZodObject<{
1101
1120
  success?: unknown;
1102
1121
  failure?: unknown;
1103
1122
  decline?: unknown;
1123
+ sessionAttributes?: unknown;
1104
1124
  };
1105
1125
  id: string;
1106
1126
  }>, z.ZodObject<{
1107
1127
  id: z.ZodString;
1108
1128
  type: z.ZodLiteral<import("../nodes").NodeType.endOfConversationNode>;
1109
- data: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
1129
+ data: z.ZodObject<{
1130
+ sessionAttributes: z.ZodCatch<z.ZodString>;
1131
+ }, "strip", z.ZodTypeAny, {
1132
+ sessionAttributes: string;
1133
+ }, {
1134
+ sessionAttributes?: unknown;
1135
+ }>;
1110
1136
  }, "strip", z.ZodTypeAny, {
1111
1137
  type: import("../nodes").NodeType.endOfConversationNode;
1112
- data: {};
1138
+ data: {
1139
+ sessionAttributes: string;
1140
+ };
1113
1141
  id: string;
1114
1142
  }, {
1115
1143
  type: import("../nodes").NodeType.endOfConversationNode;
1116
- data: {};
1144
+ data: {
1145
+ sessionAttributes?: unknown;
1146
+ };
1117
1147
  id: string;
1118
1148
  }>, z.ZodObject<{
1119
1149
  id: z.ZodString;
@@ -1298,6 +1328,7 @@ export declare const GraphSchema: z.ZodObject<{
1298
1328
  }>]>, "many">>;
1299
1329
  webhookId: z.ZodCatch<z.ZodString>;
1300
1330
  merchantId: z.ZodCatch<z.ZodString>;
1331
+ sessionAttributes: z.ZodCatch<z.ZodString>;
1301
1332
  }, "strip", z.ZodTypeAny, {
1302
1333
  active: boolean | null;
1303
1334
  label: string;
@@ -1333,6 +1364,7 @@ export declare const GraphSchema: z.ZodObject<{
1333
1364
  action?: string | null | undefined;
1334
1365
  }[] | null | undefined;
1335
1366
  })[];
1367
+ sessionAttributes: string;
1336
1368
  invocationLabel: string;
1337
1369
  failure: ({
1338
1370
  type: import("../responses").MessageType.text;
@@ -1361,6 +1393,7 @@ export declare const GraphSchema: z.ZodObject<{
1361
1393
  timeout?: unknown;
1362
1394
  webhookId?: unknown;
1363
1395
  merchantId?: unknown;
1396
+ sessionAttributes?: unknown;
1364
1397
  }>;
1365
1398
  }, "strip", z.ZodTypeAny, {
1366
1399
  type: import("../nodes").NodeType.fullfillmentNode;
@@ -1399,6 +1432,7 @@ export declare const GraphSchema: z.ZodObject<{
1399
1432
  action?: string | null | undefined;
1400
1433
  }[] | null | undefined;
1401
1434
  })[];
1435
+ sessionAttributes: string;
1402
1436
  invocationLabel: string;
1403
1437
  failure: ({
1404
1438
  type: import("../responses").MessageType.text;
@@ -1431,6 +1465,7 @@ export declare const GraphSchema: z.ZodObject<{
1431
1465
  timeout?: unknown;
1432
1466
  webhookId?: unknown;
1433
1467
  merchantId?: unknown;
1468
+ sessionAttributes?: unknown;
1434
1469
  };
1435
1470
  id: string;
1436
1471
  }>, z.ZodObject<{
@@ -1438,14 +1473,18 @@ export declare const GraphSchema: z.ZodObject<{
1438
1473
  type: z.ZodLiteral<import("../nodes").NodeType.goToIntentNode>;
1439
1474
  data: z.ZodObject<{
1440
1475
  intentId: z.ZodString;
1476
+ sessionAttributes: z.ZodCatch<z.ZodString>;
1441
1477
  }, "strip", z.ZodTypeAny, {
1478
+ sessionAttributes: string;
1442
1479
  intentId: string;
1443
1480
  }, {
1444
1481
  intentId: string;
1482
+ sessionAttributes?: unknown;
1445
1483
  }>;
1446
1484
  }, "strip", z.ZodTypeAny, {
1447
1485
  type: import("../nodes").NodeType.goToIntentNode;
1448
1486
  data: {
1487
+ sessionAttributes: string;
1449
1488
  intentId: string;
1450
1489
  };
1451
1490
  id: string;
@@ -1453,6 +1492,7 @@ export declare const GraphSchema: z.ZodObject<{
1453
1492
  type: import("../nodes").NodeType.goToIntentNode;
1454
1493
  data: {
1455
1494
  intentId: string;
1495
+ sessionAttributes?: unknown;
1456
1496
  };
1457
1497
  id: string;
1458
1498
  }>, z.ZodObject<{
@@ -1676,6 +1716,7 @@ export declare const GraphSchema: z.ZodObject<{
1676
1716
  }[] | null | undefined;
1677
1717
  }>]>, "many">>;
1678
1718
  type: z.ZodString;
1719
+ sessionAttributes: z.ZodCatch<z.ZodString>;
1679
1720
  }, "strip", z.ZodTypeAny, {
1680
1721
  required: boolean | null;
1681
1722
  type: string;
@@ -1714,6 +1755,7 @@ export declare const GraphSchema: z.ZodObject<{
1714
1755
  }[] | null | undefined;
1715
1756
  })[];
1716
1757
  description: string;
1758
+ sessionAttributes: string;
1717
1759
  failure: ({
1718
1760
  type: import("../responses").MessageType.text;
1719
1761
  id: string;
@@ -1756,6 +1798,7 @@ export declare const GraphSchema: z.ZodObject<{
1756
1798
  description?: unknown;
1757
1799
  success?: unknown;
1758
1800
  failure?: unknown;
1801
+ sessionAttributes?: unknown;
1759
1802
  }>;
1760
1803
  }, "strip", z.ZodTypeAny, {
1761
1804
  type: import("../nodes").NodeType.slotNode;
@@ -1797,6 +1840,7 @@ export declare const GraphSchema: z.ZodObject<{
1797
1840
  }[] | null | undefined;
1798
1841
  })[];
1799
1842
  description: string;
1843
+ sessionAttributes: string;
1800
1844
  failure: ({
1801
1845
  type: import("../responses").MessageType.text;
1802
1846
  id: string;
@@ -1843,6 +1887,7 @@ export declare const GraphSchema: z.ZodObject<{
1843
1887
  description?: unknown;
1844
1888
  success?: unknown;
1845
1889
  failure?: unknown;
1890
+ sessionAttributes?: unknown;
1846
1891
  };
1847
1892
  id: string;
1848
1893
  }>]>, "many">;
@@ -1885,6 +1930,7 @@ export declare const GraphSchema: z.ZodObject<{
1885
1930
  action?: string | null | undefined;
1886
1931
  }[] | null | undefined;
1887
1932
  })[];
1933
+ sessionAttributes: string;
1888
1934
  active?: boolean | null | undefined;
1889
1935
  };
1890
1936
  id: string;
@@ -1925,6 +1971,7 @@ export declare const GraphSchema: z.ZodObject<{
1925
1971
  action?: string | null | undefined;
1926
1972
  }[] | null | undefined;
1927
1973
  })[];
1974
+ sessionAttributes: string;
1928
1975
  invocationLabel: string;
1929
1976
  failure: ({
1930
1977
  type: import("../responses").MessageType.text;
@@ -1965,6 +2012,7 @@ export declare const GraphSchema: z.ZodObject<{
1965
2012
  action?: string | null | undefined;
1966
2013
  }[] | null | undefined;
1967
2014
  })[];
2015
+ sessionAttributes: string;
1968
2016
  branches: {
1969
2017
  id: string;
1970
2018
  name: string;
@@ -2024,6 +2072,7 @@ export declare const GraphSchema: z.ZodObject<{
2024
2072
  action?: string | null | undefined;
2025
2073
  }[] | null | undefined;
2026
2074
  })[];
2075
+ sessionAttributes: string;
2027
2076
  failure: ({
2028
2077
  type: import("../responses").MessageType.text;
2029
2078
  id: string;
@@ -2060,7 +2109,9 @@ export declare const GraphSchema: z.ZodObject<{
2060
2109
  id: string;
2061
2110
  } | {
2062
2111
  type: import("../nodes").NodeType.endOfConversationNode;
2063
- data: {};
2112
+ data: {
2113
+ sessionAttributes: string;
2114
+ };
2064
2115
  id: string;
2065
2116
  } | {
2066
2117
  type: import("../nodes").NodeType.fullfillmentNode;
@@ -2099,6 +2150,7 @@ export declare const GraphSchema: z.ZodObject<{
2099
2150
  action?: string | null | undefined;
2100
2151
  }[] | null | undefined;
2101
2152
  })[];
2153
+ sessionAttributes: string;
2102
2154
  invocationLabel: string;
2103
2155
  failure: ({
2104
2156
  type: import("../responses").MessageType.text;
@@ -2123,6 +2175,7 @@ export declare const GraphSchema: z.ZodObject<{
2123
2175
  } | {
2124
2176
  type: import("../nodes").NodeType.goToIntentNode;
2125
2177
  data: {
2178
+ sessionAttributes: string;
2126
2179
  intentId: string;
2127
2180
  };
2128
2181
  id: string;
@@ -2175,6 +2228,7 @@ export declare const GraphSchema: z.ZodObject<{
2175
2228
  }[] | null | undefined;
2176
2229
  })[];
2177
2230
  description: string;
2231
+ sessionAttributes: string;
2178
2232
  failure: ({
2179
2233
  type: import("../responses").MessageType.text;
2180
2234
  id: string;
@@ -2208,6 +2262,7 @@ export declare const GraphSchema: z.ZodObject<{
2208
2262
  data: {
2209
2263
  active?: boolean | null | undefined;
2210
2264
  response?: unknown;
2265
+ sessionAttributes?: unknown;
2211
2266
  };
2212
2267
  id: string;
2213
2268
  } | {
@@ -2221,6 +2276,7 @@ export declare const GraphSchema: z.ZodObject<{
2221
2276
  timeout?: unknown;
2222
2277
  webhookId?: unknown;
2223
2278
  merchantId?: unknown;
2279
+ sessionAttributes?: unknown;
2224
2280
  };
2225
2281
  id: string;
2226
2282
  } | {
@@ -2233,6 +2289,7 @@ export declare const GraphSchema: z.ZodObject<{
2233
2289
  response?: unknown;
2234
2290
  }[];
2235
2291
  response?: unknown;
2292
+ sessionAttributes?: unknown;
2236
2293
  };
2237
2294
  id: string;
2238
2295
  } | {
@@ -2258,11 +2315,14 @@ export declare const GraphSchema: z.ZodObject<{
2258
2315
  success?: unknown;
2259
2316
  failure?: unknown;
2260
2317
  decline?: unknown;
2318
+ sessionAttributes?: unknown;
2261
2319
  };
2262
2320
  id: string;
2263
2321
  } | {
2264
2322
  type: import("../nodes").NodeType.endOfConversationNode;
2265
- data: {};
2323
+ data: {
2324
+ sessionAttributes?: unknown;
2325
+ };
2266
2326
  id: string;
2267
2327
  } | {
2268
2328
  type: import("../nodes").NodeType.fullfillmentNode;
@@ -2275,12 +2335,14 @@ export declare const GraphSchema: z.ZodObject<{
2275
2335
  timeout?: unknown;
2276
2336
  webhookId?: unknown;
2277
2337
  merchantId?: unknown;
2338
+ sessionAttributes?: unknown;
2278
2339
  };
2279
2340
  id: string;
2280
2341
  } | {
2281
2342
  type: import("../nodes").NodeType.goToIntentNode;
2282
2343
  data: {
2283
2344
  intentId: string;
2345
+ sessionAttributes?: unknown;
2284
2346
  };
2285
2347
  id: string;
2286
2348
  } | {
@@ -2319,6 +2381,7 @@ export declare const GraphSchema: z.ZodObject<{
2319
2381
  description?: unknown;
2320
2382
  success?: unknown;
2321
2383
  failure?: unknown;
2384
+ sessionAttributes?: unknown;
2322
2385
  };
2323
2386
  id: string;
2324
2387
  })[];
@@ -60,6 +60,7 @@ export declare const ClosingResponseNodeDataSchema: z.ZodObject<{
60
60
  action?: string | null | undefined;
61
61
  }[] | null | undefined;
62
62
  }>]>, "many">>;
63
+ sessionAttributes: z.ZodCatch<z.ZodString>;
63
64
  }, "strip", z.ZodTypeAny, {
64
65
  response: ({
65
66
  type: import("../responses").MessageType.text;
@@ -77,10 +78,12 @@ export declare const ClosingResponseNodeDataSchema: z.ZodObject<{
77
78
  action?: string | null | undefined;
78
79
  }[] | null | undefined;
79
80
  })[];
81
+ sessionAttributes: string;
80
82
  active?: boolean | null | undefined;
81
83
  }, {
82
84
  active?: boolean | null | undefined;
83
85
  response?: unknown;
86
+ sessionAttributes?: unknown;
84
87
  }>;
85
88
  export type ClosingResponseNodeData = z.infer<typeof ClosingResponseNodeDataSchema>;
86
89
  export declare const ClosingResponseNodeSchema: z.ZodObject<{
@@ -146,6 +149,7 @@ export declare const ClosingResponseNodeSchema: z.ZodObject<{
146
149
  action?: string | null | undefined;
147
150
  }[] | null | undefined;
148
151
  }>]>, "many">>;
152
+ sessionAttributes: z.ZodCatch<z.ZodString>;
149
153
  }, "strip", z.ZodTypeAny, {
150
154
  response: ({
151
155
  type: import("../responses").MessageType.text;
@@ -163,10 +167,12 @@ export declare const ClosingResponseNodeSchema: z.ZodObject<{
163
167
  action?: string | null | undefined;
164
168
  }[] | null | undefined;
165
169
  })[];
170
+ sessionAttributes: string;
166
171
  active?: boolean | null | undefined;
167
172
  }, {
168
173
  active?: boolean | null | undefined;
169
174
  response?: unknown;
175
+ sessionAttributes?: unknown;
170
176
  }>;
171
177
  }, "strip", z.ZodTypeAny, {
172
178
  type: NodeType.closingResponseNode;
@@ -187,6 +193,7 @@ export declare const ClosingResponseNodeSchema: z.ZodObject<{
187
193
  action?: string | null | undefined;
188
194
  }[] | null | undefined;
189
195
  })[];
196
+ sessionAttributes: string;
190
197
  active?: boolean | null | undefined;
191
198
  };
192
199
  id: string;
@@ -195,6 +202,7 @@ export declare const ClosingResponseNodeSchema: z.ZodObject<{
195
202
  data: {
196
203
  active?: boolean | null | undefined;
197
204
  response?: unknown;
205
+ sessionAttributes?: unknown;
198
206
  };
199
207
  id: string;
200
208
  }>;
@@ -7,6 +7,7 @@ const node_type_1 = require("./node-type");
7
7
  exports.ClosingResponseNodeDataSchema = zod_1.z.object({
8
8
  active: zod_1.z.boolean().nullable().optional(),
9
9
  response: message_1.MessageSchema.array().catch([]),
10
+ sessionAttributes: zod_1.z.string().catch(""),
10
11
  });
11
12
  exports.ClosingResponseNodeSchema = zod_1.z.object({
12
13
  id: zod_1.z.string(),
@@ -1 +1 @@
1
- {"version":3,"file":"closing-response-node.js","sourceRoot":"","sources":["../../../../types/nodes/closing-response-node.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,kDAAqD;AACrD,2CAAuC;AAE1B,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IACpD,MAAM,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACzC,QAAQ,EAAE,uBAAa,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;CAC1C,CAAC,CAAC;AAKU,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,oBAAQ,CAAC,mBAAmB,CAAC;IAC7C,IAAI,EAAE,qCAA6B;CACpC,CAAC,CAAC"}
1
+ {"version":3,"file":"closing-response-node.js","sourceRoot":"","sources":["../../../../types/nodes/closing-response-node.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,kDAAqD;AACrD,2CAAuC;AAE1B,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IACpD,MAAM,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACzC,QAAQ,EAAE,uBAAa,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;IACzC,iBAAiB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;CACxC,CAAC,CAAC;AAKU,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,oBAAQ,CAAC,mBAAmB,CAAC;IAC7C,IAAI,EAAE,qCAA6B;CACpC,CAAC,CAAC"}
@@ -180,6 +180,7 @@ export declare const CodeHookNodeDataSchema: z.ZodObject<{
180
180
  }>]>, "many">>;
181
181
  webhookId: z.ZodCatch<z.ZodString>;
182
182
  merchantId: z.ZodCatch<z.ZodString>;
183
+ sessionAttributes: z.ZodCatch<z.ZodString>;
183
184
  }, "strip", z.ZodTypeAny, {
184
185
  active: boolean | null;
185
186
  label: string;
@@ -215,6 +216,7 @@ export declare const CodeHookNodeDataSchema: z.ZodObject<{
215
216
  action?: string | null | undefined;
216
217
  }[] | null | undefined;
217
218
  })[];
219
+ sessionAttributes: string;
218
220
  invocationLabel: string;
219
221
  failure: ({
220
222
  type: import("../responses").MessageType.text;
@@ -243,6 +245,7 @@ export declare const CodeHookNodeDataSchema: z.ZodObject<{
243
245
  timeout?: unknown;
244
246
  webhookId?: unknown;
245
247
  merchantId?: unknown;
248
+ sessionAttributes?: unknown;
246
249
  }>;
247
250
  export type CodeHookNodeData = z.infer<typeof CodeHookNodeDataSchema>;
248
251
  export declare const CodeHookNodeSchema: z.ZodObject<{
@@ -428,6 +431,7 @@ export declare const CodeHookNodeSchema: z.ZodObject<{
428
431
  }>]>, "many">>;
429
432
  webhookId: z.ZodCatch<z.ZodString>;
430
433
  merchantId: z.ZodCatch<z.ZodString>;
434
+ sessionAttributes: z.ZodCatch<z.ZodString>;
431
435
  }, "strip", z.ZodTypeAny, {
432
436
  active: boolean | null;
433
437
  label: string;
@@ -463,6 +467,7 @@ export declare const CodeHookNodeSchema: z.ZodObject<{
463
467
  action?: string | null | undefined;
464
468
  }[] | null | undefined;
465
469
  })[];
470
+ sessionAttributes: string;
466
471
  invocationLabel: string;
467
472
  failure: ({
468
473
  type: import("../responses").MessageType.text;
@@ -491,6 +496,7 @@ export declare const CodeHookNodeSchema: z.ZodObject<{
491
496
  timeout?: unknown;
492
497
  webhookId?: unknown;
493
498
  merchantId?: unknown;
499
+ sessionAttributes?: unknown;
494
500
  }>;
495
501
  }, "strip", z.ZodTypeAny, {
496
502
  type: NodeType.codeHookNode;
@@ -529,6 +535,7 @@ export declare const CodeHookNodeSchema: z.ZodObject<{
529
535
  action?: string | null | undefined;
530
536
  }[] | null | undefined;
531
537
  })[];
538
+ sessionAttributes: string;
532
539
  invocationLabel: string;
533
540
  failure: ({
534
541
  type: import("../responses").MessageType.text;
@@ -561,6 +568,7 @@ export declare const CodeHookNodeSchema: z.ZodObject<{
561
568
  timeout?: unknown;
562
569
  webhookId?: unknown;
563
570
  merchantId?: unknown;
571
+ sessionAttributes?: unknown;
564
572
  };
565
573
  id: string;
566
574
  }>;
@@ -16,6 +16,7 @@ exports.CodeHookNodeDataSchema = zod_1.z.object({
16
16
  timeout: message_1.MessageSchema.array().catch([]),
17
17
  webhookId: zod_1.z.string().catch(""),
18
18
  merchantId: zod_1.z.string().catch(""),
19
+ sessionAttributes: zod_1.z.string().catch(""),
19
20
  });
20
21
  exports.CodeHookNodeSchema = zod_1.z.object({
21
22
  id: zod_1.z.string(),
@@ -1 +1 @@
1
- {"version":3,"file":"codehook-node.js","sourceRoot":"","sources":["../../../../types/nodes/codehook-node.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,kDAAqD;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;IACtD,MAAM,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC9B,OAAO,EAAE,uBAAa,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;IACxC,OAAO,EAAE,uBAAa,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;IACxC,OAAO,EAAE,uBAAa,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;IACxC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;IAC/B,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;IAChC,iBAAiB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;CACxC,CAAC,CAAC;AAIU,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,oBAAQ,CAAC,YAAY,CAAC;IACtC,IAAI,EAAE,8BAAsB;CAC7B,CAAC,CAAC"}
@@ -235,6 +235,7 @@ export declare const ConditionalNodeDataSchema: z.ZodObject<{
235
235
  expression: string;
236
236
  response?: unknown;
237
237
  }>, "many">;
238
+ sessionAttributes: z.ZodCatch<z.ZodString>;
238
239
  }, "strip", z.ZodTypeAny, {
239
240
  response: ({
240
241
  type: import("../responses").MessageType.text;
@@ -252,6 +253,7 @@ export declare const ConditionalNodeDataSchema: z.ZodObject<{
252
253
  action?: string | null | undefined;
253
254
  }[] | null | undefined;
254
255
  })[];
256
+ sessionAttributes: string;
255
257
  branches: {
256
258
  id: string;
257
259
  name: string;
@@ -281,6 +283,7 @@ export declare const ConditionalNodeDataSchema: z.ZodObject<{
281
283
  response?: unknown;
282
284
  }[];
283
285
  response?: unknown;
286
+ sessionAttributes?: unknown;
284
287
  }>;
285
288
  export type ConditionalNodeData = z.infer<typeof ConditionalNodeDataSchema>;
286
289
  export type Branch = z.infer<typeof BranchSchema>;
@@ -434,6 +437,7 @@ export declare const ConditionNodeSchema: z.ZodObject<{
434
437
  expression: string;
435
438
  response?: unknown;
436
439
  }>, "many">;
440
+ sessionAttributes: z.ZodCatch<z.ZodString>;
437
441
  }, "strip", z.ZodTypeAny, {
438
442
  response: ({
439
443
  type: import("../responses").MessageType.text;
@@ -451,6 +455,7 @@ export declare const ConditionNodeSchema: z.ZodObject<{
451
455
  action?: string | null | undefined;
452
456
  }[] | null | undefined;
453
457
  })[];
458
+ sessionAttributes: string;
454
459
  branches: {
455
460
  id: string;
456
461
  name: string;
@@ -480,6 +485,7 @@ export declare const ConditionNodeSchema: z.ZodObject<{
480
485
  response?: unknown;
481
486
  }[];
482
487
  response?: unknown;
488
+ sessionAttributes?: unknown;
483
489
  }>;
484
490
  }, "strip", z.ZodTypeAny, {
485
491
  type: NodeType.conditionNode;
@@ -500,6 +506,7 @@ export declare const ConditionNodeSchema: z.ZodObject<{
500
506
  action?: string | null | undefined;
501
507
  }[] | null | undefined;
502
508
  })[];
509
+ sessionAttributes: string;
503
510
  branches: {
504
511
  id: string;
505
512
  name: string;
@@ -533,6 +540,7 @@ export declare const ConditionNodeSchema: z.ZodObject<{
533
540
  response?: unknown;
534
541
  }[];
535
542
  response?: unknown;
543
+ sessionAttributes?: unknown;
536
544
  };
537
545
  id: string;
538
546
  }>;
@@ -15,6 +15,7 @@ exports.ConditionalNodeDataSchema = zod_1.z.object({
15
15
  branches: BranchSchema.array()
16
16
  .min(1, "branches is required")
17
17
  .max(4, "branches can't be more than 4"),
18
+ sessionAttributes: zod_1.z.string().catch(""),
18
19
  });
19
20
  exports.ConditionNodeSchema = zod_1.z.object({
20
21
  id: zod_1.z.string(),
@@ -1 +1 @@
1
- {"version":3,"file":"condition-node.js","sourceRoot":"","sources":["../../../../types/nodes/condition-node.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,kDAAqD;A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