@auto-engineer/narrative 0.19.0 → 0.20.0

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 (77) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/.turbo/turbo-format.log +4 -0
  3. package/.turbo/turbo-lint.log +4 -0
  4. package/.turbo/turbo-test.log +14 -0
  5. package/.turbo/turbo-type-check.log +4 -0
  6. package/CHANGELOG.md +9 -0
  7. package/dist/src/commands/export-schema-runner.d.ts +3 -0
  8. package/dist/src/commands/export-schema-runner.d.ts.map +1 -0
  9. package/dist/src/commands/export-schema-runner.js +48 -0
  10. package/dist/src/commands/export-schema-runner.js.map +1 -0
  11. package/dist/src/data-narrative-builders.d.ts +13 -8
  12. package/dist/src/data-narrative-builders.d.ts.map +1 -1
  13. package/dist/src/data-narrative-builders.js +47 -20
  14. package/dist/src/data-narrative-builders.js.map +1 -1
  15. package/dist/src/fluent-builder.specs.d.ts +2 -0
  16. package/dist/src/fluent-builder.specs.d.ts.map +1 -0
  17. package/dist/src/fluent-builder.specs.js +28 -0
  18. package/dist/src/fluent-builder.specs.js.map +1 -0
  19. package/dist/src/getNarratives.cache.specs.d.ts +2 -0
  20. package/dist/src/getNarratives.cache.specs.d.ts.map +1 -0
  21. package/dist/src/getNarratives.cache.specs.js +234 -0
  22. package/dist/src/getNarratives.cache.specs.js.map +1 -0
  23. package/dist/src/getNarratives.specs.d.ts +2 -0
  24. package/dist/src/getNarratives.specs.d.ts.map +1 -0
  25. package/dist/src/getNarratives.specs.js +1307 -0
  26. package/dist/src/getNarratives.specs.js.map +1 -0
  27. package/dist/src/id/addAutoIds.d.ts.map +1 -1
  28. package/dist/src/id/addAutoIds.js +18 -0
  29. package/dist/src/id/addAutoIds.js.map +1 -1
  30. package/dist/src/id/addAutoIds.specs.d.ts +2 -0
  31. package/dist/src/id/addAutoIds.specs.d.ts.map +1 -0
  32. package/dist/src/id/addAutoIds.specs.js +602 -0
  33. package/dist/src/id/addAutoIds.specs.js.map +1 -0
  34. package/dist/src/id/hasAllIds.d.ts.map +1 -1
  35. package/dist/src/id/hasAllIds.js +13 -1
  36. package/dist/src/id/hasAllIds.js.map +1 -1
  37. package/dist/src/id/hasAllIds.specs.d.ts +2 -0
  38. package/dist/src/id/hasAllIds.specs.d.ts.map +1 -0
  39. package/dist/src/id/hasAllIds.specs.js +424 -0
  40. package/dist/src/id/hasAllIds.specs.js.map +1 -0
  41. package/dist/src/model-to-narrative.specs.d.ts +2 -0
  42. package/dist/src/model-to-narrative.specs.d.ts.map +1 -0
  43. package/dist/src/model-to-narrative.specs.js +2437 -0
  44. package/dist/src/model-to-narrative.specs.js.map +1 -0
  45. package/dist/src/narrative-context.specs.d.ts +2 -0
  46. package/dist/src/narrative-context.specs.d.ts.map +1 -0
  47. package/dist/src/narrative-context.specs.js +260 -0
  48. package/dist/src/narrative-context.specs.js.map +1 -0
  49. package/dist/src/schema.d.ts +533 -302
  50. package/dist/src/schema.d.ts.map +1 -1
  51. package/dist/src/schema.js +2 -0
  52. package/dist/src/schema.js.map +1 -1
  53. package/dist/src/transformers/model-to-narrative/generators/flow.d.ts.map +1 -1
  54. package/dist/src/transformers/model-to-narrative/generators/flow.js +10 -5
  55. package/dist/src/transformers/model-to-narrative/generators/flow.js.map +1 -1
  56. package/dist/src/transformers/model-to-narrative/generators/gwt.specs.d.ts +2 -0
  57. package/dist/src/transformers/model-to-narrative/generators/gwt.specs.d.ts.map +1 -0
  58. package/dist/src/transformers/model-to-narrative/generators/gwt.specs.js +142 -0
  59. package/dist/src/transformers/model-to-narrative/generators/gwt.specs.js.map +1 -0
  60. package/dist/src/transformers/narrative-to-model/type-inference.specs.d.ts +2 -0
  61. package/dist/src/transformers/narrative-to-model/type-inference.specs.d.ts.map +1 -0
  62. package/dist/src/transformers/narrative-to-model/type-inference.specs.js +177 -0
  63. package/dist/src/transformers/narrative-to-model/type-inference.specs.js.map +1 -0
  64. package/dist/src/types.d.ts +2 -0
  65. package/dist/src/types.d.ts.map +1 -1
  66. package/dist/tsconfig.tsbuildinfo +1 -1
  67. package/package.json +4 -4
  68. package/src/data-narrative-builders.ts +57 -20
  69. package/src/getNarratives.specs.ts +69 -0
  70. package/src/id/addAutoIds.specs.ts +268 -0
  71. package/src/id/addAutoIds.ts +19 -0
  72. package/src/id/hasAllIds.specs.ts +223 -0
  73. package/src/id/hasAllIds.ts +13 -1
  74. package/src/model-to-narrative.specs.ts +176 -0
  75. package/src/schema.ts +2 -0
  76. package/src/transformers/model-to-narrative/generators/flow.ts +16 -4
  77. package/src/types.ts +2 -0
@@ -3,11 +3,11 @@ export declare const MessageRefSchema: z.ZodObject<{
3
3
  kind: z.ZodEnum<["command", "event", "state"]>;
4
4
  name: z.ZodString;
5
5
  }, "strip", z.ZodTypeAny, {
6
- kind: "command" | "event" | "state";
7
6
  name: string;
8
- }, {
9
7
  kind: "command" | "event" | "state";
8
+ }, {
10
9
  name: string;
10
+ kind: "command" | "event" | "state";
11
11
  }>;
12
12
  export declare const ModuleSchema: z.ZodObject<{
13
13
  id: z.ZodString;
@@ -25,21 +25,21 @@ export declare const ModuleSchema: z.ZodObject<{
25
25
  kind: z.ZodEnum<["command", "event", "state"]>;
26
26
  name: z.ZodString;
27
27
  }, "strip", z.ZodTypeAny, {
28
- kind: "command" | "event" | "state";
29
28
  name: string;
30
- }, {
31
29
  kind: "command" | "event" | "state";
30
+ }, {
32
31
  name: string;
32
+ kind: "command" | "event" | "state";
33
33
  }>, "many">;
34
34
  }, "strip", z.ZodTypeAny, {
35
35
  messages: {
36
- kind: "command" | "event" | "state";
37
36
  name: string;
37
+ kind: "command" | "event" | "state";
38
38
  }[];
39
39
  }, {
40
40
  messages: {
41
- kind: "command" | "event" | "state";
42
41
  name: string;
42
+ kind: "command" | "event" | "state";
43
43
  }[];
44
44
  }>;
45
45
  }, "strip", z.ZodTypeAny, {
@@ -51,8 +51,8 @@ export declare const ModuleSchema: z.ZodObject<{
51
51
  };
52
52
  declares: {
53
53
  messages: {
54
- kind: "command" | "event" | "state";
55
54
  name: string;
55
+ kind: "command" | "event" | "state";
56
56
  }[];
57
57
  };
58
58
  }, {
@@ -64,8 +64,8 @@ export declare const ModuleSchema: z.ZodObject<{
64
64
  };
65
65
  declares: {
66
66
  messages: {
67
- kind: "command" | "event" | "state";
68
67
  name: string;
68
+ kind: "command" | "event" | "state";
69
69
  }[];
70
70
  };
71
71
  }>;
@@ -87,11 +87,11 @@ export declare const MessageTargetSchema: z.ZodObject<{
87
87
  name: z.ZodString;
88
88
  fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
89
89
  }, "strip", z.ZodTypeAny, {
90
- type: "Command" | "Event" | "State";
90
+ type: "Event" | "Command" | "State";
91
91
  name: string;
92
92
  fields?: Record<string, unknown> | undefined;
93
93
  }, {
94
- type: "Command" | "Event" | "State";
94
+ type: "Event" | "Command" | "State";
95
95
  name: string;
96
96
  fields?: Record<string, unknown> | undefined;
97
97
  }>;
@@ -209,16 +209,17 @@ export declare const OriginSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
209
209
  systems: string[];
210
210
  }>]>;
