@almadar/core 4.8.2 → 4.10.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.
@@ -3330,11 +3330,29 @@ interface TraitUIBinding {
3330
3330
  * - `emits`: Events this trait can emit (with scope and payload schema)
3331
3331
  * - `listens`: Events this trait listens for (with optional payloadMapping)
3332
3332
  */
3333
+ /**
3334
+ * Instance vs collection scope for a trait.
3335
+ *
3336
+ * Mirrors the `.lolo` trait modifier list (`[interaction, instance]` /
3337
+ * `[interaction, collection]`). Instance traits own a single entity record
3338
+ * (typed by `linkedEntity`) and read/write `@entity.field`. Collection
3339
+ * traits render records of `linkedEntity` without owning any one; data flows
3340
+ * through `@payload.data` typed as `Array<linkedEntity>`.
3341
+ *
3342
+ * Optional today. A future phase (Almadar_Entity_V2_Plan.md Phase 4) makes
3343
+ * it required and adds static checks in the compiler.
3344
+ */
3345
+ type TraitScope = 'instance' | 'collection';
3333
3346
  interface Trait {
3334
3347
  name: string;
3335
3348
  description?: string;
3336
3349
  description_visual_prompt?: string;
3337
3350
  category?: TraitCategory;
3351
+ /**
3352
+ * Instance or collection scope. Optional in V2 Phase 0; required from
3353
+ * Phase 4 onward.
3354
+ */
3355
+ scope?: TraitScope;
3338
3356
  /**
3339
3357
  * The entity this trait is linked to.
3340
3358
  * Required for inline trait definitions within an orbital.
@@ -3363,6 +3381,7 @@ declare const TraitSchema: z.ZodObject<{
3363
3381
  description: z.ZodOptional<z.ZodString>;
3364
3382
  description_visual_prompt: z.ZodOptional<z.ZodString>;
3365
3383
  category: z.ZodOptional<z.ZodEnum<["lifecycle", "temporal", "validation", "notification", "integration", "interaction", "agent", "game-core", "game-character", "game-ai", "game-combat", "game-items", "game-cards", "game-board", "game-puzzle"]>>;
3384
+ scope: z.ZodOptional<z.ZodEnum<["instance", "collection"]>>;
3366
3385
  linkedEntity: z.ZodOptional<z.ZodString>;
3367
3386
  requiredFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
3368
3387
  name: z.ZodString;
@@ -3725,6 +3744,7 @@ declare const TraitSchema: z.ZodObject<{
3725
3744
  }[] | undefined;
3726
3745
  scope?: "internal" | "external" | undefined;
3727
3746
  }[] | undefined;
3747
+ scope?: "instance" | "collection" | undefined;
3728
3748
  listens?: {
3729
3749
  event: string;
3730
3750
  triggers: string;
@@ -3820,6 +3840,7 @@ declare const TraitSchema: z.ZodObject<{
3820
3840
  }[] | undefined;
3821
3841
  scope?: "internal" | "external" | undefined;
3822
3842
  }[] | undefined;
3843
+ scope?: "instance" | "collection" | undefined;
3823
3844
  listens?: {
3824
3845
  event: string;
3825
3846
  triggers: string;
@@ -3921,6 +3942,7 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
3921
3942
  description: z.ZodOptional<z.ZodString>;
3922
3943
  description_visual_prompt: z.ZodOptional<z.ZodString>;
3923
3944
  category: z.ZodOptional<z.ZodEnum<["lifecycle", "temporal", "validation", "notification", "integration", "interaction", "agent", "game-core", "game-character", "game-ai", "game-combat", "game-items", "game-cards", "game-board", "game-puzzle"]>>;
3945
+ scope: z.ZodOptional<z.ZodEnum<["instance", "collection"]>>;
3924
3946
  linkedEntity: z.ZodOptional<z.ZodString>;
3925
3947
  requiredFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
3926
3948
  name: z.ZodString;
@@ -4283,6 +4305,7 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
4283
4305
  }[] | undefined;
4284
4306
  scope?: "internal" | "external" | undefined;
4285
4307
  }[] | undefined;
4308
+ scope?: "instance" | "collection" | undefined;
4286
4309
  listens?: {
4287
4310
  event: string;
4288
4311
  triggers: string;
@@ -4378,6 +4401,7 @@ declare const TraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
4378
4401
  }[] | undefined;
4379
4402
  scope?: "internal" | "external" | undefined;
4380
4403
  }[] | undefined;
4404
+ scope?: "instance" | "collection" | undefined;
4381
4405
  listens?: {
4382
4406
  event: string;
4383
4407
  triggers: string;
@@ -4549,6 +4573,7 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
4549
4573
  description: z.ZodOptional<z.ZodString>;
4550
4574
  description_visual_prompt: z.ZodOptional<z.ZodString>;
4551
4575
  category: z.ZodOptional<z.ZodEnum<["lifecycle", "temporal", "validation", "notification", "integration", "interaction", "agent", "game-core", "game-character", "game-ai", "game-combat", "game-items", "game-cards", "game-board", "game-puzzle"]>>;
4576
+ scope: z.ZodOptional<z.ZodEnum<["instance", "collection"]>>;
4552
4577
  linkedEntity: z.ZodOptional<z.ZodString>;
4553
4578
  requiredFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
4554
4579
  name: z.ZodString;
@@ -4911,6 +4936,7 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
4911
4936
  }[] | undefined;
4912
4937
  scope?: "internal" | "external" | undefined;
4913
4938
  }[] | undefined;
4939
+ scope?: "instance" | "collection" | undefined;
4914
4940
  listens?: {
4915
4941
  event: string;
4916
4942
  triggers: string;
@@ -5006,6 +5032,7 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
5006
5032
  }[] | undefined;
5007
5033
  scope?: "internal" | "external" | undefined;
5008
5034
  }[] | undefined;
5035
+ scope?: "instance" | "collection" | undefined;
5009
5036
  listens?: {
5010
5037
  event: string;
5011
5038
  triggers: string;
@@ -6208,6 +6235,7 @@ declare const PageRefObjectSchema: z.ZodObject<{
6208
6235
  description: z.ZodOptional<z.ZodString>;
6209
6236
  description_visual_prompt: z.ZodOptional<z.ZodString>;
6210
6237
  category: z.ZodOptional<z.ZodEnum<["lifecycle", "temporal", "validation", "notification", "integration", "interaction", "agent", "game-core", "game-character", "game-ai", "game-combat", "game-items", "game-cards", "game-board", "game-puzzle"]>>;
6238
+ scope: z.ZodOptional<z.ZodEnum<["instance", "collection"]>>;
6211
6239
  linkedEntity: z.ZodOptional<z.ZodString>;
6212
6240
  requiredFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
6213
6241
  name: z.ZodString;
@@ -6570,6 +6598,7 @@ declare const PageRefObjectSchema: z.ZodObject<{
6570
6598
  }[] | undefined;
6571
6599
  scope?: "internal" | "external" | undefined;
6572
6600
  }[] | undefined;
6601
+ scope?: "instance" | "collection" | undefined;
6573
6602
  listens?: {
6574
6603
  event: string;
6575
6604
  triggers: string;
@@ -6665,6 +6694,7 @@ declare const PageRefObjectSchema: z.ZodObject<{
6665
6694
  }[] | undefined;
6666
6695
  scope?: "internal" | "external" | undefined;
6667
6696
  }[] | undefined;
6697
+ scope?: "instance" | "collection" | undefined;
6668
6698
  listens?: {
6669
6699
  event: string;
6670
6700
  triggers: string;
@@ -6765,6 +6795,7 @@ declare const PageRefObjectSchema: z.ZodObject<{
6765
6795
  }[] | undefined;
6766
6796
  scope?: "internal" | "external" | undefined;
6767
6797
  }[] | undefined;
6798
+ scope?: "instance" | "collection" | undefined;
6768
6799
  listens?: {
6769
6800
  event: string;
6770
6801
  triggers: string;
@@ -6872,6 +6903,7 @@ declare const PageRefObjectSchema: z.ZodObject<{
6872
6903
  }[] | undefined;
6873
6904
  scope?: "internal" | "external" | undefined;
6874
6905
  }[] | undefined;
6906
+ scope?: "instance" | "collection" | undefined;
6875
6907
  listens?: {
6876
6908
  event: string;
6877
6909
  triggers: string;
@@ -7030,6 +7062,7 @@ declare const PageRefSchema: z.ZodUnion<[z.ZodObject<{
7030
7062
  description: z.ZodOptional<z.ZodString>;
7031
7063
  description_visual_prompt: z.ZodOptional<z.ZodString>;
7032
7064
  category: z.ZodOptional<z.ZodEnum<["lifecycle", "temporal", "validation", "notification", "integration", "interaction", "agent", "game-core", "game-character", "game-ai", "game-combat", "game-items", "game-cards", "game-board", "game-puzzle"]>>;
7065
+ scope: z.ZodOptional<z.ZodEnum<["instance", "collection"]>>;
7033
7066
  linkedEntity: z.ZodOptional<z.ZodString>;
7034
7067
  requiredFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
7035
7068
  name: z.ZodString;
@@ -7392,6 +7425,7 @@ declare const PageRefSchema: z.ZodUnion<[z.ZodObject<{
7392
7425
  }[] | undefined;
7393
7426
  scope?: "internal" | "external" | undefined;
7394
7427
  }[] | undefined;
7428
+ scope?: "instance" | "collection" | undefined;
7395
7429
  listens?: {
7396
7430
  event: string;
7397
7431
  triggers: string;
@@ -7487,6 +7521,7 @@ declare const PageRefSchema: z.ZodUnion<[z.ZodObject<{
7487
7521
  }[] | undefined;
7488
7522
  scope?: "internal" | "external" | undefined;
7489
7523
  }[] | undefined;
7524
+ scope?: "instance" | "collection" | undefined;
7490
7525
  listens?: {
7491
7526
  event: string;
7492
7527
  triggers: string;
@@ -7587,6 +7622,7 @@ declare const PageRefSchema: z.ZodUnion<[z.ZodObject<{
7587
7622
  }[] | undefined;
7588
7623
  scope?: "internal" | "external" | undefined;
7589
7624
  }[] | undefined;
7625
+ scope?: "instance" | "collection" | undefined;
7590
7626
  listens?: {
7591
7627
  event: string;
7592
7628
  triggers: string;
@@ -7694,6 +7730,7 @@ declare const PageRefSchema: z.ZodUnion<[z.ZodObject<{
7694
7730
  }[] | undefined;
7695
7731
  scope?: "internal" | "external" | undefined;
7696
7732
  }[] | undefined;
7733
+ scope?: "instance" | "collection" | undefined;
7697
7734
  listens?: {
7698
7735
  event: string;
7699
7736
  triggers: string;
@@ -8511,6 +8548,7 @@ declare const OrbitalDefinitionSchema: z.ZodObject<{
8511
8548
  description: z.ZodOptional<z.ZodString>;
8512
8549
  description_visual_prompt: z.ZodOptional<z.ZodString>;
8513
8550
  category: z.ZodOptional<z.ZodEnum<["lifecycle", "temporal", "validation", "notification", "integration", "interaction", "agent", "game-core", "game-character", "game-ai", "game-combat", "game-items", "game-cards", "game-board", "game-puzzle"]>>;
8551
+ scope: z.ZodOptional<z.ZodEnum<["instance", "collection"]>>;
8514
8552
  linkedEntity: z.ZodOptional<z.ZodString>;
8515
8553
  requiredFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
8516
8554
  name: z.ZodString;
@@ -8873,6 +8911,7 @@ declare const OrbitalDefinitionSchema: z.ZodObject<{
8873
8911
  }[] | undefined;
8874
8912
  scope?: "internal" | "external" | undefined;
8875
8913
  }[] | undefined;
8914
+ scope?: "instance" | "collection" | undefined;
8876
8915
  listens?: {
8877
8916
  event: string;
8878
8917
  triggers: string;
@@ -8968,6 +9007,7 @@ declare const OrbitalDefinitionSchema: z.ZodObject<{
8968
9007
  }[] | undefined;
8969
9008
  scope?: "internal" | "external" | undefined;
8970
9009
  }[] | undefined;
9010
+ scope?: "instance" | "collection" | undefined;
8971
9011
  listens?: {
8972
9012
  event: string;
8973
9013
  triggers: string;
@@ -9118,6 +9158,7 @@ declare const OrbitalDefinitionSchema: z.ZodObject<{
9118
9158
  description: z.ZodOptional<z.ZodString>;
9119
9159
  description_visual_prompt: z.ZodOptional<z.ZodString>;
9120
9160
  category: z.ZodOptional<z.ZodEnum<["lifecycle", "temporal", "validation", "notification", "integration", "interaction", "agent", "game-core", "game-character", "game-ai", "game-combat", "game-items", "game-cards", "game-board", "game-puzzle"]>>;
9161
+ scope: z.ZodOptional<z.ZodEnum<["instance", "collection"]>>;
9121
9162
  linkedEntity: z.ZodOptional<z.ZodString>;
9122
9163
  requiredFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
9123
9164
  name: z.ZodString;
@@ -9480,6 +9521,7 @@ declare const OrbitalDefinitionSchema: z.ZodObject<{
9480
9521
  }[] | undefined;
9481
9522
  scope?: "internal" | "external" | undefined;
9482
9523
  }[] | undefined;
9524
+ scope?: "instance" | "collection" | undefined;
9483
9525
  listens?: {
9484
9526
  event: string;
9485
9527
  triggers: string;
@@ -9575,6 +9617,7 @@ declare const OrbitalDefinitionSchema: z.ZodObject<{
9575
9617
  }[] | undefined;
9576
9618
  scope?: "internal" | "external" | undefined;
9577
9619
  }[] | undefined;
9620
+ scope?: "instance" | "collection" | undefined;
9578
9621
  listens?: {
9579
9622
  event: string;
9580
9623
  triggers: string;
@@ -9675,6 +9718,7 @@ declare const OrbitalDefinitionSchema: z.ZodObject<{
9675
9718
  }[] | undefined;
9676
9719
  scope?: "internal" | "external" | undefined;
9677
9720
  }[] | undefined;
9721
+ scope?: "instance" | "collection" | undefined;
9678
9722
  listens?: {
9679
9723
  event: string;
9680
9724
  triggers: string;
@@ -9782,6 +9826,7 @@ declare const OrbitalDefinitionSchema: z.ZodObject<{
9782
9826
  }[] | undefined;
9783
9827
  scope?: "internal" | "external" | undefined;
9784
9828
  }[] | undefined;
9829
+ scope?: "instance" | "collection" | undefined;
9785
9830
  listens?: {
9786
9831
  event: string;
9787
9832
  triggers: string;
@@ -10153,6 +10198,7 @@ declare const OrbitalDefinitionSchema: z.ZodObject<{
10153
10198
  }[] | undefined;
10154
10199
  scope?: "internal" | "external" | undefined;
10155
10200
  }[] | undefined;
10201
+ scope?: "instance" | "collection" | undefined;
10156
10202
  listens?: {
10157
10203
  event: string;
10158
10204
  triggers: string;
@@ -10271,6 +10317,7 @@ declare const OrbitalDefinitionSchema: z.ZodObject<{
10271
10317
  }[] | undefined;
10272
10318
  scope?: "internal" | "external" | undefined;
10273
10319
  }[] | undefined;
10320
+ scope?: "instance" | "collection" | undefined;
10274
10321
  listens?: {
10275
10322
  event: string;
10276
10323
  triggers: string;
@@ -10529,6 +10576,7 @@ declare const OrbitalDefinitionSchema: z.ZodObject<{
10529
10576
  }[] | undefined;
10530
10577
  scope?: "internal" | "external" | undefined;
10531
10578
  }[] | undefined;
10579
+ scope?: "instance" | "collection" | undefined;
10532
10580
  listens?: {
10533
10581
  event: string;
10534
10582
  triggers: string;
@@ -10647,6 +10695,7 @@ declare const OrbitalDefinitionSchema: z.ZodObject<{
10647
10695
  }[] | undefined;
10648
10696
  scope?: "internal" | "external" | undefined;
10649
10697
  }[] | undefined;
10698
+ scope?: "instance" | "collection" | undefined;
10650
10699
  listens?: {
10651
10700
  event: string;
10652
10701
  triggers: string;
@@ -11214,6 +11263,7 @@ declare const OrbitalSchema$1: z.ZodObject<{
11214
11263
  description: z.ZodOptional<z.ZodString>;
11215
11264
  description_visual_prompt: z.ZodOptional<z.ZodString>;
11216
11265
  category: z.ZodOptional<z.ZodEnum<["lifecycle", "temporal", "validation", "notification", "integration", "interaction", "agent", "game-core", "game-character", "game-ai", "game-combat", "game-items", "game-cards", "game-board", "game-puzzle"]>>;
11266
+ scope: z.ZodOptional<z.ZodEnum<["instance", "collection"]>>;
11217
11267
  linkedEntity: z.ZodOptional<z.ZodString>;
11218
11268
  requiredFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
11219
11269
  name: z.ZodString;
@@ -11576,6 +11626,7 @@ declare const OrbitalSchema$1: z.ZodObject<{
11576
11626
  }[] | undefined;
11577
11627
  scope?: "internal" | "external" | undefined;
11578
11628
  }[] | undefined;
11629
+ scope?: "instance" | "collection" | undefined;
11579
11630
  listens?: {
11580
11631
  event: string;
11581
11632
  triggers: string;
@@ -11671,6 +11722,7 @@ declare const OrbitalSchema$1: z.ZodObject<{
11671
11722
  }[] | undefined;
11672
11723
  scope?: "internal" | "external" | undefined;
11673
11724
  }[] | undefined;
11725
+ scope?: "instance" | "collection" | undefined;
11674
11726
  listens?: {
11675
11727
  event: string;
11676
11728
  triggers: string;
@@ -11821,6 +11873,7 @@ declare const OrbitalSchema$1: z.ZodObject<{
11821
11873
  description: z.ZodOptional<z.ZodString>;
11822
11874
  description_visual_prompt: z.ZodOptional<z.ZodString>;
11823
11875
  category: z.ZodOptional<z.ZodEnum<["lifecycle", "temporal", "validation", "notification", "integration", "interaction", "agent", "game-core", "game-character", "game-ai", "game-combat", "game-items", "game-cards", "game-board", "game-puzzle"]>>;
11876
+ scope: z.ZodOptional<z.ZodEnum<["instance", "collection"]>>;
11824
11877
  linkedEntity: z.ZodOptional<z.ZodString>;
11825
11878
  requiredFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
11826
11879
  name: z.ZodString;
@@ -12183,6 +12236,7 @@ declare const OrbitalSchema$1: z.ZodObject<{
12183
12236
  }[] | undefined;
12184
12237
  scope?: "internal" | "external" | undefined;
12185
12238
  }[] | undefined;
12239
+ scope?: "instance" | "collection" | undefined;
12186
12240
  listens?: {
12187
12241
  event: string;
12188
12242
  triggers: string;
@@ -12278,6 +12332,7 @@ declare const OrbitalSchema$1: z.ZodObject<{
12278
12332
  }[] | undefined;
12279
12333
  scope?: "internal" | "external" | undefined;
12280
12334
  }[] | undefined;
12335
+ scope?: "instance" | "collection" | undefined;
12281
12336
  listens?: {
12282
12337
  event: string;
12283
12338
  triggers: string;
@@ -12378,6 +12433,7 @@ declare const OrbitalSchema$1: z.ZodObject<{
12378
12433
  }[] | undefined;
12379
12434
  scope?: "internal" | "external" | undefined;
12380
12435
  }[] | undefined;
12436
+ scope?: "instance" | "collection" | undefined;
12381
12437
  listens?: {
12382
12438
  event: string;
12383
12439
  triggers: string;
@@ -12485,6 +12541,7 @@ declare const OrbitalSchema$1: z.ZodObject<{
12485
12541
  }[] | undefined;
12486
12542
  scope?: "internal" | "external" | undefined;
12487
12543
  }[] | undefined;
12544
+ scope?: "instance" | "collection" | undefined;
12488
12545
  listens?: {
12489
12546
  event: string;
12490
12547
  triggers: string;
@@ -12856,6 +12913,7 @@ declare const OrbitalSchema$1: z.ZodObject<{
12856
12913
  }[] | undefined;
12857
12914
  scope?: "internal" | "external" | undefined;
12858
12915
  }[] | undefined;
12916
+ scope?: "instance" | "collection" | undefined;
12859
12917
  listens?: {
12860
12918
  event: string;
12861
12919
  triggers: string;
@@ -12974,6 +13032,7 @@ declare const OrbitalSchema$1: z.ZodObject<{
12974
13032
  }[] | undefined;
12975
13033
  scope?: "internal" | "external" | undefined;
12976
13034
  }[] | undefined;
13035
+ scope?: "instance" | "collection" | undefined;
12977
13036
  listens?: {
12978
13037
  event: string;
12979
13038
  triggers: string;
@@ -13232,6 +13291,7 @@ declare const OrbitalSchema$1: z.ZodObject<{
13232
13291
  }[] | undefined;
13233
13292
  scope?: "internal" | "external" | undefined;
13234
13293
  }[] | undefined;
13294
+ scope?: "instance" | "collection" | undefined;
13235
13295
  listens?: {
13236
13296
  event: string;
13237
13297
  triggers: string;
@@ -13350,6 +13410,7 @@ declare const OrbitalSchema$1: z.ZodObject<{
13350
13410
  }[] | undefined;
13351
13411
  scope?: "internal" | "external" | undefined;
13352
13412
  }[] | undefined;
13413
+ scope?: "instance" | "collection" | undefined;
13353
13414
  listens?: {
13354
13415
  event: string;
13355
13416
  triggers: string;
@@ -13924,6 +13985,7 @@ declare const OrbitalUnitSchema: z.ZodObject<{
13924
13985
  description: z.ZodOptional<z.ZodString>;
13925
13986
  description_visual_prompt: z.ZodOptional<z.ZodString>;
13926
13987
  category: z.ZodOptional<z.ZodEnum<["lifecycle", "temporal", "validation", "notification", "integration", "interaction", "agent", "game-core", "game-character", "game-ai", "game-combat", "game-items", "game-cards", "game-board", "game-puzzle"]>>;
13988
+ scope: z.ZodOptional<z.ZodEnum<["instance", "collection"]>>;
13927
13989
  linkedEntity: z.ZodOptional<z.ZodString>;
13928
13990
  requiredFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
13929
13991
  name: z.ZodString;
@@ -14286,6 +14348,7 @@ declare const OrbitalUnitSchema: z.ZodObject<{
14286
14348
  }[] | undefined;
14287
14349
  scope?: "internal" | "external" | undefined;
14288
14350
  }[] | undefined;
14351
+ scope?: "instance" | "collection" | undefined;
14289
14352
  listens?: {
14290
14353
  event: string;
14291
14354
  triggers: string;
@@ -14381,6 +14444,7 @@ declare const OrbitalUnitSchema: z.ZodObject<{
14381
14444
  }[] | undefined;
14382
14445
  scope?: "internal" | "external" | undefined;
14383
14446
  }[] | undefined;
14447
+ scope?: "instance" | "collection" | undefined;
14384
14448
  listens?: {
14385
14449
  event: string;
14386
14450
  triggers: string;
@@ -14531,6 +14595,7 @@ declare const OrbitalUnitSchema: z.ZodObject<{
14531
14595
  description: z.ZodOptional<z.ZodString>;
14532
14596
  description_visual_prompt: z.ZodOptional<z.ZodString>;
14533
14597
  category: z.ZodOptional<z.ZodEnum<["lifecycle", "temporal", "validation", "notification", "integration", "interaction", "agent", "game-core", "game-character", "game-ai", "game-combat", "game-items", "game-cards", "game-board", "game-puzzle"]>>;
14598
+ scope: z.ZodOptional<z.ZodEnum<["instance", "collection"]>>;
14534
14599
  linkedEntity: z.ZodOptional<z.ZodString>;
14535
14600
  requiredFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
14536
14601
  name: z.ZodString;
@@ -14893,6 +14958,7 @@ declare const OrbitalUnitSchema: z.ZodObject<{
14893
14958
  }[] | undefined;
14894
14959
  scope?: "internal" | "external" | undefined;
14895
14960
  }[] | undefined;
14961
+ scope?: "instance" | "collection" | undefined;
14896
14962
  listens?: {
14897
14963
  event: string;
14898
14964
  triggers: string;
@@ -14988,6 +15054,7 @@ declare const OrbitalUnitSchema: z.ZodObject<{
14988
15054
  }[] | undefined;
14989
15055
  scope?: "internal" | "external" | undefined;
14990
15056
  }[] | undefined;
15057
+ scope?: "instance" | "collection" | undefined;
14991
15058
  listens?: {
14992
15059
  event: string;
14993
15060
  triggers: string;
@@ -15088,6 +15155,7 @@ declare const OrbitalUnitSchema: z.ZodObject<{
15088
15155
  }[] | undefined;
15089
15156
  scope?: "internal" | "external" | undefined;
15090
15157
  }[] | undefined;
15158
+ scope?: "instance" | "collection" | undefined;
15091
15159
  listens?: {
15092
15160
  event: string;
15093
15161
  triggers: string;
@@ -15195,6 +15263,7 @@ declare const OrbitalUnitSchema: z.ZodObject<{
15195
15263
  }[] | undefined;
15196
15264
  scope?: "internal" | "external" | undefined;
15197
15265
  }[] | undefined;
15266
+ scope?: "instance" | "collection" | undefined;
15198
15267
  listens?: {
15199
15268
  event: string;
15200
15269
  triggers: string;
@@ -15566,6 +15635,7 @@ declare const OrbitalUnitSchema: z.ZodObject<{
15566
15635
  }[] | undefined;
15567
15636
  scope?: "internal" | "external" | undefined;
15568
15637
  }[] | undefined;
15638
+ scope?: "instance" | "collection" | undefined;
15569
15639
  listens?: {
15570
15640
  event: string;
15571
15641
  triggers: string;
@@ -15684,6 +15754,7 @@ declare const OrbitalUnitSchema: z.ZodObject<{
15684
15754
  }[] | undefined;
15685
15755
  scope?: "internal" | "external" | undefined;
15686
15756
  }[] | undefined;
15757
+ scope?: "instance" | "collection" | undefined;
15687
15758
  listens?: {
15688
15759
  event: string;
15689
15760
  triggers: string;
@@ -15942,6 +16013,7 @@ declare const OrbitalUnitSchema: z.ZodObject<{
15942
16013
  }[] | undefined;
15943
16014
  scope?: "internal" | "external" | undefined;
15944
16015
  }[] | undefined;
16016
+ scope?: "instance" | "collection" | undefined;
15945
16017
  listens?: {
15946
16018
  event: string;
15947
16019
  triggers: string;
@@ -16060,6 +16132,7 @@ declare const OrbitalUnitSchema: z.ZodObject<{
16060
16132
  }[] | undefined;
16061
16133
  scope?: "internal" | "external" | undefined;
16062
16134
  }[] | undefined;
16135
+ scope?: "instance" | "collection" | undefined;
16063
16136
  listens?: {
16064
16137
  event: string;
16065
16138
  triggers: string;
@@ -16875,6 +16948,7 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
16875
16948
  description: z.ZodOptional<z.ZodString>;
16876
16949
  description_visual_prompt: z.ZodOptional<z.ZodString>;
16877
16950
  category: z.ZodOptional<z.ZodEnum<["lifecycle", "temporal", "validation", "notification", "integration", "interaction", "agent", "game-core", "game-character", "game-ai", "game-combat", "game-items", "game-cards", "game-board", "game-puzzle"]>>;
16951
+ scope: z.ZodOptional<z.ZodEnum<["instance", "collection"]>>;
16878
16952
  linkedEntity: z.ZodOptional<z.ZodString>;
16879
16953
  requiredFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
16880
16954
  name: z.ZodString;
@@ -17237,6 +17311,7 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
17237
17311
  }[] | undefined;
17238
17312
  scope?: "internal" | "external" | undefined;
17239
17313
  }[] | undefined;
17314
+ scope?: "instance" | "collection" | undefined;
17240
17315
  listens?: {
17241
17316
  event: string;
17242
17317
  triggers: string;
@@ -17332,6 +17407,7 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
17332
17407
  }[] | undefined;
17333
17408
  scope?: "internal" | "external" | undefined;
17334
17409
  }[] | undefined;
17410
+ scope?: "instance" | "collection" | undefined;
17335
17411
  listens?: {
17336
17412
  event: string;
17337
17413
  triggers: string;
@@ -17482,6 +17558,7 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
17482
17558
  description: z.ZodOptional<z.ZodString>;
17483
17559
  description_visual_prompt: z.ZodOptional<z.ZodString>;
17484
17560
  category: z.ZodOptional<z.ZodEnum<["lifecycle", "temporal", "validation", "notification", "integration", "interaction", "agent", "game-core", "game-character", "game-ai", "game-combat", "game-items", "game-cards", "game-board", "game-puzzle"]>>;
17561
+ scope: z.ZodOptional<z.ZodEnum<["instance", "collection"]>>;
17485
17562
  linkedEntity: z.ZodOptional<z.ZodString>;
17486
17563
  requiredFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
17487
17564
  name: z.ZodString;
@@ -17844,6 +17921,7 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
17844
17921
  }[] | undefined;
17845
17922
  scope?: "internal" | "external" | undefined;
17846
17923
  }[] | undefined;
17924
+ scope?: "instance" | "collection" | undefined;
17847
17925
  listens?: {
17848
17926
  event: string;
17849
17927
  triggers: string;
@@ -17939,6 +18017,7 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
17939
18017
  }[] | undefined;
17940
18018
  scope?: "internal" | "external" | undefined;
17941
18019
  }[] | undefined;
18020
+ scope?: "instance" | "collection" | undefined;
17942
18021
  listens?: {
17943
18022
  event: string;
17944
18023
  triggers: string;
@@ -18039,6 +18118,7 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
18039
18118
  }[] | undefined;
18040
18119
  scope?: "internal" | "external" | undefined;
18041
18120
  }[] | undefined;
18121
+ scope?: "instance" | "collection" | undefined;
18042
18122
  listens?: {
18043
18123
  event: string;
18044
18124
  triggers: string;
@@ -18146,6 +18226,7 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
18146
18226
  }[] | undefined;
18147
18227
  scope?: "internal" | "external" | undefined;
18148
18228
  }[] | undefined;
18229
+ scope?: "instance" | "collection" | undefined;
18149
18230
  listens?: {
18150
18231
  event: string;
18151
18232
  triggers: string;
@@ -18517,6 +18598,7 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
18517
18598
  }[] | undefined;
18518
18599
  scope?: "internal" | "external" | undefined;
18519
18600
  }[] | undefined;
18601
+ scope?: "instance" | "collection" | undefined;
18520
18602
  listens?: {
18521
18603
  event: string;
18522
18604
  triggers: string;
@@ -18635,6 +18717,7 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
18635
18717
  }[] | undefined;
18636
18718
  scope?: "internal" | "external" | undefined;
18637
18719
  }[] | undefined;
18720
+ scope?: "instance" | "collection" | undefined;
18638
18721
  listens?: {
18639
18722
  event: string;
18640
18723
  triggers: string;
@@ -18893,6 +18976,7 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
18893
18976
  }[] | undefined;
18894
18977
  scope?: "internal" | "external" | undefined;
18895
18978
  }[] | undefined;
18979
+ scope?: "instance" | "collection" | undefined;
18896
18980
  listens?: {
18897
18981
  event: string;
18898
18982
  triggers: string;
@@ -19011,6 +19095,7 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
19011
19095
  }[] | undefined;
19012
19096
  scope?: "internal" | "external" | undefined;
19013
19097
  }[] | undefined;
19098
+ scope?: "instance" | "collection" | undefined;
19014
19099
  listens?: {
19015
19100
  event: string;
19016
19101
  triggers: string;
@@ -19447,6 +19532,7 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
19447
19532
  }[] | undefined;
19448
19533
  scope?: "internal" | "external" | undefined;
19449
19534
  }[] | undefined;
19535
+ scope?: "instance" | "collection" | undefined;
19450
19536
  listens?: {
19451
19537
  event: string;
19452
19538
  triggers: string;
@@ -19565,6 +19651,7 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
19565
19651
  }[] | undefined;
19566
19652
  scope?: "internal" | "external" | undefined;
19567
19653
  }[] | undefined;
19654
+ scope?: "instance" | "collection" | undefined;
19568
19655
  listens?: {
19569
19656
  event: string;
19570
19657
  triggers: string;
@@ -19912,6 +19999,7 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
19912
19999
  }[] | undefined;
19913
20000
  scope?: "internal" | "external" | undefined;
19914
20001
  }[] | undefined;
20002
+ scope?: "instance" | "collection" | undefined;
19915
20003
  listens?: {
19916
20004
  event: string;
19917
20005
  triggers: string;
@@ -20030,6 +20118,7 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
20030
20118
  }[] | undefined;
20031
20119
  scope?: "internal" | "external" | undefined;
20032
20120
  }[] | undefined;
20121
+ scope?: "instance" | "collection" | undefined;
20033
20122
  listens?: {
20034
20123
  event: string;
20035
20124
  triggers: string;
@@ -20424,6 +20513,7 @@ declare function safeParseOrbitalSchema(data: unknown): z.SafeParseReturnType<{
20424
20513
  }[] | undefined;
20425
20514
  scope?: "internal" | "external" | undefined;
20426
20515
  }[] | undefined;
20516
+ scope?: "instance" | "collection" | undefined;
20427
20517
  listens?: {
20428
20518
  event: string;
20429
20519
  triggers: string;
@@ -20542,6 +20632,7 @@ declare function safeParseOrbitalSchema(data: unknown): z.SafeParseReturnType<{
20542
20632
  }[] | undefined;
20543
20633
  scope?: "internal" | "external" | undefined;
20544
20634
  }[] | undefined;
20635
+ scope?: "instance" | "collection" | undefined;
20545
20636
  listens?: {
20546
20637
  event: string;
20547
20638
  triggers: string;
@@ -20889,6 +20980,7 @@ declare function safeParseOrbitalSchema(data: unknown): z.SafeParseReturnType<{
20889
20980
  }[] | undefined;
20890
20981
  scope?: "internal" | "external" | undefined;
20891
20982
  }[] | undefined;
20983
+ scope?: "instance" | "collection" | undefined;
20892
20984
  listens?: {
20893
20985
  event: string;
20894
20986
  triggers: string;
@@ -21007,6 +21099,7 @@ declare function safeParseOrbitalSchema(data: unknown): z.SafeParseReturnType<{
21007
21099
  }[] | undefined;
21008
21100
  scope?: "internal" | "external" | undefined;
21009
21101
  }[] | undefined;
21102
+ scope?: "instance" | "collection" | undefined;
21010
21103
  listens?: {
21011
21104
  event: string;
21012
21105
  triggers: string;