chatbot-lex-design-builder 1.0.18 → 1.0.20

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 (63) hide show
  1. package/dist/cjs/types/graph/graph.d.ts +339 -0
  2. package/dist/cjs/types/nodes/closing-response-node.d.ts +33 -0
  3. package/dist/cjs/types/nodes/codehook-node.d.ts +99 -0
  4. package/dist/cjs/types/nodes/condition-node.d.ts +87 -0
  5. package/dist/cjs/types/nodes/confirmation-node.d.ts +132 -0
  6. package/dist/cjs/types/nodes/fullfillment-node.d.ts +99 -0
  7. package/dist/cjs/types/nodes/intent-node.js +1 -1
  8. package/dist/cjs/types/nodes/intent-node.js.map +1 -1
  9. package/dist/cjs/types/nodes/node.d.ts +291 -0
  10. package/dist/cjs/types/nodes/slot-node.d.ts +99 -0
  11. package/dist/cjs/types/nodes/slot-node.js +1 -1
  12. package/dist/cjs/types/nodes/slot-node.js.map +1 -1
  13. package/dist/cjs/types/others/bot-flow.d.ts +822 -0
  14. package/dist/cjs/types/responses/index.d.ts +1 -0
  15. package/dist/cjs/types/responses/index.js +1 -0
  16. package/dist/cjs/types/responses/index.js.map +1 -1
  17. package/dist/cjs/types/responses/leadGeneration.d.ts +13 -0
  18. package/dist/cjs/types/responses/leadGeneration.js +13 -0
  19. package/dist/cjs/types/responses/leadGeneration.js.map +1 -0
  20. package/dist/cjs/types/responses/message-type.d.ts +2 -1
  21. package/dist/cjs/types/responses/message-type.js +1 -0
  22. package/dist/cjs/types/responses/message-type.js.map +1 -1
  23. package/dist/cjs/types/responses/message.d.ts +21 -0
  24. package/dist/cjs/types/responses/message.js +2 -0
  25. package/dist/cjs/types/responses/message.js.map +1 -1
  26. package/dist/cjs/utils/find-first-fullfillment-node.d.ts +9 -0
  27. package/dist/cjs/utils/get-bfs-order.d.ts +48 -0
  28. package/dist/cjs/utils/get-first-closing-response-node.d.ts +3 -0
  29. package/dist/cjs/utils/get-first-confirmation-node.d.ts +12 -0
  30. package/dist/cjs/utils/get-slot-nodes.d.ts +9 -0
  31. package/dist/cjs/utils/validate-graph.d.ts +48 -0
  32. package/dist/esm/types/graph/graph.d.ts +339 -0
  33. package/dist/esm/types/nodes/closing-response-node.d.ts +33 -0
  34. package/dist/esm/types/nodes/codehook-node.d.ts +99 -0
  35. package/dist/esm/types/nodes/condition-node.d.ts +87 -0
  36. package/dist/esm/types/nodes/confirmation-node.d.ts +132 -0
  37. package/dist/esm/types/nodes/fullfillment-node.d.ts +99 -0
  38. package/dist/esm/types/nodes/intent-node.js +1 -1
  39. package/dist/esm/types/nodes/intent-node.js.map +1 -1
  40. package/dist/esm/types/nodes/node.d.ts +291 -0
  41. package/dist/esm/types/nodes/slot-node.d.ts +99 -0
  42. package/dist/esm/types/nodes/slot-node.js +1 -1
  43. package/dist/esm/types/nodes/slot-node.js.map +1 -1
  44. package/dist/esm/types/others/bot-flow.d.ts +822 -0
  45. package/dist/esm/types/responses/index.d.ts +1 -0
  46. package/dist/esm/types/responses/index.js +1 -0
  47. package/dist/esm/types/responses/index.js.map +1 -1
  48. package/dist/esm/types/responses/leadGeneration.d.ts +13 -0
  49. package/dist/esm/types/responses/leadGeneration.js +7 -0
  50. package/dist/esm/types/responses/leadGeneration.js.map +1 -0
  51. package/dist/esm/types/responses/message-type.d.ts +2 -1
  52. package/dist/esm/types/responses/message-type.js +1 -0
  53. package/dist/esm/types/responses/message-type.js.map +1 -1
  54. package/dist/esm/types/responses/message.d.ts +21 -0
  55. package/dist/esm/types/responses/message.js +2 -0
  56. package/dist/esm/types/responses/message.js.map +1 -1
  57. package/dist/esm/utils/find-first-fullfillment-node.d.ts +9 -0
  58. package/dist/esm/utils/get-bfs-order.d.ts +48 -0
  59. package/dist/esm/utils/get-first-closing-response-node.d.ts +3 -0
  60. package/dist/esm/utils/get-first-confirmation-node.d.ts +12 -0
  61. package/dist/esm/utils/get-slot-nodes.d.ts +9 -0
  62. package/dist/esm/utils/validate-graph.d.ts +48 -0
  63. package/package.json +1 -1