211
211
  declare const DataSinkSchema: z.ZodObject<{
212
+ id: z.ZodOptional<z.ZodString>;
212
213
  target: z.ZodObject<{
213
214
  type: z.ZodEnum<["Event", "Command", "State"]>;
214
215
  name: z.ZodString;
215
216
  fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
216
217
  }, "strip", z.ZodTypeAny, {
217
- type: "Command" | "Event" | "State";
218
+ type: "Event" | "Command" | "State";
218
219
  name: string;
219
220
  fields?: Record<string, unknown> | undefined;
220
221
  }, {
221
- type: "Command" | "Event" | "State";
222
+ type: "Event" | "Command" | "State";
222
223
  name: string;
223
224
  fields?: Record<string, unknown> | undefined;
224
225
  }>;
@@ -280,16 +281,17 @@ declare const DataSinkSchema: z.ZodObject<{
280
281
  transform: z.ZodOptional<z.ZodString>;
281
282
  _additionalInstructions: z.ZodOptional<z.ZodString>;
282
283
  _withState: z.ZodOptional<z.ZodLazy<z.ZodObject<{
284
+ id: z.ZodOptional<z.ZodString>;
283
285
  target: z.ZodObject<{
284
286
  type: z.ZodEnum<["Event", "Command", "State"]>;
285
287
  name: z.ZodString;
286
288
  fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
287
289
  }, "strip", z.ZodTypeAny, {
288
- type: "Command" | "Event" | "State";
290
+ type: "Event" | "Command" | "State";
289
291
  name: string;
290
292
  fields?: Record<string, unknown> | undefined;
291
293
  }, {
292
- type: "Command" | "Event" | "State";
294
+ type: "Event" | "Command" | "State";
293
295
  name: string;
294
296
  fields?: Record<string, unknown> | undefined;
295
297
  }>;
@@ -355,7 +357,7 @@ declare const DataSinkSchema: z.ZodObject<{
355
357
  _additionalInstructions: z.ZodOptional<z.ZodString>;
356
358
  }, "strip", z.ZodTypeAny, {
357
359
  target: {
358
- type: "Command" | "Event" | "State";
360
+ type: "Event" | "Command" | "State";
359
361
  name: string;
360
362
  fields?: Record<string, unknown> | undefined;
361
363
  };
@@ -379,11 +381,12 @@ declare const DataSinkSchema: z.ZodObject<{
379
381
  type: "integration";
380
382
  systems: string[];
381
383
  };
384
+ id?: string | undefined;
382
385
  transform?: string | undefined;
383
386
  _additionalInstructions?: string | undefined;
384
387
  }, {
385
388
  target: {
386
- type: "Command" | "Event" | "State";
389
+ type: "Event" | "Command" | "State";
387
390
  name: string;
388
391
  fields?: Record<string, unknown> | undefined;
389
392
  };
@@ -407,12 +410,13 @@ declare const DataSinkSchema: z.ZodObject<{
407
410
  type: "integration";
408
411
  systems: string[];
409
412
  };
413
+ id?: string | undefined;
410
414
  transform?: string | undefined;
411
415
  _additionalInstructions?: string | undefined;
412
416
  }>>>;
413
417
  }, "strip", z.ZodTypeAny, {
414
418
  target: {
415
- type: "Command" | "Event" | "State";
419
+ type: "Event" | "Command" | "State";
416
420
  name: string;
417
421
  fields?: Record<string, unknown> | undefined;
418
422
  };
@@ -433,11 +437,12 @@ declare const DataSinkSchema: z.ZodObject<{
433
437
  type: "topic";
434
438
  name: string;
435
439
  };
440
+ id?: string | undefined;
436
441
  transform?: string | undefined;
437
442
  _additionalInstructions?: string | undefined;
438
443
  _withState?: {
439
444
  target: {
440
- type: "Command" | "Event" | "State";
445
+ type: "Event" | "Command" | "State";
441
446
  name: string;
442
447
  fields?: Record<string, unknown> | undefined;
443
448
  };
@@ -461,12 +466,13 @@ declare const DataSinkSchema: z.ZodObject<{
461
466
  type: "integration";
462
467
  systems: string[];
463
468
  };
469
+ id?: string | undefined;
464
470
  transform?: string | undefined;
465
471
  _additionalInstructions?: string | undefined;
466
472
  } | undefined;
467
473
  }, {
468
474
  target: {
469
- type: "Command" | "Event" | "State";
475
+ type: "Event" | "Command" | "State";
470
476
  name: string;
471
477
  fields?: Record<string, unknown> | undefined;
472
478
  };
@@ -487,11 +493,12 @@ declare const DataSinkSchema: z.ZodObject<{
487
493
  type: "topic";
488
494
  name: string;
489
495
  };
496
+ id?: string | undefined;
490
497
  transform?: string | undefined;
491
498
  _additionalInstructions?: string | undefined;
492
499
  _withState?: {
493
500
  target: {
494
- type: "Command" | "Event" | "State";
501
+ type: "Event" | "Command" | "State";
495
502
  name: string;
496
503
  fields?: Record<string, unknown> | undefined;
497
504
  };
@@ -515,21 +522,23 @@ declare const DataSinkSchema: z.ZodObject<{
515
522
  type: "integration";
516
523
  systems: string[];
517
524
  };
525
+ id?: string | undefined;
518
526
  transform?: string | undefined;
519
527
  _additionalInstructions?: string | undefined;
520
528
  } | undefined;
521
529
  }>;
522
530
  declare const DataSourceSchema: z.ZodObject<{
531
+ id: z.ZodOptional<z.ZodString>;
523
532
  target: z.ZodObject<{
524
533
  type: z.ZodEnum<["Event", "Command", "State"]>;
525
534
  name: z.ZodString;
526
535
  fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
527
536
  }, "strip", z.ZodTypeAny, {
528
- type: "Command" | "Event" | "State";
537
+ type: "Event" | "Command" | "State";
529
538
  name: string;
530
539
  fields?: Record<string, unknown> | undefined;
531
540
  }, {
532
- type: "Command" | "Event" | "State";
541
+ type: "Event" | "Command" | "State";
533
542
  name: string;
534
543
  fields?: Record<string, unknown> | undefined;
535
544
  }>;
@@ -595,7 +604,7 @@ declare const DataSourceSchema: z.ZodObject<{
595
604
  _additionalInstructions: z.ZodOptional<z.ZodString>;
596
605
  }, "strip", z.ZodTypeAny, {
597
606
  target: {
598
- type: "Command" | "Event" | "State";
607
+ type: "Event" | "Command" | "State";
599
608
  name: string;
600
609
  fields?: Record<string, unknown> | undefined;
601
610
  };
@@ -619,11 +628,12 @@ declare const DataSourceSchema: z.ZodObject<{
619
628
  type: "integration";
620
629
  systems: string[];
621
630
  };
631
+ id?: string | undefined;
622
632
  transform?: string | undefined;
623
633
  _additionalInstructions?: string | undefined;
624
634
  }, {
625
635
  target: {
626
- type: "Command" | "Event" | "State";
636
+ type: "Event" | "Command" | "State";
627
637
  name: string;
628
638
  fields?: Record<string, unknown> | undefined;
629
639
  };
@@ -647,6 +657,7 @@ declare const DataSourceSchema: z.ZodObject<{
647
657
  type: "integration";
648
658
  systems: string[];
649
659
  };
660
+ id?: string | undefined;
650
661
  transform?: string | undefined;
651
662
  _additionalInstructions?: string | undefined;
652
663
  }>;
@@ -762,8 +773,8 @@ declare const EventSchema: z.ZodObject<{
762
773
  type: z.ZodLiteral<"event">;
763
774
  source: z.ZodDefault<z.ZodEnum<["internal", "external"]>>;
764
775
  }, "strip", z.ZodTypeAny, {
765
- type: "event";
766
776
  source: "internal" | "external";
777
+ type: "event";
767
778
  name: string;
768
779
  fields: {
769
780
  type: string;
@@ -944,8 +955,8 @@ declare const MessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
944
955
  type: z.ZodLiteral<"event">;
945
956
  source: z.ZodDefault<z.ZodEnum<["internal", "external"]>>;
946
957
  }, "strip", z.ZodTypeAny, {
947
- type: "event";
948
958
  source: "internal" | "external";
959
+ type: "event";
949
960
  name: string;
950
961
  fields: {
951
962
  type: string;
@@ -1542,16 +1553,17 @@ declare const CommandSliceSchema: z.ZodObject<{
1542
1553
  server: z.ZodObject<{
1543
1554
  description: z.ZodString;
1544
1555
  data: z.ZodOptional<z.ZodArray<z.ZodObject<{
1556
+ id: z.ZodOptional<z.ZodString>;
1545
1557
  target: z.ZodObject<{
1546
1558
  type: z.ZodEnum<["Event", "Command", "State"]>;
1547
1559
  name: z.ZodString;
1548
1560
  fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1549
1561
  }, "strip", z.ZodTypeAny, {
1550
- type: "Command" | "Event" | "State";
1562
+ type: "Event" | "Command" | "State";
1551
1563
  name: string;
1552
1564
  fields?: Record<string, unknown> | undefined;
1553
1565
  }, {
1554
- type: "Command" | "Event" | "State";
1566
+ type: "Event" | "Command" | "State";
1555
1567
  name: string;
1556
1568
  fields?: Record<string, unknown> | undefined;
1557
1569
  }>;
@@ -1613,16 +1625,17 @@ declare const CommandSliceSchema: z.ZodObject<{
1613
1625
  transform: z.ZodOptional<z.ZodString>;
1614
1626
  _additionalInstructions: z.ZodOptional<z.ZodString>;
1615
1627
  _withState: z.ZodOptional<z.ZodLazy<z.ZodObject<{
1628
+ id: z.ZodOptional<z.ZodString>;
1616
1629
  target: z.ZodObject<{
1617
1630
  type: z.ZodEnum<["Event", "Command", "State"]>;
1618
1631
  name: z.ZodString;
1619
1632
  fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1620
1633
  }, "strip", z.ZodTypeAny, {
1621
- type: "Command" | "Event" | "State";
1634
+ type: "Event" | "Command" | "State";
1622
1635
  name: string;
1623
1636
  fields?: Record<string, unknown> | undefined;
1624
1637
  }, {
1625
- type: "Command" | "Event" | "State";
1638
+ type: "Event" | "Command" | "State";
1626
1639
  name: string;
1627
1640
  fields?: Record<string, unknown> | undefined;
1628
1641
  }>;
@@ -1688,7 +1701,7 @@ declare const CommandSliceSchema: z.ZodObject<{
1688
1701
  _additionalInstructions: z.ZodOptional<z.ZodString>;
1689
1702
  }, "strip", z.ZodTypeAny, {
1690
1703
  target: {
1691
- type: "Command" | "Event" | "State";
1704
+ type: "Event" | "Command" | "State";
1692
1705
  name: string;
1693
1706
  fields?: Record<string, unknown> | undefined;
1694
1707
  };
@@ -1712,11 +1725,12 @@ declare const CommandSliceSchema: z.ZodObject<{
1712
1725
  type: "integration";
1713
1726
  systems: string[];
1714
1727
  };
1728
+ id?: string | undefined;
1715
1729
  transform?: string | undefined;
1716
1730
  _additionalInstructions?: string | undefined;
1717
1731
  }, {
1718
1732
  target: {
1719
- type: "Command" | "Event" | "State";
1733
+ type: "Event" | "Command" | "State";
1720
1734
  name: string;
1721
1735
  fields?: Record<string, unknown> | undefined;
1722
1736
  };
@@ -1740,12 +1754,13 @@ declare const CommandSliceSchema: z.ZodObject<{
1740
1754
  type: "integration";
1741
1755
  systems: string[];
1742
1756
  };
1757
+ id?: string | undefined;
1743
1758
  transform?: string | undefined;
1744
1759
  _additionalInstructions?: string | undefined;
1745
1760
  }>>>;
1746
1761
  }, "strip", z.ZodTypeAny, {
1747
1762
  target: {
1748
- type: "Command" | "Event" | "State";
1763
+ type: "Event" | "Command" | "State";
1749
1764
  name: string;
1750
1765
  fields?: Record<string, unknown> | undefined;
1751
1766
  };
@@ -1766,11 +1781,12 @@ declare const CommandSliceSchema: z.ZodObject<{
1766
1781
  type: "topic";
1767
1782
  name: string;
1768
1783
  };
1784
+ id?: string | undefined;
1769
1785
  transform?: string | undefined;
1770
1786
  _additionalInstructions?: string | undefined;
1771
1787
  _withState?: {
1772
1788
  target: {
1773
- type: "Command" | "Event" | "State";
1789
+ type: "Event" | "Command" | "State";
1774
1790
  name: string;
1775
1791
  fields?: Record<string, unknown> | undefined;
1776
1792
  };
@@ -1794,12 +1810,13 @@ declare const CommandSliceSchema: z.ZodObject<{
1794
1810
  type: "integration";
1795
1811
  systems: string[];
1796
1812
  };
1813
+ id?: string | undefined;
1797
1814
  transform?: string | undefined;
1798
1815
  _additionalInstructions?: string | undefined;
1799
1816
  } | undefined;
1800
1817
  }, {
1801
1818
  target: {
1802
- type: "Command" | "Event" | "State";
1819
+ type: "Event" | "Command" | "State";
1803
1820
  name: string;
1804
1821
  fields?: Record<string, unknown> | undefined;
1805
1822
  };
@@ -1820,11 +1837,12 @@ declare const CommandSliceSchema: z.ZodObject<{
1820
1837
  type: "topic";
1821
1838
  name: string;
1822
1839
  };
1840
+ id?: string | undefined;
1823
1841
  transform?: string | undefined;
1824
1842
  _additionalInstructions?: string | undefined;
1825
1843
  _withState?: {
1826
1844
  target: {
1827
- type: "Command" | "Event" | "State";
1845
+ type: "Event" | "Command" | "State";
1828
1846
  name: string;
1829
1847
  fields?: Record<string, unknown> | undefined;
1830
1848
  };
@@ -1848,6 +1866,7 @@ declare const CommandSliceSchema: z.ZodObject<{
1848
1866
  type: "integration";
1849
1867
  systems: string[];
1850
1868
  };
1869
+ id?: string | undefined;
1851
1870
  transform?: string | undefined;
1852
1871
  _additionalInstructions?: string | undefined;
1853
1872
  } | undefined;
@@ -2060,7 +2079,7 @@ declare const CommandSliceSchema: z.ZodObject<{
2060
2079
  }[];
2061
2080
  data?: {
2062
2081
  target: {
2063
- type: "Command" | "Event" | "State";
2082
+ type: "Event" | "Command" | "State";
2064
2083
  name: string;
2065
2084
  fields?: Record<string, unknown> | undefined;
2066
2085
  };
@@ -2081,11 +2100,12 @@ declare const CommandSliceSchema: z.ZodObject<{
2081
2100
  type: "topic";
2082
2101
  name: string;
2083
2102
  };
2103
+ id?: string | undefined;
2084
2104
  transform?: string | undefined;
2085
2105
  _additionalInstructions?: string | undefined;
2086
2106
  _withState?: {
2087
2107
  target: {
2088
- type: "Command" | "Event" | "State";
2108
+ type: "Event" | "Command" | "State";
2089
2109
  name: string;
2090
2110
  fields?: Record<string, unknown> | undefined;
2091
2111
  };
@@ -2109,6 +2129,7 @@ declare const CommandSliceSchema: z.ZodObject<{
2109
2129
  type: "integration";
2110
2130
  systems: string[];
2111
2131
  };
2132
+ id?: string | undefined;
2112
2133
  transform?: string | undefined;
2113
2134
  _additionalInstructions?: string | undefined;
2114
2135
  } | undefined;
@@ -2143,7 +2164,7 @@ declare const CommandSliceSchema: z.ZodObject<{
2143
2164
  }[];
2144
2165
  data?: {
2145
2166
  target: {
2146
- type: "Command" | "Event" | "State";
2167
+ type: "Event" | "Command" | "State";
2147
2168
  name: string;
2148
2169
  fields?: Record<string, unknown> | undefined;
2149
2170
  };
@@ -2164,11 +2185,12 @@ declare const CommandSliceSchema: z.ZodObject<{
2164
2185
  type: "topic";
2165
2186
  name: string;
2166
2187
  };
2188
+ id?: string | undefined;
2167
2189
  transform?: string | undefined;
2168
2190
  _additionalInstructions?: string | undefined;
2169
2191
  _withState?: {
2170
2192
  target: {
2171
- type: "Command" | "Event" | "State";
2193
+ type: "Event" | "Command" | "State";
2172
2194
  name: string;
2173
2195
  fields?: Record<string, unknown> | undefined;
2174
2196
  };
@@ -2192,6 +2214,7 @@ declare const CommandSliceSchema: z.ZodObject<{
2192
2214
  type: "integration";
2193
2215
  systems: string[];
2194
2216
  };
2217
+ id?: string | undefined;
2195
2218
  transform?: string | undefined;
2196
2219
  _additionalInstructions?: string | undefined;
2197
2220
  } | undefined;
@@ -2233,7 +2256,7 @@ declare const CommandSliceSchema: z.ZodObject<{
2233
2256
  }[];
2234
2257
  data?: {
2235
2258
  target: {
2236
- type: "Command" | "Event" | "State";
2259
+ type: "Event" | "Command" | "State";
2237
2260
  name: string;
2238
2261
  fields?: Record<string, unknown> | undefined;
2239
2262
  };
@@ -2254,11 +2277,12 @@ declare const CommandSliceSchema: z.ZodObject<{
2254
2277
  type: "topic";
2255
2278
  name: string;
2256
2279
  };
2280
+ id?: string | undefined;
2257
2281
  transform?: string | undefined;
2258
2282
  _additionalInstructions?: string | undefined;
2259
2283
  _withState?: {
2260
2284
  target: {
2261
- type: "Command" | "Event" | "State";
2285
+ type: "Event" | "Command" | "State";
2262
2286
  name: string;
2263
2287
  fields?: Record<string, unknown> | undefined;
2264
2288
  };
@@ -2282,6 +2306,7 @@ declare const CommandSliceSchema: z.ZodObject<{
2282
2306
  type: "integration";
2283
2307
  systems: string[];
2284
2308
  };
2309
+ id?: string | undefined;
2285
2310
  transform?: string | undefined;
2286
2311
  _additionalInstructions?: string | undefined;
2287
2312
  } | undefined;
@@ -2329,7 +2354,7 @@ declare const CommandSliceSchema: z.ZodObject<{
2329
2354
  }[];
2330
2355
  data?: {
2331
2356
  target: {
2332
- type: "Command" | "Event" | "State";
2357
+ type: "Event" | "Command" | "State";
2333
2358
  name: string;
2334
2359
  fields?: Record<string, unknown> | undefined;
2335
2360
  };
@@ -2350,11 +2375,12 @@ declare const CommandSliceSchema: z.ZodObject<{
2350
2375
  type: "topic";
2351
2376
  name: string;
2352
2377
  };
2378
+ id?: string | undefined;
2353
2379
  transform?: string | undefined;
2354
2380
  _additionalInstructions?: string | undefined;
2355
2381
  _withState?: {
2356
2382
  target: {
2357
- type: "Command" | "Event" | "State";
2383
+ type: "Event" | "Command" | "State";
2358
2384
  name: string;
2359
2385
  fields?: Record<string, unknown> | undefined;
2360
2386
  };
@@ -2378,6 +2404,7 @@ declare const CommandSliceSchema: z.ZodObject<{
2378
2404
  type: "integration";
2379
2405
  systems: string[];
2380
2406
  };
2407
+ id?: string | undefined;
2381
2408
  transform?: string | undefined;
2382
2409
  _additionalInstructions?: string | undefined;
2383
2410
  } | undefined;
@@ -2410,16 +2437,17 @@ declare const QuerySliceSchema: z.ZodObject<{
2410
2437
  server: z.ZodObject<{
2411
2438
  description: z.ZodString;
2412
2439
  data: z.ZodOptional<z.ZodArray<z.ZodObject<{
2440
+ id: z.ZodOptional<z.ZodString>;
2413
2441
  target: z.ZodObject<{
2414
2442
  type: z.ZodEnum<["Event", "Command", "State"]>;
2415
2443
  name: z.ZodString;
2416
2444
  fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2417
2445
  }, "strip", z.ZodTypeAny, {
2418
- type: "Command" | "Event" | "State";
2446
+ type: "Event" | "Command" | "State";
2419
2447
  name: string;
2420
2448
  fields?: Record<string, unknown> | undefined;
2421
2449
  }, {
2422
- type: "Command" | "Event" | "State";
2450
+ type: "Event" | "Command" | "State";
2423
2451
  name: string;
2424
2452
  fields?: Record<string, unknown> | undefined;
2425
2453
  }>;
@@ -2485,7 +2513,7 @@ declare const QuerySliceSchema: z.ZodObject<{
2485
2513
  _additionalInstructions: z.ZodOptional<z.ZodString>;
2486
2514
  }, "strip", z.ZodTypeAny, {
2487
2515
  target: {
2488
- type: "Command" | "Event" | "State";
2516
+ type: "Event" | "Command" | "State";
2489
2517
  name: string;
2490
2518
  fields?: Record<string, unknown> | undefined;
2491
2519
  };
@@ -2509,11 +2537,12 @@ declare const QuerySliceSchema: z.ZodObject<{
2509
2537
  type: "integration";
2510
2538
  systems: string[];
2511
2539
  };
2540
+ id?: string | undefined;
2512
2541
  transform?: string | undefined;
2513
2542
  _additionalInstructions?: string | undefined;
2514
2543
  }, {
2515
2544
  target: {
2516
- type: "Command" | "Event" | "State";
2545
+ type: "Event" | "Command" | "State";
2517
2546
  name: string;
2518
2547
  fields?: Record<string, unknown> | undefined;
2519
2548
  };
@@ -2537,6 +2566,7 @@ declare const QuerySliceSchema: z.ZodObject<{
2537
2566
  type: "integration";
2538
2567
  systems: string[];
2539
2568
  };
2569
+ id?: string | undefined;
2540
2570
  transform?: string | undefined;
2541
2571
  _additionalInstructions?: string | undefined;
2542
2572
  }>, "many">>;
@@ -2748,7 +2778,7 @@ declare const QuerySliceSchema: z.ZodObject<{
2748
2778
  }[];
2749
2779
  data?: {
2750
2780
  target: {
2751
- type: "Command" | "Event" | "State";
2781
+ type: "Event" | "Command" | "State";
2752
2782
  name: string;
2753
2783
  fields?: Record<string, unknown> | undefined;
2754
2784
  };
@@ -2772,6 +2802,7 @@ declare const QuerySliceSchema: z.ZodObject<{
2772
2802
  type: "integration";
2773
2803
  systems: string[];
2774
2804
  };
2805
+ id?: string | undefined;
2775
2806
  transform?: string | undefined;
2776
2807
  _additionalInstructions?: string | undefined;
2777
2808
  }[] | undefined;
@@ -2805,7 +2836,7 @@ declare const QuerySliceSchema: z.ZodObject<{
2805
2836
  }[];
2806
2837
  data?: {
2807
2838
  target: {
2808
- type: "Command" | "Event" | "State";
2839
+ type: "Event" | "Command" | "State";
2809
2840
  name: string;
2810
2841
  fields?: Record<string, unknown> | undefined;
2811
2842
  };
@@ -2829,6 +2860,7 @@ declare const QuerySliceSchema: z.ZodObject<{
2829
2860
  type: "integration";
2830
2861
  systems: string[];
2831
2862
  };
2863
+ id?: string | undefined;
2832
2864
  transform?: string | undefined;
2833
2865
  _additionalInstructions?: string | undefined;
2834
2866
  }[] | undefined;
@@ -2869,7 +2901,7 @@ declare const QuerySliceSchema: z.ZodObject<{
2869
2901
  }[];
2870
2902
  data?: {
2871
2903
  target: {
2872
- type: "Command" | "Event" | "State";
2904
+ type: "Event" | "Command" | "State";
2873
2905
  name: string;
2874
2906
  fields?: Record<string, unknown> | undefined;
2875
2907
  };
@@ -2893,6 +2925,7 @@ declare const QuerySliceSchema: z.ZodObject<{
2893
2925
  type: "integration";
2894
2926
  systems: string[];
2895
2927
  };
2928
+ id?: string | undefined;
2896
2929
  transform?: string | undefined;
2897
2930
  _additionalInstructions?: string | undefined;
2898
2931
  }[] | undefined;
@@ -2939,7 +2972,7 @@ declare const QuerySliceSchema: z.ZodObject<{
2939
2972
  }[];
2940
2973
  data?: {
2941
2974
  target: {
2942
- type: "Command" | "Event" | "State";
2975
+ type: "Event" | "Command" | "State";
2943
2976
  name: string;
2944
2977
  fields?: Record<string, unknown> | undefined;
2945
2978
  };
@@ -2963,6 +2996,7 @@ declare const QuerySliceSchema: z.ZodObject<{
2963
2996
  type: "integration";
2964
2997
  systems: string[];
2965
2998
  };
2999
+ id?: string | undefined;
2966
3000
  transform?: string | undefined;
2967
3001
  _additionalInstructions?: string | undefined;
2968
3002
  }[] | undefined;
@@ -2986,16 +3020,17 @@ declare const ReactSliceSchema: z.ZodObject<{
2986
3020
  server: z.ZodObject<{
2987
3021
  description: z.ZodOptional<z.ZodString>;
2988
3022
  data: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
3023
+ id: z.ZodOptional<z.ZodString>;
2989
3024
  target: z.ZodObject<{
2990
3025
  type: z.ZodEnum<["Event", "Command", "State"]>;
2991
3026
  name: z.ZodString;
2992
3027
  fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2993
3028
  }, "strip", z.ZodTypeAny, {
2994
- type: "Command" | "Event" | "State";
3029
+ type: "Event" | "Command" | "State";
2995
3030
  name: string;
2996
3031
  fields?: Record<string, unknown> | undefined;
2997
3032
  }, {
2998
- type: "Command" | "Event" | "State";
3033
+ type: "Event" | "Command" | "State";
2999
3034
  name: string;
3000
3035
  fields?: Record<string, unknown> | undefined;
3001
3036
  }>;
@@ -3057,16 +3092,17 @@ declare const ReactSliceSchema: z.ZodObject<{
3057
3092
  transform: z.ZodOptional<z.ZodString>;
3058
3093
  _additionalInstructions: z.ZodOptional<z.ZodString>;
3059
3094
  _withState: z.ZodOptional<z.ZodLazy<z.ZodObject<{
3095
+ id: z.ZodOptional<z.ZodString>;
3060
3096
  target: z.ZodObject<{
3061
3097
  type: z.ZodEnum<["Event", "Command", "State"]>;
3062
3098
  name: z.ZodString;
3063
3099
  fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3064
3100
  }, "strip", z.ZodTypeAny, {
3065
- type: "Command" | "Event" | "State";
3101
+ type: "Event" | "Command" | "State";
3066
3102
  name: string;
3067
3103
  fields?: Record<string, unknown> | undefined;
3068
3104
  }, {
3069
- type: "Command" | "Event" | "State";
3105
+ type: "Event" | "Command" | "State";
3070
3106
  name: string;
3071
3107
  fields?: Record<string, unknown> | undefined;
3072
3108
  }>;
@@ -3132,7 +3168,7 @@ declare const ReactSliceSchema: z.ZodObject<{
3132
3168
  _additionalInstructions: z.ZodOptional<z.ZodString>;
3133
3169
  }, "strip", z.ZodTypeAny, {
3134
3170
  target: {
3135
- type: "Command" | "Event" | "State";
3171
+ type: "Event" | "Command" | "State";
3136
3172
  name: string;
3137
3173
  fields?: Record<string, unknown> | undefined;
3138
3174
  };
@@ -3156,11 +3192,12 @@ declare const ReactSliceSchema: z.ZodObject<{
3156
3192
  type: "integration";
3157
3193
  systems: string[];
3158
3194
  };
3195
+ id?: string | undefined;
3159
3196
  transform?: string | undefined;
3160
3197
  _additionalInstructions?: string | undefined;
3161
3198
  }, {
3162
3199
  target: {
3163
- type: "Command" | "Event" | "State";
3200
+ type: "Event" | "Command" | "State";
3164
3201
  name: string;
3165
3202
  fields?: Record<string, unknown> | undefined;
3166
3203
  };
@@ -3184,12 +3221,13 @@ declare const ReactSliceSchema: z.ZodObject<{
3184
3221
  type: "integration";
3185
3222
  systems: string[];
3186
3223
  };
3224
+ id?: string | undefined;
3187
3225
  transform?: string | undefined;
3188
3226
  _additionalInstructions?: string | undefined;
3189
3227
  }>>>;
3190
3228
  }, "strip", z.ZodTypeAny, {
3191
3229
  target: {
3192
- type: "Command" | "Event" | "State";
3230
+ type: "Event" | "Command" | "State";
3193
3231
  name: string;
3194
3232
  fields?: Record<string, unknown> | undefined;
3195
3233
  };
@@ -3210,11 +3248,12 @@ declare const ReactSliceSchema: z.ZodObject<{
3210
3248
  type: "topic";
3211
3249
  name: string;
3212
3250
  };
3251
+ id?: string | undefined;
3213
3252
  transform?: string | undefined;
3214
3253
  _additionalInstructions?: string | undefined;
3215
3254
  _withState?: {
3216
3255
  target: {
3217
- type: "Command" | "Event" | "State";
3256
+ type: "Event" | "Command" | "State";
3218
3257
  name: string;
3219
3258
  fields?: Record<string, unknown> | undefined;
3220
3259
  };
@@ -3238,12 +3277,13 @@ declare const ReactSliceSchema: z.ZodObject<{
3238
3277
  type: "integration";
3239
3278
  systems: string[];
3240
3279
  };
3280
+ id?: string | undefined;
3241
3281
  transform?: string | undefined;
3242
3282
  _additionalInstructions?: string | undefined;
3243
3283
  } | undefined;
3244
3284
  }, {
3245
3285
  target: {
3246
- type: "Command" | "Event" | "State";
3286
+ type: "Event" | "Command" | "State";
3247
3287
  name: string;
3248
3288
  fields?: Record<string, unknown> | undefined;
3249
3289
  };
@@ -3264,11 +3304,12 @@ declare const ReactSliceSchema: z.ZodObject<{
3264
3304
  type: "topic";
3265
3305
  name: string;
3266
3306
  };
3307
+ id?: string | undefined;
3267
3308
  transform?: string | undefined;
3268
3309
  _additionalInstructions?: string | undefined;
3269
3310
  _withState?: {
3270
3311
  target: {
3271
- type: "Command" | "Event" | "State";
3312
+ type: "Event" | "Command" | "State";
3272
3313
  name: string;
3273
3314
  fields?: Record<string, unknown> | undefined;
3274
3315
  };
@@ -3292,20 +3333,22 @@ declare const ReactSliceSchema: z.ZodObject<{
3292
3333
  type: "integration";
3293
3334
  systems: string[];
3294
3335
  };
3336
+ id?: string | undefined;
3295
3337
  transform?: string | undefined;
3296
3338
  _additionalInstructions?: string | undefined;
3297
3339
  } | undefined;
3298
3340
  }>, z.ZodObject<{
3341
+ id: z.ZodOptional<z.ZodString>;
3299
3342
  target: z.ZodObject<{
3300
3343
  type: z.ZodEnum<["Event", "Command", "State"]>;
3301
3344
  name: z.ZodString;
3302
3345
  fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3303
3346
  }, "strip", z.ZodTypeAny, {
3304
- type: "Command" | "Event" | "State";
3347
+ type: "Event" | "Command" | "State";
3305
3348
  name: string;
3306
3349
  fields?: Record<string, unknown> | undefined;
3307
3350
  }, {
3308
- type: "Command" | "Event" | "State";
3351
+ type: "Event" | "Command" | "State";
3309
3352
  name: string;
3310
3353
  fields?: Record<string, unknown> | undefined;
3311
3354
  }>;
@@ -3371,7 +3414,7 @@ declare const ReactSliceSchema: z.ZodObject<{
3371
3414
  _additionalInstructions: z.ZodOptional<z.ZodString>;
3372
3415
  }, "strip", z.ZodTypeAny, {
3373
3416
  target: {
3374
- type: "Command" | "Event" | "State";
3417
+ type: "Event" | "Command" | "State";
3375
3418
  name: string;
3376
3419
  fields?: Record<string, unknown> | undefined;
3377
3420
  };
@@ -3395,11 +3438,12 @@ declare const ReactSliceSchema: z.ZodObject<{
3395
3438
  type: "integration";
3396
3439
  systems: string[];
3397
3440
  };
3441
+ id?: string | undefined;
3398
3442
  transform?: string | undefined;
3399
3443
  _additionalInstructions?: string | undefined;
3400
3444
  }, {
3401
3445
  target: {
3402
- type: "Command" | "Event" | "State";
3446
+ type: "Event" | "Command" | "State";
3403
3447
  name: string;
3404
3448
  fields?: Record<string, unknown> | undefined;
3405
3449
  };
@@ -3423,6 +3467,7 @@ declare const ReactSliceSchema: z.ZodObject<{
3423
3467
  type: "integration";
3424
3468
  systems: string[];
3425
3469
  };
3470
+ id?: string | undefined;
3426
3471
  transform?: string | undefined;
3427
3472
  _additionalInstructions?: string | undefined;
3428
3473
  }>]>, "many">>;
@@ -3631,9 +3676,10 @@ declare const ReactSliceSchema: z.ZodObject<{
3631
3676
  }[];
3632
3677
  id?: string | undefined;
3633
3678
  }[];
3679
+ description?: string | undefined;
3634
3680
  data?: ({
3635
3681
  target: {
3636
- type: "Command" | "Event" | "State";
3682
+ type: "Event" | "Command" | "State";
3637
3683
  name: string;
3638
3684
  fields?: Record<string, unknown> | undefined;
3639
3685
  };
@@ -3657,11 +3703,12 @@ declare const ReactSliceSchema: z.ZodObject<{
3657
3703
  type: "integration";
3658
3704
  systems: string[];
3659
3705
  };
3706
+ id?: string | undefined;
3660
3707
  transform?: string | undefined;
3661
3708
  _additionalInstructions?: string | undefined;
3662
3709
  } | {
3663
3710
  target: {
3664
- type: "Command" | "Event" | "State";
3711
+ type: "Event" | "Command" | "State";
3665
3712
  name: string;
3666
3713
  fields?: Record<string, unknown> | undefined;
3667
3714
  };
@@ -3682,11 +3729,12 @@ declare const ReactSliceSchema: z.ZodObject<{
3682
3729
  type: "topic";
3683
3730
  name: string;
3684
3731
  };
3732
+ id?: string | undefined;
3685
3733
  transform?: string | undefined;
3686
3734
  _additionalInstructions?: string | undefined;
3687
3735
  _withState?: {
3688
3736
  target: {
3689
- type: "Command" | "Event" | "State";
3737
+ type: "Event" | "Command" | "State";
3690
3738
  name: string;
3691
3739
  fields?: Record<string, unknown> | undefined;
3692
3740
  };
@@ -3710,11 +3758,11 @@ declare const ReactSliceSchema: z.ZodObject<{
3710
3758
  type: "integration";
3711
3759
  systems: string[];
3712
3760
  };
3761
+ id?: string | undefined;
3713
3762
  transform?: string | undefined;
3714
3763
  _additionalInstructions?: string | undefined;
3715
3764
  } | undefined;
3716
3765
  })[] | undefined;
3717
- description?: string | undefined;
3718
3766
  }, {
3719
3767
  specs: {
3720
3768
  type: "gherkin";
@@ -3742,9 +3790,10 @@ declare const ReactSliceSchema: z.ZodObject<{
3742
3790
  }[];
3743
3791
  id?: string | undefined;
3744
3792
  }[];
3793
+ description?: string | undefined;
3745
3794
  data?: ({
3746
3795
  target: {
3747
- type: "Command" | "Event" | "State";
3796
+ type: "Event" | "Command" | "State";
3748
3797
  name: string;
3749
3798
  fields?: Record<string, unknown> | undefined;
3750
3799
  };
@@ -3768,11 +3817,12 @@ declare const ReactSliceSchema: z.ZodObject<{
3768
3817
  type: "integration";
3769
3818
  systems: string[];
3770
3819
  };
3820
+ id?: string | undefined;
3771
3821
  transform?: string | undefined;
3772
3822
  _additionalInstructions?: string | undefined;
3773
3823
  } | {
3774
3824
  target: {
3775
- type: "Command" | "Event" | "State";
3825
+ type: "Event" | "Command" | "State";
3776
3826
  name: string;
3777
3827
  fields?: Record<string, unknown> | undefined;
3778
3828
  };
@@ -3793,11 +3843,12 @@ declare const ReactSliceSchema: z.ZodObject<{
3793
3843
  type: "topic";
3794
3844
  name: string;
3795
3845
  };
3846
+ id?: string | undefined;
3796
3847
  transform?: string | undefined;
3797
3848
  _additionalInstructions?: string | undefined;
3798
3849
  _withState?: {
3799
3850
  target: {
3800
- type: "Command" | "Event" | "State";
3851
+ type: "Event" | "Command" | "State";
3801
3852
  name: string;
3802
3853
  fields?: Record<string, unknown> | undefined;
3803
3854
  };
@@ -3821,11 +3872,11 @@ declare const ReactSliceSchema: z.ZodObject<{
3821
3872
  type: "integration";
3822
3873
  systems: string[];
3823
3874
  };
3875
+ id?: string | undefined;
3824
3876
  transform?: string | undefined;
3825
3877
  _additionalInstructions?: string | undefined;
3826
3878
  } | undefined;
3827
3879
  })[] | undefined;
3828
- description?: string | undefined;
3829
3880
  }>;
3830
3881
  }, "strip", z.ZodTypeAny, {
3831
3882
  type: "react";
@@ -3857,9 +3908,10 @@ declare const ReactSliceSchema: z.ZodObject<{
3857
3908
  }[];
3858
3909
  id?: string | undefined;
3859
3910
  }[];
3911
+ description?: string | undefined;
3860
3912
  data?: ({
3861
3913
  target: {
3862
- type: "Command" | "Event" | "State";
3914
+ type: "Event" | "Command" | "State";
3863
3915
  name: string;
3864
3916
  fields?: Record<string, unknown> | undefined;
3865
3917
  };
@@ -3883,11 +3935,12 @@ declare const ReactSliceSchema: z.ZodObject<{
3883
3935
  type: "integration";
3884
3936
  systems: string[];
3885
3937
  };
3938
+ id?: string | undefined;
3886
3939
  transform?: string | undefined;
3887
3940
  _additionalInstructions?: string | undefined;
3888
3941
  } | {
3889
3942
  target: {
3890
- type: "Command" | "Event" | "State";
3943
+ type: "Event" | "Command" | "State";
3891
3944
  name: string;
3892
3945
  fields?: Record<string, unknown> | undefined;
3893
3946
  };
@@ -3908,11 +3961,12 @@ declare const ReactSliceSchema: z.ZodObject<{
3908
3961
  type: "topic";
3909
3962
  name: string;
3910
3963
  };
3964
+ id?: string | undefined;
3911
3965
  transform?: string | undefined;
3912
3966
  _additionalInstructions?: string | undefined;
3913
3967
  _withState?: {
3914
3968
  target: {
3915
- type: "Command" | "Event" | "State";
3969
+ type: "Event" | "Command" | "State";
3916
3970
  name: string;
3917
3971
  fields?: Record<string, unknown> | undefined;
3918
3972
  };
@@ -3936,11 +3990,11 @@ declare const ReactSliceSchema: z.ZodObject<{
3936
3990
  type: "integration";
3937
3991
  systems: string[];
3938
3992
  };
3993
+ id?: string | undefined;
3939
3994
  transform?: string | undefined;
3940
3995
  _additionalInstructions?: string | undefined;
3941
3996
  } | undefined;
3942
3997
  })[] | undefined;
3943
- description?: string | undefined;
3944
3998
  };
3945
3999
  stream?: string | undefined;
3946
4000
  id?: string | undefined;
@@ -3977,9 +4031,10 @@ declare const ReactSliceSchema: z.ZodObject<{
3977
4031
  }[];
3978
4032
  id?: string | undefined;
3979
4033
  }[];
4034
+ description?: string | undefined;
3980
4035
  data?: ({
3981
4036
  target: {
3982
- type: "Command" | "Event" | "State";
4037
+ type: "Event" | "Command" | "State";
3983
4038
  name: string;
3984
4039
  fields?: Record<string, unknown> | undefined;
3985
4040
  };
@@ -4003,11 +4058,12 @@ declare const ReactSliceSchema: z.ZodObject<{
4003
4058
  type: "integration";
4004
4059
  systems: string[];
4005
4060
  };
4061
+ id?: string | undefined;
4006
4062
  transform?: string | undefined;
4007
4063
  _additionalInstructions?: string | undefined;
4008
4064
  } | {
4009
4065
  target: {
4010
- type: "Command" | "Event" | "State";
4066
+ type: "Event" | "Command" | "State";
4011
4067
  name: string;
4012
4068
  fields?: Record<string, unknown> | undefined;
4013
4069
  };
@@ -4028,11 +4084,12 @@ declare const ReactSliceSchema: z.ZodObject<{
4028
4084
  type: "topic";
4029
4085
  name: string;
4030
4086
  };
4087
+ id?: string | undefined;
4031
4088
  transform?: string | undefined;
4032
4089
  _additionalInstructions?: string | undefined;
4033
4090
  _withState?: {
4034
4091
  target: {
4035
- type: "Command" | "Event" | "State";
4092
+ type: "Event" | "Command" | "State";
4036
4093
  name: string;
4037
4094
  fields?: Record<string, unknown> | undefined;
4038
4095
  };
@@ -4056,11 +4113,11 @@ declare const ReactSliceSchema: z.ZodObject<{
4056
4113
  type: "integration";
4057
4114
  systems: string[];
4058
4115
  };
4116
+ id?: string | undefined;
4059
4117
  transform?: string | undefined;
4060
4118
  _additionalInstructions?: string | undefined;
4061
4119
  } | undefined;
4062
4120
  })[] | undefined;
4063
- description?: string | undefined;
4064
4121
  };
4065
4122
  stream?: string | undefined;
4066
4123
  id?: string | undefined;
@@ -4127,16 +4184,17 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4127
4184
  server: z.ZodObject<{
4128
4185
  description: z.ZodString;
4129
4186
  data: z.ZodOptional<z.ZodArray<z.ZodObject<{
4187
+ id: z.ZodOptional<z.ZodString>;
4130
4188
  target: z.ZodObject<{
4131
4189
  type: z.ZodEnum<["Event", "Command", "State"]>;
4132
4190
  name: z.ZodString;
4133
4191
  fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4134
4192
  }, "strip", z.ZodTypeAny, {
4135
- type: "Command" | "Event" | "State";
4193
+ type: "Event" | "Command" | "State";
4136
4194
  name: string;
4137
4195
  fields?: Record<string, unknown> | undefined;
4138
4196
  }, {
4139
- type: "Command" | "Event" | "State";
4197
+ type: "Event" | "Command" | "State";
4140
4198
  name: string;
4141
4199
  fields?: Record<string, unknown> | undefined;
4142
4200
  }>;
@@ -4198,16 +4256,17 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4198
4256
  transform: z.ZodOptional<z.ZodString>;
4199
4257
  _additionalInstructions: z.ZodOptional<z.ZodString>;
4200
4258
  _withState: z.ZodOptional<z.ZodLazy<z.ZodObject<{
4259
+ id: z.ZodOptional<z.ZodString>;
4201
4260
  target: z.ZodObject<{
4202
4261
  type: z.ZodEnum<["Event", "Command", "State"]>;
4203
4262
  name: z.ZodString;
4204
4263
  fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4205
4264
  }, "strip", z.ZodTypeAny, {
4206
- type: "Command" | "Event" | "State";
4265
+ type: "Event" | "Command" | "State";
4207
4266
  name: string;
4208
4267
  fields?: Record<string, unknown> | undefined;
4209
4268
  }, {
4210
- type: "Command" | "Event" | "State";
4269
+ type: "Event" | "Command" | "State";
4211
4270
  name: string;
4212
4271
  fields?: Record<string, unknown> | undefined;
4213
4272
  }>;
@@ -4273,7 +4332,7 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4273
4332
  _additionalInstructions: z.ZodOptional<z.ZodString>;
4274
4333
  }, "strip", z.ZodTypeAny, {
4275
4334
  target: {
4276
- type: "Command" | "Event" | "State";
4335
+ type: "Event" | "Command" | "State";
4277
4336
  name: string;
4278
4337
  fields?: Record<string, unknown> | undefined;
4279
4338
  };
@@ -4297,11 +4356,12 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4297
4356
  type: "integration";
4298
4357
  systems: string[];
4299
4358
  };
4359
+ id?: string | undefined;
4300
4360
  transform?: string | undefined;
4301
4361
  _additionalInstructions?: string | undefined;
4302
4362
  }, {
4303
4363
  target: {
4304
- type: "Command" | "Event" | "State";
4364
+ type: "Event" | "Command" | "State";
4305
4365
  name: string;
4306
4366
  fields?: Record<string, unknown> | undefined;
4307
4367
  };
@@ -4325,12 +4385,13 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4325
4385
  type: "integration";
4326
4386
  systems: string[];
4327
4387
  };
4388
+ id?: string | undefined;
4328
4389
  transform?: string | undefined;
4329
4390
  _additionalInstructions?: string | undefined;
4330
4391
  }>>>;
4331
4392
  }, "strip", z.ZodTypeAny, {
4332
4393
  target: {
4333
- type: "Command" | "Event" | "State";
4394
+ type: "Event" | "Command" | "State";
4334
4395
  name: string;
4335
4396
  fields?: Record<string, unknown> | undefined;
4336
4397
  };
@@ -4351,11 +4412,12 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4351
4412
  type: "topic";
4352
4413
  name: string;
4353
4414
  };
4415
+ id?: string | undefined;
4354
4416
  transform?: string | undefined;
4355
4417
  _additionalInstructions?: string | undefined;
4356
4418
  _withState?: {
4357
4419
  target: {
4358
- type: "Command" | "Event" | "State";
4420
+ type: "Event" | "Command" | "State";
4359
4421
  name: string;
4360
4422
  fields?: Record<string, unknown> | undefined;
4361
4423
  };
@@ -4379,12 +4441,13 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4379
4441
  type: "integration";
4380
4442
  systems: string[];
4381
4443
  };
4444
+ id?: string | undefined;
4382
4445
  transform?: string | undefined;
4383
4446
  _additionalInstructions?: string | undefined;
4384
4447
  } | undefined;
4385
4448
  }, {
4386
4449
  target: {
4387
- type: "Command" | "Event" | "State";
4450
+ type: "Event" | "Command" | "State";
4388
4451
  name: string;
4389
4452
  fields?: Record<string, unknown> | undefined;
4390
4453
  };
@@ -4405,11 +4468,12 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4405
4468
  type: "topic";
4406
4469
  name: string;
4407
4470
  };
4471
+ id?: string | undefined;
4408
4472
  transform?: string | undefined;
4409
4473
  _additionalInstructions?: string | undefined;
4410
4474
  _withState?: {
4411
4475
  target: {
4412
- type: "Command" | "Event" | "State";
4476
+ type: "Event" | "Command" | "State";
4413
4477
  name: string;
4414
4478
  fields?: Record<string, unknown> | undefined;
4415
4479
  };
@@ -4433,6 +4497,7 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4433
4497
  type: "integration";
4434
4498
  systems: string[];
4435
4499
  };
4500
+ id?: string | undefined;
4436
4501
  transform?: string | undefined;
4437
4502
  _additionalInstructions?: string | undefined;
4438
4503
  } | undefined;
@@ -4645,7 +4710,7 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4645
4710
  }[];
4646
4711
  data?: {
4647
4712
  target: {
4648
- type: "Command" | "Event" | "State";
4713
+ type: "Event" | "Command" | "State";
4649
4714
  name: string;
4650
4715
  fields?: Record<string, unknown> | undefined;
4651
4716
  };
@@ -4666,11 +4731,12 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4666
4731
  type: "topic";
4667
4732
  name: string;
4668
4733
  };
4734
+ id?: string | undefined;
4669
4735
  transform?: string | undefined;
4670
4736
  _additionalInstructions?: string | undefined;
4671
4737
  _withState?: {
4672
4738
  target: {
4673
- type: "Command" | "Event" | "State";
4739
+ type: "Event" | "Command" | "State";
4674
4740
  name: string;
4675
4741
  fields?: Record<string, unknown> | undefined;
4676
4742
  };
@@ -4694,6 +4760,7 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4694
4760
  type: "integration";
4695
4761
  systems: string[];
4696
4762
  };
4763
+ id?: string | undefined;
4697
4764
  transform?: string | undefined;
4698
4765
  _additionalInstructions?: string | undefined;
4699
4766
  } | undefined;
@@ -4728,7 +4795,7 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4728
4795
  }[];
4729
4796
  data?: {
4730
4797
  target: {
4731
- type: "Command" | "Event" | "State";
4798
+ type: "Event" | "Command" | "State";
4732
4799
  name: string;
4733
4800
  fields?: Record<string, unknown> | undefined;
4734
4801
  };
@@ -4749,11 +4816,12 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4749
4816
  type: "topic";
4750
4817
  name: string;
4751
4818
  };
4819
+ id?: string | undefined;
4752
4820
  transform?: string | undefined;
4753
4821
  _additionalInstructions?: string | undefined;
4754
4822
  _withState?: {
4755
4823
  target: {
4756
- type: "Command" | "Event" | "State";
4824
+ type: "Event" | "Command" | "State";
4757
4825
  name: string;
4758
4826
  fields?: Record<string, unknown> | undefined;
4759
4827
  };
@@ -4777,6 +4845,7 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4777
4845
  type: "integration";
4778
4846
  systems: string[];
4779
4847
  };
4848
+ id?: string | undefined;
4780
4849
  transform?: string | undefined;
4781
4850
  _additionalInstructions?: string | undefined;
4782
4851
  } | undefined;
@@ -4818,7 +4887,7 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4818
4887
  }[];
4819
4888
  data?: {
4820
4889
  target: {
4821
- type: "Command" | "Event" | "State";
4890
+ type: "Event" | "Command" | "State";
4822
4891
  name: string;
4823
4892
  fields?: Record<string, unknown> | undefined;
4824
4893
  };
@@ -4839,11 +4908,12 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4839
4908
  type: "topic";
4840
4909
  name: string;
4841
4910
  };
4911
+ id?: string | undefined;
4842
4912
  transform?: string | undefined;
4843
4913
  _additionalInstructions?: string | undefined;
4844
4914
  _withState?: {
4845
4915
  target: {
4846
- type: "Command" | "Event" | "State";
4916
+ type: "Event" | "Command" | "State";
4847
4917
  name: string;
4848
4918
  fields?: Record<string, unknown> | undefined;
4849
4919
  };
@@ -4867,6 +4937,7 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4867
4937
  type: "integration";
4868
4938
  systems: string[];
4869
4939
  };
4940
+ id?: string | undefined;
4870
4941
  transform?: string | undefined;
4871
4942
  _additionalInstructions?: string | undefined;
4872
4943
  } | undefined;
@@ -4914,7 +4985,7 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4914
4985
  }[];
4915
4986
  data?: {
4916
4987
  target: {
4917
- type: "Command" | "Event" | "State";
4988
+ type: "Event" | "Command" | "State";
4918
4989
  name: string;
4919
4990
  fields?: Record<string, unknown> | undefined;
4920
4991
  };
@@ -4935,11 +5006,12 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4935
5006
  type: "topic";
4936
5007
  name: string;
4937
5008
  };
5009
+ id?: string | undefined;
4938
5010
  transform?: string | undefined;
4939
5011
  _additionalInstructions?: string | undefined;
4940
5012
  _withState?: {
4941
5013
  target: {
4942
- type: "Command" | "Event" | "State";
5014
+ type: "Event" | "Command" | "State";
4943
5015
  name: string;
4944
5016
  fields?: Record<string, unknown> | undefined;
4945
5017
  };
@@ -4963,6 +5035,7 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4963
5035
  type: "integration";
4964
5036
  systems: string[];
4965
5037
  };
5038
+ id?: string | undefined;
4966
5039
  transform?: string | undefined;
4967
5040
  _additionalInstructions?: string | undefined;
4968
5041
  } | undefined;
@@ -4994,16 +5067,17 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4994
5067
  server: z.ZodObject<{
4995
5068
  description: z.ZodString;
4996
5069
  data: z.ZodOptional<z.ZodArray<z.ZodObject<{
5070
+ id: z.ZodOptional<z.ZodString>;
4997
5071
  target: z.ZodObject<{
4998
5072
  type: z.ZodEnum<["Event", "Command", "State"]>;
4999
5073
  name: z.ZodString;
5000
5074
  fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5001
5075
  }, "strip", z.ZodTypeAny, {
5002
- type: "Command" | "Event" | "State";
5076
+ type: "Event" | "Command" | "State";
5003
5077
  name: string;
5004
5078
  fields?: Record<string, unknown> | undefined;
5005
5079
  }, {
5006
- type: "Command" | "Event" | "State";
5080
+ type: "Event" | "Command" | "State";
5007
5081
  name: string;
5008
5082
  fields?: Record<string, unknown> | undefined;
5009
5083
  }>;
@@ -5069,7 +5143,7 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5069
5143
  _additionalInstructions: z.ZodOptional<z.ZodString>;
5070
5144
  }, "strip", z.ZodTypeAny, {
5071
5145
  target: {
5072
- type: "Command" | "Event" | "State";
5146
+ type: "Event" | "Command" | "State";
5073
5147
  name: string;
5074
5148
  fields?: Record<string, unknown> | undefined;
5075
5149
  };
@@ -5093,11 +5167,12 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5093
5167
  type: "integration";
5094
5168
  systems: string[];
5095
5169
  };
5170
+ id?: string | undefined;
5096
5171
  transform?: string | undefined;
5097
5172
  _additionalInstructions?: string | undefined;
5098
5173
  }, {
5099
5174
  target: {
5100
- type: "Command" | "Event" | "State";
5175
+ type: "Event" | "Command" | "State";
5101
5176
  name: string;
5102
5177
  fields?: Record<string, unknown> | undefined;
5103
5178
  };
@@ -5121,6 +5196,7 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5121
5196
  type: "integration";
5122
5197
  systems: string[];
5123
5198
  };
5199
+ id?: string | undefined;
5124
5200
  transform?: string | undefined;
5125
5201
  _additionalInstructions?: string | undefined;
5126
5202
  }>, "many">>;
@@ -5332,7 +5408,7 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5332
5408
  }[];
5333
5409
  data?: {
5334
5410
  target: {
5335
- type: "Command" | "Event" | "State";
5411
+ type: "Event" | "Command" | "State";
5336
5412
  name: string;
5337
5413
  fields?: Record<string, unknown> | undefined;
5338
5414
  };
@@ -5356,6 +5432,7 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5356
5432
  type: "integration";
5357
5433
  systems: string[];
5358
5434
  };
5435
+ id?: string | undefined;
5359
5436
  transform?: string | undefined;
5360
5437
  _additionalInstructions?: string | undefined;
5361
5438
  }[] | undefined;
