@auto-engineer/narrative 0.11.20 → 0.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/CHANGELOG.md +24 -0
  3. package/dist/src/fluent-builder.d.ts.map +1 -1
  4. package/dist/src/fluent-builder.js +9 -12
  5. package/dist/src/fluent-builder.js.map +1 -1
  6. package/dist/src/getNarratives.specs.js +43 -27
  7. package/dist/src/getNarratives.specs.js.map +1 -1
  8. package/dist/src/id/addAutoIds.specs.js +11 -25
  9. package/dist/src/id/addAutoIds.specs.js.map +1 -1
  10. package/dist/src/id/hasAllIds.specs.js +12 -12
  11. package/dist/src/index.d.ts +2 -1
  12. package/dist/src/index.d.ts.map +1 -1
  13. package/dist/src/index.js +1 -1
  14. package/dist/src/index.js.map +1 -1
  15. package/dist/src/model-to-narrative.specs.js +110 -108
  16. package/dist/src/model-to-narrative.specs.js.map +1 -1
  17. package/dist/src/narrative-context.d.ts +4 -2
  18. package/dist/src/narrative-context.d.ts.map +1 -1
  19. package/dist/src/narrative-context.js +98 -95
  20. package/dist/src/narrative-context.js.map +1 -1
  21. package/dist/src/narrative.d.ts +7 -1
  22. package/dist/src/narrative.d.ts.map +1 -1
  23. package/dist/src/narrative.js +27 -6
  24. package/dist/src/narrative.js.map +1 -1
  25. package/dist/src/samples/items.narrative.js +7 -7
  26. package/dist/src/samples/items.narrative.js.map +1 -1
  27. package/dist/src/samples/place-order.narrative.js +4 -4
  28. package/dist/src/samples/place-order.narrative.js.map +1 -1
  29. package/dist/src/samples/questionnaires.narrative.js +16 -18
  30. package/dist/src/samples/questionnaires.narrative.js.map +1 -1
  31. package/dist/src/samples/seasonal-assistant.schema.json +37 -31
  32. package/dist/src/schema.d.ts +91 -462
  33. package/dist/src/schema.d.ts.map +1 -1
  34. package/dist/src/schema.js +22 -24
  35. package/dist/src/schema.js.map +1 -1
  36. package/dist/src/slice-builder.js +2 -2
  37. package/dist/src/slice-builder.js.map +1 -1
  38. package/dist/src/transformers/model-to-narrative/generators/flow.d.ts.map +1 -1
  39. package/dist/src/transformers/model-to-narrative/generators/flow.js +34 -10
  40. package/dist/src/transformers/model-to-narrative/generators/flow.js.map +1 -1
  41. package/dist/src/transformers/model-to-narrative/generators/imports.d.ts +1 -1
  42. package/dist/src/transformers/model-to-narrative/generators/imports.d.ts.map +1 -1
  43. package/dist/src/transformers/model-to-narrative/generators/imports.js +2 -1
  44. package/dist/src/transformers/model-to-narrative/generators/imports.js.map +1 -1
  45. package/dist/src/transformers/narrative-to-model/index.d.ts.map +1 -1
  46. package/dist/src/transformers/narrative-to-model/index.js +4 -8
  47. package/dist/src/transformers/narrative-to-model/index.js.map +1 -1
  48. package/dist/src/transformers/narrative-to-model/type-inference.specs.js +3 -3
  49. package/dist/src/transformers/narrative-to-model/type-inference.specs.js.map +1 -1
  50. package/dist/tsconfig.tsbuildinfo +1 -1
  51. package/package.json +5 -5
  52. package/src/fluent-builder.ts +9 -12
  53. package/src/getNarratives.specs.ts +43 -28
  54. package/src/id/addAutoIds.specs.ts +11 -25
  55. package/src/id/hasAllIds.specs.ts +12 -12
  56. package/src/index.ts +2 -1
  57. package/src/model-to-narrative.specs.ts +110 -108
  58. package/src/narrative-context.ts +103 -101
  59. package/src/narrative.ts +44 -6
  60. package/src/samples/items.narrative.ts +7 -7
  61. package/src/samples/place-order.narrative.ts +4 -4
  62. package/src/samples/questionnaires.narrative.ts +17 -18
  63. package/src/samples/seasonal-assistant.schema.json +37 -31
  64. package/src/schema.ts +33 -24
  65. package/src/slice-builder.ts +2 -2
  66. package/src/transformers/model-to-narrative/generators/flow.ts +53 -23
  67. package/src/transformers/model-to-narrative/generators/imports.ts +2 -1
  68. package/src/transformers/narrative-to-model/index.ts +4 -7
  69. package/src/transformers/narrative-to-model/type-inference.specs.ts +3 -3
@@ -1950,6 +1950,18 @@ declare const SpecSchema: z.ZodObject<{
1950
1950
  id?: string | undefined;
1951
1951
  }[];
1952
1952
  }>;
