@auto-engineer/narrative 1.5.4 → 1.6.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.
@@ -1791,6 +1791,69 @@ declare const MessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1791
1791
  version?: number | undefined;
1792
1792
  } | undefined;
1793
1793
  }>]>;
1794
+ export declare const MappingFieldRefSchema: z.ZodObject<{
1795
+ type: z.ZodEnum<["Command", "Event", "State", "Query"]>;
1796
+ name: z.ZodString;
1797
+ field: z.ZodString;
1798
+ }, "strip", z.ZodTypeAny, {
1799
+ type: "Command" | "Event" | "State" | "Query";
1800
+ name: string;
1801
+ field: string;
1802
+ }, {
1803
+ type: "Command" | "Event" | "State" | "Query";
1804
+ name: string;
1805
+ field: string;
1806
+ }>;
1807
+ export declare const MappingEntrySchema: z.ZodObject<{
1808
+ source: z.ZodObject<{
1809
+ type: z.ZodEnum<["Command", "Event", "State", "Query"]>;
1810
+ name: z.ZodString;
1811
+ field: z.ZodString;
1812
+ }, "strip", z.ZodTypeAny, {
1813
+ type: "Command" | "Event" | "State" | "Query";
1814
+ name: string;
1815
+ field: string;
1816
+ }, {
1817
+ type: "Command" | "Event" | "State" | "Query";
1818
+ name: string;
1819
+ field: string;
1820
+ }>;
1821
+ target: z.ZodObject<{
1822
+ type: z.ZodEnum<["Command", "Event", "State", "Query"]>;
1823
+ name: z.ZodString;
1824
+ field: z.ZodString;
1825
+ }, "strip", z.ZodTypeAny, {
1826
+ type: "Command" | "Event" | "State" | "Query";
1827
+ name: string;
1828
+ field: string;
1829
+ }, {
1830
+ type: "Command" | "Event" | "State" | "Query";
1831
+ name: string;
1832
+ field: string;
1833
+ }>;
1834
+ }, "strip", z.ZodTypeAny, {
1835
+ target: {
1836
+ type: "Command" | "Event" | "State" | "Query";
1837
+ name: string;
1838
+ field: string;
1839
+ };
1840
+ source: {
1841
+ type: "Command" | "Event" | "State" | "Query";
1842
+ name: string;
1843
+ field: string;
1844
+ };
1845
+ }, {
1846
+ target: {
1847
+ type: "Command" | "Event" | "State" | "Query";
1848
+ name: string;
1849
+ field: string;
1850
+ };
1851
+ source: {
1852
+ type: "Command" | "Event" | "State" | "Query";
1853
+ name: string;
1854
+ field: string;
1855
+ };
1856
+ }>;
1794
1857
  declare const StepErrorSchema: z.ZodObject<{
1795
1858
  type: z.ZodEnum<["IllegalStateError", "ValidationError", "NotFoundError"]>;
1796
1859
  message: z.ZodOptional<z.ZodString>;
@@ -2297,6 +2360,56 @@ declare const CommandSliceSchema: z.ZodObject<{
2297
2360
  specs?: ClientSpecNode[] | undefined;
2298
2361
  }>;
2299
2362
  request: z.ZodOptional<z.ZodString>;
2363
+ mappings: z.ZodOptional<z.ZodArray<z.ZodObject<{
2364
+ source: z.ZodObject<{
2365
+ type: z.ZodEnum<["Command", "Event", "State", "Query"]>;
2366
+ name: z.ZodString;
2367
+ field: z.ZodString;
2368
+ }, "strip", z.ZodTypeAny, {
2369
+ type: "Command" | "Event" | "State" | "Query";
2370
+ name: string;
2371
+ field: string;
2372
+ }, {
2373
+ type: "Command" | "Event" | "State" | "Query";
2374
+ name: string;
2375
+ field: string;
2376
+ }>;
2377
+ target: z.ZodObject<{
2378
+ type: z.ZodEnum<["Command", "Event", "State", "Query"]>;
2379
+ name: z.ZodString;
2380
+ field: z.ZodString;
2381
+ }, "strip", z.ZodTypeAny, {
2382
+ type: "Command" | "Event" | "State" | "Query";
2383
+ name: string;
2384
+ field: string;
2385
+ }, {
2386
+ type: "Command" | "Event" | "State" | "Query";
2387
+ name: string;
2388
+ field: string;
2389
+ }>;
2390
+ }, "strip", z.ZodTypeAny, {
2391
+ target: {
2392
+ type: "Command" | "Event" | "State" | "Query";
2393
+ name: string;
2394
+ field: string;
2395
+ };
2396
+ source: {
2397
+ type: "Command" | "Event" | "State" | "Query";
2398
+ name: string;
2399
+ field: string;
2400
+ };
2401
+ }, {
2402
+ target: {
2403
+ type: "Command" | "Event" | "State" | "Query";
2404
+ name: string;
2405
+ field: string;
2406
+ };
2407
+ source: {
2408
+ type: "Command" | "Event" | "State" | "Query";
2409
+ name: string;
2410
+ field: string;
2411
+ };
2412
+ }>, "many">>;
2300
2413
  server: z.ZodObject<{
2301
2414
  description: z.ZodString;
2302
2415
  data: z.ZodOptional<z.ZodObject<{
@@ -3473,6 +3586,18 @@ declare const CommandSliceSchema: z.ZodObject<{
3473
3586
  via?: string[] | undefined;
3474
3587
  additionalInstructions?: string | undefined;
3475
3588
  request?: string | undefined;
3589
+ mappings?: {
3590
+ target: {
3591
+ type: "Command" | "Event" | "State" | "Query";
3592
+ name: string;
3593
+ field: string;
3594
+ };
3595
+ source: {
3596
+ type: "Command" | "Event" | "State" | "Query";
3597
+ name: string;
3598
+ field: string;
3599
+ };
3600
+ }[] | undefined;
3476
3601
  }, {
3477
3602
  type: "command";
3478
3603
  name: string;
@@ -3603,6 +3728,18 @@ declare const CommandSliceSchema: z.ZodObject<{
3603
3728
  via?: string[] | undefined;
3604
3729
  additionalInstructions?: string | undefined;
3605
3730
  request?: string | undefined;
3731
+ mappings?: {
3732
+ target: {
3733
+ type: "Command" | "Event" | "State" | "Query";
3734
+ name: string;
3735
+ field: string;
3736
+ };
3737
+ source: {
3738
+ type: "Command" | "Event" | "State" | "Query";
3739
+ name: string;
3740
+ field: string;
3741
+ };
3742
+ }[] | undefined;
3606
3743
  }>;
3607
3744
  declare const QuerySliceSchema: z.ZodObject<{
3608
3745
  name: z.ZodString;
@@ -3621,6 +3758,56 @@ declare const QuerySliceSchema: z.ZodObject<{
3621
3758
  specs?: ClientSpecNode[] | undefined;
3622
3759
  }>;
3623
3760
  request: z.ZodOptional<z.ZodString>;
3761
+ mappings: z.ZodOptional<z.ZodArray<z.ZodObject<{
3762
+ source: z.ZodObject<{
3763
+ type: z.ZodEnum<["Command", "Event", "State", "Query"]>;
3764
+ name: z.ZodString;
3765
+ field: z.ZodString;
3766
+ }, "strip", z.ZodTypeAny, {
3767
+ type: "Command" | "Event" | "State" | "Query";
3768
+ name: string;
3769
+ field: string;
3770
+ }, {
3771
+ type: "Command" | "Event" | "State" | "Query";
3772
+ name: string;
3773
+ field: string;
3774
+ }>;
3775
+ target: z.ZodObject<{
3776
+ type: z.ZodEnum<["Command", "Event", "State", "Query"]>;
3777
+ name: z.ZodString;
3778
+ field: z.ZodString;
3779
+ }, "strip", z.ZodTypeAny, {
3780
+ type: "Command" | "Event" | "State" | "Query";
3781
+ name: string;
3782
+ field: string;
3783
+ }, {
3784
+ type: "Command" | "Event" | "State" | "Query";
3785
+ name: string;
3786
+ field: string;
3787
+ }>;
3788
+ }, "strip", z.ZodTypeAny, {
3789
+ target: {
3790
+ type: "Command" | "Event" | "State" | "Query";
3791
+ name: string;
3792
+ field: string;
3793
+ };
3794
+ source: {
3795
+ type: "Command" | "Event" | "State" | "Query";
3796
+ name: string;
3797
+ field: string;
3798
+ };
3799
+ }, {
3800
+ target: {
3801
+ type: "Command" | "Event" | "State" | "Query";
3802
+ name: string;
3803
+ field: string;
3804
+ };
3805
+ source: {
3806
+ type: "Command" | "Event" | "State" | "Query";
3807
+ name: string;
3808
+ field: string;
3809
+ };
3810
+ }>, "many">>;
3624
3811
  server: z.ZodObject<{
3625
3812
  description: z.ZodString;
3626
3813
  data: z.ZodOptional<z.ZodObject<{
@@ -4797,6 +4984,18 @@ declare const QuerySliceSchema: z.ZodObject<{
4797
4984
  via?: string[] | undefined;
4798
4985
  additionalInstructions?: string | undefined;
4799
4986
  request?: string | undefined;
4987
+ mappings?: {
4988
+ target: {
4989
+ type: "Command" | "Event" | "State" | "Query";
4990
+ name: string;
4991
+ field: string;
4992
+ };
4993
+ source: {
4994
+ type: "Command" | "Event" | "State" | "Query";
4995
+ name: string;
4996
+ field: string;
4997
+ };
4998
+ }[] | undefined;
4800
4999
  }, {
4801
5000
  type: "query";
4802
5001
  name: string;
@@ -4927,6 +5126,18 @@ declare const QuerySliceSchema: z.ZodObject<{
4927
5126
  via?: string[] | undefined;
4928
5127
  additionalInstructions?: string | undefined;
4929
5128
  request?: string | undefined;
5129
+ mappings?: {
5130
+ target: {
5131
+ type: "Command" | "Event" | "State" | "Query";
5132
+ name: string;
5133
+ field: string;
5134
+ };
5135
+ source: {
5136
+ type: "Command" | "Event" | "State" | "Query";
5137
+ name: string;
5138
+ field: string;
5139
+ };
5140
+ }[] | undefined;
4930
5141
  }>;
4931
5142
  declare const ReactSliceSchema: z.ZodObject<{
4932
5143
  name: z.ZodString;
@@ -6292,6 +6503,56 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6292
6503
  specs?: ClientSpecNode[] | undefined;
6293
6504
  }>;
6294
6505
  request: z.ZodOptional<z.ZodString>;
6506
+ mappings: z.ZodOptional<z.ZodArray<z.ZodObject<{
6507
+ source: z.ZodObject<{
6508
+ type: z.ZodEnum<["Command", "Event", "State", "Query"]>;
6509
+ name: z.ZodString;
6510
+ field: z.ZodString;
6511
+ }, "strip", z.ZodTypeAny, {
6512
+ type: "Command" | "Event" | "State" | "Query";
6513
+ name: string;
6514
+ field: string;
6515
+ }, {
6516
+ type: "Command" | "Event" | "State" | "Query";
6517
+ name: string;
6518
+ field: string;
6519
+ }>;
6520
+ target: z.ZodObject<{
6521
+ type: z.ZodEnum<["Command", "Event", "State", "Query"]>;
6522
+ name: z.ZodString;
6523
+ field: z.ZodString;
6524
+ }, "strip", z.ZodTypeAny, {
6525
+ type: "Command" | "Event" | "State" | "Query";
6526
+ name: string;
6527
+ field: string;
6528
+ }, {
6529
+ type: "Command" | "Event" | "State" | "Query";
6530
+ name: string;
6531
+ field: string;
6532
+ }>;
6533
+ }, "strip", z.ZodTypeAny, {
6534
+ target: {
6535
+ type: "Command" | "Event" | "State" | "Query";
6536
+ name: string;
6537
+ field: string;
6538
+ };
6539
+ source: {
6540
+ type: "Command" | "Event" | "State" | "Query";
6541
+ name: string;
6542
+ field: string;
6543
+ };
6544
+ }, {
6545
+ target: {
6546
+ type: "Command" | "Event" | "State" | "Query";
6547
+ name: string;
6548
+ field: string;
6549
+ };
6550
+ source: {
6551
+ type: "Command" | "Event" | "State" | "Query";
6552
+ name: string;
6553
+ field: string;
6554
+ };
6555
+ }>, "many">>;
6295
6556
  server: z.ZodObject<{
6296
6557
  description: z.ZodString;
6297
6558
  data: z.ZodOptional<z.ZodObject<{
@@ -7468,6 +7729,18 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7468
7729
  via?: string[] | undefined;
7469
7730
  additionalInstructions?: string | undefined;
7470
7731
  request?: string | undefined;
7732
+ mappings?: {
7733
+ target: {
7734
+ type: "Command" | "Event" | "State" | "Query";
7735
+ name: string;
7736
+ field: string;
7737
+ };
7738
+ source: {
7739
+ type: "Command" | "Event" | "State" | "Query";
7740
+ name: string;
7741
+ field: string;
7742
+ };
7743
+ }[] | undefined;
7471
7744
  }, {
7472
7745
  type: "command";
7473
7746
  name: string;
@@ -7598,6 +7871,18 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7598
7871
  via?: string[] | undefined;
7599
7872
  additionalInstructions?: string | undefined;
7600
7873
  request?: string | undefined;
7874
+ mappings?: {
7875
+ target: {
7876
+ type: "Command" | "Event" | "State" | "Query";
7877
+ name: string;
7878
+ field: string;
7879
+ };
7880
+ source: {
7881
+ type: "Command" | "Event" | "State" | "Query";
7882
+ name: string;
7883
+ field: string;
7884
+ };
7885
+ }[] | undefined;
7601
7886
  }>, z.ZodObject<{
7602
7887
  name: z.ZodString;
7603
7888
  id: z.ZodOptional<z.ZodString>;
@@ -7615,6 +7900,56 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7615
7900
  specs?: ClientSpecNode[] | undefined;
7616
7901
  }>;
7617
7902
  request: z.ZodOptional<z.ZodString>;
7903
+ mappings: z.ZodOptional<z.ZodArray<z.ZodObject<{
7904
+ source: z.ZodObject<{
7905
+ type: z.ZodEnum<["Command", "Event", "State", "Query"]>;
7906
+ name: z.ZodString;
7907
+ field: z.ZodString;
7908
+ }, "strip", z.ZodTypeAny, {
7909
+ type: "Command" | "Event" | "State" | "Query";
7910
+ name: string;
7911
+ field: string;
7912
+ }, {
7913
+ type: "Command" | "Event" | "State" | "Query";
7914
+ name: string;
7915
+ field: string;
7916
+ }>;
7917
+ target: z.ZodObject<{
7918
+ type: z.ZodEnum<["Command", "Event", "State", "Query"]>;
7919
+ name: z.ZodString;
7920
+ field: z.ZodString;
7921
+ }, "strip", z.ZodTypeAny, {
7922
+ type: "Command" | "Event" | "State" | "Query";
7923
+ name: string;
7924
+ field: string;
7925
+ }, {
7926
+ type: "Command" | "Event" | "State" | "Query";
7927
+ name: string;
7928
+ field: string;
7929
+ }>;
7930
+ }, "strip", z.ZodTypeAny, {
7931
+ target: {
7932
+ type: "Command" | "Event" | "State" | "Query";
7933
+ name: string;
7934
+ field: string;
7935
+ };
7936
+ source: {
7937
+ type: "Command" | "Event" | "State" | "Query";
7938
+ name: string;
7939
+ field: string;
7940
+ };
7941
+ }, {
7942
+ target: {
7943
+ type: "Command" | "Event" | "State" | "Query";
7944
+ name: string;
7945
+ field: string;
7946
+ };
7947
+ source: {
7948
+ type: "Command" | "Event" | "State" | "Query";
7949
+ name: string;
7950
+ field: string;
7951
+ };
7952
+ }>, "many">>;
7618
7953
  server: z.ZodObject<{
7619
7954
  description: z.ZodString;
7620
7955
  data: z.ZodOptional<z.ZodObject<{
@@ -8791,6 +9126,18 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
8791
9126
  via?: string[] | undefined;
8792
9127
  additionalInstructions?: string | undefined;
8793
9128
  request?: string | undefined;
9129
+ mappings?: {
9130
+ target: {
9131
+ type: "Command" | "Event" | "State" | "Query";
9132
+ name: string;
9133
+ field: string;
9134
+ };
9135
+ source: {
9136
+ type: "Command" | "Event" | "State" | "Query";
9137
+ name: string;
9138
+ field: string;
9139
+ };
9140
+ }[] | undefined;
8794
9141
  }, {
8795
9142
  type: "query";
8796
9143
  name: string;
@@ -8921,6 +9268,18 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
8921
9268
  via?: string[] | undefined;
8922
9269
  additionalInstructions?: string | undefined;
8923
9270
  request?: string | undefined;
9271
+ mappings?: {
9272
+ target: {
9273
+ type: "Command" | "Event" | "State" | "Query";
9274
+ name: string;
9275
+ field: string;
9276
+ };
9277
+ source: {
9278
+ type: "Command" | "Event" | "State" | "Query";
9279
+ name: string;
9280
+ field: string;
9281
+ };
9282
+ }[] | undefined;
8924
9283
  }>, z.ZodObject<{
8925
9284
  name: z.ZodString;
8926
9285
  id: z.ZodOptional<z.ZodString>;
@@ -10288,6 +10647,56 @@ declare const NarrativeSchema: z.ZodObject<{
10288
10647
  specs?: ClientSpecNode[] | undefined;
10289
10648
  }>;
10290
10649
  request: z.ZodOptional<z.ZodString>;
10650
+ mappings: z.ZodOptional<z.ZodArray<z.ZodObject<{
10651
+ source: z.ZodObject<{
10652
+ type: z.ZodEnum<["Command", "Event", "State", "Query"]>;
10653
+ name: z.ZodString;
10654
+ field: z.ZodString;
10655
+ }, "strip", z.ZodTypeAny, {
10656
+ type: "Command" | "Event" | "State" | "Query";
10657
+ name: string;
10658
+ field: string;
10659
+ }, {
10660
+ type: "Command" | "Event" | "State" | "Query";
10661
+ name: string;
10662
+ field: string;
10663
+ }>;
10664
+ target: z.ZodObject<{
10665
+ type: z.ZodEnum<["Command", "Event", "State", "Query"]>;
10666
+ name: z.ZodString;
10667
+ field: z.ZodString;
10668
+ }, "strip", z.ZodTypeAny, {
10669
+ type: "Command" | "Event" | "State" | "Query";
10670
+ name: string;
10671
+ field: string;
10672
+ }, {
10673
+ type: "Command" | "Event" | "State" | "Query";
10674
+ name: string;
10675
+ field: string;
10676
+ }>;
10677
+ }, "strip", z.ZodTypeAny, {
10678
+ target: {
10679
+ type: "Command" | "Event" | "State" | "Query";
10680
+ name: string;
10681
+ field: string;
10682
+ };
10683
+ source: {
10684
+ type: "Command" | "Event" | "State" | "Query";
10685
+ name: string;
10686
+ field: string;
10687
+ };
10688
+ }, {
10689
+ target: {
10690
+ type: "Command" | "Event" | "State" | "Query";
10691
+ name: string;
10692
+ field: string;
10693
+ };
10694
+ source: {
10695
+ type: "Command" | "Event" | "State" | "Query";
10696
+ name: string;
10697
+ field: string;
10698
+ };
10699
+ }>, "many">>;
10291
10700
  server: z.ZodObject<{
10292
10701
  description: z.ZodString;
10293
10702
  data: z.ZodOptional<z.ZodObject<{
@@ -11464,6 +11873,18 @@ declare const NarrativeSchema: z.ZodObject<{
11464
11873
  via?: string[] | undefined;
11465
11874
  additionalInstructions?: string | undefined;
11466
11875
  request?: string | undefined;
11876
+ mappings?: {
11877
+ target: {
11878
+ type: "Command" | "Event" | "State" | "Query";
11879
+ name: string;
11880
+ field: string;
11881
+ };
11882
+ source: {
11883
+ type: "Command" | "Event" | "State" | "Query";
11884
+ name: string;
11885
+ field: string;
11886
+ };
11887
+ }[] | undefined;
11467
11888
  }, {
11468
11889
  type: "command";
11469
11890
  name: string;
@@ -11594,6 +12015,18 @@ declare const NarrativeSchema: z.ZodObject<{
11594
12015
  via?: string[] | undefined;
11595
12016
  additionalInstructions?: string | undefined;
11596
12017
  request?: string | undefined;
12018
+ mappings?: {
12019
+ target: {
12020
+ type: "Command" | "Event" | "State" | "Query";
12021
+ name: string;
12022
+ field: string;
12023
+ };
12024
+ source: {
12025
+ type: "Command" | "Event" | "State" | "Query";
12026
+ name: string;
12027
+ field: string;
12028
+ };
12029
+ }[] | undefined;
11597
12030
  }>, z.ZodObject<{
11598
12031
  name: z.ZodString;
11599
12032
  id: z.ZodOptional<z.ZodString>;
@@ -11611,6 +12044,56 @@ declare const NarrativeSchema: z.ZodObject<{
11611
12044
  specs?: ClientSpecNode[] | undefined;
11612
12045
  }>;
11613
12046
  request: z.ZodOptional<z.ZodString>;
12047
+ mappings: z.ZodOptional<z.ZodArray<z.ZodObject<{
12048
+ source: z.ZodObject<{
12049
+ type: z.ZodEnum<["Command", "Event", "State", "Query"]>;
12050
+ name: z.ZodString;
12051
+ field: z.ZodString;
12052
+ }, "strip", z.ZodTypeAny, {
12053
+ type: "Command" | "Event" | "State" | "Query";
12054
+ name: string;
12055
+ field: string;
12056
+ }, {
12057
+ type: "Command" | "Event" | "State" | "Query";
12058
+ name: string;
12059
+ field: string;
12060
+ }>;
12061
+ target: z.ZodObject<{
12062
+ type: z.ZodEnum<["Command", "Event", "State", "Query"]>;
12063
+ name: z.ZodString;
12064
+ field: z.ZodString;
12065
+ }, "strip", z.ZodTypeAny, {
12066
+ type: "Command" | "Event" | "State" | "Query";
12067
+ name: string;
12068
+ field: string;
12069
+ }, {
12070
+ type: "Command" | "Event" | "State" | "Query";
12071
+ name: string;
12072
+ field: string;
12073
+ }>;
12074
+ }, "strip", z.ZodTypeAny, {
12075
+ target: {
12076
+ type: "Command" | "Event" | "State" | "Query";
12077
+ name: string;
12078
+ field: string;
12079
+ };
12080
+ source: {
12081
+ type: "Command" | "Event" | "State" | "Query";
12082
+ name: string;
12083
+ field: string;
12084
+ };
12085
+ }, {
12086
+ target: {
12087
+ type: "Command" | "Event" | "State" | "Query";
12088
+ name: string;
12089
+ field: string;
12090
+ };
12091
+ source: {
12092
+ type: "Command" | "Event" | "State" | "Query";
12093
+ name: string;
12094
+ field: string;
12095
+ };
12096
+ }>, "many">>;
11614
12097
  server: z.ZodObject<{
11615
12098
  description: z.ZodString;
11616
12099
  data: z.ZodOptional<z.ZodObject<{
@@ -12787,6 +13270,18 @@ declare const NarrativeSchema: z.ZodObject<{
12787
13270
  via?: string[] | undefined;
12788
13271
  additionalInstructions?: string | undefined;
12789
13272
  request?: string | undefined;
13273
+ mappings?: {
13274
+ target: {
13275
+ type: "Command" | "Event" | "State" | "Query";
13276
+ name: string;
13277
+ field: string;
13278
+ };
13279
+ source: {
13280
+ type: "Command" | "Event" | "State" | "Query";
13281
+ name: string;
13282
+ field: string;
13283
+ };
13284
+ }[] | undefined;
12790
13285
  }, {
12791
13286
  type: "query";
12792
13287
  name: string;
@@ -12917,6 +13412,18 @@ declare const NarrativeSchema: z.ZodObject<{
12917
13412
  via?: string[] | undefined;
12918
13413
  additionalInstructions?: string | undefined;
12919
13414
  request?: string | undefined;
13415
+ mappings?: {
13416
+ target: {
13417
+ type: "Command" | "Event" | "State" | "Query";
13418
+ name: string;
13419
+ field: string;
13420
+ };
13421
+ source: {
13422
+ type: "Command" | "Event" | "State" | "Query";
13423
+ name: string;
13424
+ field: string;
13425
+ };
13426
+ }[] | undefined;
12920
13427
  }>, z.ZodObject<{
12921
13428
  name: z.ZodString;
12922
13429
  id: z.ZodOptional<z.ZodString>;
@@ -14396,6 +14903,18 @@ declare const NarrativeSchema: z.ZodObject<{
14396
14903
  via?: string[] | undefined;
14397
14904
  additionalInstructions?: string | undefined;
14398
14905
  request?: string | undefined;
14906
+ mappings?: {
14907
+ target: {
14908
+ type: "Command" | "Event" | "State" | "Query";
14909
+ name: string;
14910
+ field: string;
14911
+ };
14912
+ source: {
14913
+ type: "Command" | "Event" | "State" | "Query";
14914
+ name: string;
14915
+ field: string;
14916
+ };
14917
+ }[] | undefined;
14399
14918
  } | {
14400
14919
  type: "query";
14401
14920
  name: string;
@@ -14526,6 +15045,18 @@ declare const NarrativeSchema: z.ZodObject<{
14526
15045
  via?: string[] | undefined;
14527
15046
  additionalInstructions?: string | undefined;
14528
15047
  request?: string | undefined;
15048
+ mappings?: {
15049
+ target: {
15050
+ type: "Command" | "Event" | "State" | "Query";
15051
+ name: string;
15052
+ field: string;
15053
+ };
15054
+ source: {
15055
+ type: "Command" | "Event" | "State" | "Query";
15056
+ name: string;
15057
+ field: string;
15058
+ };
15059
+ }[] | undefined;
14529
15060
  } | {
14530
15061
  type: "react";
14531
15062
  name: string;
@@ -14799,6 +15330,18 @@ declare const NarrativeSchema: z.ZodObject<{
14799
15330
  via?: string[] | undefined;
14800
15331
  additionalInstructions?: string | undefined;
14801
15332
  request?: string | undefined;
15333
+ mappings?: {
15334
+ target: {
15335
+ type: "Command" | "Event" | "State" | "Query";
15336
+ name: string;
15337
+ field: string;
15338
+ };
15339
+ source: {
15340
+ type: "Command" | "Event" | "State" | "Query";
15341
+ name: string;
15342
+ field: string;
15343
+ };
15344
+ }[] | undefined;
14802
15345
  } | {
14803
15346
  type: "query";
14804
15347
  name: string;
@@ -14929,6 +15472,18 @@ declare const NarrativeSchema: z.ZodObject<{
14929
15472
  via?: string[] | undefined;
14930
15473
  additionalInstructions?: string | undefined;
14931
15474
  request?: string | undefined;
15475
+ mappings?: {
15476
+ target: {
15477
+ type: "Command" | "Event" | "State" | "Query";
15478
+ name: string;
15479
+ field: string;
15480
+ };
15481
+ source: {
15482
+ type: "Command" | "Event" | "State" | "Query";
15483
+ name: string;
15484
+ field: string;
15485
+ };
15486
+ }[] | undefined;
14932
15487
  } | {
14933
15488
  type: "react";
14934
15489
  name: string;
@@ -15314,6 +15869,56 @@ export declare const modelSchema: z.ZodObject<{
15314
15869
  specs?: ClientSpecNode[] | undefined;
15315
15870
  }>;
15316
15871
  request: z.ZodOptional<z.ZodString>;
15872
+ mappings: z.ZodOptional<z.ZodArray<z.ZodObject<{
15873
+ source: z.ZodObject<{
15874
+ type: z.ZodEnum<["Command", "Event", "State", "Query"]>;
15875
+ name: z.ZodString;
15876
+ field: z.ZodString;
15877
+ }, "strip", z.ZodTypeAny, {
15878
+ type: "Command" | "Event" | "State" | "Query";
15879
+ name: string;
15880
+ field: string;
15881
+ }, {
15882
+ type: "Command" | "Event" | "State" | "Query";
15883
+ name: string;
15884
+ field: string;
15885
+ }>;
15886
+ target: z.ZodObject<{
15887
+ type: z.ZodEnum<["Command", "Event", "State", "Query"]>;
15888
+ name: z.ZodString;
15889
+ field: z.ZodString;
15890
+ }, "strip", z.ZodTypeAny, {
15891
+ type: "Command" | "Event" | "State" | "Query";
15892
+ name: string;
15893
+ field: string;
15894
+ }, {
15895
+ type: "Command" | "Event" | "State" | "Query";
15896
+ name: string;
15897
+ field: string;
15898
+ }>;
15899
+ }, "strip", z.ZodTypeAny, {
15900
+ target: {
15901
+ type: "Command" | "Event" | "State" | "Query";
15902
+ name: string;
15903
+ field: string;
15904
+ };
15905
+ source: {
15906
+ type: "Command" | "Event" | "State" | "Query";
15907
+ name: string;
15908
+ field: string;
15909
+ };
15910
+ }, {
15911
+ target: {
15912
+ type: "Command" | "Event" | "State" | "Query";
15913
+ name: string;
15914
+ field: string;
15915
+ };
15916
+ source: {
15917
+ type: "Command" | "Event" | "State" | "Query";
15918
+ name: string;
15919
+ field: string;
15920
+ };
15921
+ }>, "many">>;
15317
15922
  server: z.ZodObject<{
15318
15923
  description: z.ZodString;
15319
15924
  data: z.ZodOptional<z.ZodObject<{
@@ -16490,6 +17095,18 @@ export declare const modelSchema: z.ZodObject<{
16490
17095
  via?: string[] | undefined;
16491
17096
  additionalInstructions?: string | undefined;
16492
17097
  request?: string | undefined;
17098
+ mappings?: {
17099
+ target: {
17100
+ type: "Command" | "Event" | "State" | "Query";
17101
+ name: string;
17102
+ field: string;
17103
+ };
17104
+ source: {
17105
+ type: "Command" | "Event" | "State" | "Query";
17106
+ name: string;
17107
+ field: string;
17108
+ };
17109
+ }[] | undefined;
16493
17110
  }, {
16494
17111
  type: "command";
16495
17112
  name: string;
@@ -16620,6 +17237,18 @@ export declare const modelSchema: z.ZodObject<{
16620
17237
  via?: string[] | undefined;
16621
17238
  additionalInstructions?: string | undefined;
16622
17239
  request?: string | undefined;
17240
+ mappings?: {
17241
+ target: {
17242
+ type: "Command" | "Event" | "State" | "Query";
17243
+ name: string;
17244
+ field: string;
17245
+ };
17246
+ source: {
17247
+ type: "Command" | "Event" | "State" | "Query";
17248
+ name: string;
17249
+ field: string;
17250
+ };
17251
+ }[] | undefined;
16623
17252
  }>, z.ZodObject<{
16624
17253
  name: z.ZodString;
16625
17254
  id: z.ZodOptional<z.ZodString>;
@@ -16637,6 +17266,56 @@ export declare const modelSchema: z.ZodObject<{
16637
17266
  specs?: ClientSpecNode[] | undefined;
16638
17267
  }>;
16639
17268
  request: z.ZodOptional<z.ZodString>;
17269
+ mappings: z.ZodOptional<z.ZodArray<z.ZodObject<{
17270
+ source: z.ZodObject<{
17271
+ type: z.ZodEnum<["Command", "Event", "State", "Query"]>;
17272
+ name: z.ZodString;
17273
+ field: z.ZodString;
17274
+ }, "strip", z.ZodTypeAny, {
17275
+ type: "Command" | "Event" | "State" | "Query";
17276
+ name: string;
17277
+ field: string;
17278
+ }, {
17279
+ type: "Command" | "Event" | "State" | "Query";
17280
+ name: string;
17281
+ field: string;
17282
+ }>;
17283
+ target: z.ZodObject<{
17284
+ type: z.ZodEnum<["Command", "Event", "State", "Query"]>;
17285
+ name: z.ZodString;
17286
+ field: z.ZodString;
17287
+ }, "strip", z.ZodTypeAny, {
17288
+ type: "Command" | "Event" | "State" | "Query";
17289
+ name: string;
17290
+ field: string;
17291
+ }, {
17292
+ type: "Command" | "Event" | "State" | "Query";
17293
+ name: string;
17294
+ field: string;
17295
+ }>;
17296
+ }, "strip", z.ZodTypeAny, {
17297
+ target: {
17298
+ type: "Command" | "Event" | "State" | "Query";
17299
+ name: string;
17300
+ field: string;
17301
+ };
17302
+ source: {
17303
+ type: "Command" | "Event" | "State" | "Query";
17304
+ name: string;
17305
+ field: string;
17306
+ };
17307
+ }, {
17308
+ target: {
17309
+ type: "Command" | "Event" | "State" | "Query";
17310
+ name: string;
17311
+ field: string;
17312
+ };
17313
+ source: {
17314
+ type: "Command" | "Event" | "State" | "Query";
17315
+ name: string;
17316
+ field: string;
17317
+ };
17318
+ }>, "many">>;
16640
17319
  server: z.ZodObject<{
16641
17320
  description: z.ZodString;
16642
17321
  data: z.ZodOptional<z.ZodObject<{
@@ -17813,6 +18492,18 @@ export declare const modelSchema: z.ZodObject<{
17813
18492
  via?: string[] | undefined;
17814
18493
  additionalInstructions?: string | undefined;
17815
18494
  request?: string | undefined;
18495
+ mappings?: {
18496
+ target: {
18497
+ type: "Command" | "Event" | "State" | "Query";
18498
+ name: string;
18499
+ field: string;
18500
+ };
18501
+ source: {
18502
+ type: "Command" | "Event" | "State" | "Query";
18503
+ name: string;
18504
+ field: string;
18505
+ };
18506
+ }[] | undefined;
17816
18507
  }, {
17817
18508
  type: "query";
17818
18509
  name: string;
@@ -17943,6 +18634,18 @@ export declare const modelSchema: z.ZodObject<{
17943
18634
  via?: string[] | undefined;
17944
18635
  additionalInstructions?: string | undefined;
17945
18636
  request?: string | undefined;
18637
+ mappings?: {
18638
+ target: {
18639
+ type: "Command" | "Event" | "State" | "Query";
18640
+ name: string;
18641
+ field: string;
18642
+ };
18643
+ source: {
18644
+ type: "Command" | "Event" | "State" | "Query";
18645
+ name: string;
18646
+ field: string;
18647
+ };
18648
+ }[] | undefined;
17946
18649
  }>, z.ZodObject<{
17947
18650
  name: z.ZodString;
17948
18651
  id: z.ZodOptional<z.ZodString>;
@@ -19422,6 +20125,18 @@ export declare const modelSchema: z.ZodObject<{
19422
20125
  via?: string[] | undefined;
19423
20126
  additionalInstructions?: string | undefined;
19424
20127
  request?: string | undefined;
20128
+ mappings?: {
20129
+ target: {
20130
+ type: "Command" | "Event" | "State" | "Query";
20131
+ name: string;
20132
+ field: string;
20133
+ };
20134
+ source: {
20135
+ type: "Command" | "Event" | "State" | "Query";
20136
+ name: string;
20137
+ field: string;
20138
+ };
20139
+ }[] | undefined;
19425
20140
  } | {
19426
20141
  type: "query";
19427
20142
  name: string;
@@ -19552,6 +20267,18 @@ export declare const modelSchema: z.ZodObject<{
19552
20267
  via?: string[] | undefined;
19553
20268
  additionalInstructions?: string | undefined;
19554
20269
  request?: string | undefined;
20270
+ mappings?: {
20271
+ target: {
20272
+ type: "Command" | "Event" | "State" | "Query";
20273
+ name: string;
20274
+ field: string;
20275
+ };
20276
+ source: {
20277
+ type: "Command" | "Event" | "State" | "Query";
20278
+ name: string;
20279
+ field: string;
20280
+ };
20281
+ }[] | undefined;
19555
20282
  } | {
19556
20283
  type: "react";
19557
20284
  name: string;
@@ -19825,6 +20552,18 @@ export declare const modelSchema: z.ZodObject<{
19825
20552
  via?: string[] | undefined;
19826
20553
  additionalInstructions?: string | undefined;
19827
20554
  request?: string | undefined;
20555
+ mappings?: {
20556
+ target: {
20557
+ type: "Command" | "Event" | "State" | "Query";
20558
+ name: string;
20559
+ field: string;
20560
+ };
20561
+ source: {
20562
+ type: "Command" | "Event" | "State" | "Query";
20563
+ name: string;
20564
+ field: string;
20565
+ };
20566
+ }[] | undefined;
19828
20567
  } | {
19829
20568
  type: "query";
19830
20569
  name: string;
@@ -19955,6 +20694,18 @@ export declare const modelSchema: z.ZodObject<{
19955
20694
  via?: string[] | undefined;
19956
20695
  additionalInstructions?: string | undefined;
19957
20696
  request?: string | undefined;
20697
+ mappings?: {
20698
+ target: {
20699
+ type: "Command" | "Event" | "State" | "Query";
20700
+ name: string;
20701
+ field: string;
20702
+ };
20703
+ source: {
20704
+ type: "Command" | "Event" | "State" | "Query";
20705
+ name: string;
20706
+ field: string;
20707
+ };
20708
+ }[] | undefined;
19958
20709
  } | {
19959
20710
  type: "react";
19960
20711
  name: string;
@@ -20599,6 +21350,18 @@ export declare const modelSchema: z.ZodObject<{
20599
21350
  via?: string[] | undefined;
20600
21351
  additionalInstructions?: string | undefined;
20601
21352
  request?: string | undefined;
21353
+ mappings?: {
21354
+ target: {
21355
+ type: "Command" | "Event" | "State" | "Query";
21356
+ name: string;
21357
+ field: string;
21358
+ };
21359
+ source: {
21360
+ type: "Command" | "Event" | "State" | "Query";
21361
+ name: string;
21362
+ field: string;
21363
+ };
21364
+ }[] | undefined;
20602
21365
  } | {
20603
21366
  type: "query";
20604
21367
  name: string;
@@ -20729,6 +21492,18 @@ export declare const modelSchema: z.ZodObject<{
20729
21492
  via?: string[] | undefined;
20730
21493
  additionalInstructions?: string | undefined;
20731
21494
  request?: string | undefined;
21495
+ mappings?: {
21496
+ target: {
21497
+ type: "Command" | "Event" | "State" | "Query";
21498
+ name: string;
21499
+ field: string;
21500
+ };
21501
+ source: {
21502
+ type: "Command" | "Event" | "State" | "Query";
21503
+ name: string;
21504
+ field: string;
21505
+ };
21506
+ }[] | undefined;
20732
21507
  } | {
20733
21508
  type: "react";
20734
21509
  name: string;
@@ -21081,6 +21856,18 @@ export declare const modelSchema: z.ZodObject<{
21081
21856
  via?: string[] | undefined;
21082
21857
  additionalInstructions?: string | undefined;
21083
21858
  request?: string | undefined;
21859
+ mappings?: {
21860
+ target: {
21861
+ type: "Command" | "Event" | "State" | "Query";
21862
+ name: string;
21863
+ field: string;
21864
+ };
21865
+ source: {
21866
+ type: "Command" | "Event" | "State" | "Query";
21867
+ name: string;
21868
+ field: string;
21869
+ };
21870
+ }[] | undefined;
21084
21871
  } | {
21085
21872
  type: "query";
21086
21873
  name: string;
@@ -21211,6 +21998,18 @@ export declare const modelSchema: z.ZodObject<{
21211
21998
  via?: string[] | undefined;
21212
21999
  additionalInstructions?: string | undefined;
21213
22000
  request?: string | undefined;
22001
+ mappings?: {
22002
+ target: {
22003
+ type: "Command" | "Event" | "State" | "Query";
22004
+ name: string;
22005
+ field: string;
22006
+ };
22007
+ source: {
22008
+ type: "Command" | "Event" | "State" | "Query";
22009
+ name: string;
22010
+ field: string;
22011
+ };
22012
+ }[] | undefined;
21214
22013
  } | {
21215
22014
  type: "react";
21216
22015
  name: string;