@@ -5389,7 +5466,7 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5389
5466
  }[];
5390
5467
  data?: {
5391
5468
  target: {
5392
- type: "Command" | "Event" | "State";
5469
+ type: "Event" | "Command" | "State";
5393
5470
  name: string;
5394
5471
  fields?: Record<string, unknown> | undefined;
5395
5472
  };
@@ -5413,6 +5490,7 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5413
5490
  type: "integration";
5414
5491
  systems: string[];
5415
5492
  };
5493
+ id?: string | undefined;
5416
5494
  transform?: string | undefined;
5417
5495
  _additionalInstructions?: string | undefined;
5418
5496
  }[] | undefined;
@@ -5453,7 +5531,7 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5453
5531
  }[];
5454
5532
  data?: {
5455
5533
  target: {
5456
- type: "Command" | "Event" | "State";
5534
+ type: "Event" | "Command" | "State";
5457
5535
  name: string;
5458
5536
  fields?: Record<string, unknown> | undefined;
5459
5537
  };
@@ -5477,6 +5555,7 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5477
5555
  type: "integration";
5478
5556
  systems: string[];
5479
5557
  };
5558
+ id?: string | undefined;
5480
5559
  transform?: string | undefined;
5481
5560
  _additionalInstructions?: string | undefined;
5482
5561
  }[] | undefined;
@@ -5523,7 +5602,7 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5523
5602
  }[];
5524
5603
  data?: {
5525
5604
  target: {
5526
- type: "Command" | "Event" | "State";
5605
+ type: "Event" | "Command" | "State";
5527
5606
  name: string;
5528
5607
  fields?: Record<string, unknown> | undefined;
5529
5608
  };
@@ -5547,6 +5626,7 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5547
5626
  type: "integration";
5548
5627
  systems: string[];
5549
5628
  };
5629
+ id?: string | undefined;
5550
5630
  transform?: string | undefined;
5551
5631
  _additionalInstructions?: string | undefined;
5552
5632
  }[] | undefined;