1953
+ type ClientSpecNode = {
1954
+ type: 'it';
1955
+ id?: string;
1956
+ title: string;
1957
+ } | {
1958
+ type: 'describe';
1959
+ id?: string;
1960
+ title?: string;
1961
+ children?: ClientSpecNode[];
1962
+ };
1963
+ export declare const ClientSpecNodeSchema: z.ZodType<ClientSpecNode>;
1964
+ export declare const ClientSpecSchema: z.ZodDefault<z.ZodArray<z.ZodType<ClientSpecNode, z.ZodTypeDef, ClientSpecNode>, "many">>;
1953
1965
  declare const CommandSliceSchema: z.ZodObject<{
1954
1966
  name: z.ZodString;
1955
1967
  id: z.ZodOptional<z.ZodString>;
@@ -1960,29 +1972,11 @@ declare const CommandSliceSchema: z.ZodObject<{
1960
1972
  } & {
1961
1973
  type: z.ZodLiteral<"command">;
1962
1974
  client: z.ZodObject<{
1963
- description: z.ZodString;
1964
- specs: z.ZodOptional<z.ZodObject<{
1965
- name: z.ZodString;
1966
- rules: z.ZodArray<z.ZodString, "many">;
1967
- }, "strip", z.ZodTypeAny, {
1968
- name: string;
1969
- rules: string[];
1970
- }, {
1971
- name: string;
1972
- rules: string[];
1973
- }>>;
1975
+ specs: z.ZodDefault<z.ZodArray<z.ZodType<ClientSpecNode, z.ZodTypeDef, ClientSpecNode>, "many">>;
1974
1976
  }, "strip", z.ZodTypeAny, {
1975
- description: string;
1976
- specs?: {
1977
- name: string;
1978
- rules: string[];
1979
- } | undefined;
1977
+ specs: ClientSpecNode[];
1980
1978
  }, {
1981
- description: string;
1982
- specs?: {
1983
- name: string;
1984
- rules: string[];
1985
- } | undefined;
1979
+ specs?: ClientSpecNode[] | undefined;
1986
1980
  }>;
1987
1981
  request: z.ZodOptional<z.ZodString>;
1988
1982
  server: z.ZodObject<{
@@ -2937,11 +2931,7 @@ declare const CommandSliceSchema: z.ZodObject<{
2937
2931
  type: "command";
2938
2932
  name: string;
2939
2933
  client: {
2940
- description: string;
2941
- specs?: {
2942
- name: string;
2943
- rules: string[];
2944
- } | undefined;
2934
+ specs: ClientSpecNode[];
2945
2935
  };
2946
2936
  server: {
2947
2937
  description: string;
@@ -3063,11 +3053,7 @@ declare const CommandSliceSchema: z.ZodObject<{
3063
3053
  type: "command";
3064
3054
  name: string;
3065
3055
  client: {
3066
- description: string;
3067
- specs?: {
3068
- name: string;
3069
- rules: string[];
3070
- } | undefined;
3056
+ specs?: ClientSpecNode[] | undefined;
3071
3057
  };
3072
3058
  server: {
3073
3059
  description: string;
@@ -3196,29 +3182,11 @@ declare const QuerySliceSchema: z.ZodObject<{
3196
3182
  } & {
3197
3183
  type: z.ZodLiteral<"query">;
3198
3184
  client: z.ZodObject<{
3199
- description: z.ZodString;
3200
- specs: z.ZodOptional<z.ZodObject<{
3201
- name: z.ZodString;
3202
- rules: z.ZodArray<z.ZodString, "many">;
3203
- }, "strip", z.ZodTypeAny, {
3204
- name: string;
3205
- rules: string[];
3206
- }, {
3207
- name: string;
3208
- rules: string[];
3209
- }>>;
3185
+ specs: z.ZodDefault<z.ZodArray<z.ZodType<ClientSpecNode, z.ZodTypeDef, ClientSpecNode>, "many">>;
3210
3186
  }, "strip", z.ZodTypeAny, {
3211
- description: string;
3212
- specs?: {
3213
- name: string;
3214
- rules: string[];
3215
- } | undefined;
3187
+ specs: ClientSpecNode[];
3216
3188
  }, {
3217
- description: string;
3218
- specs?: {
3219
- name: string;
3220
- rules: string[];
3221
- } | undefined;
3189
+ specs?: ClientSpecNode[] | undefined;
3222
3190
  }>;
3223
3191
  request: z.ZodOptional<z.ZodString>;
3224
3192
  server: z.ZodObject<{
@@ -3941,11 +3909,7 @@ declare const QuerySliceSchema: z.ZodObject<{
3941
3909
  type: "query";
3942
3910
  name: string;
3943
3911
  client: {
3944
- description: string;
3945
- specs?: {
3946
- name: string;
3947
- rules: string[];
3948
- } | undefined;
3912
+ specs: ClientSpecNode[];
3949
3913
  };
3950
3914
  server: {
3951
3915
  description: string;
@@ -4041,11 +4005,7 @@ declare const QuerySliceSchema: z.ZodObject<{
4041
4005
  type: "query";
4042
4006
  name: string;
4043
4007
  client: {
4044
- description: string;
4045
- specs?: {
4046
- name: string;
4047
- rules: string[];
4048
- } | undefined;
4008
+ specs?: ClientSpecNode[] | undefined;
4049
4009
  };
4050
4010
  server: {
4051
4011
  description: string;
@@ -5584,39 +5544,17 @@ declare const ExperienceSliceSchema: z.ZodObject<{
5584
5544
  } & {
5585
5545
  type: z.ZodLiteral<"experience">;
5586
5546
  client: z.ZodObject<{
5587
- description: z.ZodOptional<z.ZodString>;
5588
- specs: z.ZodOptional<z.ZodObject<{
5589
- name: z.ZodString;
5590
- rules: z.ZodArray<z.ZodString, "many">;
5591
- }, "strip", z.ZodTypeAny, {
5592
- name: string;
5593
- rules: string[];
5594
- }, {
5595
- name: string;
5596
- rules: string[];
5597
- }>>;
5547
+ specs: z.ZodDefault<z.ZodArray<z.ZodType<ClientSpecNode, z.ZodTypeDef, ClientSpecNode>, "many">>;
5598
5548
  }, "strip", z.ZodTypeAny, {
5599
- description?: string | undefined;
5600
- specs?: {
5601
- name: string;
5602
- rules: string[];
5603
- } | undefined;
5549
+ specs: ClientSpecNode[];
5604
5550
  }, {
5605
- description?: string | undefined;
5606
- specs?: {
5607
- name: string;
5608
- rules: string[];
5609
- } | undefined;
5551
+ specs?: ClientSpecNode[] | undefined;
5610
5552
  }>;
5611
5553
  }, "strip", z.ZodTypeAny, {
5612
5554
  type: "experience";
5613
5555
  name: string;
5614
5556
  client: {
5615
- description?: string | undefined;
5616
- specs?: {
5617
- name: string;
5618
- rules: string[];
5619
- } | undefined;
5557
+ specs: ClientSpecNode[];
5620
5558
  };
5621
5559
  stream?: string | undefined;
5622
5560
  description?: string | undefined;
@@ -5627,11 +5565,7 @@ declare const ExperienceSliceSchema: z.ZodObject<{
5627
5565
  type: "experience";
5628
5566
  name: string;
5629
5567
  client: {
5630
- description?: string | undefined;
5631
- specs?: {
5632
- name: string;
5633
- rules: string[];
5634
- } | undefined;
5568
+ specs?: ClientSpecNode[] | undefined;
5635
5569
  };
5636
5570
  stream?: string | undefined;
5637
5571
  description?: string | undefined;
@@ -5649,29 +5583,11 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5649
5583
  } & {
5650
5584
  type: z.ZodLiteral<"command">;
5651
5585
  client: z.ZodObject<{
5652
- description: z.ZodString;
5653
- specs: z.ZodOptional<z.ZodObject<{
5654
- name: z.ZodString;
5655
- rules: z.ZodArray<z.ZodString, "many">;
5656
- }, "strip", z.ZodTypeAny, {
5657
- name: string;
5658
- rules: string[];
5659
- }, {
5660
- name: string;
5661
- rules: string[];
5662
- }>>;
5586
+ specs: z.ZodDefault<z.ZodArray<z.ZodType<ClientSpecNode, z.ZodTypeDef, ClientSpecNode>, "many">>;
5663
5587
  }, "strip", z.ZodTypeAny, {
5664
- description: string;
5665
- specs?: {
5666
- name: string;
5667
- rules: string[];
5668
- } | undefined;
5588
+ specs: ClientSpecNode[];
5669
5589
  }, {
5670
- description: string;
5671
- specs?: {
5672
- name: string;
5673
- rules: string[];
5674
- } | undefined;
5590
+ specs?: ClientSpecNode[] | undefined;
5675
5591
  }>;
5676
5592
  request: z.ZodOptional<z.ZodString>;
5677
5593
  server: z.ZodObject<{
@@ -6626,11 +6542,7 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6626
6542
  type: "command";
6627
6543
  name: string;
6628
6544
  client: {
6629
- description: string;
6630
- specs?: {
6631
- name: string;
6632
- rules: string[];
6633
- } | undefined;
6545
+ specs: ClientSpecNode[];
6634
6546
  };
6635
6547
  server: {
6636
6548
  description: string;
@@ -6752,11 +6664,7 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6752
6664
  type: "command";
6753
6665
  name: string;
6754
6666
  client: {
6755
- description: string;
6756
- specs?: {
6757
- name: string;
6758
- rules: string[];
6759
- } | undefined;
6667
+ specs?: ClientSpecNode[] | undefined;
6760
6668
  };
6761
6669
  server: {
6762
6670
  description: string;
@@ -6884,29 +6792,11 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6884
6792
  } & {
6885
6793
  type: z.ZodLiteral<"query">;
6886
6794
  client: z.ZodObject<{
6887
- description: z.ZodString;
6888
- specs: z.ZodOptional<z.ZodObject<{
6889
- name: z.ZodString;
6890
- rules: z.ZodArray<z.ZodString, "many">;
6891
- }, "strip", z.ZodTypeAny, {
6892
- name: string;
6893
- rules: string[];
6894
- }, {
6895
- name: string;
6896
- rules: string[];
6897
- }>>;
6795
+ specs: z.ZodDefault<z.ZodArray<z.ZodType<ClientSpecNode, z.ZodTypeDef, ClientSpecNode>, "many">>;
6898
6796
  }, "strip", z.ZodTypeAny, {
6899
- description: string;
6900
- specs?: {
6901
- name: string;
6902
- rules: string[];
6903
- } | undefined;
6797
+ specs: ClientSpecNode[];
6904
6798
  }, {
6905
- description: string;
6906
- specs?: {
6907
- name: string;
6908
- rules: string[];
6909
- } | undefined;
6799
+ specs?: ClientSpecNode[] | undefined;
6910
6800
  }>;
6911
6801
  request: z.ZodOptional<z.ZodString>;
6912
6802
  server: z.ZodObject<{
@@ -7629,11 +7519,7 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7629
7519
  type: "query";
7630
7520
  name: string;
7631
7521
  client: {
7632
- description: string;
7633
- specs?: {
7634
- name: string;
7635
- rules: string[];
7636
- } | undefined;
7522
+ specs: ClientSpecNode[];
7637
7523
  };
7638
7524
  server: {
7639
7525
  description: string;
@@ -7729,11 +7615,7 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7729
7615
  type: "query";
7730
7616
  name: string;
7731
7617
  client: {
7732
- description: string;
7733
- specs?: {
7734
- name: string;
7735
- rules: string[];
7736
- } | undefined;
7618
+ specs?: ClientSpecNode[] | undefined;
7737
7619
  };
7738
7620
  server: {
7739
7621
  description: string;
@@ -9270,39 +9152,17 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
9270
9152
  } & {
9271
9153
  type: z.ZodLiteral<"experience">;
9272
9154
  client: z.ZodObject<{
9273
- description: z.ZodOptional<z.ZodString>;
9274
- specs: z.ZodOptional<z.ZodObject<{
9275
- name: z.ZodString;
9276
- rules: z.ZodArray<z.ZodString, "many">;
9277
- }, "strip", z.ZodTypeAny, {
9278
- name: string;
9279
- rules: string[];
9280
- }, {
9281
- name: string;
9282
- rules: string[];
9283
- }>>;
9155
+ specs: z.ZodDefault<z.ZodArray<z.ZodType<ClientSpecNode, z.ZodTypeDef, ClientSpecNode>, "many">>;
9284
9156
  }, "strip", z.ZodTypeAny, {
9285
- description?: string | undefined;
9286
- specs?: {
9287
- name: string;
9288
- rules: string[];
9289
- } | undefined;
9157
+ specs: ClientSpecNode[];
9290
9158
  }, {
9291
- description?: string | undefined;
9292
- specs?: {
9293
- name: string;
9294
- rules: string[];
9295
- } | undefined;
9159
+ specs?: ClientSpecNode[] | undefined;
9296
9160
  }>;
9297
9161
  }, "strip", z.ZodTypeAny, {
9298
9162
  type: "experience";
9299
9163
  name: string;
9300
9164
  client: {
9301
- description?: string | undefined;
9302
- specs?: {
9303
- name: string;
9304
- rules: string[];
9305
- } | undefined;
9165
+ specs: ClientSpecNode[];
9306
9166
  };
9307
9167
  stream?: string | undefined;
9308
9168
  description?: string | undefined;
@@ -9313,11 +9173,7 @@ declare const SliceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
9313
9173
  type: "experience";
9314
9174
  name: string;
9315
9175
  client: {
9316
- description?: string | undefined;
9317
- specs?: {
9318
- name: string;
9319
- rules: string[];
9320
- } | undefined;
9176
+ specs?: ClientSpecNode[] | undefined;
9321
9177
  };
9322
9178
  stream?: string | undefined;
9323
9179
  description?: string | undefined;
@@ -9339,29 +9195,11 @@ declare const NarrativeSchema: z.ZodObject<{
9339
9195
  } & {
9340
9196
  type: z.ZodLiteral<"command">;
9341
9197
  client: z.ZodObject<{
9342
- description: z.ZodString;
9343
- specs: z.ZodOptional<z.ZodObject<{
9344
- name: z.ZodString;
9345
- rules: z.ZodArray<z.ZodString, "many">;
9346
- }, "strip", z.ZodTypeAny, {
9347
- name: string;
9348
- rules: string[];
9349
- }, {
9350
- name: string;
9351
- rules: string[];
9352
- }>>;
9198
+ specs: z.ZodDefault<z.ZodArray<z.ZodType<ClientSpecNode, z.ZodTypeDef, ClientSpecNode>, "many">>;
9353
9199
  }, "strip", z.ZodTypeAny, {
9354
- description: string;
9355
- specs?: {
9356
- name: string;
9357
- rules: string[];
9358
- } | undefined;
9200
+ specs: ClientSpecNode[];
9359
9201
  }, {
9360
- description: string;
9361
- specs?: {
9362
- name: string;
9363
- rules: string[];
9364
- } | undefined;
9202
+ specs?: ClientSpecNode[] | undefined;
9365
9203
  }>;
9366
9204
  request: z.ZodOptional<z.ZodString>;
9367
9205
  server: z.ZodObject<{
@@ -10316,11 +10154,7 @@ declare const NarrativeSchema: z.ZodObject<{
10316
10154
  type: "command";
10317
10155
  name: string;
10318
10156
  client: {
10319
- description: string;
10320
- specs?: {
10321
- name: string;
10322
- rules: string[];
10323
- } | undefined;
10157
+ specs: ClientSpecNode[];
10324
10158
  };
10325
10159
  server: {
10326
10160
  description: string;
@@ -10442,11 +10276,7 @@ declare const NarrativeSchema: z.ZodObject<{
10442
10276
  type: "command";
10443
10277
  name: string;
10444
10278
  client: {
10445
- description: string;
10446
- specs?: {
10447
- name: string;
10448
- rules: string[];
10449
- } | undefined;
10279
+ specs?: ClientSpecNode[] | undefined;
10450
10280
  };
10451
10281
  server: {
10452
10282
  description: string;
@@ -10574,29 +10404,11 @@ declare const NarrativeSchema: z.ZodObject<{
10574
10404
  } & {
10575
10405
  type: z.ZodLiteral<"query">;
10576
10406
  client: z.ZodObject<{
10577
- description: z.ZodString;
10578
- specs: z.ZodOptional<z.ZodObject<{
10579
- name: z.ZodString;
10580
- rules: z.ZodArray<z.ZodString, "many">;
10581
- }, "strip", z.ZodTypeAny, {
10582
- name: string;
10583
- rules: string[];
10584
- }, {
10585
- name: string;
10586
- rules: string[];
10587
- }>>;
10407
+ specs: z.ZodDefault<z.ZodArray<z.ZodType<ClientSpecNode, z.ZodTypeDef, ClientSpecNode>, "many">>;
10588
10408
  }, "strip", z.ZodTypeAny, {
10589
- description: string;
10590
- specs?: {
10591
- name: string;
10592
- rules: string[];
10593
- } | undefined;
10409
+ specs: ClientSpecNode[];
10594
10410
  }, {
10595
- description: string;
10596
- specs?: {
10597
- name: string;
10598
- rules: string[];
10599
- } | undefined;
10411
+ specs?: ClientSpecNode[] | undefined;
10600
10412
  }>;
10601
10413
  request: z.ZodOptional<z.ZodString>;
10602
10414
  server: z.ZodObject<{
@@ -11319,11 +11131,7 @@ declare const NarrativeSchema: z.ZodObject<{
11319
11131
  type: "query";
11320
11132
  name: string;
11321
11133
  client: {
11322
- description: string;
11323
- specs?: {
11324
- name: string;
11325
- rules: string[];
11326
- } | undefined;
11134
+ specs: ClientSpecNode[];
11327
11135
  };
11328
11136
  server: {
11329
11137
  description: string;
@@ -11419,11 +11227,7 @@ declare const NarrativeSchema: z.ZodObject<{
11419
11227
  type: "query";
11420
11228
  name: string;
11421
11229
  client: {
11422
- description: string;
11423
- specs?: {
11424
- name: string;
11425
- rules: string[];
11426
- } | undefined;
11230
+ specs?: ClientSpecNode[] | undefined;
11427
11231
  };
11428
11232
  server: {
11429
11233
  description: string;
@@ -12960,39 +12764,17 @@ declare const NarrativeSchema: z.ZodObject<{
12960
12764
  } & {
12961
12765
  type: z.ZodLiteral<"experience">;
12962
12766
  client: z.ZodObject<{
12963
- description: z.ZodOptional<z.ZodString>;
12964
- specs: z.ZodOptional<z.ZodObject<{
12965
- name: z.ZodString;
12966
- rules: z.ZodArray<z.ZodString, "many">;
12967
- }, "strip", z.ZodTypeAny, {
12968
- name: string;
12969
- rules: string[];
12970
- }, {
12971
- name: string;
12972
- rules: string[];
12973
- }>>;
12767
+ specs: z.ZodDefault<z.ZodArray<z.ZodType<ClientSpecNode, z.ZodTypeDef, ClientSpecNode>, "many">>;
12974
12768
  }, "strip", z.ZodTypeAny, {
12975
- description?: string | undefined;
12976
- specs?: {
12977
- name: string;
12978
- rules: string[];
12979
- } | undefined;
12769
+ specs: ClientSpecNode[];
12980
12770
  }, {
12981
- description?: string | undefined;
12982
- specs?: {
12983
- name: string;
12984
- rules: string[];
12985
- } | undefined;
12771
+ specs?: ClientSpecNode[] | undefined;
12986
12772
  }>;
12987
12773
  }, "strip", z.ZodTypeAny, {
12988
12774
  type: "experience";
12989
12775
  name: string;
12990
12776
  client: {
12991
- description?: string | undefined;
12992
- specs?: {
12993
- name: string;
12994
- rules: string[];
12995
- } | undefined;
12777
+ specs: ClientSpecNode[];
12996
12778
  };
12997
12779
  stream?: string | undefined;
12998
12780
  description?: string | undefined;
@@ -13003,11 +12785,7 @@ declare const NarrativeSchema: z.ZodObject<{
13003
12785
  type: "experience";
13004
12786
  name: string;
13005
12787
  client: {
13006
- description?: string | undefined;
13007
- specs?: {
13008
- name: string;
13009
- rules: string[];
13010
- } | undefined;
12788
+ specs?: ClientSpecNode[] | undefined;
13011
12789
  };
13012
12790
  stream?: string | undefined;
13013
12791
  description?: string | undefined;
@@ -13022,11 +12800,7 @@ declare const NarrativeSchema: z.ZodObject<{
13022
12800
  type: "command";
13023
12801
  name: string;
13024
12802
  client: {
13025
- description: string;
13026
- specs?: {
13027
- name: string;
13028
- rules: string[];
13029
- } | undefined;
12803
+ specs: ClientSpecNode[];
13030
12804
  };
13031
12805
  server: {
13032
12806
  description: string;
@@ -13148,11 +12922,7 @@ declare const NarrativeSchema: z.ZodObject<{
13148
12922
  type: "query";
13149
12923
  name: string;
13150
12924
  client: {
13151
- description: string;
13152
- specs?: {
13153
- name: string;
13154
- rules: string[];
13155
- } | undefined;
12925
+ specs: ClientSpecNode[];
13156
12926
  };
13157
12927
  server: {
13158
12928
  description: string;
@@ -13394,11 +13164,7 @@ declare const NarrativeSchema: z.ZodObject<{
13394
13164
  type: "experience";
13395
13165
  name: string;
13396
13166
  client: {
13397
- description?: string | undefined;
13398
- specs?: {
13399
- name: string;
13400
- rules: string[];
13401
- } | undefined;
13167
+ specs: ClientSpecNode[];
13402
13168
  };
13403
13169
  stream?: string | undefined;
13404
13170
  description?: string | undefined;
@@ -13415,11 +13181,7 @@ declare const NarrativeSchema: z.ZodObject<{
13415
13181
  type: "command";
13416
13182
  name: string;
13417
13183
  client: {
13418
- description: string;
13419
- specs?: {
13420
- name: string;
13421
- rules: string[];
13422
- } | undefined;
13184
+ specs?: ClientSpecNode[] | undefined;
13423
13185
  };
13424
13186
  server: {
13425
13187
  description: string;
@@ -13541,11 +13303,7 @@ declare const NarrativeSchema: z.ZodObject<{
13541
13303
  type: "query";
13542
13304
  name: string;
13543
13305
  client: {
13544
- description: string;
13545
- specs?: {
13546
- name: string;
13547
- rules: string[];
13548
- } | undefined;
13306
+ specs?: ClientSpecNode[] | undefined;
13549
13307
  };
13550
13308
  server: {
13551
13309
  description: string;
@@ -13787,11 +13545,7 @@ declare const NarrativeSchema: z.ZodObject<{
13787
13545
  type: "experience";
13788
13546
  name: string;
13789
13547
  client: {
13790
- description?: string | undefined;
13791
- specs?: {
13792
- name: string;
13793
- rules: string[];
13794
- } | undefined;
13548
+ specs?: ClientSpecNode[] | undefined;
13795
13549
  };
13796
13550
  stream?: string | undefined;
13797
13551
  description?: string | undefined;
@@ -14039,29 +13793,11 @@ export declare const modelSchema: z.ZodObject<{
14039
13793
  } & {
14040
13794
  type: z.ZodLiteral<"command">;
14041
13795
  client: z.ZodObject<{
14042
- description: z.ZodString;
14043
- specs: z.ZodOptional<z.ZodObject<{
14044
- name: z.ZodString;
14045
- rules: z.ZodArray<z.ZodString, "many">;
14046
- }, "strip", z.ZodTypeAny, {
14047
- name: string;
14048
- rules: string[];
14049
- }, {
14050
- name: string;
14051
- rules: string[];
14052
- }>>;
13796
+ specs: z.ZodDefault<z.ZodArray<z.ZodType<ClientSpecNode, z.ZodTypeDef, ClientSpecNode>, "many">>;
14053
13797
  }, "strip", z.ZodTypeAny, {
14054
- description: string;
14055
- specs?: {
14056
- name: string;
14057
- rules: string[];
14058
- } | undefined;
13798
+ specs: ClientSpecNode[];
14059
13799
  }, {
14060
- description: string;
14061
- specs?: {
14062
- name: string;
14063
- rules: string[];
14064
- } | undefined;
13800
+ specs?: ClientSpecNode[] | undefined;
14065
13801
  }>;
14066
13802
  request: z.ZodOptional<z.ZodString>;
14067
13803
  server: z.ZodObject<{
@@ -15016,11 +14752,7 @@ export declare const modelSchema: z.ZodObject<{
15016
14752
  type: "command";
15017
14753
  name: string;
15018
14754
  client: {
15019
- description: string;
15020
- specs?: {
15021
- name: string;
15022
- rules: string[];
15023
- } | undefined;
14755
+ specs: ClientSpecNode[];
15024
14756
  };
15025
14757
  server: {
15026
14758
  description: string;
@@ -15142,11 +14874,7 @@ export declare const modelSchema: z.ZodObject<{
15142
14874
  type: "command";
15143
14875
  name: string;
15144
14876
  client: {
15145
- description: string;
15146
- specs?: {
15147
- name: string;
15148
- rules: string[];
15149
- } | undefined;
14877
+ specs?: ClientSpecNode[] | undefined;
15150
14878
  };
15151
14879
  server: {
15152
14880
  description: string;
@@ -15274,29 +15002,11 @@ export declare const modelSchema: z.ZodObject<{
15274
15002
  } & {
15275
15003
  type: z.ZodLiteral<"query">;
15276
15004
  client: z.ZodObject<{
15277
- description: z.ZodString;
15278
- specs: z.ZodOptional<z.ZodObject<{
15279
- name: z.ZodString;
15280
- rules: z.ZodArray<z.ZodString, "many">;
15281
- }, "strip", z.ZodTypeAny, {
15282
- name: string;
15283
- rules: string[];
15284
- }, {
15285
- name: string;
15286
- rules: string[];
15287
- }>>;
15005
+ specs: z.ZodDefault<z.ZodArray<z.ZodType<ClientSpecNode, z.ZodTypeDef, ClientSpecNode>, "many">>;
15288
15006
  }, "strip", z.ZodTypeAny, {
15289
- description: string;
15290
- specs?: {
15291
- name: string;
15292
- rules: string[];
15293
- } | undefined;
15007
+ specs: ClientSpecNode[];
15294
15008
  }, {
15295
- description: string;
15296
- specs?: {
15297
- name: string;
15298
- rules: string[];
15299
- } | undefined;
15009
+ specs?: ClientSpecNode[] | undefined;
15300
15010
  }>;
15301
15011
  request: z.ZodOptional<z.ZodString>;
15302
15012
  server: z.ZodObject<{
@@ -16019,11 +15729,7 @@ export declare const modelSchema: z.ZodObject<{
16019
15729
  type: "query";
16020
15730
  name: string;
16021
15731
  client: {
16022
- description: string;
16023
- specs?: {
16024
- name: string;
16025
- rules: string[];
16026
- } | undefined;
15732
+ specs: ClientSpecNode[];
16027
15733
  };
16028
15734
  server: {
16029
15735
  description: string;
@@ -16119,11 +15825,7 @@ export declare const modelSchema: z.ZodObject<{
16119
15825
  type: "query";
16120
15826
  name: string;
16121
15827
  client: {
16122
- description: string;
16123
- specs?: {
16124
- name: string;
16125
- rules: string[];
16126
- } | undefined;
15828
+ specs?: ClientSpecNode[] | undefined;
16127
15829
  };
16128
15830
  server: {
16129
15831
  description: string;
@@ -17660,39 +17362,17 @@ export declare const modelSchema: z.ZodObject<{
17660
17362
  } & {
17661
17363
  type: z.ZodLiteral<"experience">;
17662
17364
  client: z.ZodObject<{
17663
- description: z.ZodOptional<z.ZodString>;
17664
- specs: z.ZodOptional<z.ZodObject<{
17665
- name: z.ZodString;
17666
- rules: z.ZodArray<z.ZodString, "many">;
17667
- }, "strip", z.ZodTypeAny, {
17668
- name: string;
17669
- rules: string[];
17670
- }, {
17671
- name: string;
17672
- rules: string[];
17673
- }>>;
17365
+ specs: z.ZodDefault<z.ZodArray<z.ZodType<ClientSpecNode, z.ZodTypeDef, ClientSpecNode>, "many">>;
17674
17366
  }, "strip", z.ZodTypeAny, {
17675
- description?: string | undefined;
17676
- specs?: {
17677
- name: string;
17678
- rules: string[];
17679
- } | undefined;
17367
+ specs: ClientSpecNode[];
17680
17368
  }, {
17681
- description?: string | undefined;
17682
- specs?: {
17683
- name: string;
17684
- rules: string[];
17685
- } | undefined;
17369
+ specs?: ClientSpecNode[] | undefined;
17686
17370
  }>;
17687
17371
  }, "strip", z.ZodTypeAny, {
17688
17372
  type: "experience";
17689
17373
  name: string;
17690
17374
  client: {
17691
- description?: string | undefined;
17692
- specs?: {
17693
- name: string;
17694
- rules: string[];
17695
- } | undefined;
17375
+ specs: ClientSpecNode[];
17696
17376
  };
17697
17377
  stream?: string | undefined;
17698
17378
  description?: string | undefined;
@@ -17703,11 +17383,7 @@ export declare const modelSchema: z.ZodObject<{
17703
17383
  type: "experience";
17704
17384
  name: string;
17705
17385
  client: {
17706
- description?: string | undefined;
17707
- specs?: {
17708
- name: string;
17709
- rules: string[];
17710
- } | undefined;
17386
+ specs?: ClientSpecNode[] | undefined;
17711
17387
  };
17712
17388
  stream?: string | undefined;
17713
17389
  description?: string | undefined;
@@ -17722,11 +17398,7 @@ export declare const modelSchema: z.ZodObject<{
17722
17398
  type: "command";
17723
17399
  name: string;
17724
17400
  client: {
17725
- description: string;
17726
- specs?: {
17727
- name: string;
17728
- rules: string[];
17729
- } | undefined;
17401
+ specs: ClientSpecNode[];
17730
17402
  };
17731
17403
  server: {
17732
17404
  description: string;
@@ -17848,11 +17520,7 @@ export declare const modelSchema: z.ZodObject<{
17848
17520
  type: "query";
17849
17521
  name: string;
17850
17522
  client: {
17851
- description: string;
17852
- specs?: {
17853
- name: string;
17854
- rules: string[];
17855
- } | undefined;
17523
+ specs: ClientSpecNode[];
17856
17524
  };
17857
17525
  server: {
17858
17526
  description: string;
@@ -18094,11 +17762,7 @@ export declare const modelSchema: z.ZodObject<{
18094
17762
  type: "experience";
18095
17763
  name: string;
18096
17764
  client: {
18097
- description?: string | undefined;
18098
- specs?: {
18099
- name: string;
18100
- rules: string[];
18101
- } | undefined;
17765
+ specs: ClientSpecNode[];
18102
17766
  };
18103
17767
  stream?: string | undefined;
18104
17768
  description?: string | undefined;
@@ -18115,11 +17779,7 @@ export declare const modelSchema: z.ZodObject<{
18115
17779
  type: "command";
18116
17780
  name: string;
18117
17781
  client: {
18118
- description: string;
18119
- specs?: {
18120
- name: string;
18121
- rules: string[];
18122
- } | undefined;
17782
+ specs?: ClientSpecNode[] | undefined;
18123
17783
  };
18124
17784
  server: {
18125
17785
  description: string;
@@ -18241,11 +17901,7 @@ export declare const modelSchema: z.ZodObject<{
18241
17901
  type: "query";
18242
17902
  name: string;
18243
17903
  client: {
18244
- description: string;
18245
- specs?: {
18246
- name: string;
18247
- rules: string[];
18248
- } | undefined;
17904
+ specs?: ClientSpecNode[] | undefined;
18249
17905
  };
18250
17906
  server: {
18251
17907
  description: string;
@@ -18487,11 +18143,7 @@ export declare const modelSchema: z.ZodObject<{
18487
18143
  type: "experience";
18488
18144
  name: string;
18489
18145
  client: {
18490
- description?: string | undefined;
18491
- specs?: {
18492
- name: string;
18493
- rules: string[];
18494
- } | undefined;
18146
+ specs?: ClientSpecNode[] | undefined;
18495
18147
  };
18496
18148
  stream?: string | undefined;
18497
18149
  description?: string | undefined;
@@ -18705,11 +18357,7 @@ export declare const modelSchema: z.ZodObject<{
18705
18357
  type: "command";
18706
18358
  name: string;
18707
18359
  client: {
18708
- description: string;
18709
- specs?: {
18710
- name: string;
18711
- rules: string[];
18712
- } | undefined;
18360
+ specs: ClientSpecNode[];
18713
18361
  };
18714
18362
  server: {
18715
18363
  description: string;
@@ -18831,11 +18479,7 @@ export declare const modelSchema: z.ZodObject<{
18831
18479
  type: "query";
18832
18480
  name: string;
18833
18481
  client: {
18834
- description: string;
18835
- specs?: {
18836
- name: string;
18837
- rules: string[];
18838
- } | undefined;
18482
+ specs: ClientSpecNode[];
18839
18483
  };
18840
18484
  server: {
18841
18485
  description: string;
@@ -19077,11 +18721,7 @@ export declare const modelSchema: z.ZodObject<{
19077
18721
  type: "experience";
19078
18722
  name: string;
19079
18723
  client: {
19080
- description?: string | undefined;
19081
- specs?: {
19082
- name: string;
19083
- rules: string[];
19084
- } | undefined;
18724
+ specs: ClientSpecNode[];
19085
18725
  };
19086
18726
  stream?: string | undefined;
19087
18727
  description?: string | undefined;
@@ -19150,11 +18790,7 @@ export declare const modelSchema: z.ZodObject<{
19150
18790
  type: "command";
19151
18791
  name: string;
19152
18792
  client: {
19153
- description: string;
19154
- specs?: {
19155
- name: string;
19156
- rules: string[];
19157
- } | undefined;
18793
+ specs?: ClientSpecNode[] | undefined;
19158
18794
  };
19159
18795
  server: {
19160
18796
  description: string;
@@ -19276,11 +18912,7 @@ export declare const modelSchema: z.ZodObject<{
19276
18912
  type: "query";
19277
18913
  name: string;
19278
18914
  client: {
19279
- description: string;
19280
- specs?: {
19281
- name: string;
19282
- rules: string[];
19283
- } | undefined;
18915
+ specs?: ClientSpecNode[] | undefined;
19284
18916
  };
19285
18917
  server: {
19286
18918
  description: string;
@@ -19522,11 +19154,7 @@ export declare const modelSchema: z.ZodObject<{
19522
19154
  type: "experience";
19523
19155
  name: string;
19524
19156
  client: {
19525
- description?: string | undefined;
19526
- specs?: {
19527
- name: string;
19528
- rules: string[];
19529
- } | undefined;
19157
+ specs?: ClientSpecNode[] | undefined;
19530
19158
  };
19531
19159
  stream?: string | undefined;
19532
19160
  description?: string | undefined;
@@ -19588,5 +19216,6 @@ export declare const modelSchema: z.ZodObject<{
19588
19216
  description?: string | undefined;
19589
19217
  }[] | undefined;
19590
19218
  }>;
19219
+ export type { ClientSpecNode };
19591
19220
  export { StateExampleSchema, MessageFieldSchema, ErrorExampleSchema, MessageSchema, CommandSchema, EventSchema, StateSchema, IntegrationSchema, CommandSliceSchema, QuerySliceSchema, ReactSliceSchema, ExperienceSliceSchema, SliceSchema, NarrativeSchema, ExampleSchema, RuleSchema, SpecSchema, DataSinkSchema, DataSourceSchema, };
19592
19221
  //# sourceMappingURL=schema.d.ts.map