@@ -354,6 +354,15 @@ export declare const ConfirmationNodeDataSchema: z.ZodObject<{
354
354
  submitButton: {
355
355
  label?: unknown;
356
356
  };
357
+ }>, z.ZodObject<{
358
+ id: z.ZodString;
359
+ type: z.ZodLiteral<import("../responses").MessageType.leadGeneration>;
360
+ }, "strip", z.ZodTypeAny, {
361
+ type: import("../responses").MessageType.leadGeneration;
362
+ id: string;
363
+ }, {
364
+ type: import("../responses").MessageType.leadGeneration;
365
+ id: string;
357
366
  }>]>, "many">>;
358
367
  }, "strip", z.ZodTypeAny, {
359
368
  languageCode: string;
@@ -401,6 +410,9 @@ export declare const ConfirmationNodeDataSchema: z.ZodObject<{
401
410
  submitButton: {
402
411
  label: string;
403
412
  };
413
+ } | {
414
+ type: import("../responses").MessageType.leadGeneration;
415
+ id: string;
404
416
  } | {
405
417
  type: import("../responses").MessageType.text;
406
418
  id: string;
@@ -788,6 +800,15 @@ export declare const ConfirmationNodeDataSchema: z.ZodObject<{
788
800
  submitButton: {
789
801
  label?: unknown;
790
802
  };
803
+ }>, z.ZodObject<{
804
+ id: z.ZodString;
805
+ type: z.ZodLiteral<import("../responses").MessageType.leadGeneration>;
806
+ }, "strip", z.ZodTypeAny, {
807
+ type: import("../responses").MessageType.leadGeneration;
808
+ id: string;
809
+ }, {
810
+ type: import("../responses").MessageType.leadGeneration;
811
+ id: string;
791
812
  }>]>, "many">>;
792
813
  }, "strip", z.ZodTypeAny, {
793
814
  languageCode: string;
@@ -835,6 +856,9 @@ export declare const ConfirmationNodeDataSchema: z.ZodObject<{
835
856
  submitButton: {
836
857
  label: string;
837
858
  };
859
+ } | {
860
+ type: import("../responses").MessageType.leadGeneration;
861
+ id: string;
838
862
  } | {
839
863
  type: import("../responses").MessageType.text;
840
864
  id: string;
@@ -1222,6 +1246,15 @@ export declare const ConfirmationNodeDataSchema: z.ZodObject<{
1222
1246
  submitButton: {
1223
1247
  label?: unknown;
1224
1248
  };
1249
+ }>, z.ZodObject<{
1250
+ id: z.ZodString;
1251
+ type: z.ZodLiteral<import("../responses").MessageType.leadGeneration>;
1252
+ }, "strip", z.ZodTypeAny, {
1253
+ type: import("../responses").MessageType.leadGeneration;
1254
+ id: string;
1255
+ }, {
1256
+ type: import("../responses").MessageType.leadGeneration;
1257
+ id: string;
1225
1258
  }>]>, "many">>;
1226
1259
  }, "strip", z.ZodTypeAny, {
1227
1260
  languageCode: string;
@@ -1269,6 +1302,9 @@ export declare const ConfirmationNodeDataSchema: z.ZodObject<{
1269
1302
  submitButton: {
1270
1303
  label: string;
1271
1304
  };
1305
+ } | {
1306
+ type: import("../responses").MessageType.leadGeneration;
1307
+ id: string;
1272
1308
  } | {
1273
1309
  type: import("../responses").MessageType.text;
1274
1310
  id: string;
@@ -1656,6 +1692,15 @@ export declare const ConfirmationNodeDataSchema: z.ZodObject<{
1656
1692
  submitButton: {
1657
1693
  label?: unknown;
1658
1694
  };
1695
+ }>, z.ZodObject<{
1696
+ id: z.ZodString;
1697
+ type: z.ZodLiteral<import("../responses").MessageType.leadGeneration>;
1698
+ }, "strip", z.ZodTypeAny, {
1699
+ type: import("../responses").MessageType.leadGeneration;
1700
+ id: string;
1701
+ }, {
1702
+ type: import("../responses").MessageType.leadGeneration;
1703
+ id: string;
1659
1704
  }>]>, "many">>;
1660
1705
  }, "strip", z.ZodTypeAny, {
1661
1706
  languageCode: string;
@@ -1703,6 +1748,9 @@ export declare const ConfirmationNodeDataSchema: z.ZodObject<{
1703
1748
  submitButton: {
1704
1749
  label: string;
1705
1750
  };
1751
+ } | {
1752
+ type: import("../responses").MessageType.leadGeneration;
1753
+ id: string;
1706
1754
  } | {
1707
1755
  type: import("../responses").MessageType.text;
1708
1756
  id: string;
@@ -1787,6 +1835,9 @@ export declare const ConfirmationNodeDataSchema: z.ZodObject<{
1787
1835
  submitButton: {
1788
1836
  label: string;
1789
1837
  };
1838
+ } | {
1839
+ type: import("../responses").MessageType.leadGeneration;
1840
+ id: string;
1790
1841
  } | {
1791
1842
  type: import("../responses").MessageType.text;
1792
1843
  id: string;
@@ -1865,6 +1916,9 @@ export declare const ConfirmationNodeDataSchema: z.ZodObject<{
1865
1916
  submitButton: {
1866
1917
  label: string;
1867
1918
  };
1919
+ } | {
1920
+ type: import("../responses").MessageType.leadGeneration;
1921
+ id: string;
1868
1922
  } | {
1869
1923
  type: import("../responses").MessageType.text;
1870
1924
  id: string;
@@ -1944,6 +1998,9 @@ export declare const ConfirmationNodeDataSchema: z.ZodObject<{
1944
1998
  submitButton: {
1945
1999
  label: string;
1946
2000
  };
2001
+ } | {
2002
+ type: import("../responses").MessageType.leadGeneration;
2003
+ id: string;
1947
2004
  } | {
1948
2005
  type: import("../responses").MessageType.text;
1949
2006
  id: string;
@@ -2022,6 +2079,9 @@ export declare const ConfirmationNodeDataSchema: z.ZodObject<{
2022
2079
  submitButton: {
2023
2080
  label: string;
2024
2081
  };
2082
+ } | {
2083
+ type: import("../responses").MessageType.leadGeneration;
2084
+ id: string;
2025
2085
  } | {
2026
2086
  type: import("../responses").MessageType.text;
2027
2087
  id: string;
@@ -2423,6 +2483,15 @@ export declare const ConfirmationNodeSchema: z.ZodObject<{
2423
2483
  submitButton: {
2424
2484
  label?: unknown;
2425
2485
  };
2486
+ }>, z.ZodObject<{
2487
+ id: z.ZodString;
2488
+ type: z.ZodLiteral<import("../responses").MessageType.leadGeneration>;
2489
+ }, "strip", z.ZodTypeAny, {
2490
+ type: import("../responses").MessageType.leadGeneration;
2491
+ id: string;
2492
+ }, {
2493
+ type: import("../responses").MessageType.leadGeneration;
2494
+ id: string;
2426
2495
  }>]>, "many">>;
2427
2496
  }, "strip", z.ZodTypeAny, {
2428
2497
  languageCode: string;
@@ -2470,6 +2539,9 @@ export declare const ConfirmationNodeSchema: z.ZodObject<{
2470
2539
  submitButton: {
2471
2540
  label: string;
2472
2541
  };
2542
+ } | {
2543
+ type: import("../responses").MessageType.leadGeneration;
2544
+ id: string;
2473
2545
  } | {
2474
2546
  type: import("../responses").MessageType.text;
2475
2547
  id: string;
@@ -2857,6 +2929,15 @@ export declare const ConfirmationNodeSchema: z.ZodObject<{
2857
2929
  submitButton: {
2858
2930
  label?: unknown;
2859
2931
  };
2932
+ }>, z.ZodObject<{
2933
+ id: z.ZodString;
2934
+ type: z.ZodLiteral<import("../responses").MessageType.leadGeneration>;
2935
+ }, "strip", z.ZodTypeAny, {
2936
+ type: import("../responses").MessageType.leadGeneration;
2937
+ id: string;
2938
+ }, {
2939
+ type: import("../responses").MessageType.leadGeneration;
2940
+ id: string;
2860
2941
  }>]>, "many">>;
2861
2942
  }, "strip", z.ZodTypeAny, {
2862
2943
  languageCode: string;
@@ -2904,6 +2985,9 @@ export declare const ConfirmationNodeSchema: z.ZodObject<{
2904
2985
  submitButton: {
2905
2986
  label: string;
2906
2987
  };
2988
+ } | {
2989
+ type: import("../responses").MessageType.leadGeneration;
2990
+ id: string;
2907
2991
  } | {
2908
2992
  type: import("../responses").MessageType.text;
2909
2993
  id: string;
@@ -3291,6 +3375,15 @@ export declare const ConfirmationNodeSchema: z.ZodObject<{
3291
3375
  submitButton: {
3292
3376
  label?: unknown;
3293
3377
  };
3378
+ }>, z.ZodObject<{
3379
+ id: z.ZodString;
3380
+ type: z.ZodLiteral<import("../responses").MessageType.leadGeneration>;
3381
+ }, "strip", z.ZodTypeAny, {
3382
+ type: import("../responses").MessageType.leadGeneration;
3383
+ id: string;
3384
+ }, {
3385
+ type: import("../responses").MessageType.leadGeneration;
3386
+ id: string;
3294
3387
  }>]>, "many">>;
3295
3388
  }, "strip", z.ZodTypeAny, {
3296
3389
  languageCode: string;
@@ -3338,6 +3431,9 @@ export declare const ConfirmationNodeSchema: z.ZodObject<{
3338
3431
  submitButton: {
3339
3432
  label: string;
3340
3433
  };
3434
+ } | {
3435
+ type: import("../responses").MessageType.leadGeneration;
3436
+ id: string;
3341
3437
  } | {
3342
3438
  type: import("../responses").MessageType.text;
3343
3439
  id: string;
@@ -3725,6 +3821,15 @@ export declare const ConfirmationNodeSchema: z.ZodObject<{
3725
3821
  submitButton: {
3726
3822
  label?: unknown;
3727
3823
  };
3824
+ }>, z.ZodObject<{
3825
+ id: z.ZodString;
3826
+ type: z.ZodLiteral<import("../responses").MessageType.leadGeneration>;
3827
+ }, "strip", z.ZodTypeAny, {
3828
+ type: import("../responses").MessageType.leadGeneration;
3829
+ id: string;
3830
+ }, {
3831
+ type: import("../responses").MessageType.leadGeneration;
3832
+ id: string;
3728
3833
  }>]>, "many">>;
3729
3834
  }, "strip", z.ZodTypeAny, {
3730
3835
  languageCode: string;
@@ -3772,6 +3877,9 @@ export declare const ConfirmationNodeSchema: z.ZodObject<{
3772
3877
  submitButton: {
3773
3878
  label: string;
3774
3879
  };
3880
+ } | {
3881
+ type: import("../responses").MessageType.leadGeneration;
3882
+ id: string;
3775
3883
  } | {
3776
3884
  type: import("../responses").MessageType.text;
3777
3885
  id: string;
@@ -3856,6 +3964,9 @@ export declare const ConfirmationNodeSchema: z.ZodObject<{
3856
3964
  submitButton: {
3857
3965
  label: string;
3858
3966
  };
3967
+ } | {
3968
+ type: import("../responses").MessageType.leadGeneration;
3969
+ id: string;
3859
3970
  } | {
3860
3971
  type: import("../responses").MessageType.text;
3861
3972
  id: string;
@@ -3934,6 +4045,9 @@ export declare const ConfirmationNodeSchema: z.ZodObject<{
3934
4045
  submitButton: {
3935
4046
  label: string;
3936
4047
  };
4048
+ } | {
4049
+ type: import("../responses").MessageType.leadGeneration;
4050
+ id: string;
3937
4051
  } | {
3938
4052
  type: import("../responses").MessageType.text;
3939
4053
  id: string;
@@ -4013,6 +4127,9 @@ export declare const ConfirmationNodeSchema: z.ZodObject<{
4013
4127
  submitButton: {
4014
4128
  label: string;
4015
4129
  };
4130
+ } | {
4131
+ type: import("../responses").MessageType.leadGeneration;
4132
+ id: string;
4016
4133
  } | {
4017
4134
  type: import("../responses").MessageType.text;
4018
4135
  id: string;
@@ -4091,6 +4208,9 @@ export declare const ConfirmationNodeSchema: z.ZodObject<{
4091
4208
  submitButton: {
4092
4209
  label: string;
4093
4210
  };
4211
+ } | {
4212
+ type: import("../responses").MessageType.leadGeneration;
4213
+ id: string;
4094
4214
  } | {
4095
4215
  type: import("../responses").MessageType.text;
4096
4216
  id: string;
@@ -4184,6 +4304,9 @@ export declare const ConfirmationNodeSchema: z.ZodObject<{
4184
4304
  submitButton: {
4185
4305
  label: string;
4186
4306
  };
4307
+ } | {
4308
+ type: import("../responses").MessageType.leadGeneration;
4309
+ id: string;
4187
4310
  } | {
4188
4311
  type: import("../responses").MessageType.text;
4189
4312
  id: string;
@@ -4262,6 +4385,9 @@ export declare const ConfirmationNodeSchema: z.ZodObject<{
4262
4385
  submitButton: {
4263
4386
  label: string;
4264
4387
  };
4388
+ } | {
4389
+ type: import("../responses").MessageType.leadGeneration;
4390
+ id: string;
4265
4391
  } | {
4266
4392
  type: import("../responses").MessageType.text;
4267
4393
  id: string;
@@ -4341,6 +4467,9 @@ export declare const ConfirmationNodeSchema: z.ZodObject<{
4341
4467
  submitButton: {
4342
4468
  label: string;
4343
4469
  };
4470
+ } | {
4471
+ type: import("../responses").MessageType.leadGeneration;
4472
+ id: string;
4344
4473
  } | {
4345
4474
  type: import("../responses").MessageType.text;
4346
4475
  id: string;
@@ -4419,6 +4548,9 @@ export declare const ConfirmationNodeSchema: z.ZodObject<{
4419
4548
  submitButton: {
4420
4549
  label: string;
4421
4550
  };
4551
+ } | {
4552
+ type: import("../responses").MessageType.leadGeneration;
4553
+ id: string;
4422
4554
  } | {
4423
4555
  type: import("../responses").MessageType.text;
4424
4556
  id: string;
@@ -356,6 +356,15 @@ export declare const FullfillmentNodeDataSchema: z.ZodObject<{
356
356
  submitButton: {
357
357
  label?: unknown;
358
358
  };
359
+ }>, z.ZodObject<{
360
+ id: z.ZodString;
361
+ type: z.ZodLiteral<import("../responses").MessageType.leadGeneration>;
362
+ }, "strip", z.ZodTypeAny, {
363
+ type: import("../responses").MessageType.leadGeneration;
364
+ id: string;
365
+ }, {
366
+ type: import("../responses").MessageType.leadGeneration;
367
+ id: string;
359
368
  }>]>, "many">>;
360
369
  }, "strip", z.ZodTypeAny, {
361
370
  languageCode: string;
@@ -403,6 +412,9 @@ export declare const FullfillmentNodeDataSchema: z.ZodObject<{
403
412
  submitButton: {
404
413
  label: string;
405
414
  };
415
+ } | {
416
+ type: import("../responses").MessageType.leadGeneration;
417
+ id: string;
406
418
  } | {
407
419
  type: import("../responses").MessageType.text;
408
420
  id: string;
@@ -790,6 +802,15 @@ export declare const FullfillmentNodeDataSchema: z.ZodObject<{
790
802
  submitButton: {
791
803
  label?: unknown;
792
804
  };
805
+ }>, z.ZodObject<{
806
+ id: z.ZodString;
807
+ type: z.ZodLiteral<import("../responses").MessageType.leadGeneration>;
808
+ }, "strip", z.ZodTypeAny, {
809
+ type: import("../responses").MessageType.leadGeneration;
810
+ id: string;
811
+ }, {
812
+ type: import("../responses").MessageType.leadGeneration;
813
+ id: string;
793
814
  }>]>, "many">>;
794
815
  }, "strip", z.ZodTypeAny, {
795
816
  languageCode: string;
@@ -837,6 +858,9 @@ export declare const FullfillmentNodeDataSchema: z.ZodObject<{
837
858
  submitButton: {
838
859
  label: string;
839
860
  };
861
+ } | {
862
+ type: import("../responses").MessageType.leadGeneration;
863
+ id: string;
840
864
  } | {
841
865
  type: import("../responses").MessageType.text;
842
866
  id: string;
@@ -1224,6 +1248,15 @@ export declare const FullfillmentNodeDataSchema: z.ZodObject<{
1224
1248
  submitButton: {
1225
1249
  label?: unknown;
1226
1250
  };
1251
+ }>, z.ZodObject<{
1252
+ id: z.ZodString;
1253
+ type: z.ZodLiteral<import("../responses").MessageType.leadGeneration>;
1254
+ }, "strip", z.ZodTypeAny, {
1255
+ type: import("../responses").MessageType.leadGeneration;
1256
+ id: string;
1257
+ }, {
1258
+ type: import("../responses").MessageType.leadGeneration;
1259
+ id: string;
1227
1260
  }>]>, "many">>;
1228
1261
  }, "strip", z.ZodTypeAny, {
1229
1262
  languageCode: string;
@@ -1271,6 +1304,9 @@ export declare const FullfillmentNodeDataSchema: z.ZodObject<{
1271
1304
  submitButton: {
1272
1305
  label: string;
1273
1306
  };
1307
+ } | {
1308
+ type: import("../responses").MessageType.leadGeneration;
1309
+ id: string;
1274
1310
  } | {
1275
1311
  type: import("../responses").MessageType.text;
1276
1312
  id: string;
@@ -1358,6 +1394,9 @@ export declare const FullfillmentNodeDataSchema: z.ZodObject<{
1358
1394
  submitButton: {
1359
1395
  label: string;
1360
1396
  };
1397
+ } | {
1398
+ type: import("../responses").MessageType.leadGeneration;
1399
+ id: string;
1361
1400
  } | {
1362
1401
  type: import("../responses").MessageType.text;
1363
1402
  id: string;
@@ -1436,6 +1475,9 @@ export declare const FullfillmentNodeDataSchema: z.ZodObject<{
1436
1475
  submitButton: {
1437
1476
  label: string;
1438
1477
  };
1478
+ } | {
1479
+ type: import("../responses").MessageType.leadGeneration;
1480
+ id: string;
1439
1481
  } | {
1440
1482
  type: import("../responses").MessageType.text;
1441
1483
  id: string;
@@ -1516,6 +1558,9 @@ export declare const FullfillmentNodeDataSchema: z.ZodObject<{
1516
1558
  submitButton: {
1517
1559
  label: string;
1518
1560
  };
1561
+ } | {
1562
+ type: import("../responses").MessageType.leadGeneration;
1563
+ id: string;
1519
1564
  } | {
1520
1565
  type: import("../responses").MessageType.text;
1521
1566
  id: string;
@@ -1921,6 +1966,15 @@ export declare const FullfillmentNodeSchema: z.ZodObject<{
1921
1966
  submitButton: {
1922
1967
  label?: unknown;
1923
1968
  };
1969
+ }>, z.ZodObject<{
1970
+ id: z.ZodString;
1971
+ type: z.ZodLiteral<import("../responses").MessageType.leadGeneration>;
1972
+ }, "strip", z.ZodTypeAny, {
1973
+ type: import("../responses").MessageType.leadGeneration;
1974
+ id: string;
1975
+ }, {
1976
+ type: import("../responses").MessageType.leadGeneration;
1977
+ id: string;
1924
1978
  }>]>, "many">>;
1925
1979
  }, "strip", z.ZodTypeAny, {
1926
1980
  languageCode: string;
@@ -1968,6 +2022,9 @@ export declare const FullfillmentNodeSchema: z.ZodObject<{
1968
2022
  submitButton: {
1969
2023
  label: string;
1970
2024
  };
2025
+ } | {
2026
+ type: import("../responses").MessageType.leadGeneration;
2027
+ id: string;
1971
2028
  } | {
1972
2029
  type: import("../responses").MessageType.text;
1973
2030
  id: string;
@@ -2355,6 +2412,15 @@ export declare const FullfillmentNodeSchema: z.ZodObject<{
2355
2412
  submitButton: {
2356
2413
  label?: unknown;
2357
2414
  };
2415
+ }>, z.ZodObject<{
2416
+ id: z.ZodString;
2417
+ type: z.ZodLiteral<import("../responses").MessageType.leadGeneration>;
2418
+ }, "strip", z.ZodTypeAny, {
2419
+ type: import("../responses").MessageType.leadGeneration;
2420
+ id: string;
2421
+ }, {
2422
+ type: import("../responses").MessageType.leadGeneration;
2423
+ id: string;
2358
2424
  }>]>, "many">>;
2359
2425
  }, "strip", z.ZodTypeAny, {
2360
2426
  languageCode: string;
@@ -2402,6 +2468,9 @@ export declare const FullfillmentNodeSchema: z.ZodObject<{
2402
2468
  submitButton: {
2403
2469
  label: string;
2404
2470
  };
2471
+ } | {
2472
+ type: import("../responses").MessageType.leadGeneration;
2473
+ id: string;
2405
2474
  } | {
2406
2475
  type: import("../responses").MessageType.text;
2407
2476
  id: string;
@@ -2789,6 +2858,15 @@ export declare const FullfillmentNodeSchema: z.ZodObject<{
2789
2858
  submitButton: {
2790
2859
  label?: unknown;
2791
2860
  };
2861
+ }>, z.ZodObject<{
2862
+ id: z.ZodString;
2863
+ type: z.ZodLiteral<import("../responses").MessageType.leadGeneration>;
2864
+ }, "strip", z.ZodTypeAny, {
2865
+ type: import("../responses").MessageType.leadGeneration;
2866
+ id: string;
2867
+ }, {
2868
+ type: import("../responses").MessageType.leadGeneration;
2869
+ id: string;
2792
2870
  }>]>, "many">>;
2793
2871
  }, "strip", z.ZodTypeAny, {
2794
2872
  languageCode: string;
@@ -2836,6 +2914,9 @@ export declare const FullfillmentNodeSchema: z.ZodObject<{
2836
2914
  submitButton: {
2837
2915
  label: string;
2838
2916
  };
2917
+ } | {
2918
+ type: import("../responses").MessageType.leadGeneration;
2919
+ id: string;
2839
2920
  } | {
2840
2921
  type: import("../responses").MessageType.text;
2841
2922
  id: string;
@@ -2923,6 +3004,9 @@ export declare const FullfillmentNodeSchema: z.ZodObject<{
2923
3004
  submitButton: {
2924
3005
  label: string;
2925
3006
  };
3007
+ } | {
3008
+ type: import("../responses").MessageType.leadGeneration;
3009
+ id: string;
2926
3010
  } | {
2927
3011
  type: import("../responses").MessageType.text;
2928
3012
  id: string;
@@ -3001,6 +3085,9 @@ export declare const FullfillmentNodeSchema: z.ZodObject<{
3001
3085
  submitButton: {
3002
3086
  label: string;
3003
3087
  };
3088
+ } | {
3089
+ type: import("../responses").MessageType.leadGeneration;
3090
+ id: string;
3004
3091
  } | {
3005
3092
  type: import("../responses").MessageType.text;
3006
3093
  id: string;
@@ -3081,6 +3168,9 @@ export declare const FullfillmentNodeSchema: z.ZodObject<{
3081
3168
  submitButton: {
3082
3169
  label: string;
3083
3170
  };
3171
+ } | {
3172
+ type: import("../responses").MessageType.leadGeneration;
3173
+ id: string;
3084
3174
  } | {
3085
3175
  type: import("../responses").MessageType.text;
3086
3176
  id: string;
@@ -3177,6 +3267,9 @@ export declare const FullfillmentNodeSchema: z.ZodObject<{
3177
3267
  submitButton: {
3178
3268
  label: string;
3179
3269
  };
3270
+ } | {
3271
+ type: import("../responses").MessageType.leadGeneration;
3272
+ id: string;
3180
3273
  } | {
3181
3274
  type: import("../responses").MessageType.text;
3182
3275
  id: string;
@@ -3255,6 +3348,9 @@ export declare const FullfillmentNodeSchema: z.ZodObject<{
3255
3348
  submitButton: {
3256
3349
  label: string;
3257
3350
  };
3351
+ } | {
3352
+ type: import("../responses").MessageType.leadGeneration;
3353
+ id: string;
3258
3354
  } | {
3259
3355
  type: import("../responses").MessageType.text;
3260
3356
  id: string;
@@ -3335,6 +3431,9 @@ export declare const FullfillmentNodeSchema: z.ZodObject<{
3335
3431
  submitButton: {
3336
3432
  label: string;
3337
3433
  };
3434
+ } | {
3435
+ type: import("../responses").MessageType.leadGeneration;
3436
+ id: string;
3338
3437
  } | {
3339
3438
  type: import("../responses").MessageType.text;
3340
3439
  id: string;
@@ -11,7 +11,7 @@ exports.UtteranceSchema = zod_1.z
11
11
  exports.IntentNodeDataSchema = zod_1.z
12
12
  .object({
13
13
  label: zod_1.z.string().trim().min(1, { message: "label is required" }),
14
- name: zod_1.z.string().trim().min(1, { message: "name is required" }),
14
+ name: zod_1.z.string().trim().min(1, { message: "name is required" }).regex(/^([0-9a-zA-Z][_-]?){1,100}$/, { message: "intent name has invalid character" }),
15
15
  description: zod_1.z.string().trim().catch(""),
16
16
  utterances: exports.UtteranceSchema.array(),
17
17
  isFallback: zod_1.z.boolean().optional().default(false).catch(false),
@@ -1 +1 @@
1
- {"version":3,"file":"intent-node.js","sourceRoot":"","sources":["../../../../types/nodes/intent-node.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,2CAAuC;AAG1B,QAAA,eAAe,GAAG,OAAC;KAC7B,MAAM,CAAC;IACN,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,2BAA2B,EAAE,CAAC;IAChF,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;CACjC,CAAC,CAAA;AAKS,QAAA,oBAAoB,GAAG,OAAC;KAClC,MAAM,CAAC;IACN,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,mBAAmB,EAAE,CAAC;IACjE,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAC/D,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;IACxC,UAAU,EAAE,uBAAe,CAAC,KAAK,EAAE;IACnC,UAAU,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC;CAC/D,CAAC,CAAA;AAKS,QAAA,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,oBAAQ,CAAC,UAAU,CAAC;IACpC,IAAI,EAAE,4BAAoB;CAC3B,CAAC,CAAC"}
1
+ {"version":3,"file":"intent-node.js","sourceRoot":"","sources":["../../../../types/nodes/intent-node.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,2CAAuC;AAG1B,QAAA,eAAe,GAAG,OAAC;KAC7B,MAAM,CAAC;IACN,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,2BAA2B,EAAE,CAAC;IAChF,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;CACjC,CAAC,CAAA;AAKS,QAAA,oBAAoB,GAAG,OAAC;KAClC,MAAM,CAAC;IACN,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,mBAAmB,EAAE,CAAC;IACjE,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC,CAAC,KAAK,CAAC,6BAA6B,EAAE,EAAE,OAAO,EAAE,mCAAmC,EAAE,CAAC;IACtJ,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;IACxC,UAAU,EAAE,uBAAe,CAAC,KAAK,EAAE;IACnC,UAAU,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC;CAC/D,CAAC,CAAA;AAKS,QAAA,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,oBAAQ,CAAC,UAAU,CAAC;IACpC,IAAI,EAAE,4BAAoB;CAC3B,CAAC,CAAC"}