@@ -5569,16 +5649,17 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5569
5649
  server: z.ZodObject<{
5570
5650
  description: z.ZodOptional<z.ZodString>;
5571
5651
  data: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
5652
+ id: z.ZodOptional<z.ZodString>;
5572
5653
  target: z.ZodObject<{
5573
5654
  type: z.ZodEnum<["Event", "Command", "State"]>;
5574
5655
  name: z.ZodString;
5575
5656
  fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5576
5657
  }, "strip", z.ZodTypeAny, {
5577
- type: "Command" | "Event" | "State";
5658
+ type: "Event" | "Command" | "State";
5578
5659
  name: string;
5579
5660
  fields?: Record<string, unknown> | undefined;
5580
5661
  }, {
5581
- type: "Command" | "Event" | "State";
5662
+ type: "Event" | "Command" | "State";
5582
5663
  name: string;
5583
5664
  fields?: Record<string, unknown> | undefined;
5584
5665
  }>;
@@ -5640,16 +5721,17 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5640
5721
  transform: z.ZodOptional<z.ZodString>;
5641
5722
  _additionalInstructions: z.ZodOptional<z.ZodString>;
5642
5723
  _withState: z.ZodOptional<z.ZodLazy<z.ZodObject<{
5724
+ id: z.ZodOptional<z.ZodString>;
5643
5725
  target: z.ZodObject<{
5644
5726
  type: z.ZodEnum<["Event", "Command", "State"]>;
5645
5727
  name: z.ZodString;
5646
5728
  fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5647
5729
  }, "strip", z.ZodTypeAny, {
5648
- type: "Command" | "Event" | "State";
5730
+ type: "Event" | "Command" | "State";
5649
5731
  name: string;
5650
5732
  fields?: Record<string, unknown> | undefined;
5651
5733
  }, {
5652
- type: "Command" | "Event" | "State";
5734
+ type: "Event" | "Command" | "State";
5653
5735
  name: string;
5654
5736
  fields?: Record<string, unknown> | undefined;
5655
5737
  }>;
@@ -5715,7 +5797,7 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5715
5797
  _additionalInstructions: z.ZodOptional<z.ZodString>;
5716
5798
  }, "strip", z.ZodTypeAny, {
5717
5799
  target: {
5718
- type: "Command" | "Event" | "State";
5800
+ type: "Event" | "Command" | "State";
5719
5801
  name: string;
5720
5802
  fields?: Record<string, unknown> | undefined;
5721
5803
  };
@@ -5739,11 +5821,12 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5739
5821
  type: "integration";
5740
5822
  systems: string[];
5741
5823
  };
5824
+ id?: string | undefined;
5742
5825
  transform?: string | undefined;
5743
5826
  _additionalInstructions?: string | undefined;
5744
5827
  }, {
5745
5828
  target: {
5746
- type: "Command" | "Event" | "State";
5829
+ type: "Event" | "Command" | "State";
5747
5830
  name: string;
5748
5831
  fields?: Record<string, unknown> | undefined;
5749
5832
  };
@@ -5767,12 +5850,13 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5767
5850
  type: "integration";
5768
5851
  systems: string[];
5769
5852
  };
5853
+ id?: string | undefined;
5770
5854
  transform?: string | undefined;
5771
5855
  _additionalInstructions?: string | undefined;
5772
5856
  }>>>;
5773
5857
  }, "strip", z.ZodTypeAny, {
5774
5858
  target: {
5775
- type: "Command" | "Event" | "State";
5859
+ type: "Event" | "Command" | "State";
5776
5860
  name: string;
5777
5861
  fields?: Record<string, unknown> | undefined;
5778
5862
  };
@@ -5793,11 +5877,12 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5793
5877
  type: "topic";
5794
5878
  name: string;
5795
5879
  };
5880
+ id?: string | undefined;
5796
5881
  transform?: string | undefined;
5797
5882
  _additionalInstructions?: string | undefined;
5798
5883
  _withState?: {
5799
5884
  target: {
5800
- type: "Command" | "Event" | "State";
5885
+ type: "Event" | "Command" | "State";
5801
5886
  name: string;
5802
5887
  fields?: Record<string, unknown> | undefined;
5803
5888
  };
@@ -5821,12 +5906,13 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5821
5906
  type: "integration";
5822
5907
  systems: string[];
5823
5908
  };
5909
+ id?: string | undefined;
5824
5910
  transform?: string | undefined;
5825
5911
  _additionalInstructions?: string | undefined;
5826
5912
  } | undefined;
5827
5913
  }, {
5828
5914
  target: {
5829
- type: "Command" | "Event" | "State";
5915
+ type: "Event" | "Command" | "State";
5830
5916
  name: string;
5831
5917
  fields?: Record<string, unknown> | undefined;
5832
5918
  };
@@ -5847,11 +5933,12 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5847
5933
  type: "topic";
5848
5934
  name: string;
5849
5935
  };
5936
+ id?: string | undefined;
5850
5937
  transform?: string | undefined;
5851
5938
  _additionalInstructions?: string | undefined;
5852
5939
  _withState?: {
5853
5940
  target: {
5854
- type: "Command" | "Event" | "State";
5941
+ type: "Event" | "Command" | "State";
5855
5942
  name: string;
5856
5943
  fields?: Record<string, unknown> | undefined;
5857
5944
  };
@@ -5875,20 +5962,22 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5875
5962
  type: "integration";
5876
5963
  systems: string[];
5877
5964
  };
5965
+ id?: string | undefined;
5878
5966
  transform?: string | undefined;
5879
5967
  _additionalInstructions?: string | undefined;
5880
5968
  } | undefined;
5881
5969
  }>, z.ZodObject<{
5970
+ id: z.ZodOptional<z.ZodString>;
5882
5971
  target: z.ZodObject<{
5883
5972
  type: z.ZodEnum<["Event", "Command", "State"]>;
5884
5973
  name: z.ZodString;
5885
5974
  fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5886
5975
  }, "strip", z.ZodTypeAny, {
5887
- type: "Command" | "Event" | "State";
5976
+ type: "Event" | "Command" | "State";
5888
5977
  name: string;
5889
5978
  fields?: Record<string, unknown> | undefined;
5890
5979
  }, {
5891
- type: "Command" | "Event" | "State";
5980
+ type: "Event" | "Command" | "State";
5892
5981
  name: string;
5893
5982
  fields?: Record<string, unknown> | undefined;
5894
5983
  }>;
@@ -5954,7 +6043,7 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5954
6043
  _additionalInstructions: z.ZodOptional<z.ZodString>;
5955
6044
  }, "strip", z.ZodTypeAny, {
5956
6045
  target: {
5957
- type: "Command" | "Event" | "State";
6046
+ type: "Event" | "Command" | "State";
5958
6047
  name: string;
5959
6048
  fields?: Record<string, unknown> | undefined;
5960
6049
  };
@@ -5978,11 +6067,12 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5978
6067
  type: "integration";
5979
6068
  systems: string[];
5980
6069
  };
6070
+ id?: string | undefined;
5981
6071
  transform?: string | undefined;
5982
6072
  _additionalInstructions?: string | undefined;
5983
6073
  }, {
5984
6074
  target: {
5985
- type: "Command" | "Event" | "State";
6075
+ type: "Event" | "Command" | "State";
5986
6076
  name: string;
5987
6077
  fields?: Record<string, unknown> | undefined;
5988
6078
  };
@@ -6006,6 +6096,7 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6006
6096
  type: "integration";
6007
6097
  systems: string[];
6008
6098
  };
6099
+ id?: string | undefined;
6009
6100
  transform?: string | undefined;
6010
6101
  _additionalInstructions?: string | undefined;
6011
6102
  }>]>, "many">>;
@@ -6214,9 +6305,10 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6214
6305
  }[];
6215
6306
  id?: string | undefined;
6216
6307
  }[];
6308
+ description?: string | undefined;
6217
6309
  data?: ({
6218
6310
  target: {
6219
- type: "Command" | "Event" | "State";
6311
+ type: "Event" | "Command" | "State";
6220
6312
  name: string;
6221
6313
  fields?: Record<string, unknown> | undefined;
6222
6314
  };
@@ -6240,11 +6332,12 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6240
6332
  type: "integration";
6241
6333
  systems: string[];
6242
6334
  };
6335
+ id?: string | undefined;
6243
6336
  transform?: string | undefined;
6244
6337
  _additionalInstructions?: string | undefined;
6245
6338
  } | {
6246
6339
  target: {
6247
- type: "Command" | "Event" | "State";
6340
+ type: "Event" | "Command" | "State";
6248
6341
  name: string;
6249
6342
  fields?: Record<string, unknown> | undefined;
6250
6343
  };
@@ -6265,11 +6358,12 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6265
6358
  type: "topic";
6266
6359
  name: string;
6267
6360
  };
6361
+ id?: string | undefined;
6268
6362
  transform?: string | undefined;
6269
6363
  _additionalInstructions?: string | undefined;
6270
6364
  _withState?: {
6271
6365
  target: {
6272
- type: "Command" | "Event" | "State";
6366
+ type: "Event" | "Command" | "State";
6273
6367
  name: string;
6274
6368
  fields?: Record<string, unknown> | undefined;
6275
6369
  };
@@ -6293,11 +6387,11 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6293
6387
  type: "integration";
6294
6388
  systems: string[];
6295
6389
  };
6390
+ id?: string | undefined;
6296
6391
  transform?: string | undefined;
6297
6392
  _additionalInstructions?: string | undefined;
6298
6393
  } | undefined;
6299
6394
  })[] | undefined;
6300
- description?: string | undefined;
6301
6395
  }, {
6302
6396
  specs: {
6303
6397
  type: "gherkin";
@@ -6325,9 +6419,10 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6325
6419
  }[];
6326
6420
  id?: string | undefined;
6327
6421
  }[];
6422
+ description?: string | undefined;
6328
6423
  data?: ({
6329
6424
  target: {
6330
- type: "Command" | "Event" | "State";
6425
+ type: "Event" | "Command" | "State";
6331
6426
  name: string;
6332
6427
  fields?: Record<string, unknown> | undefined;
6333
6428
  };
@@ -6351,11 +6446,12 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6351
6446
  type: "integration";
6352
6447
  systems: string[];
6353
6448
  };
6449
+ id?: string | undefined;
6354
6450
  transform?: string | undefined;
6355
6451
  _additionalInstructions?: string | undefined;
6356
6452
  } | {
6357
6453
  target: {
6358
- type: "Command" | "Event" | "State";
6454
+ type: "Event" | "Command" | "State";
6359
6455
  name: string;
6360
6456
  fields?: Record<string, unknown> | undefined;
6361
6457
  };
@@ -6376,11 +6472,12 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6376
6472
  type: "topic";
6377
6473
  name: string;
6378
6474
  };
6475
+ id?: string | undefined;
6379
6476
  transform?: string | undefined;
6380
6477
  _additionalInstructions?: string | undefined;
6381
6478
  _withState?: {
6382
6479
  target: {
6383
- type: "Command" | "Event" | "State";
6480
+ type: "Event" | "Command" | "State";
6384
6481
  name: string;
6385
6482
  fields?: Record<string, unknown> | undefined;
6386
6483
  };
@@ -6404,11 +6501,11 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6404
6501
  type: "integration";
6405
6502
  systems: string[];
6406
6503
  };
6504
+ id?: string | undefined;
6407
6505
  transform?: string | undefined;
6408
6506
  _additionalInstructions?: string | undefined;
6409
6507
  } | undefined;
6410
6508
  })[] | undefined;
6411
- description?: string | undefined;
6412
6509
  }>;
6413
6510
  }, "strip", z.ZodTypeAny, {
6414
6511
  type: "react";
@@ -6440,9 +6537,10 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6440
6537
  }[];
6441
6538
  id?: string | undefined;
6442
6539
  }[];
6540
+ description?: string | undefined;
6443
6541
  data?: ({
6444
6542
  target: {
6445
- type: "Command" | "Event" | "State";
6543
+ type: "Event" | "Command" | "State";
6446
6544
  name: string;
6447
6545
  fields?: Record<string, unknown> | undefined;
6448
6546
  };
@@ -6466,11 +6564,12 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6466
6564
  type: "integration";
6467
6565
  systems: string[];
6468
6566
  };
6567
+ id?: string | undefined;
6469
6568
  transform?: string | undefined;
6470
6569
  _additionalInstructions?: string | undefined;
6471
6570
  } | {
6472
6571
  target: {
6473
- type: "Command" | "Event" | "State";
6572
+ type: "Event" | "Command" | "State";
6474
6573
  name: string;
6475
6574
  fields?: Record<string, unknown> | undefined;
6476
6575
  };
@@ -6491,11 +6590,12 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6491
6590
  type: "topic";
6492
6591
  name: string;
6493
6592
  };
6593
+ id?: string | undefined;
6494
6594
  transform?: string | undefined;
6495
6595
  _additionalInstructions?: string | undefined;
6496
6596
  _withState?: {
6497
6597
  target: {
6498
- type: "Command" | "Event" | "State";
6598
+ type: "Event" | "Command" | "State";
6499
6599
  name: string;
6500
6600
  fields?: Record<string, unknown> | undefined;
6501
6601
  };
@@ -6519,11 +6619,11 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6519
6619
  type: "integration";
6520
6620
  systems: string[];
6521
6621
  };
6622
+ id?: string | undefined;
6522
6623
  transform?: string | undefined;
6523
6624
  _additionalInstructions?: string | undefined;
6524
6625
  } | undefined;
6525
6626
  })[] | undefined;
6526
- description?: string | undefined;
6527
6627
  };
6528
6628
  stream?: string | undefined;
6529
6629
  id?: string | undefined;
@@ -6560,9 +6660,10 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6560
6660
  }[];
6561
6661
  id?: string | undefined;
6562
6662
  }[];
6663
+ description?: string | undefined;
6563
6664
  data?: ({
6564
6665
  target: {
6565
- type: "Command" | "Event" | "State";
6666
+ type: "Event" | "Command" | "State";
6566
6667
  name: string;
6567
6668
  fields?: Record<string, unknown> | undefined;
6568
6669
  };
@@ -6586,11 +6687,12 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6586
6687
  type: "integration";
6587
6688
  systems: string[];
6588
6689
  };
6690
+ id?: string | undefined;
6589
6691
  transform?: string | undefined;
6590
6692
  _additionalInstructions?: string | undefined;
6591
6693
  } | {
6592
6694
  target: {
6593
- type: "Command" | "Event" | "State";
6695
+ type: "Event" | "Command" | "State";
6594
6696
  name: string;
6595
6697
  fields?: Record<string, unknown> | undefined;
6596
6698
  };
@@ -6611,11 +6713,12 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6611
6713
  type: "topic";
6612
6714
  name: string;
6613
6715
  };
6716
+ id?: string | undefined;
6614
6717
  transform?: string | undefined;
6615
6718
  _additionalInstructions?: string | undefined;
6616
6719
  _withState?: {
6617
6720
  target: {
6618
- type: "Command" | "Event" | "State";
6721
+ type: "Event" | "Command" | "State";
6619
6722
  name: string;
6620
6723
  fields?: Record<string, unknown> | undefined;
6621
6724
  };
@@ -6639,11 +6742,11 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6639
6742
  type: "integration";
6640
6743
  systems: string[];
6641
6744
  };
6745
+ id?: string | undefined;
6642
6746
  transform?: string | undefined;
6643
6747
  _additionalInstructions?: string | undefined;
6644
6748
  } | undefined;
6645
6749
  })[] | undefined;
6646
- description?: string | undefined;
6647
6750
  };
6648
6751
  stream?: string | undefined;
6649
6752
  id?: string | undefined;
@@ -6713,16 +6816,17 @@ declare const NarrativeSchema: z.ZodObject<{
6713
6816
  server: z.ZodObject<{
6714
6817
  description: z.ZodString;
6715
6818
  data: z.ZodOptional<z.ZodArray<z.ZodObject<{
6819
+ id: z.ZodOptional<z.ZodString>;
6716
6820
  target: z.ZodObject<{
6717
6821
  type: z.ZodEnum<["Event", "Command", "State"]>;
6718
6822
  name: z.ZodString;
6719
6823
  fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6720
6824
  }, "strip", z.ZodTypeAny, {
6721
- type: "Command" | "Event" | "State";
6825
+ type: "Event" | "Command" | "State";
6722
6826
  name: string;
6723
6827
  fields?: Record<string, unknown> | undefined;
6724
6828
  }, {
6725
- type: "Command" | "Event" | "State";
6829
+ type: "Event" | "Command" | "State";
6726
6830
  name: string;
6727
6831
  fields?: Record<string, unknown> | undefined;
6728
6832
  }>;
@@ -6784,16 +6888,17 @@ declare const NarrativeSchema: z.ZodObject<{
6784
6888
  transform: z.ZodOptional<z.ZodString>;
6785
6889
  _additionalInstructions: z.ZodOptional<z.ZodString>;
6786
6890
  _withState: z.ZodOptional<z.ZodLazy<z.ZodObject<{
6891
+ id: z.ZodOptional<z.ZodString>;
6787
6892
  target: z.ZodObject<{
6788
6893
  type: z.ZodEnum<["Event", "Command", "State"]>;
6789
6894
  name: z.ZodString;
6790
6895
  fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6791
6896
  }, "strip", z.ZodTypeAny, {
6792
- type: "Command" | "Event" | "State";
6897
+ type: "Event" | "Command" | "State";
6793
6898
  name: string;
6794
6899
  fields?: Record<string, unknown> | undefined;
6795
6900
  }, {
6796
- type: "Command" | "Event" | "State";
6901
+ type: "Event" | "Command" | "State";
6797
6902
  name: string;
6798
6903
  fields?: Record<string, unknown> | undefined;
6799
6904
  }>;
@@ -6859,7 +6964,7 @@ declare const NarrativeSchema: z.ZodObject<{
6859
6964
  _additionalInstructions: z.ZodOptional<z.ZodString>;
6860
6965
  }, "strip", z.ZodTypeAny, {
6861
6966
  target: {
6862
- type: "Command" | "Event" | "State";
6967
+ type: "Event" | "Command" | "State";
6863
6968
  name: string;
6864
6969
  fields?: Record<string, unknown> | undefined;
6865
6970
  };
@@ -6883,11 +6988,12 @@ declare const NarrativeSchema: z.ZodObject<{
6883
6988
  type: "integration";
6884
6989
  systems: string[];
6885
6990
  };
6991
+ id?: string | undefined;
6886
6992
  transform?: string | undefined;
6887
6993
  _additionalInstructions?: string | undefined;
6888
6994
  }, {
6889
6995
  target: {
6890
- type: "Command" | "Event" | "State";
6996
+ type: "Event" | "Command" | "State";
6891
6997
  name: string;
6892
6998
  fields?: Record<string, unknown> | undefined;
6893
6999
  };
@@ -6911,12 +7017,13 @@ declare const NarrativeSchema: z.ZodObject<{
6911
7017
  type: "integration";
6912
7018
  systems: string[];
6913
7019
  };
7020
+ id?: string | undefined;
6914
7021
  transform?: string | undefined;
6915
7022
  _additionalInstructions?: string | undefined;
6916
7023
  }>>>;
6917
7024
  }, "strip", z.ZodTypeAny, {
6918
7025
  target: {
6919
- type: "Command" | "Event" | "State";
7026
+ type: "Event" | "Command" | "State";
6920
7027
  name: string;
6921
7028
  fields?: Record<string, unknown> | undefined;
6922
7029
  };
@@ -6937,11 +7044,12 @@ declare const NarrativeSchema: z.ZodObject<{
6937
7044
  type: "topic";
6938
7045
  name: string;
6939
7046
  };
7047
+ id?: string | undefined;
6940
7048
  transform?: string | undefined;
6941
7049
  _additionalInstructions?: string | undefined;
6942
7050
  _withState?: {
6943
7051
  target: {
6944
- type: "Command" | "Event" | "State";
7052
+ type: "Event" | "Command" | "State";
6945
7053
  name: string;
6946
7054
  fields?: Record<string, unknown> | undefined;
6947
7055
  };
@@ -6965,12 +7073,13 @@ declare const NarrativeSchema: z.ZodObject<{
6965
7073
  type: "integration";
6966
7074
  systems: string[];
6967
7075
  };
7076
+ id?: string | undefined;
6968
7077
  transform?: string | undefined;
6969
7078
  _additionalInstructions?: string | undefined;
6970
7079
  } | undefined;
6971
7080
  }, {
6972
7081
  target: {
6973
- type: "Command" | "Event" | "State";
7082
+ type: "Event" | "Command" | "State";
6974
7083
  name: string;
6975
7084
  fields?: Record<string, unknown> | undefined;
6976
7085
  };
@@ -6991,11 +7100,12 @@ declare const NarrativeSchema: z.ZodObject<{
6991
7100
  type: "topic";
6992
7101
  name: string;
6993
7102
  };
7103
+ id?: string | undefined;
6994
7104
  transform?: string | undefined;
6995
7105
  _additionalInstructions?: string | undefined;
6996
7106
  _withState?: {
6997
7107
  target: {
6998
- type: "Command" | "Event" | "State";
7108
+ type: "Event" | "Command" | "State";
6999
7109
  name: string;
7000
7110
  fields?: Record<string, unknown> | undefined;
7001
7111
  };
@@ -7019,6 +7129,7 @@ declare const NarrativeSchema: z.ZodObject<{
7019
7129
  type: "integration";
7020
7130
  systems: string[];
7021
7131
  };
7132
+ id?: string | undefined;
7022
7133
  transform?: string | undefined;
7023
7134
  _additionalInstructions?: string | undefined;
7024
7135
  } | undefined;
@@ -7231,7 +7342,7 @@ declare const NarrativeSchema: z.ZodObject<{
7231
7342
  }[];
7232
7343
  data?: {
7233
7344
  target: {
7234
- type: "Command" | "Event" | "State";
7345
+ type: "Event" | "Command" | "State";
7235
7346
  name: string;
7236
7347
  fields?: Record<string, unknown> | undefined;
7237
7348
  };
@@ -7252,11 +7363,12 @@ declare const NarrativeSchema: z.ZodObject<{
7252
7363
  type: "topic";
7253
7364
  name: string;
7254
7365
  };
7366
+ id?: string | undefined;
7255
7367
  transform?: string | undefined;
7256
7368
  _additionalInstructions?: string | undefined;
7257
7369
  _withState?: {
7258
7370
  target: {
7259
- type: "Command" | "Event" | "State";
7371
+ type: "Event" | "Command" | "State";
7260
7372
  name: string;
7261
7373
  fields?: Record<string, unknown> | undefined;
7262
7374
  };
@@ -7280,6 +7392,7 @@ declare const NarrativeSchema: z.ZodObject<{
7280
7392
  type: "integration";
7281
7393
  systems: string[];
7282
7394
  };
7395
+ id?: string | undefined;
7283
7396
  transform?: string | undefined;
7284
7397
  _additionalInstructions?: string | undefined;
7285
7398
  } | undefined;
@@ -7314,7 +7427,7 @@ declare const NarrativeSchema: z.ZodObject<{
7314
7427
  }[];
7315
7428
  data?: {
7316
7429
  target: {
7317
- type: "Command" | "Event" | "State";
7430
+ type: "Event" | "Command" | "State";
7318
7431
  name: string;
7319
7432
  fields?: Record<string, unknown> | undefined;
7320
7433
  };
@@ -7335,11 +7448,12 @@ declare const NarrativeSchema: z.ZodObject<{
7335
7448
  type: "topic";
7336
7449
  name: string;
7337
7450
  };
7451
+ id?: string | undefined;
7338
7452
  transform?: string | undefined;
7339
7453
  _additionalInstructions?: string | undefined;
7340
7454
  _withState?: {
7341
7455
  target: {
7342
- type: "Command" | "Event" | "State";
7456
+ type: "Event" | "Command" | "State";
7343
7457
  name: string;
7344
7458
  fields?: Record<string, unknown> | undefined;
7345
7459
  };
@@ -7363,6 +7477,7 @@ declare const NarrativeSchema: z.ZodObject<{
7363
7477
  type: "integration";
7364
7478
  systems: string[];
7365
7479
  };
7480
+ id?: string | undefined;
7366
7481
  transform?: string | undefined;
7367
7482
  _additionalInstructions?: string | undefined;
7368
7483
  } | undefined;
@@ -7404,7 +7519,7 @@ declare const NarrativeSchema: z.ZodObject<{
7404
7519
  }[];
7405
7520
  data?: {
7406
7521
  target: {
7407
- type: "Command" | "Event" | "State";
7522
+ type: "Event" | "Command" | "State";
7408
7523
  name: string;
7409
7524
  fields?: Record<string, unknown> | undefined;
7410
7525
  };
@@ -7425,11 +7540,12 @@ declare const NarrativeSchema: z.ZodObject<{
7425
7540
  type: "topic";
7426
7541
  name: string;
7427
7542
  };
7543
+ id?: string | undefined;
7428
7544
  transform?: string | undefined;
7429
7545
  _additionalInstructions?: string | undefined;
7430
7546
  _withState?: {
7431
7547
  target: {
7432
- type: "Command" | "Event" | "State";
7548
+ type: "Event" | "Command" | "State";
7433
7549
  name: string;
7434
7550
  fields?: Record<string, unknown> | undefined;
7435
7551
  };
@@ -7453,6 +7569,7 @@ declare const NarrativeSchema: z.ZodObject<{
7453
7569
  type: "integration";
7454
7570
  systems: string[];
7455
7571
  };
7572
+ id?: string | undefined;
7456
7573
  transform?: string | undefined;
7457
7574
  _additionalInstructions?: string | undefined;
7458
7575
  } | undefined;
@@ -7500,7 +7617,7 @@ declare const NarrativeSchema: z.ZodObject<{
7500
7617
  }[];
7501
7618
  data?: {
7502
7619
  target: {
7503
- type: "Command" | "Event" | "State";
7620
+ type: "Event" | "Command" | "State";
7504
7621
  name: string;
7505
7622
  fields?: Record<string, unknown> | undefined;
7506
7623
  };
@@ -7521,11 +7638,12 @@ declare const NarrativeSchema: z.ZodObject<{
7521
7638
  type: "topic";
7522
7639
  name: string;
7523
7640
  };
7641
+ id?: string | undefined;
7524
7642
  transform?: string | undefined;
7525
7643
  _additionalInstructions?: string | undefined;
7526
7644
  _withState?: {
7527
7645
  target: {
7528
- type: "Command" | "Event" | "State";
7646
+ type: "Event" | "Command" | "State";
7529
7647
  name: string;
7530
7648
  fields?: Record<string, unknown> | undefined;
7531
7649
  };
@@ -7549,6 +7667,7 @@ declare const NarrativeSchema: z.ZodObject<{
7549
7667
  type: "integration";
7550
7668
  systems: string[];
7551
7669
  };
7670
+ id?: string | undefined;
7552
7671
  transform?: string | undefined;
7553
7672
  _additionalInstructions?: string | undefined;
7554
7673
  } | undefined;
@@ -7580,16 +7699,17 @@ declare const NarrativeSchema: z.ZodObject<{
7580
7699
  server: z.ZodObject<{
7581
7700
  description: z.ZodString;
7582
7701
  data: z.ZodOptional<z.ZodArray<z.ZodObject<{
7702
+ id: z.ZodOptional<z.ZodString>;
7583
7703
  target: z.ZodObject<{
7584
7704
  type: z.ZodEnum<["Event", "Command", "State"]>;
7585
7705
  name: z.ZodString;
7586
7706
  fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7587
7707
  }, "strip", z.ZodTypeAny, {
7588
- type: "Command" | "Event" | "State";
7708
+ type: "Event" | "Command" | "State";
7589
7709
  name: string;
7590
7710
  fields?: Record<string, unknown> | undefined;
7591
7711
  }, {
7592
- type: "Command" | "Event" | "State";
7712
+ type: "Event" | "Command" | "State";
7593
7713
  name: string;
7594
7714
  fields?: Record<string, unknown> | undefined;
7595
7715
  }>;
@@ -7655,7 +7775,7 @@ declare const NarrativeSchema: z.ZodObject<{
7655
7775
  _additionalInstructions: z.ZodOptional<z.ZodString>;
7656
7776
  }, "strip", z.ZodTypeAny, {
7657
7777
  target: {
7658
- type: "Command" | "Event" | "State";
7778
+ type: "Event" | "Command" | "State";
7659
7779
  name: string;
7660
7780
  fields?: Record<string, unknown> | undefined;
7661
7781
  };
@@ -7679,11 +7799,12 @@ declare const NarrativeSchema: z.ZodObject<{
7679
7799
  type: "integration";
7680
7800
  systems: string[];
7681
7801
  };
7802
+ id?: string | undefined;
7682
7803
  transform?: string | undefined;
7683
7804
  _additionalInstructions?: string | undefined;
7684
7805
  }, {
7685
7806
  target: {
7686
- type: "Command" | "Event" | "State";
7807
+ type: "Event" | "Command" | "State";
7687
7808
  name: string;
7688
7809
  fields?: Record<string, unknown> | undefined;
7689
7810
  };
@@ -7707,6 +7828,7 @@ declare const NarrativeSchema: z.ZodObject<{
7707
7828
  type: "integration";
7708
7829
  systems: string[];
7709
7830
  };
7831
+ id?: string | undefined;
7710
7832
  transform?: string | undefined;
7711
7833
  _additionalInstructions?: string | undefined;
7712
7834
  }>, "many">>;
@@ -7918,7 +8040,7 @@ declare const NarrativeSchema: z.ZodObject<{
7918
8040
  }[];
7919
8041
  data?: {
7920
8042
  target: {
7921
- type: "Command" | "Event" | "State";
8043
+ type: "Event" | "Command" | "State";
7922
8044
  name: string;
7923
8045
  fields?: Record<string, unknown> | undefined;
7924
8046
  };
@@ -7942,6 +8064,7 @@ declare const NarrativeSchema: z.ZodObject<{
7942
8064
  type: "integration";
7943
8065
  systems: string[];
7944
8066
  };
8067
+ id?: string | undefined;
7945
8068
  transform?: string | undefined;
7946
8069
  _additionalInstructions?: string | undefined;
7947
8070
  }[] | undefined;
@@ -7975,7 +8098,7 @@ declare const NarrativeSchema: z.ZodObject<{
7975
8098
  }[];
7976
8099
  data?: {
7977
8100
  target: {
7978
- type: "Command" | "Event" | "State";
8101
+ type: "Event" | "Command" | "State";
7979
8102
  name: string;
7980
8103
  fields?: Record<string, unknown> | undefined;
7981
8104
  };
@@ -7999,6 +8122,7 @@ declare const NarrativeSchema: z.ZodObject<{
7999
8122
  type: "integration";
8000
8123
  systems: string[];
8001
8124
  };
8125
+ id?: string | undefined;
8002
8126
  transform?: string | undefined;
8003
8127
  _additionalInstructions?: string | undefined;
8004
8128
  }[] | undefined;
@@ -8039,7 +8163,7 @@ declare const NarrativeSchema: z.ZodObject<{
8039
8163
  }[];
8040
8164
  data?: {
8041
8165
  target: {
8042
- type: "Command" | "Event" | "State";
8166
+ type: "Event" | "Command" | "State";
8043
8167
  name: string;
8044
8168
  fields?: Record<string, unknown> | undefined;
8045
8169
  };
@@ -8063,6 +8187,7 @@ declare const NarrativeSchema: z.ZodObject<{
8063
8187
  type: "integration";
8064
8188
  systems: string[];
8065
8189
  };
8190
+ id?: string | undefined;
8066
8191
  transform?: string | undefined;
8067
8192
  _additionalInstructions?: string | undefined;
8068
8193
  }[] | undefined;
@@ -8109,7 +8234,7 @@ declare const NarrativeSchema: z.ZodObject<{
8109
8234
  }[];
8110
8235
  data?: {
8111
8236
  target: {
8112
- type: "Command" | "Event" | "State";
8237
+ type: "Event" | "Command" | "State";
8113
8238
  name: string;
8114
8239
  fields?: Record<string, unknown> | undefined;
8115
8240
  };
@@ -8133,6 +8258,7 @@ declare const NarrativeSchema: z.ZodObject<{
8133
8258
  type: "integration";
8134
8259
  systems: string[];
8135
8260
  };
8261
+ id?: string | undefined;
8136
8262
  transform?: string | undefined;
8137
8263
  _additionalInstructions?: string | undefined;
8138
8264
  }[] | undefined;
@@ -8155,16 +8281,17 @@ declare const NarrativeSchema: z.ZodObject<{
8155
8281
  server: z.ZodObject<{
8156
8282
  description: z.ZodOptional<z.ZodString>;
8157
8283
  data: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
8284
+ id: z.ZodOptional<z.ZodString>;
8158
8285
  target: z.ZodObject<{
8159
8286
  type: z.ZodEnum<["Event", "Command", "State"]>;
8160
8287
  name: z.ZodString;
8161
8288
  fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8162
8289
  }, "strip", z.ZodTypeAny, {
8163
- type: "Command" | "Event" | "State";
8290
+ type: "Event" | "Command" | "State";
8164
8291
  name: string;
8165
8292
  fields?: Record<string, unknown> | undefined;
8166
8293
  }, {
8167
- type: "Command" | "Event" | "State";
8294
+ type: "Event" | "Command" | "State";
8168
8295
  name: string;
8169
8296
  fields?: Record<string, unknown> | undefined;
8170
8297
  }>;
@@ -8226,16 +8353,17 @@ declare const NarrativeSchema: z.ZodObject<{
8226
8353
  transform: z.ZodOptional<z.ZodString>;
8227
8354
  _additionalInstructions: z.ZodOptional<z.ZodString>;
8228
8355
  _withState: z.ZodOptional<z.ZodLazy<z.ZodObject<{
8356
+ id: z.ZodOptional<z.ZodString>;
8229
8357
  target: z.ZodObject<{
8230
8358
  type: z.ZodEnum<["Event", "Command", "State"]>;
8231
8359
  name: z.ZodString;
8232
8360
  fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8233
8361
  }, "strip", z.ZodTypeAny, {
8234
- type: "Command" | "Event" | "State";
8362
+ type: "Event" | "Command" | "State";
8235
8363
  name: string;
8236
8364
  fields?: Record<string, unknown> | undefined;
8237
8365
  }, {
8238
- type: "Command" | "Event" | "State";
8366
+ type: "Event" | "Command" | "State";
8239
8367
  name: string;
8240
8368
  fields?: Record<string, unknown> | undefined;
8241
8369
  }>;
@@ -8301,7 +8429,7 @@ declare const NarrativeSchema: z.ZodObject<{
8301
8429
  _additionalInstructions: z.ZodOptional<z.ZodString>;
8302
8430
  }, "strip", z.ZodTypeAny, {
8303
8431
  target: {
8304
- type: "Command" | "Event" | "State";
8432
+ type: "Event" | "Command" | "State";
8305
8433
  name: string;
8306
8434
  fields?: Record<string, unknown> | undefined;
8307
8435
  };
@@ -8325,11 +8453,12 @@ declare const NarrativeSchema: z.ZodObject<{
8325
8453
  type: "integration";
8326
8454
  systems: string[];
8327
8455
  };
8456
+ id?: string | undefined;
8328
8457
  transform?: string | undefined;
8329
8458
  _additionalInstructions?: string | undefined;
8330
8459
  }, {
8331
8460
  target: {
8332
- type: "Command" | "Event" | "State";
8461
+ type: "Event" | "Command" | "State";
8333
8462
  name: string;
8334
8463
  fields?: Record<string, unknown> | undefined;
8335
8464
  };
@@ -8353,12 +8482,13 @@ declare const NarrativeSchema: z.ZodObject<{
8353
8482
  type: "integration";
8354
8483
  systems: string[];
8355
8484
  };
8485
+ id?: string | undefined;
8356
8486
  transform?: string | undefined;
8357
8487
  _additionalInstructions?: string | undefined;
8358
8488
  }>>>;
8359
8489
  }, "strip", z.ZodTypeAny, {
8360
8490
  target: {
8361
- type: "Command" | "Event" | "State";
8491
+ type: "Event" | "Command" | "State";
8362
8492
  name: string;
8363
8493
  fields?: Record<string, unknown> | undefined;
8364
8494
  };
@@ -8379,11 +8509,12 @@ declare const NarrativeSchema: z.ZodObject<{
8379
8509
  type: "topic";
8380
8510
  name: string;
8381
8511
  };
8512
+ id?: string | undefined;
8382
8513
  transform?: string | undefined;
8383
8514
  _additionalInstructions?: string | undefined;
8384
8515
  _withState?: {
8385
8516
  target: {
8386
- type: "Command" | "Event" | "State";
8517
+ type: "Event" | "Command" | "State";
8387
8518
  name: string;
8388
8519
  fields?: Record<string, unknown> | undefined;
8389
8520
  };
@@ -8407,12 +8538,13 @@ declare const NarrativeSchema: z.ZodObject<{
8407
8538
  type: "integration";
8408
8539
  systems: string[];
8409
8540
  };
8541
+ id?: string | undefined;
8410
8542
  transform?: string | undefined;
8411
8543
  _additionalInstructions?: string | undefined;
8412
8544
  } | undefined;
8413
8545
  }, {
8414
8546
  target: {
8415
- type: "Command" | "Event" | "State";
8547
+ type: "Event" | "Command" | "State";
8416
8548
  name: string;
8417
8549
  fields?: Record<string, unknown> | undefined;
8418
8550
  };
@@ -8433,11 +8565,12 @@ declare const NarrativeSchema: z.ZodObject<{
8433
8565
  type: "topic";
8434
8566
  name: string;
8435
8567
  };
8568
+ id?: string | undefined;
8436
8569
  transform?: string | undefined;
8437
8570
  _additionalInstructions?: string | undefined;
8438
8571
  _withState?: {
8439
8572
  target: {
8440
- type: "Command" | "Event" | "State";
8573
+ type: "Event" | "Command" | "State";
8441
8574
  name: string;
8442
8575
  fields?: Record<string, unknown> | undefined;
8443
8576
  };
@@ -8461,20 +8594,22 @@ declare const NarrativeSchema: z.ZodObject<{
8461
8594
  type: "integration";
8462
8595
  systems: string[];
8463
8596
  };
8597
+ id?: string | undefined;
8464
8598
  transform?: string | undefined;
8465
8599
  _additionalInstructions?: string | undefined;
8466
8600
  } | undefined;
8467
8601
  }>, z.ZodObject<{
8602
+ id: z.ZodOptional<z.ZodString>;
8468
8603
  target: z.ZodObject<{
8469
8604
  type: z.ZodEnum<["Event", "Command", "State"]>;
8470
8605
  name: z.ZodString;
8471
8606
  fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8472
8607
  }, "strip", z.ZodTypeAny, {
8473
- type: "Command" | "Event" | "State";
8608
+ type: "Event" | "Command" | "State";
8474
8609
  name: string;
8475
8610
  fields?: Record<string, unknown> | undefined;
8476
8611
  }, {
8477
- type: "Command" | "Event" | "State";
8612
+ type: "Event" | "Command" | "State";
8478
8613
  name: string;
8479
8614
  fields?: Record<string, unknown> | undefined;
8480
8615
  }>;
@@ -8540,7 +8675,7 @@ declare const NarrativeSchema: z.ZodObject<{
8540
8675
  _additionalInstructions: z.ZodOptional<z.ZodString>;
8541
8676
  }, "strip", z.ZodTypeAny, {
8542
8677
  target: {
8543
- type: "Command" | "Event" | "State";
8678
+ type: "Event" | "Command" | "State";
8544
8679
  name: string;
8545
8680
  fields?: Record<string, unknown> | undefined;
8546
8681
  };
@@ -8564,11 +8699,12 @@ declare const NarrativeSchema: z.ZodObject<{
8564
8699
  type: "integration";
8565
8700
  systems: string[];
8566
8701
  };
8702
+ id?: string | undefined;
8567
8703
  transform?: string | undefined;
8568
8704
  _additionalInstructions?: string | undefined;
8569
8705
  }, {
8570
8706
  target: {
8571
- type: "Command" | "Event" | "State";
8707
+ type: "Event" | "Command" | "State";
8572
8708
  name: string;
8573
8709
  fields?: Record<string, unknown> | undefined;
8574
8710
  };
@@ -8592,6 +8728,7 @@ declare const NarrativeSchema: z.ZodObject<{
8592
8728
  type: "integration";
8593
8729
  systems: string[];
8594
8730
  };
8731
+ id?: string | undefined;
8595
8732
  transform?: string | undefined;
8596
8733
  _additionalInstructions?: string | undefined;
8597
8734
  }>]>, "many">>;
@@ -8800,9 +8937,10 @@ declare const NarrativeSchema: z.ZodObject<{
8800
8937
  }[];
8801
8938
  id?: string | undefined;
8802
8939
  }[];
8940
+ description?: string | undefined;
8803
8941
  data?: ({
8804
8942
  target: {
8805
- type: "Command" | "Event" | "State";
8943
+ type: "Event" | "Command" | "State";
8806
8944
  name: string;
8807
8945
  fields?: Record<string, unknown> | undefined;
8808
8946
  };
@@ -8826,11 +8964,12 @@ declare const NarrativeSchema: z.ZodObject<{
8826
8964
  type: "integration";
8827
8965
  systems: string[];
8828
8966
  };
8967
+ id?: string | undefined;
8829
8968
  transform?: string | undefined;
8830
8969
  _additionalInstructions?: string | undefined;
8831
8970
  } | {
8832
8971
  target: {
8833
- type: "Command" | "Event" | "State";
8972
+ type: "Event" | "Command" | "State";
8834
8973
  name: string;
8835
8974
  fields?: Record<string, unknown> | undefined;
8836
8975
  };
@@ -8851,11 +8990,12 @@ declare const NarrativeSchema: z.ZodObject<{
8851
8990
  type: "topic";
8852
8991
  name: string;
8853
8992
  };
8993
+ id?: string | undefined;
8854
8994
  transform?: string | undefined;
8855
8995
  _additionalInstructions?: string | undefined;
8856
8996
  _withState?: {
8857
8997
  target: {
8858
- type: "Command" | "Event" | "State";
8998
+ type: "Event" | "Command" | "State";
8859
8999
  name: string;
8860
9000
  fields?: Record<string, unknown> | undefined;
8861
9001
  };
@@ -8879,11 +9019,11 @@ declare const NarrativeSchema: z.ZodObject<{
8879
9019
  type: "integration";
8880
9020
  systems: string[];
8881
9021
  };
9022
+ id?: string | undefined;
8882
9023
  transform?: string | undefined;
8883
9024
  _additionalInstructions?: string | undefined;
8884
9025
  } | undefined;
8885
9026
  })[] | undefined;
8886
- description?: string | undefined;
8887
9027
  }, {
8888
9028
  specs: {
8889
9029
  type: "gherkin";
@@ -8911,9 +9051,10 @@ declare const NarrativeSchema: z.ZodObject<{
8911
9051
  }[];
8912
9052
  id?: string | undefined;
8913
9053
  }[];
9054
+ description?: string | undefined;
8914
9055
  data?: ({
8915
9056
  target: {
8916
- type: "Command" | "Event" | "State";
9057
+ type: "Event" | "Command" | "State";
8917
9058
  name: string;
8918
9059
  fields?: Record<string, unknown> | undefined;
8919
9060
  };
@@ -8937,11 +9078,12 @@ declare const NarrativeSchema: z.ZodObject<{
8937
9078
  type: "integration";
8938
9079
  systems: string[];
8939
9080
  };
9081
+ id?: string | undefined;
8940
9082
  transform?: string | undefined;
8941
9083
  _additionalInstructions?: string | undefined;
8942
9084
  } | {
8943
9085
  target: {
8944
- type: "Command" | "Event" | "State";
9086
+ type: "Event" | "Command" | "State";
8945
9087
  name: string;
8946
9088
  fields?: Record<string, unknown> | undefined;
8947
9089
  };
@@ -8962,11 +9104,12 @@ declare const NarrativeSchema: z.ZodObject<{
8962
9104
  type: "topic";
8963
9105
  name: string;
8964
9106
  };
9107
+ id?: string | undefined;
8965
9108
  transform?: string | undefined;
8966
9109
  _additionalInstructions?: string | undefined;
8967
9110
  _withState?: {
8968
9111
  target: {
8969
- type: "Command" | "Event" | "State";
9112
+ type: "Event" | "Command" | "State";
8970
9113
  name: string;
8971
9114
  fields?: Record<string, unknown> | undefined;
8972
9115
  };
@@ -8990,11 +9133,11 @@ declare const NarrativeSchema: z.ZodObject<{
8990
9133
  type: "integration";
8991
9134
  systems: string[];
8992
9135
  };
9136
+ id?: string | undefined;
8993
9137
  transform?: string | undefined;
8994
9138
  _additionalInstructions?: string | undefined;
8995
9139
  } | undefined;
8996
9140
  })[] | undefined;
8997
- description?: string | undefined;
8998
9141
  }>;
8999
9142
  }, "strip", z.ZodTypeAny, {
9000
9143
  type: "react";
@@ -9026,9 +9169,10 @@ declare const NarrativeSchema: z.ZodObject<{
9026
9169
  }[];
9027
9170
  id?: string | undefined;
9028
9171
  }[];
9172
+ description?: string | undefined;
9029
9173
  data?: ({
9030
9174
  target: {
9031
- type: "Command" | "Event" | "State";
9175
+ type: "Event" | "Command" | "State";
9032
9176
  name: string;
9033
9177
  fields?: Record<string, unknown> | undefined;
9034
9178
  };
@@ -9052,11 +9196,12 @@ declare const NarrativeSchema: z.ZodObject<{
9052
9196
  type: "integration";
9053
9197
  systems: string[];
9054
9198
  };
9199
+ id?: string | undefined;
9055
9200
  transform?: string | undefined;
9056
9201
  _additionalInstructions?: string | undefined;
9057
9202
  } | {
9058
9203
  target: {
9059
- type: "Command" | "Event" | "State";
9204
+ type: "Event" | "Command" | "State";
9060
9205
  name: string;
9061
9206
  fields?: Record<string, unknown> | undefined;
9062
9207
  };
@@ -9077,11 +9222,12 @@ declare const NarrativeSchema: z.ZodObject<{
9077
9222
  type: "topic";
9078
9223
  name: string;
9079
9224
  };
9225
+ id?: string | undefined;
9080
9226
  transform?: string | undefined;
9081
9227
  _additionalInstructions?: string | undefined;
9082
9228
  _withState?: {
9083
9229
  target: {
9084
- type: "Command" | "Event" | "State";
9230
+ type: "Event" | "Command" | "State";
9085
9231
  name: string;
9086
9232
  fields?: Record<string, unknown> | undefined;
9087
9233
  };
@@ -9105,11 +9251,11 @@ declare const NarrativeSchema: z.ZodObject<{
9105
9251
  type: "integration";
9106
9252
  systems: string[];
9107
9253
  };
9254
+ id?: string | undefined;
9108
9255
  transform?: string | undefined;
9109
9256
  _additionalInstructions?: string | undefined;
9110
9257
  } | undefined;
9111
9258
  })[] | undefined;
9112
- description?: string | undefined;
9113
9259
  };
9114
9260
  stream?: string | undefined;
9115
9261
  id?: string | undefined;
@@ -9146,9 +9292,10 @@ declare const NarrativeSchema: z.ZodObject<{
9146
9292
  }[];
9147
9293
  id?: string | undefined;
9148
9294
  }[];
9295
+ description?: string | undefined;
9149
9296
  data?: ({
9150
9297
  target: {
9151
- type: "Command" | "Event" | "State";
9298
+ type: "Event" | "Command" | "State";
9152
9299
  name: string;
9153
9300
  fields?: Record<string, unknown> | undefined;
9154
9301
  };
@@ -9172,11 +9319,12 @@ declare const NarrativeSchema: z.ZodObject<{
9172
9319
  type: "integration";
9173
9320
  systems: string[];
9174
9321
  };
9322
+ id?: string | undefined;
9175
9323
  transform?: string | undefined;
9176
9324
  _additionalInstructions?: string | undefined;
9177
9325
  } | {
9178
9326
  target: {
9179
- type: "Command" | "Event" | "State";
9327
+ type: "Event" | "Command" | "State";
9180
9328
  name: string;
9181
9329
  fields?: Record<string, unknown> | undefined;
9182
9330
  };
@@ -9197,11 +9345,12 @@ declare const NarrativeSchema: z.ZodObject<{
9197
9345
  type: "topic";
9198
9346
  name: string;
9199
9347
  };
9348
+ id?: string | undefined;
9200
9349
  transform?: string | undefined;
9201
9350
  _additionalInstructions?: string | undefined;
9202
9351
  _withState?: {
9203
9352
  target: {
9204
- type: "Command" | "Event" | "State";
9353
+ type: "Event" | "Command" | "State";
9205
9354
  name: string;
9206
9355
  fields?: Record<string, unknown> | undefined;
9207
9356
  };
@@ -9225,11 +9374,11 @@ declare const NarrativeSchema: z.ZodObject<{
9225
9374
  type: "integration";
9226
9375
  systems: string[];
9227
9376
  };
9377
+ id?: string | undefined;
9228
9378
  transform?: string | undefined;
9229
9379
  _additionalInstructions?: string | undefined;
9230
9380
  } | undefined;
9231
9381
  })[] | undefined;
9232
- description?: string | undefined;
9233
9382
  };
9234
9383
  stream?: string | undefined;
9235
9384
  id?: string | undefined;
@@ -9314,7 +9463,7 @@ declare const NarrativeSchema: z.ZodObject<{
9314
9463
  }[];
9315
9464
  data?: {
9316
9465
  target: {
9317
- type: "Command" | "Event" | "State";
9466
+ type: "Event" | "Command" | "State";
9318
9467
  name: string;
9319
9468
  fields?: Record<string, unknown> | undefined;
9320
9469
  };
@@ -9335,11 +9484,12 @@ declare const NarrativeSchema: z.ZodObject<{
9335
9484
  type: "topic";
9336
9485
  name: string;
9337
9486
  };
9487
+ id?: string | undefined;
9338
9488
  transform?: string | undefined;
9339
9489
  _additionalInstructions?: string | undefined;
9340
9490
  _withState?: {
9341
9491
  target: {
9342
- type: "Command" | "Event" | "State";
9492
+ type: "Event" | "Command" | "State";
9343
9493
  name: string;
9344
9494
  fields?: Record<string, unknown> | undefined;
9345
9495
  };
@@ -9363,6 +9513,7 @@ declare const NarrativeSchema: z.ZodObject<{
9363
9513
  type: "integration";
9364
9514
  systems: string[];
9365
9515
  };
9516
+ id?: string | undefined;
9366
9517
  transform?: string | undefined;
9367
9518
  _additionalInstructions?: string | undefined;
9368
9519
  } | undefined;
@@ -9410,7 +9561,7 @@ declare const NarrativeSchema: z.ZodObject<{
9410
9561
  }[];
9411
9562
  data?: {
9412
9563
  target: {
9413
- type: "Command" | "Event" | "State";
9564
+ type: "Event" | "Command" | "State";
9414
9565
  name: string;
9415
9566
  fields?: Record<string, unknown> | undefined;
9416
9567
  };
@@ -9434,6 +9585,7 @@ declare const NarrativeSchema: z.ZodObject<{
9434
9585
  type: "integration";
9435
9586
  systems: string[];
9436
9587
  };
9588
+ id?: string | undefined;
9437
9589
  transform?: string | undefined;
9438
9590
  _additionalInstructions?: string | undefined;
9439
9591
  }[] | undefined;
@@ -9474,9 +9626,10 @@ declare const NarrativeSchema: z.ZodObject<{
9474
9626
  }[];
9475
9627
  id?: string | undefined;
9476
9628
  }[];
9629
+ description?: string | undefined;
9477
9630
  data?: ({
9478
9631
  target: {
9479
- type: "Command" | "Event" | "State";
9632
+ type: "Event" | "Command" | "State";
9480
9633
  name: string;
9481
9634
  fields?: Record<string, unknown> | undefined;
9482
9635
  };
@@ -9500,11 +9653,12 @@ declare const NarrativeSchema: z.ZodObject<{
9500
9653
  type: "integration";
9501
9654
  systems: string[];
9502
9655
  };
9656
+ id?: string | undefined;
9503
9657
  transform?: string | undefined;
9504
9658
  _additionalInstructions?: string | undefined;
9505
9659
  } | {
9506
9660
  target: {
9507
- type: "Command" | "Event" | "State";
9661
+ type: "Event" | "Command" | "State";
9508
9662
  name: string;
9509
9663
  fields?: Record<string, unknown> | undefined;
9510
9664
  };
@@ -9525,11 +9679,12 @@ declare const NarrativeSchema: z.ZodObject<{
9525
9679
  type: "topic";
9526
9680
  name: string;
9527
9681
  };
9682
+ id?: string | undefined;
9528
9683
  transform?: string | undefined;
9529
9684
  _additionalInstructions?: string | undefined;
9530
9685
  _withState?: {
9531
9686
  target: {
9532
- type: "Command" | "Event" | "State";
9687
+ type: "Event" | "Command" | "State";
9533
9688
  name: string;
9534
9689
  fields?: Record<string, unknown> | undefined;
9535
9690
  };
@@ -9553,11 +9708,11 @@ declare const NarrativeSchema: z.ZodObject<{
9553
9708
  type: "integration";
9554
9709
  systems: string[];
9555
9710
  };
9711
+ id?: string | undefined;
9556
9712
  transform?: string | undefined;
9557
9713
  _additionalInstructions?: string | undefined;
9558
9714
  } | undefined;
9559
9715
  })[] | undefined;
9560
- description?: string | undefined;
9561
9716
  };
9562
9717
  stream?: string | undefined;
9563
9718
  id?: string | undefined;
@@ -9617,7 +9772,7 @@ declare const NarrativeSchema: z.ZodObject<{
9617
9772
  }[];
9618
9773
  data?: {
9619
9774
  target: {
9620
- type: "Command" | "Event" | "State";
9775
+ type: "Event" | "Command" | "State";
9621
9776
  name: string;
9622
9777
  fields?: Record<string, unknown> | undefined;
9623
9778
  };
@@ -9638,11 +9793,12 @@ declare const NarrativeSchema: z.ZodObject<{
9638
9793
  type: "topic";
9639
9794
  name: string;
9640
9795
  };
9796
+ id?: string | undefined;
9641
9797
  transform?: string | undefined;
9642
9798
  _additionalInstructions?: string | undefined;
9643
9799
  _withState?: {
9644
9800
  target: {
9645
- type: "Command" | "Event" | "State";
9801
+ type: "Event" | "Command" | "State";
9646
9802
  name: string;
9647
9803
  fields?: Record<string, unknown> | undefined;
9648
9804
  };
@@ -9666,6 +9822,7 @@ declare const NarrativeSchema: z.ZodObject<{
9666
9822
  type: "integration";
9667
9823
  systems: string[];
9668
9824
  };
9825
+ id?: string | undefined;
9669
9826
  transform?: string | undefined;
9670
9827
  _additionalInstructions?: string | undefined;
9671
9828
  } | undefined;
@@ -9713,7 +9870,7 @@ declare const NarrativeSchema: z.ZodObject<{
9713
9870
  }[];
9714
9871
  data?: {
9715
9872
  target: {
9716
- type: "Command" | "Event" | "State";
9873
+ type: "Event" | "Command" | "State";
9717
9874
  name: string;
9718
9875
  fields?: Record<string, unknown> | undefined;
9719
9876
  };
@@ -9737,6 +9894,7 @@ declare const NarrativeSchema: z.ZodObject<{
9737
9894
  type: "integration";
9738
9895
  systems: string[];
9739
9896
  };
9897
+ id?: string | undefined;
9740
9898
  transform?: string | undefined;
9741
9899
  _additionalInstructions?: string | undefined;
9742
9900
  }[] | undefined;
@@ -9777,9 +9935,10 @@ declare const NarrativeSchema: z.ZodObject<{
9777
9935
  }[];
9778
9936
  id?: string | undefined;
9779
9937
  }[];
9938
+ description?: string | undefined;
9780
9939
  data?: ({
9781
9940
  target: {
9782
- type: "Command" | "Event" | "State";
9941
+ type: "Event" | "Command" | "State";
9783
9942
  name: string;
9784
9943
  fields?: Record<string, unknown> | undefined;
9785
9944
  };
@@ -9803,11 +9962,12 @@ declare const NarrativeSchema: z.ZodObject<{
9803
9962
  type: "integration";
9804
9963
  systems: string[];
9805
9964
  };
9965
+ id?: string | undefined;
9806
9966
  transform?: string | undefined;
9807
9967
  _additionalInstructions?: string | undefined;
9808
9968
  } | {
9809
9969
  target: {
9810
- type: "Command" | "Event" | "State";
9970
+ type: "Event" | "Command" | "State";
9811
9971
  name: string;
9812
9972
  fields?: Record<string, unknown> | undefined;
9813
9973
  };
@@ -9828,11 +9988,12 @@ declare const NarrativeSchema: z.ZodObject<{
9828
9988
  type: "topic";
9829
9989
  name: string;
9830
9990
  };
9991
+ id?: string | undefined;
9831
9992
  transform?: string | undefined;
9832
9993
  _additionalInstructions?: string | undefined;
9833
9994
  _withState?: {
9834
9995
  target: {
9835
- type: "Command" | "Event" | "State";
9996
+ type: "Event" | "Command" | "State";
9836
9997
  name: string;
9837
9998
  fields?: Record<string, unknown> | undefined;
9838
9999
  };
@@ -9856,11 +10017,11 @@ declare const NarrativeSchema: z.ZodObject<{
9856
10017
  type: "integration";
9857
10018
  systems: string[];
9858
10019
  };
10020
+ id?: string | undefined;
9859
10021
  transform?: string | undefined;
9860
10022
  _additionalInstructions?: string | undefined;
9861
10023
  } | undefined;
9862
10024
  })[] | undefined;
9863
- description?: string | undefined;
9864
10025
  };
9865
10026
  stream?: string | undefined;
9866
10027
  id?: string | undefined;
@@ -10129,16 +10290,17 @@ export declare const modelSchema: z.ZodObject<{
10129
10290
  server: z.ZodObject<{
10130
10291
  description: z.ZodString;
10131
10292
  data: z.ZodOptional<z.ZodArray<z.ZodObject<{
10293
+ id: z.ZodOptional<z.ZodString>;
10132
10294
  target: z.ZodObject<{
10133
10295
  type: z.ZodEnum<["Event", "Command", "State"]>;
10134
10296
  name: z.ZodString;
10135
10297
  fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
10136
10298
  }, "strip", z.ZodTypeAny, {
10137
- type: "Command" | "Event" | "State";
10299
+ type: "Event" | "Command" | "State";
10138
10300
  name: string;
10139
10301
  fields?: Record<string, unknown> | undefined;
10140
10302
  }, {
10141
- type: "Command" | "Event" | "State";
10303
+ type: "Event" | "Command" | "State";
10142
10304
  name: string;
10143
10305
  fields?: Record<string, unknown> | undefined;
10144
10306
  }>;
@@ -10200,16 +10362,17 @@ export declare const modelSchema: z.ZodObject<{
10200
10362
  transform: z.ZodOptional<z.ZodString>;
10201
10363
  _additionalInstructions: z.ZodOptional<z.ZodString>;
10202
10364
  _withState: z.ZodOptional<z.ZodLazy<z.ZodObject<{
10365
+ id: z.ZodOptional<z.ZodString>;
10203
10366
  target: z.ZodObject<{
10204
10367
  type: z.ZodEnum<["Event", "Command", "State"]>;
10205
10368
  name: z.ZodString;
10206
10369
  fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
10207
10370
  }, "strip", z.ZodTypeAny, {
10208
- type: "Command" | "Event" | "State";
10371
+ type: "Event" | "Command" | "State";
10209
10372
  name: string;
10210
10373
  fields?: Record<string, unknown> | undefined;
10211
10374
  }, {
10212
- type: "Command" | "Event" | "State";
10375
+ type: "Event" | "Command" | "State";
10213
10376
  name: string;
10214
10377
  fields?: Record<string, unknown> | undefined;
10215
10378
  }>;
@@ -10275,7 +10438,7 @@ export declare const modelSchema: z.ZodObject<{
10275
10438
  _additionalInstructions: z.ZodOptional<z.ZodString>;
10276
10439
  }, "strip", z.ZodTypeAny, {
10277
10440
  target: {
10278
- type: "Command" | "Event" | "State";
10441
+ type: "Event" | "Command" | "State";
10279
10442
  name: string;
10280
10443
  fields?: Record<string, unknown> | undefined;
10281
10444
  };
@@ -10299,11 +10462,12 @@ export declare const modelSchema: z.ZodObject<{
10299
10462
  type: "integration";
10300
10463
  systems: string[];
10301
10464
  };
10465
+ id?: string | undefined;
10302
10466
  transform?: string | undefined;
10303
10467
  _additionalInstructions?: string | undefined;
10304
10468
  }, {
10305
10469
  target: {
10306
- type: "Command" | "Event" | "State";
10470
+ type: "Event" | "Command" | "State";
10307
10471
  name: string;
10308
10472
  fields?: Record<string, unknown> | undefined;
10309
10473
  };
@@ -10327,12 +10491,13 @@ export declare const modelSchema: z.ZodObject<{
10327
10491
  type: "integration";
10328
10492
  systems: string[];
10329
10493
  };
10494
+ id?: string | undefined;
10330
10495
  transform?: string | undefined;
10331
10496
  _additionalInstructions?: string | undefined;
10332
10497
  }>>>;
10333
10498
  }, "strip", z.ZodTypeAny, {
10334
10499
  target: {
10335
- type: "Command" | "Event" | "State";
10500
+ type: "Event" | "Command" | "State";
10336
10501
  name: string;
10337
10502
  fields?: Record<string, unknown> | undefined;
10338
10503
  };
@@ -10353,11 +10518,12 @@ export declare const modelSchema: z.ZodObject<{
10353
10518
  type: "topic";
10354
10519
  name: string;
10355
10520
  };
10521
+ id?: string | undefined;
10356
10522
  transform?: string | undefined;
10357
10523
  _additionalInstructions?: string | undefined;
10358
10524
  _withState?: {
10359
10525
  target: {
10360
- type: "Command" | "Event" | "State";
10526
+ type: "Event" | "Command" | "State";
10361
10527
  name: string;
10362
10528
  fields?: Record<string, unknown> | undefined;
10363
10529
  };
@@ -10381,12 +10547,13 @@ export declare const modelSchema: z.ZodObject<{
10381
10547
  type: "integration";
10382
10548
  systems: string[];
10383
10549
  };
10550
+ id?: string | undefined;
10384
10551
  transform?: string | undefined;
10385
10552
  _additionalInstructions?: string | undefined;
10386
10553
  } | undefined;
10387
10554
  }, {
10388
10555
  target: {
10389
- type: "Command" | "Event" | "State";
10556
+ type: "Event" | "Command" | "State";
10390
10557
  name: string;
10391
10558
  fields?: Record<string, unknown> | undefined;
10392
10559
  };
@@ -10407,11 +10574,12 @@ export declare const modelSchema: z.ZodObject<{
10407
10574
  type: "topic";
10408
10575
  name: string;
10409
10576
  };
10577
+ id?: string | undefined;
10410
10578
  transform?: string | undefined;
10411
10579
  _additionalInstructions?: string | undefined;
10412
10580
  _withState?: {
10413
10581
  target: {
10414
- type: "Command" | "Event" | "State";
10582
+ type: "Event" | "Command" | "State";
10415
10583
  name: string;
10416
10584
  fields?: Record<string, unknown> | undefined;
10417
10585
  };
@@ -10435,6 +10603,7 @@ export declare const modelSchema: z.ZodObject<{
10435
10603
  type: "integration";
10436
10604
  systems: string[];
10437
10605
  };
10606
+ id?: string | undefined;
10438
10607
  transform?: string | undefined;
10439
10608
  _additionalInstructions?: string | undefined;
10440
10609
  } | undefined;
@@ -10647,7 +10816,7 @@ export declare const modelSchema: z.ZodObject<{
10647
10816
  }[];
10648
10817
  data?: {
10649
10818
  target: {
10650
- type: "Command" | "Event" | "State";
10819
+ type: "Event" | "Command" | "State";
10651
10820
  name: string;
10652
10821
  fields?: Record<string, unknown> | undefined;
10653
10822
  };
@@ -10668,11 +10837,12 @@ export declare const modelSchema: z.ZodObject<{
10668
10837
  type: "topic";
10669
10838
  name: string;
10670
10839
  };
10840
+ id?: string | undefined;
10671
10841
  transform?: string | undefined;
10672
10842
  _additionalInstructions?: string | undefined;
10673
10843
  _withState?: {
10674
10844
  target: {
10675
- type: "Command" | "Event" | "State";
10845
+ type: "Event" | "Command" | "State";
10676
10846
  name: string;
10677
10847
  fields?: Record<string, unknown> | undefined;
10678
10848
  };
@@ -10696,6 +10866,7 @@ export declare const modelSchema: z.ZodObject<{
10696
10866
  type: "integration";
10697
10867
  systems: string[];
10698
10868
  };
10869
+ id?: string | undefined;
10699
10870
  transform?: string | undefined;
10700
10871
  _additionalInstructions?: string | undefined;
10701
10872
  } | undefined;
@@ -10730,7 +10901,7 @@ export declare const modelSchema: z.ZodObject<{
10730
10901
  }[];
10731
10902
  data?: {
10732
10903
  target: {
10733
- type: "Command" | "Event" | "State";
10904
+ type: "Event" | "Command" | "State";
10734
10905
  name: string;
10735
10906
  fields?: Record<string, unknown> | undefined;
10736
10907
  };
@@ -10751,11 +10922,12 @@ export declare const modelSchema: z.ZodObject<{
10751
10922
  type: "topic";
10752
10923
  name: string;
10753
10924
  };
10925
+ id?: string | undefined;
10754
10926
  transform?: string | undefined;
10755
10927
  _additionalInstructions?: string | undefined;
10756
10928
  _withState?: {
10757
10929
  target: {
10758
- type: "Command" | "Event" | "State";
10930
+ type: "Event" | "Command" | "State";
10759
10931
  name: string;
10760
10932
  fields?: Record<string, unknown> | undefined;
10761
10933
  };
@@ -10779,6 +10951,7 @@ export declare const modelSchema: z.ZodObject<{
10779
10951
  type: "integration";
10780
10952
  systems: string[];
10781
10953
  };
10954
+ id?: string | undefined;
10782
10955
  transform?: string | undefined;
10783
10956
  _additionalInstructions?: string | undefined;
10784
10957
  } | undefined;
@@ -10820,7 +10993,7 @@ export declare const modelSchema: z.ZodObject<{
10820
10993
  }[];
10821
10994
  data?: {
10822
10995
  target: {
10823
- type: "Command" | "Event" | "State";
10996
+ type: "Event" | "Command" | "State";
10824
10997
  name: string;
10825
10998
  fields?: Record<string, unknown> | undefined;
10826
10999
  };
@@ -10841,11 +11014,12 @@ export declare const modelSchema: z.ZodObject<{
10841
11014
  type: "topic";
10842
11015
  name: string;
10843
11016
  };
11017
+ id?: string | undefined;
10844
11018
  transform?: string | undefined;
10845
11019
  _additionalInstructions?: string | undefined;
10846
11020
  _withState?: {
10847
11021
  target: {
10848
- type: "Command" | "Event" | "State";
11022
+ type: "Event" | "Command" | "State";
10849
11023
  name: string;
10850
11024
  fields?: Record<string, unknown> | undefined;
10851
11025
  };
@@ -10869,6 +11043,7 @@ export declare const modelSchema: z.ZodObject<{
10869
11043
  type: "integration";
10870
11044
  systems: string[];
10871
11045
  };
11046
+ id?: string | undefined;
10872
11047
  transform?: string | undefined;
10873
11048
  _additionalInstructions?: string | undefined;
10874
11049
  } | undefined;
@@ -10916,7 +11091,7 @@ export declare const modelSchema: z.ZodObject<{
10916
11091
  }[];
10917
11092
  data?: {
10918
11093
  target: {
10919
- type: "Command" | "Event" | "State";
11094
+ type: "Event" | "Command" | "State";
10920
11095
  name: string;
10921
11096
  fields?: Record<string, unknown> | undefined;
10922
11097
  };
@@ -10937,11 +11112,12 @@ export declare const modelSchema: z.ZodObject<{
10937
11112
  type: "topic";
10938
11113
  name: string;
10939
11114
  };
11115
+ id?: string | undefined;
10940
11116
  transform?: string | undefined;
10941
11117
  _additionalInstructions?: string | undefined;
10942
11118
  _withState?: {
10943
11119
  target: {
10944
- type: "Command" | "Event" | "State";
11120
+ type: "Event" | "Command" | "State";
10945
11121
  name: string;
10946
11122
  fields?: Record<string, unknown> | undefined;
10947
11123
  };
@@ -10965,6 +11141,7 @@ export declare const modelSchema: z.ZodObject<{
10965
11141
  type: "integration";
10966
11142
  systems: string[];
10967
11143
  };
11144
+ id?: string | undefined;
10968
11145
  transform?: string | undefined;
10969
11146
  _additionalInstructions?: string | undefined;
10970
11147
  } | undefined;
@@ -10996,16 +11173,17 @@ export declare const modelSchema: z.ZodObject<{
10996
11173
  server: z.ZodObject<{
10997
11174
  description: z.ZodString;
10998
11175
  data: z.ZodOptional<z.ZodArray<z.ZodObject<{
11176
+ id: z.ZodOptional<z.ZodString>;
10999
11177
  target: z.ZodObject<{
11000
11178
  type: z.ZodEnum<["Event", "Command", "State"]>;
11001
11179
  name: z.ZodString;
11002
11180
  fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
11003
11181
  }, "strip", z.ZodTypeAny, {
11004
- type: "Command" | "Event" | "State";
11182
+ type: "Event" | "Command" | "State";
11005
11183
  name: string;
11006
11184
  fields?: Record<string, unknown> | undefined;
11007
11185
  }, {
11008
- type: "Command" | "Event" | "State";
11186
+ type: "Event" | "Command" | "State";
11009
11187
  name: string;
11010
11188
  fields?: Record<string, unknown> | undefined;
11011
11189
  }>;
@@ -11071,7 +11249,7 @@ export declare const modelSchema: z.ZodObject<{
11071
11249
  _additionalInstructions: z.ZodOptional<z.ZodString>;
11072
11250
  }, "strip", z.ZodTypeAny, {
11073
11251
  target: {
11074
- type: "Command" | "Event" | "State";
11252
+ type: "Event" | "Command" | "State";
11075
11253
  name: string;
11076
11254
  fields?: Record<string, unknown> | undefined;
11077
11255
  };
@@ -11095,11 +11273,12 @@ export declare const modelSchema: z.ZodObject<{
11095
11273
  type: "integration";
11096
11274
  systems: string[];
11097
11275
  };
11276
+ id?: string | undefined;
11098
11277
  transform?: string | undefined;
11099
11278
  _additionalInstructions?: string | undefined;
11100
11279
  }, {
11101
11280
  target: {
11102
- type: "Command" | "Event" | "State";
11281
+ type: "Event" | "Command" | "State";
11103
11282
  name: string;
11104
11283
  fields?: Record<string, unknown> | undefined;
11105
11284
  };
@@ -11123,6 +11302,7 @@ export declare const modelSchema: z.ZodObject<{
11123
11302
  type: "integration";
11124
11303
  systems: string[];
11125
11304
  };
11305
+ id?: string | undefined;
11126
11306
  transform?: string | undefined;
11127
11307
  _additionalInstructions?: string | undefined;
11128
11308
  }>, "many">>;
@@ -11334,7 +11514,7 @@ export declare const modelSchema: z.ZodObject<{
11334
11514
  }[];
11335
11515
  data?: {
11336
11516
  target: {
11337
- type: "Command" | "Event" | "State";
11517
+ type: "Event" | "Command" | "State";
11338
11518
  name: string;
11339
11519
  fields?: Record<string, unknown> | undefined;
11340
11520
  };
@@ -11358,6 +11538,7 @@ export declare const modelSchema: z.ZodObject<{
11358
11538
  type: "integration";
11359
11539
  systems: string[];
11360
11540
  };
11541
+ id?: string | undefined;
11361
11542
  transform?: string | undefined;
11362
11543
  _additionalInstructions?: string | undefined;
11363
11544
  }[] | undefined;
@@ -11391,7 +11572,7 @@ export declare const modelSchema: z.ZodObject<{
11391
11572
  }[];
11392
11573
  data?: {
11393
11574
  target: {
11394
- type: "Command" | "Event" | "State";
11575
+ type: "Event" | "Command" | "State";
11395
11576
  name: string;
11396
11577
  fields?: Record<string, unknown> | undefined;
11397
11578
  };
@@ -11415,6 +11596,7 @@ export declare const modelSchema: z.ZodObject<{
11415
11596
  type: "integration";
11416
11597
  systems: string[];
11417
11598
  };
11599
+ id?: string | undefined;
11418
11600
  transform?: string | undefined;
11419
11601
  _additionalInstructions?: string | undefined;
11420
11602
  }[] | undefined;
@@ -11455,7 +11637,7 @@ export declare const modelSchema: z.ZodObject<{
11455
11637
  }[];
11456
11638
  data?: {
11457
11639
  target: {
11458
- type: "Command" | "Event" | "State";
11640
+ type: "Event" | "Command" | "State";
11459
11641
  name: string;
11460
11642
  fields?: Record<string, unknown> | undefined;
11461
11643
  };
@@ -11479,6 +11661,7 @@ export declare const modelSchema: z.ZodObject<{
11479
11661
  type: "integration";
11480
11662
  systems: string[];
11481
11663
  };
11664
+ id?: string | undefined;
11482
11665
  transform?: string | undefined;
11483
11666
  _additionalInstructions?: string | undefined;
11484
11667
  }[] | undefined;
@@ -11525,7 +11708,7 @@ export declare const modelSchema: z.ZodObject<{
11525
11708
  }[];
11526
11709
  data?: {
11527
11710
  target: {
11528
- type: "Command" | "Event" | "State";
11711
+ type: "Event" | "Command" | "State";
11529
11712
  name: string;
11530
11713
  fields?: Record<string, unknown> | undefined;
11531
11714
  };
@@ -11549,6 +11732,7 @@ export declare const modelSchema: z.ZodObject<{
11549
11732
  type: "integration";
11550
11733
  systems: string[];
11551
11734
  };
11735
+ id?: string | undefined;
11552
11736
  transform?: string | undefined;
11553
11737
  _additionalInstructions?: string | undefined;
11554
11738
  }[] | undefined;
@@ -11571,16 +11755,17 @@ export declare const modelSchema: z.ZodObject<{
11571
11755
  server: z.ZodObject<{
11572
11756
  description: z.ZodOptional<z.ZodString>;
11573
11757
  data: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
11758
+ id: z.ZodOptional<z.ZodString>;
11574
11759
  target: z.ZodObject<{
11575
11760
  type: z.ZodEnum<["Event", "Command", "State"]>;
11576
11761
  name: z.ZodString;
11577
11762
  fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
11578
11763
  }, "strip", z.ZodTypeAny, {
11579
- type: "Command" | "Event" | "State";
11764
+ type: "Event" | "Command" | "State";
11580
11765
  name: string;
11581
11766
  fields?: Record<string, unknown> | undefined;
11582
11767
  }, {
11583
- type: "Command" | "Event" | "State";
11768
+ type: "Event" | "Command" | "State";
11584
11769
  name: string;
11585
11770
  fields?: Record<string, unknown> | undefined;
11586
11771
  }>;
@@ -11642,16 +11827,17 @@ export declare const modelSchema: z.ZodObject<{
11642
11827
  transform: z.ZodOptional<z.ZodString>;
11643
11828
  _additionalInstructions: z.ZodOptional<z.ZodString>;
11644
11829
  _withState: z.ZodOptional<z.ZodLazy<z.ZodObject<{
11830
+ id: z.ZodOptional<z.ZodString>;
11645
11831
  target: z.ZodObject<{
11646
11832
  type: z.ZodEnum<["Event", "Command", "State"]>;
11647
11833
  name: z.ZodString;
11648
11834
  fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
11649
11835
  }, "strip", z.ZodTypeAny, {
11650
- type: "Command" | "Event" | "State";
11836
+ type: "Event" | "Command" | "State";
11651
11837
  name: string;
11652
11838
  fields?: Record<string, unknown> | undefined;
11653
11839
  }, {
11654
- type: "Command" | "Event" | "State";
11840
+ type: "Event" | "Command" | "State";
11655
11841
  name: string;
11656
11842
  fields?: Record<string, unknown> | undefined;
11657
11843
  }>;
@@ -11717,7 +11903,7 @@ export declare const modelSchema: z.ZodObject<{
11717
11903
  _additionalInstructions: z.ZodOptional<z.ZodString>;
11718
11904
  }, "strip", z.ZodTypeAny, {
11719
11905
  target: {
11720
- type: "Command" | "Event" | "State";
11906
+ type: "Event" | "Command" | "State";
11721
11907
  name: string;
11722
11908
  fields?: Record<string, unknown> | undefined;
11723
11909
  };
@@ -11741,11 +11927,12 @@ export declare const modelSchema: z.ZodObject<{
11741
11927
  type: "integration";
11742
11928
  systems: string[];
11743
11929
  };
11930
+ id?: string | undefined;
11744
11931
  transform?: string | undefined;
11745
11932
  _additionalInstructions?: string | undefined;
11746
11933
  }, {
11747
11934
  target: {
11748
- type: "Command" | "Event" | "State";
11935
+ type: "Event" | "Command" | "State";
11749
11936
  name: string;
11750
11937
  fields?: Record<string, unknown> | undefined;
11751
11938
  };
@@ -11769,12 +11956,13 @@ export declare const modelSchema: z.ZodObject<{
11769
11956
  type: "integration";
11770
11957
  systems: string[];
11771
11958
  };
11959
+ id?: string | undefined;
11772
11960
  transform?: string | undefined;
11773
11961
  _additionalInstructions?: string | undefined;
11774
11962
  }>>>;
11775
11963
  }, "strip", z.ZodTypeAny, {
11776
11964
  target: {
11777
- type: "Command" | "Event" | "State";
11965
+ type: "Event" | "Command" | "State";
11778
11966
  name: string;
11779
11967
  fields?: Record<string, unknown> | undefined;
11780
11968
  };
@@ -11795,11 +11983,12 @@ export declare const modelSchema: z.ZodObject<{
11795
11983
  type: "topic";
11796
11984
  name: string;
11797
11985
  };
11986
+ id?: string | undefined;
11798
11987
  transform?: string | undefined;
11799
11988
  _additionalInstructions?: string | undefined;
11800
11989
  _withState?: {
11801
11990
  target: {
11802
- type: "Command" | "Event" | "State";
11991
+ type: "Event" | "Command" | "State";
11803
11992
  name: string;
11804
11993
  fields?: Record<string, unknown> | undefined;
11805
11994
  };
@@ -11823,12 +12012,13 @@ export declare const modelSchema: z.ZodObject<{
11823
12012
  type: "integration";
11824
12013
  systems: string[];
11825
12014
  };
12015
+ id?: string | undefined;
11826
12016
  transform?: string | undefined;
11827
12017
  _additionalInstructions?: string | undefined;
11828
12018
  } | undefined;
11829
12019
  }, {
11830
12020
  target: {
11831
- type: "Command" | "Event" | "State";
12021
+ type: "Event" | "Command" | "State";
11832
12022
  name: string;
11833
12023
  fields?: Record<string, unknown> | undefined;
11834
12024
  };
@@ -11849,11 +12039,12 @@ export declare const modelSchema: z.ZodObject<{
11849
12039
  type: "topic";
11850
12040
  name: string;
11851
12041
  };
12042
+ id?: string | undefined;
11852
12043
  transform?: string | undefined;
11853
12044
  _additionalInstructions?: string | undefined;
11854
12045
  _withState?: {
11855
12046
  target: {
11856
- type: "Command" | "Event" | "State";
12047
+ type: "Event" | "Command" | "State";
11857
12048
  name: string;
11858
12049
  fields?: Record<string, unknown> | undefined;
11859
12050
  };
@@ -11877,20 +12068,22 @@ export declare const modelSchema: z.ZodObject<{
11877
12068
  type: "integration";
11878
12069
  systems: string[];
11879
12070
  };
12071
+ id?: string | undefined;
11880
12072
  transform?: string | undefined;
11881
12073
  _additionalInstructions?: string | undefined;
11882
12074
  } | undefined;
11883
12075
  }>, z.ZodObject<{
12076
+ id: z.ZodOptional<z.ZodString>;
11884
12077
  target: z.ZodObject<{
11885
12078
  type: z.ZodEnum<["Event", "Command", "State"]>;
11886
12079
  name: z.ZodString;
11887
12080
  fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
11888
12081
  }, "strip", z.ZodTypeAny, {
11889
- type: "Command" | "Event" | "State";
12082
+ type: "Event" | "Command" | "State";
11890
12083
  name: string;
11891
12084
  fields?: Record<string, unknown> | undefined;
11892
12085
  }, {
11893
- type: "Command" | "Event" | "State";
12086
+ type: "Event" | "Command" | "State";
11894
12087
  name: string;
11895
12088
  fields?: Record<string, unknown> | undefined;
11896
12089
  }>;
@@ -11956,7 +12149,7 @@ export declare const modelSchema: z.ZodObject<{
11956
12149
  _additionalInstructions: z.ZodOptional<z.ZodString>;
11957
12150
  }, "strip", z.ZodTypeAny, {
11958
12151
  target: {
11959
- type: "Command" | "Event" | "State";
12152
+ type: "Event" | "Command" | "State";
11960
12153
  name: string;
11961
12154
  fields?: Record<string, unknown> | undefined;
11962
12155
  };
@@ -11980,11 +12173,12 @@ export declare const modelSchema: z.ZodObject<{
11980
12173
  type: "integration";
11981
12174
  systems: string[];
11982
12175
  };
12176
+ id?: string | undefined;
11983
12177
  transform?: string | undefined;
11984
12178
  _additionalInstructions?: string | undefined;
11985
12179
  }, {
11986
12180
  target: {
11987
- type: "Command" | "Event" | "State";
12181
+ type: "Event" | "Command" | "State";
11988
12182
  name: string;
11989
12183
  fields?: Record<string, unknown> | undefined;
11990
12184
  };
@@ -12008,6 +12202,7 @@ export declare const modelSchema: z.ZodObject<{
12008
12202
  type: "integration";
12009
12203
  systems: string[];
12010
12204
  };
12205
+ id?: string | undefined;
12011
12206
  transform?: string | undefined;
12012
12207
  _additionalInstructions?: string | undefined;
12013
12208
  }>]>, "many">>;
@@ -12216,9 +12411,10 @@ export declare const modelSchema: z.ZodObject<{
12216
12411
  }[];
12217
12412
  id?: string | undefined;
12218
12413
  }[];
12414
+ description?: string | undefined;
12219
12415
  data?: ({
12220
12416
  target: {
12221
- type: "Command" | "Event" | "State";
12417
+ type: "Event" | "Command" | "State";
12222
12418
  name: string;
12223
12419
  fields?: Record<string, unknown> | undefined;
12224
12420
  };
@@ -12242,11 +12438,12 @@ export declare const modelSchema: z.ZodObject<{
12242
12438
  type: "integration";
12243
12439
  systems: string[];
12244
12440
  };
12441
+ id?: string | undefined;
12245
12442
  transform?: string | undefined;
12246
12443
  _additionalInstructions?: string | undefined;
12247
12444
  } | {
12248
12445
  target: {
12249
- type: "Command" | "Event" | "State";
12446
+ type: "Event" | "Command" | "State";
12250
12447
  name: string;
12251
12448
  fields?: Record<string, unknown> | undefined;
12252
12449
  };
@@ -12267,11 +12464,12 @@ export declare const modelSchema: z.ZodObject<{
12267
12464
  type: "topic";
12268
12465
  name: string;
12269
12466
  };
12467
+ id?: string | undefined;
12270
12468
  transform?: string | undefined;
12271
12469
  _additionalInstructions?: string | undefined;
12272
12470
  _withState?: {
12273
12471
  target: {
12274
- type: "Command" | "Event" | "State";
12472
+ type: "Event" | "Command" | "State";
12275
12473
  name: string;
12276
12474
  fields?: Record<string, unknown> | undefined;
12277
12475
  };
@@ -12295,11 +12493,11 @@ export declare const modelSchema: z.ZodObject<{
12295
12493
  type: "integration";
12296
12494
  systems: string[];
12297
12495
  };
12496
+ id?: string | undefined;
12298
12497
  transform?: string | undefined;
12299
12498
  _additionalInstructions?: string | undefined;
12300
12499
  } | undefined;
12301
12500
  })[] | undefined;
12302
- description?: string | undefined;
12303
12501
  }, {
12304
12502
  specs: {
12305
12503
  type: "gherkin";
@@ -12327,9 +12525,10 @@ export declare const modelSchema: z.ZodObject<{
12327
12525
  }[];
12328
12526
  id?: string | undefined;
12329
12527
  }[];
12528
+ description?: string | undefined;
12330
12529
  data?: ({
12331
12530
  target: {
12332
- type: "Command" | "Event" | "State";
12531
+ type: "Event" | "Command" | "State";
12333
12532
  name: string;
12334
12533
  fields?: Record<string, unknown> | undefined;
12335
12534
  };
@@ -12353,11 +12552,12 @@ export declare const modelSchema: z.ZodObject<{
12353
12552
  type: "integration";
12354
12553
  systems: string[];
12355
12554
  };
12555
+ id?: string | undefined;
12356
12556
  transform?: string | undefined;
12357
12557
  _additionalInstructions?: string | undefined;
12358
12558
  } | {
12359
12559
  target: {
12360
- type: "Command" | "Event" | "State";
12560
+ type: "Event" | "Command" | "State";
12361
12561
  name: string;
12362
12562
  fields?: Record<string, unknown> | undefined;
12363
12563
  };
@@ -12378,11 +12578,12 @@ export declare const modelSchema: z.ZodObject<{
12378
12578
  type: "topic";
12379
12579
  name: string;
12380
12580
  };
12581
+ id?: string | undefined;
12381
12582
  transform?: string | undefined;
12382
12583
  _additionalInstructions?: string | undefined;
12383
12584
  _withState?: {
12384
12585
  target: {
12385
- type: "Command" | "Event" | "State";
12586
+ type: "Event" | "Command" | "State";
12386
12587
  name: string;
12387
12588
  fields?: Record<string, unknown> | undefined;
12388
12589
  };
@@ -12406,11 +12607,11 @@ export declare const modelSchema: z.ZodObject<{
12406
12607
  type: "integration";
12407
12608
  systems: string[];
12408
12609
  };
12610
+ id?: string | undefined;
12409
12611
  transform?: string | undefined;
12410
12612
  _additionalInstructions?: string | undefined;
12411
12613
  } | undefined;
12412
12614
  })[] | undefined;
12413
- description?: string | undefined;
12414
12615
  }>;
12415
12616
  }, "strip", z.ZodTypeAny, {
12416
12617
  type: "react";
@@ -12442,9 +12643,10 @@ export declare const modelSchema: z.ZodObject<{
12442
12643
  }[];
12443
12644
  id?: string | undefined;
12444
12645
  }[];
12646
+ description?: string | undefined;
12445
12647
  data?: ({
12446
12648
  target: {
12447
- type: "Command" | "Event" | "State";
12649
+ type: "Event" | "Command" | "State";
12448
12650
  name: string;
12449
12651
  fields?: Record<string, unknown> | undefined;
12450
12652
  };
@@ -12468,11 +12670,12 @@ export declare const modelSchema: z.ZodObject<{
12468
12670
  type: "integration";
12469
12671
  systems: string[];
12470
12672
  };
12673
+ id?: string | undefined;
12471
12674
  transform?: string | undefined;
12472
12675
  _additionalInstructions?: string | undefined;
12473
12676
  } | {
12474
12677
  target: {
12475
- type: "Command" | "Event" | "State";
12678
+ type: "Event" | "Command" | "State";
12476
12679
  name: string;
12477
12680
  fields?: Record<string, unknown> | undefined;
12478
12681
  };
@@ -12493,11 +12696,12 @@ export declare const modelSchema: z.ZodObject<{
12493
12696
  type: "topic";
12494
12697
  name: string;
12495
12698
  };
12699
+ id?: string | undefined;
12496
12700
  transform?: string | undefined;
12497
12701
  _additionalInstructions?: string | undefined;
12498
12702
  _withState?: {
12499
12703
  target: {
12500
- type: "Command" | "Event" | "State";
12704
+ type: "Event" | "Command" | "State";
12501
12705
  name: string;
12502
12706
  fields?: Record<string, unknown> | undefined;
12503
12707
  };
@@ -12521,11 +12725,11 @@ export declare const modelSchema: z.ZodObject<{
12521
12725
  type: "integration";
12522
12726
  systems: string[];
12523
12727
  };
12728
+ id?: string | undefined;
12524
12729
  transform?: string | undefined;
12525
12730
  _additionalInstructions?: string | undefined;
12526
12731
  } | undefined;
12527
12732
  })[] | undefined;
12528
- description?: string | undefined;
12529
12733
  };
12530
12734
  stream?: string | undefined;
12531
12735
  id?: string | undefined;
@@ -12562,9 +12766,10 @@ export declare const modelSchema: z.ZodObject<{
12562
12766
  }[];
12563
12767
  id?: string | undefined;
12564
12768
  }[];
12769
+ description?: string | undefined;
12565
12770
  data?: ({
12566
12771
  target: {
12567
- type: "Command" | "Event" | "State";
12772
+ type: "Event" | "Command" | "State";
12568
12773
  name: string;
12569
12774
  fields?: Record<string, unknown> | undefined;
12570
12775
  };
@@ -12588,11 +12793,12 @@ export declare const modelSchema: z.ZodObject<{
12588
12793
  type: "integration";
12589
12794
  systems: string[];
12590
12795
  };
12796
+ id?: string | undefined;
12591
12797
  transform?: string | undefined;
12592
12798
  _additionalInstructions?: string | undefined;
12593
12799
  } | {
12594
12800
  target: {
12595
- type: "Command" | "Event" | "State";
12801
+ type: "Event" | "Command" | "State";
12596
12802
  name: string;
12597
12803
  fields?: Record<string, unknown> | undefined;
12598
12804
  };
@@ -12613,11 +12819,12 @@ export declare const modelSchema: z.ZodObject<{
12613
12819
  type: "topic";
12614
12820
  name: string;
12615
12821
  };
12822
+ id?: string | undefined;
12616
12823
  transform?: string | undefined;
12617
12824
  _additionalInstructions?: string | undefined;
12618
12825
  _withState?: {
12619
12826
  target: {
12620
- type: "Command" | "Event" | "State";
12827
+ type: "Event" | "Command" | "State";
12621
12828
  name: string;
12622
12829
  fields?: Record<string, unknown> | undefined;
12623
12830
  };
@@ -12641,11 +12848,11 @@ export declare const modelSchema: z.ZodObject<{
12641
12848
  type: "integration";
12642
12849
  systems: string[];
12643
12850
  };
12851
+ id?: string | undefined;
12644
12852
  transform?: string | undefined;
12645
12853
  _additionalInstructions?: string | undefined;
12646
12854
  } | undefined;
12647
12855
  })[] | undefined;
12648
- description?: string | undefined;
12649
12856
  };
12650
12857
  stream?: string | undefined;
12651
12858
  id?: string | undefined;
@@ -12730,7 +12937,7 @@ export declare const modelSchema: z.ZodObject<{
12730
12937
  }[];
12731
12938
  data?: {
12732
12939
  target: {
12733
- type: "Command" | "Event" | "State";
12940
+ type: "Event" | "Command" | "State";
12734
12941
  name: string;
12735
12942
  fields?: Record<string, unknown> | undefined;
12736
12943
  };
@@ -12751,11 +12958,12 @@ export declare const modelSchema: z.ZodObject<{
12751
12958
  type: "topic";
12752
12959
  name: string;
12753
12960
  };
12961
+ id?: string | undefined;
12754
12962
  transform?: string | undefined;
12755
12963
  _additionalInstructions?: string | undefined;
12756
12964
  _withState?: {
12757
12965
  target: {
12758
- type: "Command" | "Event" | "State";
12966
+ type: "Event" | "Command" | "State";
12759
12967
  name: string;
12760
12968
  fields?: Record<string, unknown> | undefined;
12761
12969
  };
@@ -12779,6 +12987,7 @@ export declare const modelSchema: z.ZodObject<{
12779
12987
  type: "integration";
12780
12988
  systems: string[];
12781
12989
  };
12990
+ id?: string | undefined;
12782
12991
  transform?: string | undefined;
12783
12992
  _additionalInstructions?: string | undefined;
12784
12993
  } | undefined;
@@ -12826,7 +13035,7 @@ export declare const modelSchema: z.ZodObject<{
12826
13035
  }[];
12827
13036
  data?: {
12828
13037
  target: {
12829
- type: "Command" | "Event" | "State";
13038
+ type: "Event" | "Command" | "State";
12830
13039
  name: string;
12831
13040
  fields?: Record<string, unknown> | undefined;
12832
13041
  };
@@ -12850,6 +13059,7 @@ export declare const modelSchema: z.ZodObject<{
12850
13059
  type: "integration";
12851
13060
  systems: string[];
12852
13061
  };
13062
+ id?: string | undefined;
12853
13063
  transform?: string | undefined;
12854
13064
  _additionalInstructions?: string | undefined;
12855
13065
  }[] | undefined;
@@ -12890,9 +13100,10 @@ export declare const modelSchema: z.ZodObject<{
12890
13100
  }[];
12891
13101
  id?: string | undefined;
12892
13102
  }[];
13103
+ description?: string | undefined;
12893
13104
  data?: ({
12894
13105
  target: {
12895
- type: "Command" | "Event" | "State";
13106
+ type: "Event" | "Command" | "State";
12896
13107
  name: string;
12897
13108
  fields?: Record<string, unknown> | undefined;
12898
13109
  };
@@ -12916,11 +13127,12 @@ export declare const modelSchema: z.ZodObject<{
12916
13127
  type: "integration";
12917
13128
  systems: string[];
12918
13129
  };
13130
+ id?: string | undefined;
12919
13131
  transform?: string | undefined;
12920
13132
  _additionalInstructions?: string | undefined;
12921
13133
  } | {
12922
13134
  target: {
12923
- type: "Command" | "Event" | "State";
13135
+ type: "Event" | "Command" | "State";
12924
13136
  name: string;
12925
13137
  fields?: Record<string, unknown> | undefined;
12926
13138
  };
@@ -12941,11 +13153,12 @@ export declare const modelSchema: z.ZodObject<{
12941
13153
  type: "topic";
12942
13154
  name: string;
12943
13155
  };
13156
+ id?: string | undefined;
12944
13157
  transform?: string | undefined;
12945
13158
  _additionalInstructions?: string | undefined;
12946
13159
  _withState?: {
12947
13160
  target: {
12948
- type: "Command" | "Event" | "State";
13161
+ type: "Event" | "Command" | "State";
12949
13162
  name: string;
12950
13163
  fields?: Record<string, unknown> | undefined;
12951
13164
  };
@@ -12969,11 +13182,11 @@ export declare const modelSchema: z.ZodObject<{
12969
13182
  type: "integration";
12970
13183
  systems: string[];
12971
13184
  };
13185
+ id?: string | undefined;
12972
13186
  transform?: string | undefined;
12973
13187
  _additionalInstructions?: string | undefined;
12974
13188
  } | undefined;
12975
13189
  })[] | undefined;
12976
- description?: string | undefined;
12977
13190
  };
12978
13191
  stream?: string | undefined;
12979
13192
  id?: string | undefined;
@@ -13033,7 +13246,7 @@ export declare const modelSchema: z.ZodObject<{
13033
13246
  }[];
13034
13247
  data?: {
13035
13248
  target: {
13036
- type: "Command" | "Event" | "State";
13249
+ type: "Event" | "Command" | "State";
13037
13250
  name: string;
13038
13251
  fields?: Record<string, unknown> | undefined;
13039
13252
  };
@@ -13054,11 +13267,12 @@ export declare const modelSchema: z.ZodObject<{
13054
13267
  type: "topic";
13055
13268
  name: string;
13056
13269
  };
13270
+ id?: string | undefined;
13057
13271
  transform?: string | undefined;
13058
13272
  _additionalInstructions?: string | undefined;
13059
13273
  _withState?: {
13060
13274
  target: {
13061
- type: "Command" | "Event" | "State";
13275
+ type: "Event" | "Command" | "State";
13062
13276
  name: string;
13063
13277
  fields?: Record<string, unknown> | undefined;
13064
13278
  };
@@ -13082,6 +13296,7 @@ export declare const modelSchema: z.ZodObject<{
13082
13296
  type: "integration";
13083
13297
  systems: string[];
13084
13298
  };
13299
+ id?: string | undefined;
13085
13300
  transform?: string | undefined;
13086
13301
  _additionalInstructions?: string | undefined;
13087
13302
  } | undefined;
@@ -13129,7 +13344,7 @@ export declare const modelSchema: z.ZodObject<{
13129
13344
  }[];
13130
13345
  data?: {
13131
13346
  target: {
13132
- type: "Command" | "Event" | "State";
13347
+ type: "Event" | "Command" | "State";
13133
13348
  name: string;
13134
13349
  fields?: Record<string, unknown> | undefined;
13135
13350
  };
@@ -13153,6 +13368,7 @@ export declare const modelSchema: z.ZodObject<{
13153
13368
  type: "integration";
13154
13369
  systems: string[];
13155
13370
  };
13371
+ id?: string | undefined;
13156
13372
  transform?: string | undefined;
13157
13373
  _additionalInstructions?: string | undefined;
13158
13374
  }[] | undefined;
@@ -13193,9 +13409,10 @@ export declare const modelSchema: z.ZodObject<{
13193
13409
  }[];
13194
13410
  id?: string | undefined;
13195
13411
  }[];
13412
+ description?: string | undefined;
13196
13413
  data?: ({
13197
13414
  target: {
13198
- type: "Command" | "Event" | "State";
13415
+ type: "Event" | "Command" | "State";
13199
13416
  name: string;
13200
13417
  fields?: Record<string, unknown> | undefined;
13201
13418
  };
@@ -13219,11 +13436,12 @@ export declare const modelSchema: z.ZodObject<{
13219
13436
  type: "integration";
13220
13437
  systems: string[];
13221
13438
  };
13439
+ id?: string | undefined;
13222
13440
  transform?: string | undefined;
13223
13441
  _additionalInstructions?: string | undefined;
13224
13442
  } | {
13225
13443
  target: {
13226
- type: "Command" | "Event" | "State";
13444
+ type: "Event" | "Command" | "State";
13227
13445
  name: string;
13228
13446
  fields?: Record<string, unknown> | undefined;
13229
13447
  };
@@ -13244,11 +13462,12 @@ export declare const modelSchema: z.ZodObject<{
13244
13462
  type: "topic";
13245
13463
  name: string;
13246
13464
  };
13465
+ id?: string | undefined;
13247
13466
  transform?: string | undefined;
13248
13467
  _additionalInstructions?: string | undefined;
13249
13468
  _withState?: {
13250
13469
  target: {
13251
- type: "Command" | "Event" | "State";
13470
+ type: "Event" | "Command" | "State";
13252
13471
  name: string;
13253
13472
  fields?: Record<string, unknown> | undefined;
13254
13473
  };
@@ -13272,11 +13491,11 @@ export declare const modelSchema: z.ZodObject<{
13272
13491
  type: "integration";
13273
13492
  systems: string[];
13274
13493
  };
13494
+ id?: string | undefined;
13275
13495
  transform?: string | undefined;
13276
13496
  _additionalInstructions?: string | undefined;
13277
13497
  } | undefined;
13278
13498
  })[] | undefined;
13279
- description?: string | undefined;
13280
13499
  };
13281
13500
  stream?: string | undefined;
13282
13501
  id?: string | undefined;
@@ -13391,8 +13610,8 @@ export declare const modelSchema: z.ZodObject<{
13391
13610
  type: z.ZodLiteral<"event">;
13392
13611
  source: z.ZodDefault<z.ZodEnum<["internal", "external"]>>;
13393
13612
  }, "strip", z.ZodTypeAny, {
13394
- type: "event";
13395
13613
  source: "internal" | "external";
13614
+ type: "event";
13396
13615
  name: string;
13397
13616
  fields: {
13398
13617
  type: string;
@@ -13509,21 +13728,21 @@ export declare const modelSchema: z.ZodObject<{
13509
13728
  kind: z.ZodEnum<["command", "event", "state"]>;
13510
13729
  name: z.ZodString;
13511
13730
  }, "strip", z.ZodTypeAny, {
13512
- kind: "command" | "event" | "state";
13513
13731
  name: string;
13514
- }, {
13515
13732
  kind: "command" | "event" | "state";
13733
+ }, {
13516
13734
  name: string;
13735
+ kind: "command" | "event" | "state";
13517
13736
  }>, "many">;
13518
13737
  }, "strip", z.ZodTypeAny, {
13519
13738
  messages: {
13520
- kind: "command" | "event" | "state";
13521
13739
  name: string;
13740
+ kind: "command" | "event" | "state";
13522
13741
  }[];
13523
13742
  }, {
13524
13743
  messages: {
13525
- kind: "command" | "event" | "state";
13526
13744
  name: string;
13745
+ kind: "command" | "event" | "state";
13527
13746
  }[];
13528
13747
  }>;
13529
13748
  }, "strip", z.ZodTypeAny, {
@@ -13535,8 +13754,8 @@ export declare const modelSchema: z.ZodObject<{
13535
13754
  };
13536
13755
  declares: {
13537
13756
  messages: {
13538
- kind: "command" | "event" | "state";
13539
13757
  name: string;
13758
+ kind: "command" | "event" | "state";
13540
13759
  }[];
13541
13760
  };
13542
13761
  }, {
@@ -13548,8 +13767,8 @@ export declare const modelSchema: z.ZodObject<{
13548
13767
  };
13549
13768
  declares: {
13550
13769
  messages: {
13551
- kind: "command" | "event" | "state";
13552
13770
  name: string;
13771
+ kind: "command" | "event" | "state";
13553
13772
  }[];
13554
13773
  };
13555
13774
  }>, "many">;
@@ -13569,8 +13788,8 @@ export declare const modelSchema: z.ZodObject<{
13569
13788
  version: number;
13570
13789
  } | undefined;
13571
13790
  } | {
13572
- type: "event";
13573
13791
  source: "internal" | "external";
13792
+ type: "event";
13574
13793
  name: string;
13575
13794
  fields: {
13576
13795
  type: string;
@@ -13637,7 +13856,7 @@ export declare const modelSchema: z.ZodObject<{
13637
13856
  }[];
13638
13857
  data?: {
13639
13858
  target: {
13640
- type: "Command" | "Event" | "State";
13859
+ type: "Event" | "Command" | "State";
13641
13860
  name: string;
13642
13861
  fields?: Record<string, unknown> | undefined;
13643
13862
  };
@@ -13658,11 +13877,12 @@ export declare const modelSchema: z.ZodObject<{
13658
13877
  type: "topic";
13659
13878
  name: string;
13660
13879
  };
13880
+ id?: string | undefined;
13661
13881
  transform?: string | undefined;
13662
13882
  _additionalInstructions?: string | undefined;
13663
13883
  _withState?: {
13664
13884
  target: {
13665
- type: "Command" | "Event" | "State";
13885
+ type: "Event" | "Command" | "State";
13666
13886
  name: string;
13667
13887
  fields?: Record<string, unknown> | undefined;
13668
13888
  };
@@ -13686,6 +13906,7 @@ export declare const modelSchema: z.ZodObject<{
13686
13906
  type: "integration";
13687
13907
  systems: string[];
13688
13908
  };
13909
+ id?: string | undefined;
13689
13910
  transform?: string | undefined;
13690
13911
  _additionalInstructions?: string | undefined;
13691
13912
  } | undefined;
@@ -13733,7 +13954,7 @@ export declare const modelSchema: z.ZodObject<{
13733
13954
  }[];
13734
13955
  data?: {
13735
13956
  target: {
13736
- type: "Command" | "Event" | "State";
13957
+ type: "Event" | "Command" | "State";
13737
13958
  name: string;
13738
13959
  fields?: Record<string, unknown> | undefined;
13739
13960
  };
@@ -13757,6 +13978,7 @@ export declare const modelSchema: z.ZodObject<{
13757
13978
  type: "integration";
13758
13979
  systems: string[];
13759
13980
  };
13981
+ id?: string | undefined;
13760
13982
  transform?: string | undefined;
13761
13983
  _additionalInstructions?: string | undefined;
13762
13984
  }[] | undefined;
@@ -13797,9 +14019,10 @@ export declare const modelSchema: z.ZodObject<{
13797
14019
  }[];
13798
14020
  id?: string | undefined;
13799
14021
  }[];
14022
+ description?: string | undefined;
13800
14023
  data?: ({
13801
14024
  target: {
13802
- type: "Command" | "Event" | "State";
14025
+ type: "Event" | "Command" | "State";
13803
14026
  name: string;
13804
14027
  fields?: Record<string, unknown> | undefined;
13805
14028
  };
@@ -13823,11 +14046,12 @@ export declare const modelSchema: z.ZodObject<{
13823
14046
  type: "integration";
13824
14047
  systems: string[];
13825
14048
  };
14049
+ id?: string | undefined;
13826
14050
  transform?: string | undefined;
13827
14051
  _additionalInstructions?: string | undefined;
13828
14052
  } | {
13829
14053
  target: {
13830
- type: "Command" | "Event" | "State";
14054
+ type: "Event" | "Command" | "State";
13831
14055
  name: string;
13832
14056
  fields?: Record<string, unknown> | undefined;
13833
14057
  };
@@ -13848,11 +14072,12 @@ export declare const modelSchema: z.ZodObject<{
13848
14072
  type: "topic";
13849
14073
  name: string;
13850
14074
  };
14075
+ id?: string | undefined;
13851
14076
  transform?: string | undefined;
13852
14077
  _additionalInstructions?: string | undefined;
13853
14078
  _withState?: {
13854
14079
  target: {
13855
- type: "Command" | "Event" | "State";
14080
+ type: "Event" | "Command" | "State";
13856
14081
  name: string;
13857
14082
  fields?: Record<string, unknown> | undefined;
13858
14083
  };
@@ -13876,11 +14101,11 @@ export declare const modelSchema: z.ZodObject<{
13876
14101
  type: "integration";
13877
14102
  systems: string[];
13878
14103
  };
14104
+ id?: string | undefined;
13879
14105
  transform?: string | undefined;
13880
14106
  _additionalInstructions?: string | undefined;
13881
14107
  } | undefined;
13882
14108
  })[] | undefined;
13883
- description?: string | undefined;
13884
14109
  };
13885
14110
  stream?: string | undefined;
13886
14111
  id?: string | undefined;
@@ -13912,8 +14137,8 @@ export declare const modelSchema: z.ZodObject<{
13912
14137
  };
13913
14138
  declares: {
13914
14139
  messages: {
13915
- kind: "command" | "event" | "state";
13916
14140
  name: string;
14141
+ kind: "command" | "event" | "state";
13917
14142
  }[];
13918
14143
  };
13919
14144
  }[];
@@ -14006,7 +14231,7 @@ export declare const modelSchema: z.ZodObject<{
14006
14231
  }[];
14007
14232
  data?: {
14008
14233
  target: {
14009
- type: "Command" | "Event" | "State";
14234
+ type: "Event" | "Command" | "State";
14010
14235
  name: string;
14011
14236
  fields?: Record<string, unknown> | undefined;
14012
14237
  };
@@ -14027,11 +14252,12 @@ export declare const modelSchema: z.ZodObject<{
14027
14252
  type: "topic";
14028
14253
  name: string;
14029
14254
  };
14255
+ id?: string | undefined;
14030
14256
  transform?: string | undefined;
14031
14257
  _additionalInstructions?: string | undefined;
14032
14258
  _withState?: {
14033
14259
  target: {
14034
- type: "Command" | "Event" | "State";
14260
+ type: "Event" | "Command" | "State";
14035
14261
  name: string;
14036
14262
  fields?: Record<string, unknown> | undefined;
14037
14263
  };
@@ -14055,6 +14281,7 @@ export declare const modelSchema: z.ZodObject<{
14055
14281
  type: "integration";
14056
14282
  systems: string[];
14057
14283
  };
14284
+ id?: string | undefined;
14058
14285
  transform?: string | undefined;
14059
14286
  _additionalInstructions?: string | undefined;
14060
14287
  } | undefined;
@@ -14102,7 +14329,7 @@ export declare const modelSchema: z.ZodObject<{
14102
14329
  }[];
14103
14330
  data?: {
14104
14331
  target: {
14105
- type: "Command" | "Event" | "State";
14332
+ type: "Event" | "Command" | "State";
14106
14333
  name: string;
14107
14334
  fields?: Record<string, unknown> | undefined;
14108
14335
  };
@@ -14126,6 +14353,7 @@ export declare const modelSchema: z.ZodObject<{
14126
14353
  type: "integration";
14127
14354
  systems: string[];
14128
14355
  };
14356
+ id?: string | undefined;
14129
14357
  transform?: string | undefined;
14130
14358
  _additionalInstructions?: string | undefined;
14131
14359
  }[] | undefined;
@@ -14166,9 +14394,10 @@ export declare const modelSchema: z.ZodObject<{
14166
14394
  }[];
14167
14395
  id?: string | undefined;
14168
14396
  }[];
14397
+ description?: string | undefined;
14169
14398
  data?: ({
14170
14399
  target: {
14171
- type: "Command" | "Event" | "State";
14400
+ type: "Event" | "Command" | "State";
14172
14401
  name: string;
14173
14402
  fields?: Record<string, unknown> | undefined;
14174
14403
  };
@@ -14192,11 +14421,12 @@ export declare const modelSchema: z.ZodObject<{
14192
14421
  type: "integration";
14193
14422
  systems: string[];
14194
14423
  };
14424
+ id?: string | undefined;
14195
14425
  transform?: string | undefined;
14196
14426
  _additionalInstructions?: string | undefined;
14197
14427
  } | {
14198
14428
  target: {
14199
- type: "Command" | "Event" | "State";
14429
+ type: "Event" | "Command" | "State";
14200
14430
  name: string;
14201
14431
  fields?: Record<string, unknown> | undefined;
14202
14432
  };
@@ -14217,11 +14447,12 @@ export declare const modelSchema: z.ZodObject<{
14217
14447
  type: "topic";
14218
14448
  name: string;
14219
14449
  };
14450
+ id?: string | undefined;
14220
14451
  transform?: string | undefined;
14221
14452
  _additionalInstructions?: string | undefined;
14222
14453
  _withState?: {
14223
14454
  target: {
14224
- type: "Command" | "Event" | "State";
14455
+ type: "Event" | "Command" | "State";
14225
14456
  name: string;
14226
14457
  fields?: Record<string, unknown> | undefined;
14227
14458
  };
@@ -14245,11 +14476,11 @@ export declare const modelSchema: z.ZodObject<{
14245
14476
  type: "integration";
14246
14477
  systems: string[];
14247
14478
  };
14479
+ id?: string | undefined;
14248
14480
  transform?: string | undefined;
14249
14481
  _additionalInstructions?: string | undefined;
14250
14482
  } | undefined;
14251
14483
  })[] | undefined;
14252
- description?: string | undefined;
14253
14484
  };
14254
14485
  stream?: string | undefined;
14255
14486
  id?: string | undefined;
@@ -14281,8 +14512,8 @@ export declare const modelSchema: z.ZodObject<{
14281
14512
  };
14282
14513
  declares: {
14283
14514
  messages: {
14284
- kind: "command" | "event" | "state";
14285
14515
  name: string;
14516
+ kind: "command" | "event" | "state";
14286
14517
  }[];
14287
14518
  };
14288
14519
  }[];