@almadar/core 10.40.0 → 10.42.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.
@@ -1,8 +1,7 @@
1
- import { T as TraitId, d as EntityId, P as PageId, O as OrbitalId, e as Entity, a as EntityField, E as EntityPersistence, c as EventId, a4 as IdentityLedger, b as EntityRow } from './entity-DfD-iXkn.js';
2
- import { d as TraitConfig, V as TraitConfigObject, a5 as TraitRef, n as EventPayloadField, $ as TraitEntityField, P as PayloadField, f as ConfigFieldDeclaration, c as Trait, T as TraitEventListener, C as CallSiteConfig, a1 as TraitEventContract, a as TraitReference } from './trait-C_TZnqb_.js';
3
- import { z } from 'zod';
4
- import { a5 as ServiceRef, a1 as ServiceDefinition, A as AnyPatternConfig, ao as UISlot, E as Effect, S as RenderBinding, V as RenderUIEffect } from './effect-DQPFowvO.js';
1
+ import { b as TraitConfig, c as TraitConfigObject, d as TraitRef, E as EventPayloadField, C as ConfigFieldDeclaration, e as TraitConfigValue, f as TraitEntityField, P as PayloadField, g as Trait } from './trait-BQIlqUHC.js';
5
2
  import { E as Expression, S as SExpr } from './expression-DpAj1RzP.js';
3
+ import { T as TraitId, d as EntityId, P as PageId, O as OrbitalId, S as ServiceRef, e as Entity, E as EntityField, a as EntityPersistence, b as EventId, g as ServiceDefinition, I as IdentityLedger } from './effect-D4os99OL.js';
4
+ import { z } from 'zod';
6
5
 
7
6
  /**
8
7
  * Page view types.
@@ -18749,24 +18748,86 @@ declare const PageRefObjectSchema: z.ZodObject<{
18749
18748
  path: z.ZodOptional<z.ZodString>;
18750
18749
  linkedEntity: z.ZodOptional<z.ZodString>;
18751
18750
  linkedEntityId: z.ZodOptional<z.ZodEffects<z.ZodString, EntityId, string>>;
18752
- traits: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
18751
+ traits: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<{
18753
18752
  ref: z.ZodString;
18754
- config: z.ZodOptional<z.ZodType<TraitConfigObject, z.ZodTypeDef, TraitConfigObject>>;
18753
+ refId: z.ZodOptional<z.ZodEffects<z.ZodString, TraitId, string>>;
18754
+ id: z.ZodOptional<z.ZodEffects<z.ZodString, TraitId, string>>;
18755
+ from: z.ZodOptional<z.ZodString>;
18755
18756
  linkedEntity: z.ZodOptional<z.ZodString>;
18757
+ linkedEntityId: z.ZodOptional<z.ZodEffects<z.ZodString, EntityId, string>>;
18756
18758
  name: z.ZodOptional<z.ZodString>;
18757
18759
  events: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
18760
+ eventIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, EventId, string>>>;
18761
+ fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
18762
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodType<ConfigFieldDeclaration, z.ZodTypeDef, ConfigFieldDeclaration>, z.ZodType<TraitConfigValue, z.ZodTypeDef, TraitConfigValue>]>>>;
18763
+ appliesTo: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
18764
+ listens: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
18765
+ emitsScope: z.ZodOptional<z.ZodEnum<["internal", "external"]>>;
18766
+ effects: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodType<SExpr, z.ZodTypeDef, SExpr>, "many">>>;
18758
18767
  }, "strip", z.ZodTypeAny, {
18759
18768
  ref: string;
18769
+ id?: TraitId | undefined;
18770
+ from?: string | undefined;
18760
18771
  name?: string | undefined;
18761
- config?: TraitConfigObject | undefined;
18772
+ fields?: Record<string, string> | undefined;
18773
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
18762
18774
  events?: Record<string, string> | undefined;
18775
+ effects?: Record<string, SExpr[]> | undefined;
18776
+ refId?: TraitId | undefined;
18777
+ appliesTo?: string[] | undefined;
18763
18778
  linkedEntity?: string | undefined;
18779
+ linkedEntityId?: EntityId | undefined;
18780
+ eventIds?: Record<string, EventId> | undefined;
18781
+ listens?: unknown[] | undefined;
18782
+ emitsScope?: "internal" | "external" | undefined;
18764
18783
  }, {
18765
18784
  ref: string;
18785
+ id?: string | undefined;
18786
+ from?: string | undefined;
18766
18787
  name?: string | undefined;
18767
- config?: TraitConfigObject | undefined;
18788
+ fields?: Record<string, string> | undefined;
18789
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
18790
+ events?: Record<string, string> | undefined;
18791
+ effects?: Record<string, SExpr[]> | undefined;
18792
+ refId?: string | undefined;
18793
+ appliesTo?: string[] | undefined;
18794
+ linkedEntity?: string | undefined;
18795
+ linkedEntityId?: string | undefined;
18796
+ eventIds?: Record<string, string> | undefined;
18797
+ listens?: unknown[] | undefined;
18798
+ emitsScope?: "internal" | "external" | undefined;
18799
+ }>, {
18800
+ ref: string;
18801
+ id?: TraitId | undefined;
18802
+ from?: string | undefined;
18803
+ name?: string | undefined;
18804
+ fields?: Record<string, string> | undefined;
18805
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
18806
+ events?: Record<string, string> | undefined;
18807
+ effects?: Record<string, SExpr[]> | undefined;
18808
+ refId?: TraitId | undefined;
18809
+ appliesTo?: string[] | undefined;
18810
+ linkedEntity?: string | undefined;
18811
+ linkedEntityId?: EntityId | undefined;
18812
+ eventIds?: Record<string, EventId> | undefined;
18813
+ listens?: unknown[] | undefined;
18814
+ emitsScope?: "internal" | "external" | undefined;
18815
+ }, {
18816
+ ref: string;
18817
+ id?: string | undefined;
18818
+ from?: string | undefined;
18819
+ name?: string | undefined;
18820
+ fields?: Record<string, string> | undefined;
18821
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
18768
18822
  events?: Record<string, string> | undefined;
18823
+ effects?: Record<string, SExpr[]> | undefined;
18824
+ refId?: string | undefined;
18825
+ appliesTo?: string[] | undefined;
18769
18826
  linkedEntity?: string | undefined;
18827
+ linkedEntityId?: string | undefined;
18828
+ eventIds?: Record<string, string> | undefined;
18829
+ listens?: unknown[] | undefined;
18830
+ emitsScope?: "internal" | "external" | undefined;
18770
18831
  }>, z.ZodObject<{
18771
18832
  id: z.ZodOptional<z.ZodEffects<z.ZodString, TraitId, string>>;
18772
18833
  name: z.ZodString;
@@ -19555,6 +19616,22 @@ declare const PageRefObjectSchema: z.ZodObject<{
19555
19616
  path?: string | undefined;
19556
19617
  from?: string | undefined;
19557
19618
  traits?: (string | {
19619
+ ref: string;
19620
+ id?: TraitId | undefined;
19621
+ from?: string | undefined;
19622
+ name?: string | undefined;
19623
+ fields?: Record<string, string> | undefined;
19624
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
19625
+ events?: Record<string, string> | undefined;
19626
+ effects?: Record<string, SExpr[]> | undefined;
19627
+ refId?: TraitId | undefined;
19628
+ appliesTo?: string[] | undefined;
19629
+ linkedEntity?: string | undefined;
19630
+ linkedEntityId?: EntityId | undefined;
19631
+ eventIds?: Record<string, EventId> | undefined;
19632
+ listens?: unknown[] | undefined;
19633
+ emitsScope?: "internal" | "external" | undefined;
19634
+ } | {
19558
19635
  name: string;
19559
19636
  scope: "collection" | "instance";
19560
19637
  id?: TraitId | undefined;
@@ -19701,12 +19778,6 @@ declare const PageRefObjectSchema: z.ZodObject<{
19701
19778
  aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
19702
19779
  } | undefined;
19703
19780
  } | undefined;
19704
- } | {
19705
- ref: string;
19706
- name?: string | undefined;
19707
- config?: TraitConfigObject | undefined;
19708
- events?: Record<string, string> | undefined;
19709
- linkedEntity?: string | undefined;
19710
19781
  })[] | undefined;
19711
19782
  refId?: PageId | undefined;
19712
19783
  linkedEntity?: string | undefined;
@@ -19717,6 +19788,22 @@ declare const PageRefObjectSchema: z.ZodObject<{
19717
19788
  path?: string | undefined;
19718
19789
  from?: string | undefined;
19719
19790
  traits?: (string | {
19791
+ ref: string;
19792
+ id?: string | undefined;
19793
+ from?: string | undefined;
19794
+ name?: string | undefined;
19795
+ fields?: Record<string, string> | undefined;
19796
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
19797
+ events?: Record<string, string> | undefined;
19798
+ effects?: Record<string, SExpr[]> | undefined;
19799
+ refId?: string | undefined;
19800
+ appliesTo?: string[] | undefined;
19801
+ linkedEntity?: string | undefined;
19802
+ linkedEntityId?: string | undefined;
19803
+ eventIds?: Record<string, string> | undefined;
19804
+ listens?: unknown[] | undefined;
19805
+ emitsScope?: "internal" | "external" | undefined;
19806
+ } | {
19720
19807
  name: string;
19721
19808
  scope: "collection" | "instance";
19722
19809
  id?: string | undefined;
@@ -19863,12 +19950,6 @@ declare const PageRefObjectSchema: z.ZodObject<{
19863
19950
  aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
19864
19951
  } | undefined;
19865
19952
  } | undefined;
19866
- } | {
19867
- ref: string;
19868
- name?: string | undefined;
19869
- config?: TraitConfigObject | undefined;
19870
- events?: Record<string, string> | undefined;
19871
- linkedEntity?: string | undefined;
19872
19953
  })[] | undefined;
19873
19954
  refId?: string | undefined;
19874
19955
  linkedEntity?: string | undefined;
@@ -19939,24 +20020,86 @@ declare const PageRefSchema: z.ZodUnion<[z.ZodObject<{
19939
20020
  path: z.ZodOptional<z.ZodString>;
19940
20021
  linkedEntity: z.ZodOptional<z.ZodString>;
19941
20022
  linkedEntityId: z.ZodOptional<z.ZodEffects<z.ZodString, EntityId, string>>;
19942
- traits: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
20023
+ traits: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<{
19943
20024
  ref: z.ZodString;
19944
- config: z.ZodOptional<z.ZodType<TraitConfigObject, z.ZodTypeDef, TraitConfigObject>>;
20025
+ refId: z.ZodOptional<z.ZodEffects<z.ZodString, TraitId, string>>;
20026
+ id: z.ZodOptional<z.ZodEffects<z.ZodString, TraitId, string>>;
20027
+ from: z.ZodOptional<z.ZodString>;
19945
20028
  linkedEntity: z.ZodOptional<z.ZodString>;
20029
+ linkedEntityId: z.ZodOptional<z.ZodEffects<z.ZodString, EntityId, string>>;
19946
20030
  name: z.ZodOptional<z.ZodString>;
19947
20031
  events: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
20032
+ eventIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, EventId, string>>>;
20033
+ fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
20034
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodType<ConfigFieldDeclaration, z.ZodTypeDef, ConfigFieldDeclaration>, z.ZodType<TraitConfigValue, z.ZodTypeDef, TraitConfigValue>]>>>;
20035
+ appliesTo: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
20036
+ listens: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
20037
+ emitsScope: z.ZodOptional<z.ZodEnum<["internal", "external"]>>;
20038
+ effects: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodType<SExpr, z.ZodTypeDef, SExpr>, "many">>>;
19948
20039
  }, "strip", z.ZodTypeAny, {
19949
20040
  ref: string;
20041
+ id?: TraitId | undefined;
20042
+ from?: string | undefined;
19950
20043
  name?: string | undefined;
19951
- config?: TraitConfigObject | undefined;
20044
+ fields?: Record<string, string> | undefined;
20045
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
19952
20046
  events?: Record<string, string> | undefined;
20047
+ effects?: Record<string, SExpr[]> | undefined;
20048
+ refId?: TraitId | undefined;
20049
+ appliesTo?: string[] | undefined;
19953
20050
  linkedEntity?: string | undefined;
20051
+ linkedEntityId?: EntityId | undefined;
20052
+ eventIds?: Record<string, EventId> | undefined;
20053
+ listens?: unknown[] | undefined;
20054
+ emitsScope?: "internal" | "external" | undefined;
19954
20055
  }, {
19955
20056
  ref: string;
20057
+ id?: string | undefined;
20058
+ from?: string | undefined;
19956
20059
  name?: string | undefined;
19957
- config?: TraitConfigObject | undefined;
20060
+ fields?: Record<string, string> | undefined;
20061
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
19958
20062
  events?: Record<string, string> | undefined;
20063
+ effects?: Record<string, SExpr[]> | undefined;
20064
+ refId?: string | undefined;
20065
+ appliesTo?: string[] | undefined;
19959
20066
  linkedEntity?: string | undefined;
20067
+ linkedEntityId?: string | undefined;
20068
+ eventIds?: Record<string, string> | undefined;
20069
+ listens?: unknown[] | undefined;
20070
+ emitsScope?: "internal" | "external" | undefined;
20071
+ }>, {
20072
+ ref: string;
20073
+ id?: TraitId | undefined;
20074
+ from?: string | undefined;
20075
+ name?: string | undefined;
20076
+ fields?: Record<string, string> | undefined;
20077
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
20078
+ events?: Record<string, string> | undefined;
20079
+ effects?: Record<string, SExpr[]> | undefined;
20080
+ refId?: TraitId | undefined;
20081
+ appliesTo?: string[] | undefined;
20082
+ linkedEntity?: string | undefined;
20083
+ linkedEntityId?: EntityId | undefined;
20084
+ eventIds?: Record<string, EventId> | undefined;
20085
+ listens?: unknown[] | undefined;
20086
+ emitsScope?: "internal" | "external" | undefined;
20087
+ }, {
20088
+ ref: string;
20089
+ id?: string | undefined;
20090
+ from?: string | undefined;
20091
+ name?: string | undefined;
20092
+ fields?: Record<string, string> | undefined;
20093
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
20094
+ events?: Record<string, string> | undefined;
20095
+ effects?: Record<string, SExpr[]> | undefined;
20096
+ refId?: string | undefined;
20097
+ appliesTo?: string[] | undefined;
20098
+ linkedEntity?: string | undefined;
20099
+ linkedEntityId?: string | undefined;
20100
+ eventIds?: Record<string, string> | undefined;
20101
+ listens?: unknown[] | undefined;
20102
+ emitsScope?: "internal" | "external" | undefined;
19960
20103
  }>, z.ZodObject<{
19961
20104
  id: z.ZodOptional<z.ZodEffects<z.ZodString, TraitId, string>>;
19962
20105
  name: z.ZodString;
@@ -20745,6 +20888,22 @@ declare const PageRefSchema: z.ZodUnion<[z.ZodObject<{
20745
20888
  path?: string | undefined;
20746
20889
  from?: string | undefined;
20747
20890
  traits?: (string | {
20891
+ ref: string;
20892
+ id?: TraitId | undefined;
20893
+ from?: string | undefined;
20894
+ name?: string | undefined;
20895
+ fields?: Record<string, string> | undefined;
20896
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
20897
+ events?: Record<string, string> | undefined;
20898
+ effects?: Record<string, SExpr[]> | undefined;
20899
+ refId?: TraitId | undefined;
20900
+ appliesTo?: string[] | undefined;
20901
+ linkedEntity?: string | undefined;
20902
+ linkedEntityId?: EntityId | undefined;
20903
+ eventIds?: Record<string, EventId> | undefined;
20904
+ listens?: unknown[] | undefined;
20905
+ emitsScope?: "internal" | "external" | undefined;
20906
+ } | {
20748
20907
  name: string;
20749
20908
  scope: "collection" | "instance";
20750
20909
  id?: TraitId | undefined;
@@ -20891,12 +21050,6 @@ declare const PageRefSchema: z.ZodUnion<[z.ZodObject<{
20891
21050
  aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
20892
21051
  } | undefined;
20893
21052
  } | undefined;
20894
- } | {
20895
- ref: string;
20896
- name?: string | undefined;
20897
- config?: TraitConfigObject | undefined;
20898
- events?: Record<string, string> | undefined;
20899
- linkedEntity?: string | undefined;
20900
21053
  })[] | undefined;
20901
21054
  refId?: PageId | undefined;
20902
21055
  linkedEntity?: string | undefined;
@@ -20907,6 +21060,22 @@ declare const PageRefSchema: z.ZodUnion<[z.ZodObject<{
20907
21060
  path?: string | undefined;
20908
21061
  from?: string | undefined;
20909
21062
  traits?: (string | {
21063
+ ref: string;
21064
+ id?: string | undefined;
21065
+ from?: string | undefined;
21066
+ name?: string | undefined;
21067
+ fields?: Record<string, string> | undefined;
21068
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
21069
+ events?: Record<string, string> | undefined;
21070
+ effects?: Record<string, SExpr[]> | undefined;
21071
+ refId?: string | undefined;
21072
+ appliesTo?: string[] | undefined;
21073
+ linkedEntity?: string | undefined;
21074
+ linkedEntityId?: string | undefined;
21075
+ eventIds?: Record<string, string> | undefined;
21076
+ listens?: unknown[] | undefined;
21077
+ emitsScope?: "internal" | "external" | undefined;
21078
+ } | {
20910
21079
  name: string;
20911
21080
  scope: "collection" | "instance";
20912
21081
  id?: string | undefined;
@@ -21053,12 +21222,6 @@ declare const PageRefSchema: z.ZodUnion<[z.ZodObject<{
21053
21222
  aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
21054
21223
  } | undefined;
21055
21224
  } | undefined;
21056
- } | {
21057
- ref: string;
21058
- name?: string | undefined;
21059
- config?: TraitConfigObject | undefined;
21060
- events?: Record<string, string> | undefined;
21061
- linkedEntity?: string | undefined;
21062
21225
  })[] | undefined;
21063
21226
  refId?: string | undefined;
21064
21227
  linkedEntity?: string | undefined;
@@ -25579,24 +25742,86 @@ declare const OrbitalDefinitionSchema: z.ZodObject<{
25579
25742
  collection?: string | undefined;
25580
25743
  fields?: unknown[] | undefined;
25581
25744
  }>]>;
25582
- traits: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
25745
+ traits: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<{
25583
25746
  ref: z.ZodString;
25584
- config: z.ZodOptional<z.ZodType<TraitConfigObject, z.ZodTypeDef, TraitConfigObject>>;
25747
+ refId: z.ZodOptional<z.ZodEffects<z.ZodString, TraitId, string>>;
25748
+ id: z.ZodOptional<z.ZodEffects<z.ZodString, TraitId, string>>;
25749
+ from: z.ZodOptional<z.ZodString>;
25585
25750
  linkedEntity: z.ZodOptional<z.ZodString>;
25751
+ linkedEntityId: z.ZodOptional<z.ZodEffects<z.ZodString, EntityId, string>>;
25586
25752
  name: z.ZodOptional<z.ZodString>;
25587
25753
  events: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
25754
+ eventIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, EventId, string>>>;
25755
+ fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
25756
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodType<ConfigFieldDeclaration, z.ZodTypeDef, ConfigFieldDeclaration>, z.ZodType<TraitConfigValue, z.ZodTypeDef, TraitConfigValue>]>>>;
25757
+ appliesTo: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
25758
+ listens: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
25759
+ emitsScope: z.ZodOptional<z.ZodEnum<["internal", "external"]>>;
25760
+ effects: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodType<SExpr, z.ZodTypeDef, SExpr>, "many">>>;
25588
25761
  }, "strip", z.ZodTypeAny, {
25589
25762
  ref: string;
25763
+ id?: TraitId | undefined;
25764
+ from?: string | undefined;
25590
25765
  name?: string | undefined;
25591
- config?: TraitConfigObject | undefined;
25766
+ fields?: Record<string, string> | undefined;
25767
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
25592
25768
  events?: Record<string, string> | undefined;
25769
+ effects?: Record<string, SExpr[]> | undefined;
25770
+ refId?: TraitId | undefined;
25771
+ appliesTo?: string[] | undefined;
25593
25772
  linkedEntity?: string | undefined;
25773
+ linkedEntityId?: EntityId | undefined;
25774
+ eventIds?: Record<string, EventId> | undefined;
25775
+ listens?: unknown[] | undefined;
25776
+ emitsScope?: "internal" | "external" | undefined;
25594
25777
  }, {
25595
25778
  ref: string;
25779
+ id?: string | undefined;
25780
+ from?: string | undefined;
25596
25781
  name?: string | undefined;
25597
- config?: TraitConfigObject | undefined;
25782
+ fields?: Record<string, string> | undefined;
25783
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
25598
25784
  events?: Record<string, string> | undefined;
25785
+ effects?: Record<string, SExpr[]> | undefined;
25786
+ refId?: string | undefined;
25787
+ appliesTo?: string[] | undefined;
25599
25788
  linkedEntity?: string | undefined;
25789
+ linkedEntityId?: string | undefined;
25790
+ eventIds?: Record<string, string> | undefined;
25791
+ listens?: unknown[] | undefined;
25792
+ emitsScope?: "internal" | "external" | undefined;
25793
+ }>, {
25794
+ ref: string;
25795
+ id?: TraitId | undefined;
25796
+ from?: string | undefined;
25797
+ name?: string | undefined;
25798
+ fields?: Record<string, string> | undefined;
25799
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
25800
+ events?: Record<string, string> | undefined;
25801
+ effects?: Record<string, SExpr[]> | undefined;
25802
+ refId?: TraitId | undefined;
25803
+ appliesTo?: string[] | undefined;
25804
+ linkedEntity?: string | undefined;
25805
+ linkedEntityId?: EntityId | undefined;
25806
+ eventIds?: Record<string, EventId> | undefined;
25807
+ listens?: unknown[] | undefined;
25808
+ emitsScope?: "internal" | "external" | undefined;
25809
+ }, {
25810
+ ref: string;
25811
+ id?: string | undefined;
25812
+ from?: string | undefined;
25813
+ name?: string | undefined;
25814
+ fields?: Record<string, string> | undefined;
25815
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
25816
+ events?: Record<string, string> | undefined;
25817
+ effects?: Record<string, SExpr[]> | undefined;
25818
+ refId?: string | undefined;
25819
+ appliesTo?: string[] | undefined;
25820
+ linkedEntity?: string | undefined;
25821
+ linkedEntityId?: string | undefined;
25822
+ eventIds?: Record<string, string> | undefined;
25823
+ listens?: unknown[] | undefined;
25824
+ emitsScope?: "internal" | "external" | undefined;
25600
25825
  }>, z.ZodObject<{
25601
25826
  id: z.ZodOptional<z.ZodEffects<z.ZodString, TraitId, string>>;
25602
25827
  name: z.ZodString;
@@ -26443,24 +26668,86 @@ declare const OrbitalDefinitionSchema: z.ZodObject<{
26443
26668
  path: z.ZodOptional<z.ZodString>;
26444
26669
  linkedEntity: z.ZodOptional<z.ZodString>;
26445
26670
  linkedEntityId: z.ZodOptional<z.ZodEffects<z.ZodString, EntityId, string>>;
26446
- traits: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
26671
+ traits: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<{
26447
26672
  ref: z.ZodString;
26448
- config: z.ZodOptional<z.ZodType<TraitConfigObject, z.ZodTypeDef, TraitConfigObject>>;
26673
+ refId: z.ZodOptional<z.ZodEffects<z.ZodString, TraitId, string>>;
26674
+ id: z.ZodOptional<z.ZodEffects<z.ZodString, TraitId, string>>;
26675
+ from: z.ZodOptional<z.ZodString>;
26449
26676
  linkedEntity: z.ZodOptional<z.ZodString>;
26677
+ linkedEntityId: z.ZodOptional<z.ZodEffects<z.ZodString, EntityId, string>>;
26450
26678
  name: z.ZodOptional<z.ZodString>;
26451
26679
  events: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
26680
+ eventIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, EventId, string>>>;
26681
+ fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
26682
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodType<ConfigFieldDeclaration, z.ZodTypeDef, ConfigFieldDeclaration>, z.ZodType<TraitConfigValue, z.ZodTypeDef, TraitConfigValue>]>>>;
26683
+ appliesTo: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
26684
+ listens: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
26685
+ emitsScope: z.ZodOptional<z.ZodEnum<["internal", "external"]>>;
26686
+ effects: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodType<SExpr, z.ZodTypeDef, SExpr>, "many">>>;
26452
26687
  }, "strip", z.ZodTypeAny, {
26453
26688
  ref: string;
26689
+ id?: TraitId | undefined;
26690
+ from?: string | undefined;
26454
26691
  name?: string | undefined;
26455
- config?: TraitConfigObject | undefined;
26692
+ fields?: Record<string, string> | undefined;
26693
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
26456
26694
  events?: Record<string, string> | undefined;
26695
+ effects?: Record<string, SExpr[]> | undefined;
26696
+ refId?: TraitId | undefined;
26697
+ appliesTo?: string[] | undefined;
26457
26698
  linkedEntity?: string | undefined;
26699
+ linkedEntityId?: EntityId | undefined;
26700
+ eventIds?: Record<string, EventId> | undefined;
26701
+ listens?: unknown[] | undefined;
26702
+ emitsScope?: "internal" | "external" | undefined;
26458
26703
  }, {
26459
26704
  ref: string;
26705
+ id?: string | undefined;
26706
+ from?: string | undefined;
26460
26707
  name?: string | undefined;
26461
- config?: TraitConfigObject | undefined;
26708
+ fields?: Record<string, string> | undefined;
26709
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
26462
26710
  events?: Record<string, string> | undefined;
26711
+ effects?: Record<string, SExpr[]> | undefined;
26712
+ refId?: string | undefined;
26713
+ appliesTo?: string[] | undefined;
26463
26714
  linkedEntity?: string | undefined;
26715
+ linkedEntityId?: string | undefined;
26716
+ eventIds?: Record<string, string> | undefined;
26717
+ listens?: unknown[] | undefined;
26718
+ emitsScope?: "internal" | "external" | undefined;
26719
+ }>, {
26720
+ ref: string;
26721
+ id?: TraitId | undefined;
26722
+ from?: string | undefined;
26723
+ name?: string | undefined;
26724
+ fields?: Record<string, string> | undefined;
26725
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
26726
+ events?: Record<string, string> | undefined;
26727
+ effects?: Record<string, SExpr[]> | undefined;
26728
+ refId?: TraitId | undefined;
26729
+ appliesTo?: string[] | undefined;
26730
+ linkedEntity?: string | undefined;
26731
+ linkedEntityId?: EntityId | undefined;
26732
+ eventIds?: Record<string, EventId> | undefined;
26733
+ listens?: unknown[] | undefined;
26734
+ emitsScope?: "internal" | "external" | undefined;
26735
+ }, {
26736
+ ref: string;
26737
+ id?: string | undefined;
26738
+ from?: string | undefined;
26739
+ name?: string | undefined;
26740
+ fields?: Record<string, string> | undefined;
26741
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
26742
+ events?: Record<string, string> | undefined;
26743
+ effects?: Record<string, SExpr[]> | undefined;
26744
+ refId?: string | undefined;
26745
+ appliesTo?: string[] | undefined;
26746
+ linkedEntity?: string | undefined;
26747
+ linkedEntityId?: string | undefined;
26748
+ eventIds?: Record<string, string> | undefined;
26749
+ listens?: unknown[] | undefined;
26750
+ emitsScope?: "internal" | "external" | undefined;
26464
26751
  }>, z.ZodObject<{
26465
26752
  id: z.ZodOptional<z.ZodEffects<z.ZodString, TraitId, string>>;
26466
26753
  name: z.ZodString;
@@ -27249,6 +27536,22 @@ declare const OrbitalDefinitionSchema: z.ZodObject<{
27249
27536
  path?: string | undefined;
27250
27537
  from?: string | undefined;
27251
27538
  traits?: (string | {
27539
+ ref: string;
27540
+ id?: TraitId | undefined;
27541
+ from?: string | undefined;
27542
+ name?: string | undefined;
27543
+ fields?: Record<string, string> | undefined;
27544
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
27545
+ events?: Record<string, string> | undefined;
27546
+ effects?: Record<string, SExpr[]> | undefined;
27547
+ refId?: TraitId | undefined;
27548
+ appliesTo?: string[] | undefined;
27549
+ linkedEntity?: string | undefined;
27550
+ linkedEntityId?: EntityId | undefined;
27551
+ eventIds?: Record<string, EventId> | undefined;
27552
+ listens?: unknown[] | undefined;
27553
+ emitsScope?: "internal" | "external" | undefined;
27554
+ } | {
27252
27555
  name: string;
27253
27556
  scope: "collection" | "instance";
27254
27557
  id?: TraitId | undefined;
@@ -27395,12 +27698,6 @@ declare const OrbitalDefinitionSchema: z.ZodObject<{
27395
27698
  aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
27396
27699
  } | undefined;
27397
27700
  } | undefined;
27398
- } | {
27399
- ref: string;
27400
- name?: string | undefined;
27401
- config?: TraitConfigObject | undefined;
27402
- events?: Record<string, string> | undefined;
27403
- linkedEntity?: string | undefined;
27404
27701
  })[] | undefined;
27405
27702
  refId?: PageId | undefined;
27406
27703
  linkedEntity?: string | undefined;
@@ -27411,6 +27708,22 @@ declare const OrbitalDefinitionSchema: z.ZodObject<{
27411
27708
  path?: string | undefined;
27412
27709
  from?: string | undefined;
27413
27710
  traits?: (string | {
27711
+ ref: string;
27712
+ id?: string | undefined;
27713
+ from?: string | undefined;
27714
+ name?: string | undefined;
27715
+ fields?: Record<string, string> | undefined;
27716
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
27717
+ events?: Record<string, string> | undefined;
27718
+ effects?: Record<string, SExpr[]> | undefined;
27719
+ refId?: string | undefined;
27720
+ appliesTo?: string[] | undefined;
27721
+ linkedEntity?: string | undefined;
27722
+ linkedEntityId?: string | undefined;
27723
+ eventIds?: Record<string, string> | undefined;
27724
+ listens?: unknown[] | undefined;
27725
+ emitsScope?: "internal" | "external" | undefined;
27726
+ } | {
27414
27727
  name: string;
27415
27728
  scope: "collection" | "instance";
27416
27729
  id?: string | undefined;
@@ -27557,12 +27870,6 @@ declare const OrbitalDefinitionSchema: z.ZodObject<{
27557
27870
  aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
27558
27871
  } | undefined;
27559
27872
  } | undefined;
27560
- } | {
27561
- ref: string;
27562
- name?: string | undefined;
27563
- config?: TraitConfigObject | undefined;
27564
- events?: Record<string, string> | undefined;
27565
- linkedEntity?: string | undefined;
27566
27873
  })[] | undefined;
27567
27874
  refId?: string | undefined;
27568
27875
  linkedEntity?: string | undefined;
@@ -27830,6 +28137,22 @@ declare const OrbitalDefinitionSchema: z.ZodObject<{
27830
28137
  path?: string | undefined;
27831
28138
  from?: string | undefined;
27832
28139
  traits?: (string | {
28140
+ ref: string;
28141
+ id?: TraitId | undefined;
28142
+ from?: string | undefined;
28143
+ name?: string | undefined;
28144
+ fields?: Record<string, string> | undefined;
28145
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
28146
+ events?: Record<string, string> | undefined;
28147
+ effects?: Record<string, SExpr[]> | undefined;
28148
+ refId?: TraitId | undefined;
28149
+ appliesTo?: string[] | undefined;
28150
+ linkedEntity?: string | undefined;
28151
+ linkedEntityId?: EntityId | undefined;
28152
+ eventIds?: Record<string, EventId> | undefined;
28153
+ listens?: unknown[] | undefined;
28154
+ emitsScope?: "internal" | "external" | undefined;
28155
+ } | {
27833
28156
  name: string;
27834
28157
  scope: "collection" | "instance";
27835
28158
  id?: TraitId | undefined;
@@ -27976,12 +28299,6 @@ declare const OrbitalDefinitionSchema: z.ZodObject<{
27976
28299
  aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
27977
28300
  } | undefined;
27978
28301
  } | undefined;
27979
- } | {
27980
- ref: string;
27981
- name?: string | undefined;
27982
- config?: TraitConfigObject | undefined;
27983
- events?: Record<string, string> | undefined;
27984
- linkedEntity?: string | undefined;
27985
28302
  })[] | undefined;
27986
28303
  refId?: PageId | undefined;
27987
28304
  linkedEntity?: string | undefined;
@@ -27989,6 +28306,22 @@ declare const OrbitalDefinitionSchema: z.ZodObject<{
27989
28306
  traitRefIds?: TraitId[] | undefined;
27990
28307
  })[];
27991
28308
  traits: (string | {
28309
+ ref: string;
28310
+ id?: TraitId | undefined;
28311
+ from?: string | undefined;
28312
+ name?: string | undefined;
28313
+ fields?: Record<string, string> | undefined;
28314
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
28315
+ events?: Record<string, string> | undefined;
28316
+ effects?: Record<string, SExpr[]> | undefined;
28317
+ refId?: TraitId | undefined;
28318
+ appliesTo?: string[] | undefined;
28319
+ linkedEntity?: string | undefined;
28320
+ linkedEntityId?: EntityId | undefined;
28321
+ eventIds?: Record<string, EventId> | undefined;
28322
+ listens?: unknown[] | undefined;
28323
+ emitsScope?: "internal" | "external" | undefined;
28324
+ } | {
27992
28325
  name: string;
27993
28326
  scope: "collection" | "instance";
27994
28327
  id?: TraitId | undefined;
@@ -28135,12 +28468,6 @@ declare const OrbitalDefinitionSchema: z.ZodObject<{
28135
28468
  aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
28136
28469
  } | undefined;
28137
28470
  } | undefined;
28138
- } | {
28139
- ref: string;
28140
- name?: string | undefined;
28141
- config?: TraitConfigObject | undefined;
28142
- events?: Record<string, string> | undefined;
28143
- linkedEntity?: string | undefined;
28144
28471
  })[];
28145
28472
  theme?: string | {
28146
28473
  name: string;
@@ -28747,6 +29074,22 @@ declare const OrbitalDefinitionSchema: z.ZodObject<{
28747
29074
  path?: string | undefined;
28748
29075
  from?: string | undefined;
28749
29076
  traits?: (string | {
29077
+ ref: string;
29078
+ id?: string | undefined;
29079
+ from?: string | undefined;
29080
+ name?: string | undefined;
29081
+ fields?: Record<string, string> | undefined;
29082
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
29083
+ events?: Record<string, string> | undefined;
29084
+ effects?: Record<string, SExpr[]> | undefined;
29085
+ refId?: string | undefined;
29086
+ appliesTo?: string[] | undefined;
29087
+ linkedEntity?: string | undefined;
29088
+ linkedEntityId?: string | undefined;
29089
+ eventIds?: Record<string, string> | undefined;
29090
+ listens?: unknown[] | undefined;
29091
+ emitsScope?: "internal" | "external" | undefined;
29092
+ } | {
28750
29093
  name: string;
28751
29094
  scope: "collection" | "instance";
28752
29095
  id?: string | undefined;
@@ -28893,12 +29236,6 @@ declare const OrbitalDefinitionSchema: z.ZodObject<{
28893
29236
  aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
28894
29237
  } | undefined;
28895
29238
  } | undefined;
28896
- } | {
28897
- ref: string;
28898
- name?: string | undefined;
28899
- config?: TraitConfigObject | undefined;
28900
- events?: Record<string, string> | undefined;
28901
- linkedEntity?: string | undefined;
28902
29239
  })[] | undefined;
28903
29240
  refId?: string | undefined;
28904
29241
  linkedEntity?: string | undefined;
@@ -28906,6 +29243,22 @@ declare const OrbitalDefinitionSchema: z.ZodObject<{
28906
29243
  traitRefIds?: string[] | undefined;
28907
29244
  })[];
28908
29245
  traits: (string | {
29246
+ ref: string;
29247
+ id?: string | undefined;
29248
+ from?: string | undefined;
29249
+ name?: string | undefined;
29250
+ fields?: Record<string, string> | undefined;
29251
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
29252
+ events?: Record<string, string> | undefined;
29253
+ effects?: Record<string, SExpr[]> | undefined;
29254
+ refId?: string | undefined;
29255
+ appliesTo?: string[] | undefined;
29256
+ linkedEntity?: string | undefined;
29257
+ linkedEntityId?: string | undefined;
29258
+ eventIds?: Record<string, string> | undefined;
29259
+ listens?: unknown[] | undefined;
29260
+ emitsScope?: "internal" | "external" | undefined;
29261
+ } | {
28909
29262
  name: string;
28910
29263
  scope: "collection" | "instance";
28911
29264
  id?: string | undefined;
@@ -29052,12 +29405,6 @@ declare const OrbitalDefinitionSchema: z.ZodObject<{
29052
29405
  aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
29053
29406
  } | undefined;
29054
29407
  } | undefined;
29055
- } | {
29056
- ref: string;
29057
- name?: string | undefined;
29058
- config?: TraitConfigObject | undefined;
29059
- events?: Record<string, string> | undefined;
29060
- linkedEntity?: string | undefined;
29061
29408
  })[];
29062
29409
  theme?: string | {
29063
29410
  name: string;
@@ -33765,24 +34112,86 @@ declare const OrbitalSchema$1: z.ZodObject<{
33765
34112
  collection?: string | undefined;
33766
34113
  fields?: unknown[] | undefined;
33767
34114
  }>]>;
33768
- traits: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
34115
+ traits: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<{
33769
34116
  ref: z.ZodString;
33770
- config: z.ZodOptional<z.ZodType<TraitConfigObject, z.ZodTypeDef, TraitConfigObject>>;
34117
+ refId: z.ZodOptional<z.ZodEffects<z.ZodString, TraitId, string>>;
34118
+ id: z.ZodOptional<z.ZodEffects<z.ZodString, TraitId, string>>;
34119
+ from: z.ZodOptional<z.ZodString>;
33771
34120
  linkedEntity: z.ZodOptional<z.ZodString>;
34121
+ linkedEntityId: z.ZodOptional<z.ZodEffects<z.ZodString, EntityId, string>>;
33772
34122
  name: z.ZodOptional<z.ZodString>;
33773
34123
  events: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
34124
+ eventIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, EventId, string>>>;
34125
+ fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
34126
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodType<ConfigFieldDeclaration, z.ZodTypeDef, ConfigFieldDeclaration>, z.ZodType<TraitConfigValue, z.ZodTypeDef, TraitConfigValue>]>>>;
34127
+ appliesTo: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
34128
+ listens: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
34129
+ emitsScope: z.ZodOptional<z.ZodEnum<["internal", "external"]>>;
34130
+ effects: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodType<SExpr, z.ZodTypeDef, SExpr>, "many">>>;
33774
34131
  }, "strip", z.ZodTypeAny, {
33775
34132
  ref: string;
34133
+ id?: TraitId | undefined;
34134
+ from?: string | undefined;
33776
34135
  name?: string | undefined;
33777
- config?: TraitConfigObject | undefined;
34136
+ fields?: Record<string, string> | undefined;
34137
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
33778
34138
  events?: Record<string, string> | undefined;
34139
+ effects?: Record<string, SExpr[]> | undefined;
34140
+ refId?: TraitId | undefined;
34141
+ appliesTo?: string[] | undefined;
33779
34142
  linkedEntity?: string | undefined;
34143
+ linkedEntityId?: EntityId | undefined;
34144
+ eventIds?: Record<string, EventId> | undefined;
34145
+ listens?: unknown[] | undefined;
34146
+ emitsScope?: "internal" | "external" | undefined;
33780
34147
  }, {
33781
34148
  ref: string;
34149
+ id?: string | undefined;
34150
+ from?: string | undefined;
33782
34151
  name?: string | undefined;
33783
- config?: TraitConfigObject | undefined;
34152
+ fields?: Record<string, string> | undefined;
34153
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
33784
34154
  events?: Record<string, string> | undefined;
34155
+ effects?: Record<string, SExpr[]> | undefined;
34156
+ refId?: string | undefined;
34157
+ appliesTo?: string[] | undefined;
33785
34158
  linkedEntity?: string | undefined;
34159
+ linkedEntityId?: string | undefined;
34160
+ eventIds?: Record<string, string> | undefined;
34161
+ listens?: unknown[] | undefined;
34162
+ emitsScope?: "internal" | "external" | undefined;
34163
+ }>, {
34164
+ ref: string;
34165
+ id?: TraitId | undefined;
34166
+ from?: string | undefined;
34167
+ name?: string | undefined;
34168
+ fields?: Record<string, string> | undefined;
34169
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
34170
+ events?: Record<string, string> | undefined;
34171
+ effects?: Record<string, SExpr[]> | undefined;
34172
+ refId?: TraitId | undefined;
34173
+ appliesTo?: string[] | undefined;
34174
+ linkedEntity?: string | undefined;
34175
+ linkedEntityId?: EntityId | undefined;
34176
+ eventIds?: Record<string, EventId> | undefined;
34177
+ listens?: unknown[] | undefined;
34178
+ emitsScope?: "internal" | "external" | undefined;
34179
+ }, {
34180
+ ref: string;
34181
+ id?: string | undefined;
34182
+ from?: string | undefined;
34183
+ name?: string | undefined;
34184
+ fields?: Record<string, string> | undefined;
34185
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
34186
+ events?: Record<string, string> | undefined;
34187
+ effects?: Record<string, SExpr[]> | undefined;
34188
+ refId?: string | undefined;
34189
+ appliesTo?: string[] | undefined;
34190
+ linkedEntity?: string | undefined;
34191
+ linkedEntityId?: string | undefined;
34192
+ eventIds?: Record<string, string> | undefined;
34193
+ listens?: unknown[] | undefined;
34194
+ emitsScope?: "internal" | "external" | undefined;
33786
34195
  }>, z.ZodObject<{
33787
34196
  id: z.ZodOptional<z.ZodEffects<z.ZodString, TraitId, string>>;
33788
34197
  name: z.ZodString;
@@ -34629,24 +35038,86 @@ declare const OrbitalSchema$1: z.ZodObject<{
34629
35038
  path: z.ZodOptional<z.ZodString>;
34630
35039
  linkedEntity: z.ZodOptional<z.ZodString>;
34631
35040
  linkedEntityId: z.ZodOptional<z.ZodEffects<z.ZodString, EntityId, string>>;
34632
- traits: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
35041
+ traits: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<{
34633
35042
  ref: z.ZodString;
34634
- config: z.ZodOptional<z.ZodType<TraitConfigObject, z.ZodTypeDef, TraitConfigObject>>;
35043
+ refId: z.ZodOptional<z.ZodEffects<z.ZodString, TraitId, string>>;
35044
+ id: z.ZodOptional<z.ZodEffects<z.ZodString, TraitId, string>>;
35045
+ from: z.ZodOptional<z.ZodString>;
34635
35046
  linkedEntity: z.ZodOptional<z.ZodString>;
35047
+ linkedEntityId: z.ZodOptional<z.ZodEffects<z.ZodString, EntityId, string>>;
34636
35048
  name: z.ZodOptional<z.ZodString>;
34637
35049
  events: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
35050
+ eventIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, EventId, string>>>;
35051
+ fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
35052
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodType<ConfigFieldDeclaration, z.ZodTypeDef, ConfigFieldDeclaration>, z.ZodType<TraitConfigValue, z.ZodTypeDef, TraitConfigValue>]>>>;
35053
+ appliesTo: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
35054
+ listens: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
35055
+ emitsScope: z.ZodOptional<z.ZodEnum<["internal", "external"]>>;
35056
+ effects: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodType<SExpr, z.ZodTypeDef, SExpr>, "many">>>;
34638
35057
  }, "strip", z.ZodTypeAny, {
34639
35058
  ref: string;
35059
+ id?: TraitId | undefined;
35060
+ from?: string | undefined;
34640
35061
  name?: string | undefined;
34641
- config?: TraitConfigObject | undefined;
35062
+ fields?: Record<string, string> | undefined;
35063
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
34642
35064
  events?: Record<string, string> | undefined;
35065
+ effects?: Record<string, SExpr[]> | undefined;
35066
+ refId?: TraitId | undefined;
35067
+ appliesTo?: string[] | undefined;
34643
35068
  linkedEntity?: string | undefined;
35069
+ linkedEntityId?: EntityId | undefined;
35070
+ eventIds?: Record<string, EventId> | undefined;
35071
+ listens?: unknown[] | undefined;
35072
+ emitsScope?: "internal" | "external" | undefined;
34644
35073
  }, {
34645
35074
  ref: string;
35075
+ id?: string | undefined;
35076
+ from?: string | undefined;
34646
35077
  name?: string | undefined;
34647
- config?: TraitConfigObject | undefined;
35078
+ fields?: Record<string, string> | undefined;
35079
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
35080
+ events?: Record<string, string> | undefined;
35081
+ effects?: Record<string, SExpr[]> | undefined;
35082
+ refId?: string | undefined;
35083
+ appliesTo?: string[] | undefined;
35084
+ linkedEntity?: string | undefined;
35085
+ linkedEntityId?: string | undefined;
35086
+ eventIds?: Record<string, string> | undefined;
35087
+ listens?: unknown[] | undefined;
35088
+ emitsScope?: "internal" | "external" | undefined;
35089
+ }>, {
35090
+ ref: string;
35091
+ id?: TraitId | undefined;
35092
+ from?: string | undefined;
35093
+ name?: string | undefined;
35094
+ fields?: Record<string, string> | undefined;
35095
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
34648
35096
  events?: Record<string, string> | undefined;
35097
+ effects?: Record<string, SExpr[]> | undefined;
35098
+ refId?: TraitId | undefined;
35099
+ appliesTo?: string[] | undefined;
35100
+ linkedEntity?: string | undefined;
35101
+ linkedEntityId?: EntityId | undefined;
35102
+ eventIds?: Record<string, EventId> | undefined;
35103
+ listens?: unknown[] | undefined;
35104
+ emitsScope?: "internal" | "external" | undefined;
35105
+ }, {
35106
+ ref: string;
35107
+ id?: string | undefined;
35108
+ from?: string | undefined;
35109
+ name?: string | undefined;
35110
+ fields?: Record<string, string> | undefined;
35111
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
35112
+ events?: Record<string, string> | undefined;
35113
+ effects?: Record<string, SExpr[]> | undefined;
35114
+ refId?: string | undefined;
35115
+ appliesTo?: string[] | undefined;
34649
35116
  linkedEntity?: string | undefined;
35117
+ linkedEntityId?: string | undefined;
35118
+ eventIds?: Record<string, string> | undefined;
35119
+ listens?: unknown[] | undefined;
35120
+ emitsScope?: "internal" | "external" | undefined;
34650
35121
  }>, z.ZodObject<{
34651
35122
  id: z.ZodOptional<z.ZodEffects<z.ZodString, TraitId, string>>;
34652
35123
  name: z.ZodString;
@@ -35435,6 +35906,22 @@ declare const OrbitalSchema$1: z.ZodObject<{
35435
35906
  path?: string | undefined;
35436
35907
  from?: string | undefined;
35437
35908
  traits?: (string | {
35909
+ ref: string;
35910
+ id?: TraitId | undefined;
35911
+ from?: string | undefined;
35912
+ name?: string | undefined;
35913
+ fields?: Record<string, string> | undefined;
35914
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
35915
+ events?: Record<string, string> | undefined;
35916
+ effects?: Record<string, SExpr[]> | undefined;
35917
+ refId?: TraitId | undefined;
35918
+ appliesTo?: string[] | undefined;
35919
+ linkedEntity?: string | undefined;
35920
+ linkedEntityId?: EntityId | undefined;
35921
+ eventIds?: Record<string, EventId> | undefined;
35922
+ listens?: unknown[] | undefined;
35923
+ emitsScope?: "internal" | "external" | undefined;
35924
+ } | {
35438
35925
  name: string;
35439
35926
  scope: "collection" | "instance";
35440
35927
  id?: TraitId | undefined;
@@ -35581,12 +36068,6 @@ declare const OrbitalSchema$1: z.ZodObject<{
35581
36068
  aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
35582
36069
  } | undefined;
35583
36070
  } | undefined;
35584
- } | {
35585
- ref: string;
35586
- name?: string | undefined;
35587
- config?: TraitConfigObject | undefined;
35588
- events?: Record<string, string> | undefined;
35589
- linkedEntity?: string | undefined;
35590
36071
  })[] | undefined;
35591
36072
  refId?: PageId | undefined;
35592
36073
  linkedEntity?: string | undefined;
@@ -35597,6 +36078,22 @@ declare const OrbitalSchema$1: z.ZodObject<{
35597
36078
  path?: string | undefined;
35598
36079
  from?: string | undefined;
35599
36080
  traits?: (string | {
36081
+ ref: string;
36082
+ id?: string | undefined;
36083
+ from?: string | undefined;
36084
+ name?: string | undefined;
36085
+ fields?: Record<string, string> | undefined;
36086
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
36087
+ events?: Record<string, string> | undefined;
36088
+ effects?: Record<string, SExpr[]> | undefined;
36089
+ refId?: string | undefined;
36090
+ appliesTo?: string[] | undefined;
36091
+ linkedEntity?: string | undefined;
36092
+ linkedEntityId?: string | undefined;
36093
+ eventIds?: Record<string, string> | undefined;
36094
+ listens?: unknown[] | undefined;
36095
+ emitsScope?: "internal" | "external" | undefined;
36096
+ } | {
35600
36097
  name: string;
35601
36098
  scope: "collection" | "instance";
35602
36099
  id?: string | undefined;
@@ -35743,12 +36240,6 @@ declare const OrbitalSchema$1: z.ZodObject<{
35743
36240
  aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
35744
36241
  } | undefined;
35745
36242
  } | undefined;
35746
- } | {
35747
- ref: string;
35748
- name?: string | undefined;
35749
- config?: TraitConfigObject | undefined;
35750
- events?: Record<string, string> | undefined;
35751
- linkedEntity?: string | undefined;
35752
36243
  })[] | undefined;
35753
36244
  refId?: string | undefined;
35754
36245
  linkedEntity?: string | undefined;
@@ -36016,6 +36507,22 @@ declare const OrbitalSchema$1: z.ZodObject<{
36016
36507
  path?: string | undefined;
36017
36508
  from?: string | undefined;
36018
36509
  traits?: (string | {
36510
+ ref: string;
36511
+ id?: TraitId | undefined;
36512
+ from?: string | undefined;
36513
+ name?: string | undefined;
36514
+ fields?: Record<string, string> | undefined;
36515
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
36516
+ events?: Record<string, string> | undefined;
36517
+ effects?: Record<string, SExpr[]> | undefined;
36518
+ refId?: TraitId | undefined;
36519
+ appliesTo?: string[] | undefined;
36520
+ linkedEntity?: string | undefined;
36521
+ linkedEntityId?: EntityId | undefined;
36522
+ eventIds?: Record<string, EventId> | undefined;
36523
+ listens?: unknown[] | undefined;
36524
+ emitsScope?: "internal" | "external" | undefined;
36525
+ } | {
36019
36526
  name: string;
36020
36527
  scope: "collection" | "instance";
36021
36528
  id?: TraitId | undefined;
@@ -36162,12 +36669,6 @@ declare const OrbitalSchema$1: z.ZodObject<{
36162
36669
  aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
36163
36670
  } | undefined;
36164
36671
  } | undefined;
36165
- } | {
36166
- ref: string;
36167
- name?: string | undefined;
36168
- config?: TraitConfigObject | undefined;
36169
- events?: Record<string, string> | undefined;
36170
- linkedEntity?: string | undefined;
36171
36672
  })[] | undefined;
36172
36673
  refId?: PageId | undefined;
36173
36674
  linkedEntity?: string | undefined;
@@ -36175,6 +36676,22 @@ declare const OrbitalSchema$1: z.ZodObject<{
36175
36676
  traitRefIds?: TraitId[] | undefined;
36176
36677
  })[];
36177
36678
  traits: (string | {
36679
+ ref: string;
36680
+ id?: TraitId | undefined;
36681
+ from?: string | undefined;
36682
+ name?: string | undefined;
36683
+ fields?: Record<string, string> | undefined;
36684
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
36685
+ events?: Record<string, string> | undefined;
36686
+ effects?: Record<string, SExpr[]> | undefined;
36687
+ refId?: TraitId | undefined;
36688
+ appliesTo?: string[] | undefined;
36689
+ linkedEntity?: string | undefined;
36690
+ linkedEntityId?: EntityId | undefined;
36691
+ eventIds?: Record<string, EventId> | undefined;
36692
+ listens?: unknown[] | undefined;
36693
+ emitsScope?: "internal" | "external" | undefined;
36694
+ } | {
36178
36695
  name: string;
36179
36696
  scope: "collection" | "instance";
36180
36697
  id?: TraitId | undefined;
@@ -36321,12 +36838,6 @@ declare const OrbitalSchema$1: z.ZodObject<{
36321
36838
  aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
36322
36839
  } | undefined;
36323
36840
  } | undefined;
36324
- } | {
36325
- ref: string;
36326
- name?: string | undefined;
36327
- config?: TraitConfigObject | undefined;
36328
- events?: Record<string, string> | undefined;
36329
- linkedEntity?: string | undefined;
36330
36841
  })[];
36331
36842
  theme?: string | {
36332
36843
  name: string;
@@ -36933,6 +37444,22 @@ declare const OrbitalSchema$1: z.ZodObject<{
36933
37444
  path?: string | undefined;
36934
37445
  from?: string | undefined;
36935
37446
  traits?: (string | {
37447
+ ref: string;
37448
+ id?: string | undefined;
37449
+ from?: string | undefined;
37450
+ name?: string | undefined;
37451
+ fields?: Record<string, string> | undefined;
37452
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
37453
+ events?: Record<string, string> | undefined;
37454
+ effects?: Record<string, SExpr[]> | undefined;
37455
+ refId?: string | undefined;
37456
+ appliesTo?: string[] | undefined;
37457
+ linkedEntity?: string | undefined;
37458
+ linkedEntityId?: string | undefined;
37459
+ eventIds?: Record<string, string> | undefined;
37460
+ listens?: unknown[] | undefined;
37461
+ emitsScope?: "internal" | "external" | undefined;
37462
+ } | {
36936
37463
  name: string;
36937
37464
  scope: "collection" | "instance";
36938
37465
  id?: string | undefined;
@@ -37079,12 +37606,6 @@ declare const OrbitalSchema$1: z.ZodObject<{
37079
37606
  aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
37080
37607
  } | undefined;
37081
37608
  } | undefined;
37082
- } | {
37083
- ref: string;
37084
- name?: string | undefined;
37085
- config?: TraitConfigObject | undefined;
37086
- events?: Record<string, string> | undefined;
37087
- linkedEntity?: string | undefined;
37088
37609
  })[] | undefined;
37089
37610
  refId?: string | undefined;
37090
37611
  linkedEntity?: string | undefined;
@@ -37092,6 +37613,22 @@ declare const OrbitalSchema$1: z.ZodObject<{
37092
37613
  traitRefIds?: string[] | undefined;
37093
37614
  })[];
37094
37615
  traits: (string | {
37616
+ ref: string;
37617
+ id?: string | undefined;
37618
+ from?: string | undefined;
37619
+ name?: string | undefined;
37620
+ fields?: Record<string, string> | undefined;
37621
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
37622
+ events?: Record<string, string> | undefined;
37623
+ effects?: Record<string, SExpr[]> | undefined;
37624
+ refId?: string | undefined;
37625
+ appliesTo?: string[] | undefined;
37626
+ linkedEntity?: string | undefined;
37627
+ linkedEntityId?: string | undefined;
37628
+ eventIds?: Record<string, string> | undefined;
37629
+ listens?: unknown[] | undefined;
37630
+ emitsScope?: "internal" | "external" | undefined;
37631
+ } | {
37095
37632
  name: string;
37096
37633
  scope: "collection" | "instance";
37097
37634
  id?: string | undefined;
@@ -37238,12 +37775,6 @@ declare const OrbitalSchema$1: z.ZodObject<{
37238
37775
  aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
37239
37776
  } | undefined;
37240
37777
  } | undefined;
37241
- } | {
37242
- ref: string;
37243
- name?: string | undefined;
37244
- config?: TraitConfigObject | undefined;
37245
- events?: Record<string, string> | undefined;
37246
- linkedEntity?: string | undefined;
37247
37778
  })[];
37248
37779
  theme?: string | {
37249
37780
  name: string;
@@ -41958,24 +42489,86 @@ declare const OrbitalUnitSchema: z.ZodObject<{
41958
42489
  collection?: string | undefined;
41959
42490
  fields?: unknown[] | undefined;
41960
42491
  }>]>;
41961
- traits: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
42492
+ traits: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<{
41962
42493
  ref: z.ZodString;
41963
- config: z.ZodOptional<z.ZodType<TraitConfigObject, z.ZodTypeDef, TraitConfigObject>>;
42494
+ refId: z.ZodOptional<z.ZodEffects<z.ZodString, TraitId, string>>;
42495
+ id: z.ZodOptional<z.ZodEffects<z.ZodString, TraitId, string>>;
42496
+ from: z.ZodOptional<z.ZodString>;
41964
42497
  linkedEntity: z.ZodOptional<z.ZodString>;
42498
+ linkedEntityId: z.ZodOptional<z.ZodEffects<z.ZodString, EntityId, string>>;
41965
42499
  name: z.ZodOptional<z.ZodString>;
41966
42500
  events: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
42501
+ eventIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, EventId, string>>>;
42502
+ fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
42503
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodType<ConfigFieldDeclaration, z.ZodTypeDef, ConfigFieldDeclaration>, z.ZodType<TraitConfigValue, z.ZodTypeDef, TraitConfigValue>]>>>;
42504
+ appliesTo: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
42505
+ listens: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
42506
+ emitsScope: z.ZodOptional<z.ZodEnum<["internal", "external"]>>;
42507
+ effects: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodType<SExpr, z.ZodTypeDef, SExpr>, "many">>>;
41967
42508
  }, "strip", z.ZodTypeAny, {
41968
42509
  ref: string;
42510
+ id?: TraitId | undefined;
42511
+ from?: string | undefined;
41969
42512
  name?: string | undefined;
41970
- config?: TraitConfigObject | undefined;
42513
+ fields?: Record<string, string> | undefined;
42514
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
41971
42515
  events?: Record<string, string> | undefined;
42516
+ effects?: Record<string, SExpr[]> | undefined;
42517
+ refId?: TraitId | undefined;
42518
+ appliesTo?: string[] | undefined;
41972
42519
  linkedEntity?: string | undefined;
42520
+ linkedEntityId?: EntityId | undefined;
42521
+ eventIds?: Record<string, EventId> | undefined;
42522
+ listens?: unknown[] | undefined;
42523
+ emitsScope?: "internal" | "external" | undefined;
41973
42524
  }, {
41974
42525
  ref: string;
42526
+ id?: string | undefined;
42527
+ from?: string | undefined;
41975
42528
  name?: string | undefined;
41976
- config?: TraitConfigObject | undefined;
42529
+ fields?: Record<string, string> | undefined;
42530
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
41977
42531
  events?: Record<string, string> | undefined;
42532
+ effects?: Record<string, SExpr[]> | undefined;
42533
+ refId?: string | undefined;
42534
+ appliesTo?: string[] | undefined;
41978
42535
  linkedEntity?: string | undefined;
42536
+ linkedEntityId?: string | undefined;
42537
+ eventIds?: Record<string, string> | undefined;
42538
+ listens?: unknown[] | undefined;
42539
+ emitsScope?: "internal" | "external" | undefined;
42540
+ }>, {
42541
+ ref: string;
42542
+ id?: TraitId | undefined;
42543
+ from?: string | undefined;
42544
+ name?: string | undefined;
42545
+ fields?: Record<string, string> | undefined;
42546
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
42547
+ events?: Record<string, string> | undefined;
42548
+ effects?: Record<string, SExpr[]> | undefined;
42549
+ refId?: TraitId | undefined;
42550
+ appliesTo?: string[] | undefined;
42551
+ linkedEntity?: string | undefined;
42552
+ linkedEntityId?: EntityId | undefined;
42553
+ eventIds?: Record<string, EventId> | undefined;
42554
+ listens?: unknown[] | undefined;
42555
+ emitsScope?: "internal" | "external" | undefined;
42556
+ }, {
42557
+ ref: string;
42558
+ id?: string | undefined;
42559
+ from?: string | undefined;
42560
+ name?: string | undefined;
42561
+ fields?: Record<string, string> | undefined;
42562
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
42563
+ events?: Record<string, string> | undefined;
42564
+ effects?: Record<string, SExpr[]> | undefined;
42565
+ refId?: string | undefined;
42566
+ appliesTo?: string[] | undefined;
42567
+ linkedEntity?: string | undefined;
42568
+ linkedEntityId?: string | undefined;
42569
+ eventIds?: Record<string, string> | undefined;
42570
+ listens?: unknown[] | undefined;
42571
+ emitsScope?: "internal" | "external" | undefined;
41979
42572
  }>, z.ZodObject<{
41980
42573
  id: z.ZodOptional<z.ZodEffects<z.ZodString, TraitId, string>>;
41981
42574
  name: z.ZodString;
@@ -42822,24 +43415,86 @@ declare const OrbitalUnitSchema: z.ZodObject<{
42822
43415
  path: z.ZodOptional<z.ZodString>;
42823
43416
  linkedEntity: z.ZodOptional<z.ZodString>;
42824
43417
  linkedEntityId: z.ZodOptional<z.ZodEffects<z.ZodString, EntityId, string>>;
42825
- traits: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
43418
+ traits: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<{
42826
43419
  ref: z.ZodString;
42827
- config: z.ZodOptional<z.ZodType<TraitConfigObject, z.ZodTypeDef, TraitConfigObject>>;
43420
+ refId: z.ZodOptional<z.ZodEffects<z.ZodString, TraitId, string>>;
43421
+ id: z.ZodOptional<z.ZodEffects<z.ZodString, TraitId, string>>;
43422
+ from: z.ZodOptional<z.ZodString>;
42828
43423
  linkedEntity: z.ZodOptional<z.ZodString>;
43424
+ linkedEntityId: z.ZodOptional<z.ZodEffects<z.ZodString, EntityId, string>>;
42829
43425
  name: z.ZodOptional<z.ZodString>;
42830
43426
  events: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
43427
+ eventIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, EventId, string>>>;
43428
+ fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
43429
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodType<ConfigFieldDeclaration, z.ZodTypeDef, ConfigFieldDeclaration>, z.ZodType<TraitConfigValue, z.ZodTypeDef, TraitConfigValue>]>>>;
43430
+ appliesTo: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
43431
+ listens: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
43432
+ emitsScope: z.ZodOptional<z.ZodEnum<["internal", "external"]>>;
43433
+ effects: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodType<SExpr, z.ZodTypeDef, SExpr>, "many">>>;
42831
43434
  }, "strip", z.ZodTypeAny, {
42832
43435
  ref: string;
43436
+ id?: TraitId | undefined;
43437
+ from?: string | undefined;
42833
43438
  name?: string | undefined;
42834
- config?: TraitConfigObject | undefined;
43439
+ fields?: Record<string, string> | undefined;
43440
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
42835
43441
  events?: Record<string, string> | undefined;
43442
+ effects?: Record<string, SExpr[]> | undefined;
43443
+ refId?: TraitId | undefined;
43444
+ appliesTo?: string[] | undefined;
42836
43445
  linkedEntity?: string | undefined;
43446
+ linkedEntityId?: EntityId | undefined;
43447
+ eventIds?: Record<string, EventId> | undefined;
43448
+ listens?: unknown[] | undefined;
43449
+ emitsScope?: "internal" | "external" | undefined;
42837
43450
  }, {
42838
43451
  ref: string;
43452
+ id?: string | undefined;
43453
+ from?: string | undefined;
42839
43454
  name?: string | undefined;
42840
- config?: TraitConfigObject | undefined;
43455
+ fields?: Record<string, string> | undefined;
43456
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
42841
43457
  events?: Record<string, string> | undefined;
43458
+ effects?: Record<string, SExpr[]> | undefined;
43459
+ refId?: string | undefined;
43460
+ appliesTo?: string[] | undefined;
42842
43461
  linkedEntity?: string | undefined;
43462
+ linkedEntityId?: string | undefined;
43463
+ eventIds?: Record<string, string> | undefined;
43464
+ listens?: unknown[] | undefined;
43465
+ emitsScope?: "internal" | "external" | undefined;
43466
+ }>, {
43467
+ ref: string;
43468
+ id?: TraitId | undefined;
43469
+ from?: string | undefined;
43470
+ name?: string | undefined;
43471
+ fields?: Record<string, string> | undefined;
43472
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
43473
+ events?: Record<string, string> | undefined;
43474
+ effects?: Record<string, SExpr[]> | undefined;
43475
+ refId?: TraitId | undefined;
43476
+ appliesTo?: string[] | undefined;
43477
+ linkedEntity?: string | undefined;
43478
+ linkedEntityId?: EntityId | undefined;
43479
+ eventIds?: Record<string, EventId> | undefined;
43480
+ listens?: unknown[] | undefined;
43481
+ emitsScope?: "internal" | "external" | undefined;
43482
+ }, {
43483
+ ref: string;
43484
+ id?: string | undefined;
43485
+ from?: string | undefined;
43486
+ name?: string | undefined;
43487
+ fields?: Record<string, string> | undefined;
43488
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
43489
+ events?: Record<string, string> | undefined;
43490
+ effects?: Record<string, SExpr[]> | undefined;
43491
+ refId?: string | undefined;
43492
+ appliesTo?: string[] | undefined;
43493
+ linkedEntity?: string | undefined;
43494
+ linkedEntityId?: string | undefined;
43495
+ eventIds?: Record<string, string> | undefined;
43496
+ listens?: unknown[] | undefined;
43497
+ emitsScope?: "internal" | "external" | undefined;
42843
43498
  }>, z.ZodObject<{
42844
43499
  id: z.ZodOptional<z.ZodEffects<z.ZodString, TraitId, string>>;
42845
43500
  name: z.ZodString;
@@ -43628,6 +44283,22 @@ declare const OrbitalUnitSchema: z.ZodObject<{
43628
44283
  path?: string | undefined;
43629
44284
  from?: string | undefined;
43630
44285
  traits?: (string | {
44286
+ ref: string;
44287
+ id?: TraitId | undefined;
44288
+ from?: string | undefined;
44289
+ name?: string | undefined;
44290
+ fields?: Record<string, string> | undefined;
44291
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
44292
+ events?: Record<string, string> | undefined;
44293
+ effects?: Record<string, SExpr[]> | undefined;
44294
+ refId?: TraitId | undefined;
44295
+ appliesTo?: string[] | undefined;
44296
+ linkedEntity?: string | undefined;
44297
+ linkedEntityId?: EntityId | undefined;
44298
+ eventIds?: Record<string, EventId> | undefined;
44299
+ listens?: unknown[] | undefined;
44300
+ emitsScope?: "internal" | "external" | undefined;
44301
+ } | {
43631
44302
  name: string;
43632
44303
  scope: "collection" | "instance";
43633
44304
  id?: TraitId | undefined;
@@ -43774,12 +44445,6 @@ declare const OrbitalUnitSchema: z.ZodObject<{
43774
44445
  aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
43775
44446
  } | undefined;
43776
44447
  } | undefined;
43777
- } | {
43778
- ref: string;
43779
- name?: string | undefined;
43780
- config?: TraitConfigObject | undefined;
43781
- events?: Record<string, string> | undefined;
43782
- linkedEntity?: string | undefined;
43783
44448
  })[] | undefined;
43784
44449
  refId?: PageId | undefined;
43785
44450
  linkedEntity?: string | undefined;
@@ -43790,6 +44455,22 @@ declare const OrbitalUnitSchema: z.ZodObject<{
43790
44455
  path?: string | undefined;
43791
44456
  from?: string | undefined;
43792
44457
  traits?: (string | {
44458
+ ref: string;
44459
+ id?: string | undefined;
44460
+ from?: string | undefined;
44461
+ name?: string | undefined;
44462
+ fields?: Record<string, string> | undefined;
44463
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
44464
+ events?: Record<string, string> | undefined;
44465
+ effects?: Record<string, SExpr[]> | undefined;
44466
+ refId?: string | undefined;
44467
+ appliesTo?: string[] | undefined;
44468
+ linkedEntity?: string | undefined;
44469
+ linkedEntityId?: string | undefined;
44470
+ eventIds?: Record<string, string> | undefined;
44471
+ listens?: unknown[] | undefined;
44472
+ emitsScope?: "internal" | "external" | undefined;
44473
+ } | {
43793
44474
  name: string;
43794
44475
  scope: "collection" | "instance";
43795
44476
  id?: string | undefined;
@@ -43936,12 +44617,6 @@ declare const OrbitalUnitSchema: z.ZodObject<{
43936
44617
  aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
43937
44618
  } | undefined;
43938
44619
  } | undefined;
43939
- } | {
43940
- ref: string;
43941
- name?: string | undefined;
43942
- config?: TraitConfigObject | undefined;
43943
- events?: Record<string, string> | undefined;
43944
- linkedEntity?: string | undefined;
43945
44620
  })[] | undefined;
43946
44621
  refId?: string | undefined;
43947
44622
  linkedEntity?: string | undefined;
@@ -44209,6 +44884,22 @@ declare const OrbitalUnitSchema: z.ZodObject<{
44209
44884
  path?: string | undefined;
44210
44885
  from?: string | undefined;
44211
44886
  traits?: (string | {
44887
+ ref: string;
44888
+ id?: TraitId | undefined;
44889
+ from?: string | undefined;
44890
+ name?: string | undefined;
44891
+ fields?: Record<string, string> | undefined;
44892
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
44893
+ events?: Record<string, string> | undefined;
44894
+ effects?: Record<string, SExpr[]> | undefined;
44895
+ refId?: TraitId | undefined;
44896
+ appliesTo?: string[] | undefined;
44897
+ linkedEntity?: string | undefined;
44898
+ linkedEntityId?: EntityId | undefined;
44899
+ eventIds?: Record<string, EventId> | undefined;
44900
+ listens?: unknown[] | undefined;
44901
+ emitsScope?: "internal" | "external" | undefined;
44902
+ } | {
44212
44903
  name: string;
44213
44904
  scope: "collection" | "instance";
44214
44905
  id?: TraitId | undefined;
@@ -44355,12 +45046,6 @@ declare const OrbitalUnitSchema: z.ZodObject<{
44355
45046
  aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
44356
45047
  } | undefined;
44357
45048
  } | undefined;
44358
- } | {
44359
- ref: string;
44360
- name?: string | undefined;
44361
- config?: TraitConfigObject | undefined;
44362
- events?: Record<string, string> | undefined;
44363
- linkedEntity?: string | undefined;
44364
45049
  })[] | undefined;
44365
45050
  refId?: PageId | undefined;
44366
45051
  linkedEntity?: string | undefined;
@@ -44368,6 +45053,22 @@ declare const OrbitalUnitSchema: z.ZodObject<{
44368
45053
  traitRefIds?: TraitId[] | undefined;
44369
45054
  })[];
44370
45055
  traits: (string | {
45056
+ ref: string;
45057
+ id?: TraitId | undefined;
45058
+ from?: string | undefined;
45059
+ name?: string | undefined;
45060
+ fields?: Record<string, string> | undefined;
45061
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
45062
+ events?: Record<string, string> | undefined;
45063
+ effects?: Record<string, SExpr[]> | undefined;
45064
+ refId?: TraitId | undefined;
45065
+ appliesTo?: string[] | undefined;
45066
+ linkedEntity?: string | undefined;
45067
+ linkedEntityId?: EntityId | undefined;
45068
+ eventIds?: Record<string, EventId> | undefined;
45069
+ listens?: unknown[] | undefined;
45070
+ emitsScope?: "internal" | "external" | undefined;
45071
+ } | {
44371
45072
  name: string;
44372
45073
  scope: "collection" | "instance";
44373
45074
  id?: TraitId | undefined;
@@ -44514,12 +45215,6 @@ declare const OrbitalUnitSchema: z.ZodObject<{
44514
45215
  aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
44515
45216
  } | undefined;
44516
45217
  } | undefined;
44517
- } | {
44518
- ref: string;
44519
- name?: string | undefined;
44520
- config?: TraitConfigObject | undefined;
44521
- events?: Record<string, string> | undefined;
44522
- linkedEntity?: string | undefined;
44523
45218
  })[];
44524
45219
  theme?: string | {
44525
45220
  name: string;
@@ -45126,6 +45821,22 @@ declare const OrbitalUnitSchema: z.ZodObject<{
45126
45821
  path?: string | undefined;
45127
45822
  from?: string | undefined;
45128
45823
  traits?: (string | {
45824
+ ref: string;
45825
+ id?: string | undefined;
45826
+ from?: string | undefined;
45827
+ name?: string | undefined;
45828
+ fields?: Record<string, string> | undefined;
45829
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
45830
+ events?: Record<string, string> | undefined;
45831
+ effects?: Record<string, SExpr[]> | undefined;
45832
+ refId?: string | undefined;
45833
+ appliesTo?: string[] | undefined;
45834
+ linkedEntity?: string | undefined;
45835
+ linkedEntityId?: string | undefined;
45836
+ eventIds?: Record<string, string> | undefined;
45837
+ listens?: unknown[] | undefined;
45838
+ emitsScope?: "internal" | "external" | undefined;
45839
+ } | {
45129
45840
  name: string;
45130
45841
  scope: "collection" | "instance";
45131
45842
  id?: string | undefined;
@@ -45272,12 +45983,6 @@ declare const OrbitalUnitSchema: z.ZodObject<{
45272
45983
  aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
45273
45984
  } | undefined;
45274
45985
  } | undefined;
45275
- } | {
45276
- ref: string;
45277
- name?: string | undefined;
45278
- config?: TraitConfigObject | undefined;
45279
- events?: Record<string, string> | undefined;
45280
- linkedEntity?: string | undefined;
45281
45986
  })[] | undefined;
45282
45987
  refId?: string | undefined;
45283
45988
  linkedEntity?: string | undefined;
@@ -45285,6 +45990,22 @@ declare const OrbitalUnitSchema: z.ZodObject<{
45285
45990
  traitRefIds?: string[] | undefined;
45286
45991
  })[];
45287
45992
  traits: (string | {
45993
+ ref: string;
45994
+ id?: string | undefined;
45995
+ from?: string | undefined;
45996
+ name?: string | undefined;
45997
+ fields?: Record<string, string> | undefined;
45998
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
45999
+ events?: Record<string, string> | undefined;
46000
+ effects?: Record<string, SExpr[]> | undefined;
46001
+ refId?: string | undefined;
46002
+ appliesTo?: string[] | undefined;
46003
+ linkedEntity?: string | undefined;
46004
+ linkedEntityId?: string | undefined;
46005
+ eventIds?: Record<string, string> | undefined;
46006
+ listens?: unknown[] | undefined;
46007
+ emitsScope?: "internal" | "external" | undefined;
46008
+ } | {
45288
46009
  name: string;
45289
46010
  scope: "collection" | "instance";
45290
46011
  id?: string | undefined;
@@ -45431,12 +46152,6 @@ declare const OrbitalUnitSchema: z.ZodObject<{
45431
46152
  aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
45432
46153
  } | undefined;
45433
46154
  } | undefined;
45434
- } | {
45435
- ref: string;
45436
- name?: string | undefined;
45437
- config?: TraitConfigObject | undefined;
45438
- events?: Record<string, string> | undefined;
45439
- linkedEntity?: string | undefined;
45440
46155
  })[];
45441
46156
  theme?: string | {
45442
46157
  name: string;
@@ -50498,24 +51213,86 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
50498
51213
  collection?: string | undefined;
50499
51214
  fields?: unknown[] | undefined;
50500
51215
  }>]>;
50501
- traits: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
51216
+ traits: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<{
50502
51217
  ref: z.ZodString;
50503
- config: z.ZodOptional<z.ZodType<TraitConfigObject, z.ZodTypeDef, TraitConfigObject>>;
51218
+ refId: z.ZodOptional<z.ZodEffects<z.ZodString, TraitId, string>>;
51219
+ id: z.ZodOptional<z.ZodEffects<z.ZodString, TraitId, string>>;
51220
+ from: z.ZodOptional<z.ZodString>;
50504
51221
  linkedEntity: z.ZodOptional<z.ZodString>;
51222
+ linkedEntityId: z.ZodOptional<z.ZodEffects<z.ZodString, EntityId, string>>;
50505
51223
  name: z.ZodOptional<z.ZodString>;
50506
51224
  events: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
51225
+ eventIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, EventId, string>>>;
51226
+ fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
51227
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodType<ConfigFieldDeclaration, z.ZodTypeDef, ConfigFieldDeclaration>, z.ZodType<TraitConfigValue, z.ZodTypeDef, TraitConfigValue>]>>>;
51228
+ appliesTo: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
51229
+ listens: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
51230
+ emitsScope: z.ZodOptional<z.ZodEnum<["internal", "external"]>>;
51231
+ effects: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodType<SExpr, z.ZodTypeDef, SExpr>, "many">>>;
50507
51232
  }, "strip", z.ZodTypeAny, {
50508
51233
  ref: string;
51234
+ id?: TraitId | undefined;
51235
+ from?: string | undefined;
50509
51236
  name?: string | undefined;
50510
- config?: TraitConfigObject | undefined;
51237
+ fields?: Record<string, string> | undefined;
51238
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
50511
51239
  events?: Record<string, string> | undefined;
51240
+ effects?: Record<string, SExpr[]> | undefined;
51241
+ refId?: TraitId | undefined;
51242
+ appliesTo?: string[] | undefined;
50512
51243
  linkedEntity?: string | undefined;
51244
+ linkedEntityId?: EntityId | undefined;
51245
+ eventIds?: Record<string, EventId> | undefined;
51246
+ listens?: unknown[] | undefined;
51247
+ emitsScope?: "internal" | "external" | undefined;
50513
51248
  }, {
50514
51249
  ref: string;
51250
+ id?: string | undefined;
51251
+ from?: string | undefined;
50515
51252
  name?: string | undefined;
50516
- config?: TraitConfigObject | undefined;
51253
+ fields?: Record<string, string> | undefined;
51254
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
51255
+ events?: Record<string, string> | undefined;
51256
+ effects?: Record<string, SExpr[]> | undefined;
51257
+ refId?: string | undefined;
51258
+ appliesTo?: string[] | undefined;
51259
+ linkedEntity?: string | undefined;
51260
+ linkedEntityId?: string | undefined;
51261
+ eventIds?: Record<string, string> | undefined;
51262
+ listens?: unknown[] | undefined;
51263
+ emitsScope?: "internal" | "external" | undefined;
51264
+ }>, {
51265
+ ref: string;
51266
+ id?: TraitId | undefined;
51267
+ from?: string | undefined;
51268
+ name?: string | undefined;
51269
+ fields?: Record<string, string> | undefined;
51270
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
51271
+ events?: Record<string, string> | undefined;
51272
+ effects?: Record<string, SExpr[]> | undefined;
51273
+ refId?: TraitId | undefined;
51274
+ appliesTo?: string[] | undefined;
51275
+ linkedEntity?: string | undefined;
51276
+ linkedEntityId?: EntityId | undefined;
51277
+ eventIds?: Record<string, EventId> | undefined;
51278
+ listens?: unknown[] | undefined;
51279
+ emitsScope?: "internal" | "external" | undefined;
51280
+ }, {
51281
+ ref: string;
51282
+ id?: string | undefined;
51283
+ from?: string | undefined;
51284
+ name?: string | undefined;
51285
+ fields?: Record<string, string> | undefined;
51286
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
50517
51287
  events?: Record<string, string> | undefined;
51288
+ effects?: Record<string, SExpr[]> | undefined;
51289
+ refId?: string | undefined;
51290
+ appliesTo?: string[] | undefined;
50518
51291
  linkedEntity?: string | undefined;
51292
+ linkedEntityId?: string | undefined;
51293
+ eventIds?: Record<string, string> | undefined;
51294
+ listens?: unknown[] | undefined;
51295
+ emitsScope?: "internal" | "external" | undefined;
50519
51296
  }>, z.ZodObject<{
50520
51297
  id: z.ZodOptional<z.ZodEffects<z.ZodString, TraitId, string>>;
50521
51298
  name: z.ZodString;
@@ -51362,24 +52139,86 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
51362
52139
  path: z.ZodOptional<z.ZodString>;
51363
52140
  linkedEntity: z.ZodOptional<z.ZodString>;
51364
52141
  linkedEntityId: z.ZodOptional<z.ZodEffects<z.ZodString, EntityId, string>>;
51365
- traits: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
52142
+ traits: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodObject<{
51366
52143
  ref: z.ZodString;
51367
- config: z.ZodOptional<z.ZodType<TraitConfigObject, z.ZodTypeDef, TraitConfigObject>>;
52144
+ refId: z.ZodOptional<z.ZodEffects<z.ZodString, TraitId, string>>;
52145
+ id: z.ZodOptional<z.ZodEffects<z.ZodString, TraitId, string>>;
52146
+ from: z.ZodOptional<z.ZodString>;
51368
52147
  linkedEntity: z.ZodOptional<z.ZodString>;
52148
+ linkedEntityId: z.ZodOptional<z.ZodEffects<z.ZodString, EntityId, string>>;
51369
52149
  name: z.ZodOptional<z.ZodString>;
51370
52150
  events: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
52151
+ eventIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, EventId, string>>>;
52152
+ fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
52153
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodType<ConfigFieldDeclaration, z.ZodTypeDef, ConfigFieldDeclaration>, z.ZodType<TraitConfigValue, z.ZodTypeDef, TraitConfigValue>]>>>;
52154
+ appliesTo: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
52155
+ listens: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
52156
+ emitsScope: z.ZodOptional<z.ZodEnum<["internal", "external"]>>;
52157
+ effects: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodType<SExpr, z.ZodTypeDef, SExpr>, "many">>>;
51371
52158
  }, "strip", z.ZodTypeAny, {
51372
52159
  ref: string;
52160
+ id?: TraitId | undefined;
52161
+ from?: string | undefined;
51373
52162
  name?: string | undefined;
51374
- config?: TraitConfigObject | undefined;
52163
+ fields?: Record<string, string> | undefined;
52164
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
51375
52165
  events?: Record<string, string> | undefined;
52166
+ effects?: Record<string, SExpr[]> | undefined;
52167
+ refId?: TraitId | undefined;
52168
+ appliesTo?: string[] | undefined;
51376
52169
  linkedEntity?: string | undefined;
52170
+ linkedEntityId?: EntityId | undefined;
52171
+ eventIds?: Record<string, EventId> | undefined;
52172
+ listens?: unknown[] | undefined;
52173
+ emitsScope?: "internal" | "external" | undefined;
51377
52174
  }, {
51378
52175
  ref: string;
52176
+ id?: string | undefined;
52177
+ from?: string | undefined;
51379
52178
  name?: string | undefined;
51380
- config?: TraitConfigObject | undefined;
52179
+ fields?: Record<string, string> | undefined;
52180
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
51381
52181
  events?: Record<string, string> | undefined;
52182
+ effects?: Record<string, SExpr[]> | undefined;
52183
+ refId?: string | undefined;
52184
+ appliesTo?: string[] | undefined;
51382
52185
  linkedEntity?: string | undefined;
52186
+ linkedEntityId?: string | undefined;
52187
+ eventIds?: Record<string, string> | undefined;
52188
+ listens?: unknown[] | undefined;
52189
+ emitsScope?: "internal" | "external" | undefined;
52190
+ }>, {
52191
+ ref: string;
52192
+ id?: TraitId | undefined;
52193
+ from?: string | undefined;
52194
+ name?: string | undefined;
52195
+ fields?: Record<string, string> | undefined;
52196
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
52197
+ events?: Record<string, string> | undefined;
52198
+ effects?: Record<string, SExpr[]> | undefined;
52199
+ refId?: TraitId | undefined;
52200
+ appliesTo?: string[] | undefined;
52201
+ linkedEntity?: string | undefined;
52202
+ linkedEntityId?: EntityId | undefined;
52203
+ eventIds?: Record<string, EventId> | undefined;
52204
+ listens?: unknown[] | undefined;
52205
+ emitsScope?: "internal" | "external" | undefined;
52206
+ }, {
52207
+ ref: string;
52208
+ id?: string | undefined;
52209
+ from?: string | undefined;
52210
+ name?: string | undefined;
52211
+ fields?: Record<string, string> | undefined;
52212
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
52213
+ events?: Record<string, string> | undefined;
52214
+ effects?: Record<string, SExpr[]> | undefined;
52215
+ refId?: string | undefined;
52216
+ appliesTo?: string[] | undefined;
52217
+ linkedEntity?: string | undefined;
52218
+ linkedEntityId?: string | undefined;
52219
+ eventIds?: Record<string, string> | undefined;
52220
+ listens?: unknown[] | undefined;
52221
+ emitsScope?: "internal" | "external" | undefined;
51383
52222
  }>, z.ZodObject<{
51384
52223
  id: z.ZodOptional<z.ZodEffects<z.ZodString, TraitId, string>>;
51385
52224
  name: z.ZodString;
@@ -52168,6 +53007,22 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
52168
53007
  path?: string | undefined;
52169
53008
  from?: string | undefined;
52170
53009
  traits?: (string | {
53010
+ ref: string;
53011
+ id?: TraitId | undefined;
53012
+ from?: string | undefined;
53013
+ name?: string | undefined;
53014
+ fields?: Record<string, string> | undefined;
53015
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
53016
+ events?: Record<string, string> | undefined;
53017
+ effects?: Record<string, SExpr[]> | undefined;
53018
+ refId?: TraitId | undefined;
53019
+ appliesTo?: string[] | undefined;
53020
+ linkedEntity?: string | undefined;
53021
+ linkedEntityId?: EntityId | undefined;
53022
+ eventIds?: Record<string, EventId> | undefined;
53023
+ listens?: unknown[] | undefined;
53024
+ emitsScope?: "internal" | "external" | undefined;
53025
+ } | {
52171
53026
  name: string;
52172
53027
  scope: "collection" | "instance";
52173
53028
  id?: TraitId | undefined;
@@ -52314,12 +53169,6 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
52314
53169
  aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
52315
53170
  } | undefined;
52316
53171
  } | undefined;
52317
- } | {
52318
- ref: string;
52319
- name?: string | undefined;
52320
- config?: TraitConfigObject | undefined;
52321
- events?: Record<string, string> | undefined;
52322
- linkedEntity?: string | undefined;
52323
53172
  })[] | undefined;
52324
53173
  refId?: PageId | undefined;
52325
53174
  linkedEntity?: string | undefined;
@@ -52330,6 +53179,22 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
52330
53179
  path?: string | undefined;
52331
53180
  from?: string | undefined;
52332
53181
  traits?: (string | {
53182
+ ref: string;
53183
+ id?: string | undefined;
53184
+ from?: string | undefined;
53185
+ name?: string | undefined;
53186
+ fields?: Record<string, string> | undefined;
53187
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
53188
+ events?: Record<string, string> | undefined;
53189
+ effects?: Record<string, SExpr[]> | undefined;
53190
+ refId?: string | undefined;
53191
+ appliesTo?: string[] | undefined;
53192
+ linkedEntity?: string | undefined;
53193
+ linkedEntityId?: string | undefined;
53194
+ eventIds?: Record<string, string> | undefined;
53195
+ listens?: unknown[] | undefined;
53196
+ emitsScope?: "internal" | "external" | undefined;
53197
+ } | {
52333
53198
  name: string;
52334
53199
  scope: "collection" | "instance";
52335
53200
  id?: string | undefined;
@@ -52476,12 +53341,6 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
52476
53341
  aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
52477
53342
  } | undefined;
52478
53343
  } | undefined;
52479
- } | {
52480
- ref: string;
52481
- name?: string | undefined;
52482
- config?: TraitConfigObject | undefined;
52483
- events?: Record<string, string> | undefined;
52484
- linkedEntity?: string | undefined;
52485
53344
  })[] | undefined;
52486
53345
  refId?: string | undefined;
52487
53346
  linkedEntity?: string | undefined;
@@ -52749,6 +53608,22 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
52749
53608
  path?: string | undefined;
52750
53609
  from?: string | undefined;
52751
53610
  traits?: (string | {
53611
+ ref: string;
53612
+ id?: TraitId | undefined;
53613
+ from?: string | undefined;
53614
+ name?: string | undefined;
53615
+ fields?: Record<string, string> | undefined;
53616
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
53617
+ events?: Record<string, string> | undefined;
53618
+ effects?: Record<string, SExpr[]> | undefined;
53619
+ refId?: TraitId | undefined;
53620
+ appliesTo?: string[] | undefined;
53621
+ linkedEntity?: string | undefined;
53622
+ linkedEntityId?: EntityId | undefined;
53623
+ eventIds?: Record<string, EventId> | undefined;
53624
+ listens?: unknown[] | undefined;
53625
+ emitsScope?: "internal" | "external" | undefined;
53626
+ } | {
52752
53627
  name: string;
52753
53628
  scope: "collection" | "instance";
52754
53629
  id?: TraitId | undefined;
@@ -52895,12 +53770,6 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
52895
53770
  aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
52896
53771
  } | undefined;
52897
53772
  } | undefined;
52898
- } | {
52899
- ref: string;
52900
- name?: string | undefined;
52901
- config?: TraitConfigObject | undefined;
52902
- events?: Record<string, string> | undefined;
52903
- linkedEntity?: string | undefined;
52904
53773
  })[] | undefined;
52905
53774
  refId?: PageId | undefined;
52906
53775
  linkedEntity?: string | undefined;
@@ -52908,6 +53777,22 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
52908
53777
  traitRefIds?: TraitId[] | undefined;
52909
53778
  })[];
52910
53779
  traits: (string | {
53780
+ ref: string;
53781
+ id?: TraitId | undefined;
53782
+ from?: string | undefined;
53783
+ name?: string | undefined;
53784
+ fields?: Record<string, string> | undefined;
53785
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
53786
+ events?: Record<string, string> | undefined;
53787
+ effects?: Record<string, SExpr[]> | undefined;
53788
+ refId?: TraitId | undefined;
53789
+ appliesTo?: string[] | undefined;
53790
+ linkedEntity?: string | undefined;
53791
+ linkedEntityId?: EntityId | undefined;
53792
+ eventIds?: Record<string, EventId> | undefined;
53793
+ listens?: unknown[] | undefined;
53794
+ emitsScope?: "internal" | "external" | undefined;
53795
+ } | {
52911
53796
  name: string;
52912
53797
  scope: "collection" | "instance";
52913
53798
  id?: TraitId | undefined;
@@ -53054,12 +53939,6 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
53054
53939
  aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
53055
53940
  } | undefined;
53056
53941
  } | undefined;
53057
- } | {
53058
- ref: string;
53059
- name?: string | undefined;
53060
- config?: TraitConfigObject | undefined;
53061
- events?: Record<string, string> | undefined;
53062
- linkedEntity?: string | undefined;
53063
53942
  })[];
53064
53943
  theme?: string | {
53065
53944
  name: string;
@@ -53666,6 +54545,22 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
53666
54545
  path?: string | undefined;
53667
54546
  from?: string | undefined;
53668
54547
  traits?: (string | {
54548
+ ref: string;
54549
+ id?: string | undefined;
54550
+ from?: string | undefined;
54551
+ name?: string | undefined;
54552
+ fields?: Record<string, string> | undefined;
54553
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
54554
+ events?: Record<string, string> | undefined;
54555
+ effects?: Record<string, SExpr[]> | undefined;
54556
+ refId?: string | undefined;
54557
+ appliesTo?: string[] | undefined;
54558
+ linkedEntity?: string | undefined;
54559
+ linkedEntityId?: string | undefined;
54560
+ eventIds?: Record<string, string> | undefined;
54561
+ listens?: unknown[] | undefined;
54562
+ emitsScope?: "internal" | "external" | undefined;
54563
+ } | {
53669
54564
  name: string;
53670
54565
  scope: "collection" | "instance";
53671
54566
  id?: string | undefined;
@@ -53812,12 +54707,6 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
53812
54707
  aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
53813
54708
  } | undefined;
53814
54709
  } | undefined;
53815
- } | {
53816
- ref: string;
53817
- name?: string | undefined;
53818
- config?: TraitConfigObject | undefined;
53819
- events?: Record<string, string> | undefined;
53820
- linkedEntity?: string | undefined;
53821
54710
  })[] | undefined;
53822
54711
  refId?: string | undefined;
53823
54712
  linkedEntity?: string | undefined;
@@ -53825,6 +54714,22 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
53825
54714
  traitRefIds?: string[] | undefined;
53826
54715
  })[];
53827
54716
  traits: (string | {
54717
+ ref: string;
54718
+ id?: string | undefined;
54719
+ from?: string | undefined;
54720
+ name?: string | undefined;
54721
+ fields?: Record<string, string> | undefined;
54722
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
54723
+ events?: Record<string, string> | undefined;
54724
+ effects?: Record<string, SExpr[]> | undefined;
54725
+ refId?: string | undefined;
54726
+ appliesTo?: string[] | undefined;
54727
+ linkedEntity?: string | undefined;
54728
+ linkedEntityId?: string | undefined;
54729
+ eventIds?: Record<string, string> | undefined;
54730
+ listens?: unknown[] | undefined;
54731
+ emitsScope?: "internal" | "external" | undefined;
54732
+ } | {
53828
54733
  name: string;
53829
54734
  scope: "collection" | "instance";
53830
54735
  id?: string | undefined;
@@ -53971,12 +54876,6 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
53971
54876
  aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
53972
54877
  } | undefined;
53973
54878
  } | undefined;
53974
- } | {
53975
- ref: string;
53976
- name?: string | undefined;
53977
- config?: TraitConfigObject | undefined;
53978
- events?: Record<string, string> | undefined;
53979
- linkedEntity?: string | undefined;
53980
54879
  })[];
53981
54880
  theme?: string | {
53982
54881
  name: string;
@@ -54884,6 +55783,22 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
54884
55783
  path?: string | undefined;
54885
55784
  from?: string | undefined;
54886
55785
  traits?: (string | {
55786
+ ref: string;
55787
+ id?: TraitId | undefined;
55788
+ from?: string | undefined;
55789
+ name?: string | undefined;
55790
+ fields?: Record<string, string> | undefined;
55791
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
55792
+ events?: Record<string, string> | undefined;
55793
+ effects?: Record<string, SExpr[]> | undefined;
55794
+ refId?: TraitId | undefined;
55795
+ appliesTo?: string[] | undefined;
55796
+ linkedEntity?: string | undefined;
55797
+ linkedEntityId?: EntityId | undefined;
55798
+ eventIds?: Record<string, EventId> | undefined;
55799
+ listens?: unknown[] | undefined;
55800
+ emitsScope?: "internal" | "external" | undefined;
55801
+ } | {
54887
55802
  name: string;
54888
55803
  scope: "collection" | "instance";
54889
55804
  id?: TraitId | undefined;
@@ -55030,12 +55945,6 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
55030
55945
  aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
55031
55946
  } | undefined;
55032
55947
  } | undefined;
55033
- } | {
55034
- ref: string;
55035
- name?: string | undefined;
55036
- config?: TraitConfigObject | undefined;
55037
- events?: Record<string, string> | undefined;
55038
- linkedEntity?: string | undefined;
55039
55948
  })[] | undefined;
55040
55949
  refId?: PageId | undefined;
55041
55950
  linkedEntity?: string | undefined;
@@ -55043,6 +55952,22 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
55043
55952
  traitRefIds?: TraitId[] | undefined;
55044
55953
  })[];
55045
55954
  traits: (string | {
55955
+ ref: string;
55956
+ id?: TraitId | undefined;
55957
+ from?: string | undefined;
55958
+ name?: string | undefined;
55959
+ fields?: Record<string, string> | undefined;
55960
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
55961
+ events?: Record<string, string> | undefined;
55962
+ effects?: Record<string, SExpr[]> | undefined;
55963
+ refId?: TraitId | undefined;
55964
+ appliesTo?: string[] | undefined;
55965
+ linkedEntity?: string | undefined;
55966
+ linkedEntityId?: EntityId | undefined;
55967
+ eventIds?: Record<string, EventId> | undefined;
55968
+ listens?: unknown[] | undefined;
55969
+ emitsScope?: "internal" | "external" | undefined;
55970
+ } | {
55046
55971
  name: string;
55047
55972
  scope: "collection" | "instance";
55048
55973
  id?: TraitId | undefined;
@@ -55189,12 +56114,6 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
55189
56114
  aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
55190
56115
  } | undefined;
55191
56116
  } | undefined;
55192
- } | {
55193
- ref: string;
55194
- name?: string | undefined;
55195
- config?: TraitConfigObject | undefined;
55196
- events?: Record<string, string> | undefined;
55197
- linkedEntity?: string | undefined;
55198
56117
  })[];
55199
56118
  theme?: string | {
55200
56119
  name: string;
@@ -55920,6 +56839,22 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
55920
56839
  path?: string | undefined;
55921
56840
  from?: string | undefined;
55922
56841
  traits?: (string | {
56842
+ ref: string;
56843
+ id?: string | undefined;
56844
+ from?: string | undefined;
56845
+ name?: string | undefined;
56846
+ fields?: Record<string, string> | undefined;
56847
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
56848
+ events?: Record<string, string> | undefined;
56849
+ effects?: Record<string, SExpr[]> | undefined;
56850
+ refId?: string | undefined;
56851
+ appliesTo?: string[] | undefined;
56852
+ linkedEntity?: string | undefined;
56853
+ linkedEntityId?: string | undefined;
56854
+ eventIds?: Record<string, string> | undefined;
56855
+ listens?: unknown[] | undefined;
56856
+ emitsScope?: "internal" | "external" | undefined;
56857
+ } | {
55923
56858
  name: string;
55924
56859
  scope: "collection" | "instance";
55925
56860
  id?: string | undefined;
@@ -56066,12 +57001,6 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
56066
57001
  aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
56067
57002
  } | undefined;
56068
57003
  } | undefined;
56069
- } | {
56070
- ref: string;
56071
- name?: string | undefined;
56072
- config?: TraitConfigObject | undefined;
56073
- events?: Record<string, string> | undefined;
56074
- linkedEntity?: string | undefined;
56075
57004
  })[] | undefined;
56076
57005
  refId?: string | undefined;
56077
57006
  linkedEntity?: string | undefined;
@@ -56079,6 +57008,22 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
56079
57008
  traitRefIds?: string[] | undefined;
56080
57009
  })[];
56081
57010
  traits: (string | {
57011
+ ref: string;
57012
+ id?: string | undefined;
57013
+ from?: string | undefined;
57014
+ name?: string | undefined;
57015
+ fields?: Record<string, string> | undefined;
57016
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
57017
+ events?: Record<string, string> | undefined;
57018
+ effects?: Record<string, SExpr[]> | undefined;
57019
+ refId?: string | undefined;
57020
+ appliesTo?: string[] | undefined;
57021
+ linkedEntity?: string | undefined;
57022
+ linkedEntityId?: string | undefined;
57023
+ eventIds?: Record<string, string> | undefined;
57024
+ listens?: unknown[] | undefined;
57025
+ emitsScope?: "internal" | "external" | undefined;
57026
+ } | {
56082
57027
  name: string;
56083
57028
  scope: "collection" | "instance";
56084
57029
  id?: string | undefined;
@@ -56225,12 +57170,6 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
56225
57170
  aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
56226
57171
  } | undefined;
56227
57172
  } | undefined;
56228
- } | {
56229
- ref: string;
56230
- name?: string | undefined;
56231
- config?: TraitConfigObject | undefined;
56232
- events?: Record<string, string> | undefined;
56233
- linkedEntity?: string | undefined;
56234
57173
  })[];
56235
57174
  theme?: string | {
56236
57175
  name: string;
@@ -57021,6 +57960,22 @@ declare function safeParseOrbitalSchema(data: unknown): z.SafeParseReturnType<{
57021
57960
  path?: string | undefined;
57022
57961
  from?: string | undefined;
57023
57962
  traits?: (string | {
57963
+ ref: string;
57964
+ id?: string | undefined;
57965
+ from?: string | undefined;
57966
+ name?: string | undefined;
57967
+ fields?: Record<string, string> | undefined;
57968
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
57969
+ events?: Record<string, string> | undefined;
57970
+ effects?: Record<string, SExpr[]> | undefined;
57971
+ refId?: string | undefined;
57972
+ appliesTo?: string[] | undefined;
57973
+ linkedEntity?: string | undefined;
57974
+ linkedEntityId?: string | undefined;
57975
+ eventIds?: Record<string, string> | undefined;
57976
+ listens?: unknown[] | undefined;
57977
+ emitsScope?: "internal" | "external" | undefined;
57978
+ } | {
57024
57979
  name: string;
57025
57980
  scope: "collection" | "instance";
57026
57981
  id?: string | undefined;
@@ -57167,12 +58122,6 @@ declare function safeParseOrbitalSchema(data: unknown): z.SafeParseReturnType<{
57167
58122
  aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
57168
58123
  } | undefined;
57169
58124
  } | undefined;
57170
- } | {
57171
- ref: string;
57172
- name?: string | undefined;
57173
- config?: TraitConfigObject | undefined;
57174
- events?: Record<string, string> | undefined;
57175
- linkedEntity?: string | undefined;
57176
58125
  })[] | undefined;
57177
58126
  refId?: string | undefined;
57178
58127
  linkedEntity?: string | undefined;
@@ -57180,6 +58129,22 @@ declare function safeParseOrbitalSchema(data: unknown): z.SafeParseReturnType<{
57180
58129
  traitRefIds?: string[] | undefined;
57181
58130
  })[];
57182
58131
  traits: (string | {
58132
+ ref: string;
58133
+ id?: string | undefined;
58134
+ from?: string | undefined;
58135
+ name?: string | undefined;
58136
+ fields?: Record<string, string> | undefined;
58137
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
58138
+ events?: Record<string, string> | undefined;
58139
+ effects?: Record<string, SExpr[]> | undefined;
58140
+ refId?: string | undefined;
58141
+ appliesTo?: string[] | undefined;
58142
+ linkedEntity?: string | undefined;
58143
+ linkedEntityId?: string | undefined;
58144
+ eventIds?: Record<string, string> | undefined;
58145
+ listens?: unknown[] | undefined;
58146
+ emitsScope?: "internal" | "external" | undefined;
58147
+ } | {
57183
58148
  name: string;
57184
58149
  scope: "collection" | "instance";
57185
58150
  id?: string | undefined;
@@ -57326,12 +58291,6 @@ declare function safeParseOrbitalSchema(data: unknown): z.SafeParseReturnType<{
57326
58291
  aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
57327
58292
  } | undefined;
57328
58293
  } | undefined;
57329
- } | {
57330
- ref: string;
57331
- name?: string | undefined;
57332
- config?: TraitConfigObject | undefined;
57333
- events?: Record<string, string> | undefined;
57334
- linkedEntity?: string | undefined;
57335
58294
  })[];
57336
58295
  theme?: string | {
57337
58296
  name: string;
@@ -58057,6 +59016,22 @@ declare function safeParseOrbitalSchema(data: unknown): z.SafeParseReturnType<{
58057
59016
  path?: string | undefined;
58058
59017
  from?: string | undefined;
58059
59018
  traits?: (string | {
59019
+ ref: string;
59020
+ id?: TraitId | undefined;
59021
+ from?: string | undefined;
59022
+ name?: string | undefined;
59023
+ fields?: Record<string, string> | undefined;
59024
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
59025
+ events?: Record<string, string> | undefined;
59026
+ effects?: Record<string, SExpr[]> | undefined;
59027
+ refId?: TraitId | undefined;
59028
+ appliesTo?: string[] | undefined;
59029
+ linkedEntity?: string | undefined;
59030
+ linkedEntityId?: EntityId | undefined;
59031
+ eventIds?: Record<string, EventId> | undefined;
59032
+ listens?: unknown[] | undefined;
59033
+ emitsScope?: "internal" | "external" | undefined;
59034
+ } | {
58060
59035
  name: string;
58061
59036
  scope: "collection" | "instance";
58062
59037
  id?: TraitId | undefined;
@@ -58203,12 +59178,6 @@ declare function safeParseOrbitalSchema(data: unknown): z.SafeParseReturnType<{
58203
59178
  aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
58204
59179
  } | undefined;
58205
59180
  } | undefined;
58206
- } | {
58207
- ref: string;
58208
- name?: string | undefined;
58209
- config?: TraitConfigObject | undefined;
58210
- events?: Record<string, string> | undefined;
58211
- linkedEntity?: string | undefined;
58212
59181
  })[] | undefined;
58213
59182
  refId?: PageId | undefined;
58214
59183
  linkedEntity?: string | undefined;
@@ -58216,6 +59185,22 @@ declare function safeParseOrbitalSchema(data: unknown): z.SafeParseReturnType<{
58216
59185
  traitRefIds?: TraitId[] | undefined;
58217
59186
  })[];
58218
59187
  traits: (string | {
59188
+ ref: string;
59189
+ id?: TraitId | undefined;
59190
+ from?: string | undefined;
59191
+ name?: string | undefined;
59192
+ fields?: Record<string, string> | undefined;
59193
+ config?: Record<string, TraitConfigValue | ConfigFieldDeclaration> | undefined;
59194
+ events?: Record<string, string> | undefined;
59195
+ effects?: Record<string, SExpr[]> | undefined;
59196
+ refId?: TraitId | undefined;
59197
+ appliesTo?: string[] | undefined;
59198
+ linkedEntity?: string | undefined;
59199
+ linkedEntityId?: EntityId | undefined;
59200
+ eventIds?: Record<string, EventId> | undefined;
59201
+ listens?: unknown[] | undefined;
59202
+ emitsScope?: "internal" | "external" | undefined;
59203
+ } | {
58219
59204
  name: string;
58220
59205
  scope: "collection" | "instance";
58221
59206
  id?: TraitId | undefined;
@@ -58362,12 +59347,6 @@ declare function safeParseOrbitalSchema(data: unknown): z.SafeParseReturnType<{
58362
59347
  aspect?: "1:1" | "16:9" | "5:7" | "8:1" | undefined;
58363
59348
  } | undefined;
58364
59349
  } | undefined;
58365
- } | {
58366
- ref: string;
58367
- name?: string | undefined;
58368
- config?: TraitConfigObject | undefined;
58369
- events?: Record<string, string> | undefined;
58370
- linkedEntity?: string | undefined;
58371
59350
  })[];
58372
59351
  theme?: string | {
58373
59352
  name: string;
@@ -59045,594 +60024,4 @@ declare function safeParseOrbitalSchema(data: unknown): z.SafeParseReturnType<{
59045
60024
  type OrbitalSchemaInput = z.input<typeof OrbitalSchemaSchema>;
59046
60025
  type OrbitalConfigInput = z.input<typeof OrbitalConfigSchema>;
59047
60026
 
59048
- /**
59049
- * Event Wiring
59050
- *
59051
- * Applies cross-orbital event wiring to orbital definitions.
59052
- * Adds emits/listens declarations to traits so they can communicate
59053
- * across orbital boundaries.
59054
- *
59055
- * @packageDocumentation
59056
- */
59057
-
59058
- /**
59059
- * A single event wiring entry connecting two traits across orbitals.
59060
- */
59061
- interface EventWiringEntry {
59062
- /** Source trait name or orbital name */
59063
- from: string;
59064
- /** Event name (UPPER_SNAKE_CASE) */
59065
- event: string;
59066
- /** Target trait name or orbital name */
59067
- to: string;
59068
- /** Event to trigger on the listener side */
59069
- triggers: string;
59070
- }
59071
- /**
59072
- * Apply event wiring to orbital definitions.
59073
- *
59074
- * For each wiring entry:
59075
- * 1. Find the source trait and add an external emit (if not already present)
59076
- * 2. Find the target trait and add an external listen (if not already present)
59077
- *
59078
- * Returns a new array of orbitals with wiring applied (deep-cloned).
59079
- */
59080
- declare function applyEventWiring(orbitals: OrbitalDefinition[], wiring: EventWiringEntry[]): OrbitalDefinition[];
59081
-
59082
- /**
59083
- * Layout Strategy Detection
59084
- *
59085
- * Auto-detects the best layout strategy for a composed application
59086
- * based on the number of orbitals and their event wiring topology.
59087
- *
59088
- * @packageDocumentation
59089
- */
59090
-
59091
- /**
59092
- * Layout strategy for the composed application.
59093
- *
59094
- * - 'single': One orbital, one page
59095
- * - 'tabs': 2-4 orbitals with no sequential chain
59096
- * - 'sidebar': 5+ orbitals (navigation-heavy)
59097
- * - 'dashboard': Single page with all orbitals visible
59098
- * - 'wizard-flow': Sequential event chain detected (A -> B -> C)
59099
- */
59100
- type LayoutStrategy = 'sidebar' | 'tabs' | 'dashboard' | 'wizard-flow' | 'single';
59101
- /**
59102
- * Detect the best layout strategy based on orbital count and event wiring.
59103
- *
59104
- * Heuristic:
59105
- * 1. Sequential event chain detected -> 'wizard-flow'
59106
- * 2. 1 orbital -> 'single'
59107
- * 3. 2-4 orbitals -> 'tabs'
59108
- * 4. 5+ orbitals -> 'sidebar'
59109
- */
59110
- declare function detectLayoutStrategy(orbitals: OrbitalDefinition[], eventWiring?: EventWiringEntry[]): LayoutStrategy;
59111
-
59112
- /**
59113
- * Compose Behaviors
59114
- *
59115
- * Main entry point for composing multiple orbital definitions into
59116
- * a single OrbitalSchema application. Handles event wiring, layout
59117
- * strategy detection, and page generation.
59118
- *
59119
- * @packageDocumentation
59120
- */
59121
-
59122
- /**
59123
- * Union the identity ledgers of the schema-shaped inputs (V4 Phase 6, runtime
59124
- * mirror of the Rust compose ledger merge). Bare OrbitalDefinition inputs and
59125
- * ledger-less schemas contribute nothing (pre-V4 back-compat: no ledger in →
59126
- * no ledger out). Entries are keyed by id; first occurrence in input order wins
59127
- * for a duplicate id — the rows share one identity, so a `curName` divergence
59128
- * across slices resolves deterministically to the earliest input's row. Output
59129
- * entries are sorted by id for stable, order-independent composition.
59130
- */
59131
- declare function mergeLedgers(inputs: (OrbitalDefinition | OrbitalSchema)[]): IdentityLedger | undefined;
59132
- /**
59133
- * Input for composing behaviors into an application.
59134
- */
59135
- interface ComposeBehaviorsInput {
59136
- /** Application name */
59137
- appName: string;
59138
- /** Orbital definitions (or schemas) to compose */
59139
- orbitals: (OrbitalDefinition | OrbitalSchema)[];
59140
- /** Layout strategy override, or 'auto' to detect */
59141
- layoutStrategy?: LayoutStrategy | 'auto';
59142
- /** Cross-orbital event wiring */
59143
- eventWiring?: EventWiringEntry[];
59144
- /** Optional entity name mappings (original -> renamed) */
59145
- entityMappings?: Record<string, string>;
59146
- }
59147
- /**
59148
- * Result of composing behaviors.
59149
- */
59150
- interface ComposeBehaviorsResult {
59151
- /** The composed OrbitalSchema */
59152
- schema: OrbitalSchema;
59153
- /** Layout metadata */
59154
- layout: {
59155
- strategy: LayoutStrategy;
59156
- pageCount: number;
59157
- };
59158
- /** Wiring metadata */
59159
- wiring: {
59160
- connections: number;
59161
- };
59162
- }
59163
- /**
59164
- * Compose multiple orbital definitions into a single application schema.
59165
- *
59166
- * Steps:
59167
- * 1. Apply event wiring (adds emits/listens to traits)
59168
- * 2. Detect or use provided layout strategy
59169
- * 3. Generate pages based on the strategy
59170
- * 4. Build the final OrbitalSchema
59171
- */
59172
- declare function composeBehaviors(input: ComposeBehaviorsInput): ComposeBehaviorsResult;
59173
-
59174
- /**
59175
- * Apply trait config overrides to a schema — pure, returns a new schema.
59176
- *
59177
- * Used by config-driven preview surfaces (the playground property inspector and
59178
- * the verify config-sweep) to render a behavior with different `config` values
59179
- * WITHOUT recompiling: the override is written onto the matching trait, then the
59180
- * schema is re-registered and re-rendered.
59181
- *
59182
- * The resolved schema's traits are inlined `Trait`s whose `config` is the
59183
- * DECLARED schema (`{ field: { type, default, ... } }`), so an override patches
59184
- * each field's `default`. A trait that instead carries call-site value config
59185
- * (a `{ ref, config }` reference) gets the values merged directly.
59186
- *
59187
- * @packageDocumentation
59188
- */
59189
-
59190
- /**
59191
- * Return a new schema with `config` overrides applied to traits whose identity
59192
- * (`name`, falling back to `ref`) matches a key in `overrides`. Fields not
59193
- * declared on the trait are ignored — overrides never invent config.
59194
- */
59195
- declare function applyTraitConfigOverrides(schema: OrbitalSchema, overrides: Readonly<Record<string, TraitConfig>>): OrbitalSchema;
59196
-
59197
- /**
59198
- * Layout-Trait Builders
59199
- *
59200
- * Helpers for constructing the canonical inline LayoutTrait pattern that
59201
- * std layout-shell molecules (`std-filtered-list`, `std-master-detail-layout`,
59202
- * etc.) use to wrap a set of atom trait references in a `(render-ui main)`
59203
- * effect with `@trait.X` slot embeds.
59204
- *
59205
- * The canonical LayoutTrait is stateless: ONE state (`composing`, initial),
59206
- * ONE transition (`INIT` self-loop) carrying two effects — `(fetch Entity
59207
- * {emit: {success, failure}})` and `(render-ui "main" <pattern-tree>)`. Atoms
59208
- * embedded via `@trait.X` slot references react to the bus events the fetch
59209
- * emits; the LayoutTrait owns no further state.
59210
- *
59211
- * Usage from a std layout-shell molecule:
59212
- *
59213
- * ```ts
59214
- * import { makeSlot, makeLayoutTrait } from '@almadar/core/builders';
59215
- *
59216
- * const layout = makeLayoutTrait({
59217
- * name: 'DashboardLayout',
59218
- * linkedEntity: 'Metric',
59219
- * fetchEntity: 'Metric',
59220
- * loadedEvent: 'MetricLoaded',
59221
- * loadFailedEvent: 'MetricLoadFailed',
59222
- * renderUI: {
59223
- * type: 'stack',
59224
- * direction: 'vertical',
59225
- * children: [
59226
- * makeSlot('StatsRow'),
59227
- * makeSlot('ChartsRow'),
59228
- * makeSlot('FeedRow'),
59229
- * ],
59230
- * },
59231
- * });
59232
- * ```
59233
- *
59234
- * @packageDocumentation
59235
- */
59236
-
59237
- /**
59238
- * Build a `@trait.<name>` slot reference string. Used as a child entry in a
59239
- * pattern tree to embed another trait's render-ui at that position. The
59240
- * runtime resolves `@trait.X` to the matching trait's render-ui inline.
59241
- *
59242
- * @example makeSlot('FilteredItemSearch') // "@trait.FilteredItemSearch"
59243
- */
59244
- declare function makeSlot(traitName: string): string;
59245
- /**
59246
- * Build a `(render-ui <slot> <root>)` effect tuple. Pattern-typed sugar over
59247
- * the raw `RenderUIEffect` literal so callers don't have to spell out the
59248
- * three-element tuple form.
59249
- *
59250
- * @param slot - Canonical UI slot name (`'main'`, `'header'`, etc. — see UI_SLOTS).
59251
- * @param root - The pattern config for this slot's content, OR a `@`-binding
59252
- * string ({@link RenderBinding}) pointing at a render tree in `config` /
59253
- * `payload` (e.g. `'@config.bodyContent'`). Pass `null` to clear.
59254
- */
59255
- declare function makeRenderUI(slot: UISlot, root: AnyPatternConfig | RenderBinding | null): RenderUIEffect;
59256
- /**
59257
- * Options for {@link makeLayoutTrait}.
59258
- */
59259
- interface MakeLayoutTraitOpts {
59260
- /** Trait name, e.g. `"DashboardGridLayout"`. */
59261
- name: string;
59262
- /** Entity this layout's emits/listens bind to. */
59263
- linkedEntity: string;
59264
- /** Optional human-readable description (carried through to `Trait.description`). */
59265
- description?: string;
59266
- /**
59267
- * Entity name to fetch on INIT. When set, a `(fetch <Entity> {emit:
59268
- * {success, failure}})` effect is prepended to the INIT transition. Omit
59269
- * for purely-presentational layouts that don't load data themselves.
59270
- */
59271
- fetchEntity?: string;
59272
- /**
59273
- * Event name emitted on successful fetch. Required when `fetchEntity` is
59274
- * set; the LayoutTrait declares this event in its `emits` and uses it as
59275
- * the `success` emit-name in the fetch effect.
59276
- * Convention: `"<Entity>Loaded"`.
59277
- */
59278
- loadedEvent?: string;
59279
- /**
59280
- * Event name emitted on fetch failure. Required when `fetchEntity` is
59281
- * set. Convention: `"<Entity>LoadFailed"`.
59282
- */
59283
- loadFailedEvent?: string;
59284
- /**
59285
- * Payload schema for the loaded event. Defaults to `[{ name: "data", type:
59286
- * "[<Entity>]" }]` when `fetchEntity` is set. Provide explicitly when the
59287
- * payload should carry additional fields.
59288
- */
59289
- loadedPayloadSchema?: Array<{
59290
- name: string;
59291
- type: string;
59292
- required?: boolean;
59293
- }>;
59294
- /**
59295
- * The pattern tree for the layout's main slot. Children may include
59296
- * `@trait.X` slot strings (built via {@link makeSlot}) interleaved with
59297
- * inline pattern configs (`{ type: 'stack', ... }`). The shape conforms to
59298
- * `AnyPatternConfig` from `@almadar/patterns`.
59299
- */
59300
- renderUI: AnyPatternConfig;
59301
- /**
59302
- * Override the slot the render-ui effect targets. Defaults to `'main'`.
59303
- * Specify when the layout shell should render into a sub-slot (rare).
59304
- */
59305
- slot?: UISlot;
59306
- /**
59307
- * Additional effects appended to the INIT transition AFTER the fetch +
59308
- * render-ui pair. Most layouts don't need this; provided for advanced
59309
- * cases (analytics emit, persistence seed, etc.).
59310
- */
59311
- extraEffects?: Effect[];
59312
- }
59313
- /**
59314
- * Build the canonical stateless LayoutTrait used by std layout-shell molecules.
59315
- *
59316
- * Result shape:
59317
- * - `category: 'interaction'`, `scope: 'instance'`
59318
- * - `linkedEntity` set per the option
59319
- * - `emits` declares the loaded + loadFailed events when `fetchEntity` is set
59320
- * - One state: `'composing'` (`isInitial: true`)
59321
- * - One transition: `composing → composing` on `INIT`, with effects:
59322
- * - (when `fetchEntity` set) `['fetch', '<Entity>', { emit: { success, failure } }]`
59323
- * - `['render-ui', slot, renderUI]`
59324
- * - …`extraEffects` if provided
59325
- *
59326
- * Atoms whose trait names appear as `@trait.<name>` strings inside `renderUI`
59327
- * get embedded by the runtime when the orbital instantiates. The LayoutTrait
59328
- * itself stays stateless — all reactive behaviour lives in the embedded atoms.
59329
- */
59330
- declare function makeLayoutTrait(opts: MakeLayoutTraitOpts): Trait;
59331
-
59332
- /**
59333
- * Orbital Builders
59334
- *
59335
- * Pure functions for constructing and composing Orbitals.
59336
- * No new types. Everything uses existing core types:
59337
- * Entity, Trait, Page, OrbitalDefinition, OrbitalSchema.
59338
- *
59339
- * Three categories:
59340
- * 1. Builders: construct Entity, Page from common params
59341
- * 2. Utilities: ensureIdField, resolveDefaults
59342
- * 3. Composition: connect, compose, pipe
59343
- *
59344
- * @packageDocumentation
59345
- */
59346
-
59347
- /**
59348
- * Ensure the fields array has an `id` field. Prepends one if missing.
59349
- */
59350
- declare function ensureIdField(fields?: EntityField[]): EntityField[];
59351
- /**
59352
- * Simple pluralization: append 's'.
59353
- */
59354
- declare function plural(name: string): string;
59355
- interface MakeEntityOpts {
59356
- name: string;
59357
- fields: EntityField[];
59358
- persistence?: EntityPersistence;
59359
- collection?: string;
59360
- /** Pre-authored seed data instances */
59361
- instances?: EntityRow[];
59362
- }
59363
- /**
59364
- * Build an Entity from options. Auto-adds id field, auto-derives collection.
59365
- */
59366
- declare function makeEntity(opts: MakeEntityOpts): Entity;
59367
- interface MakePageOpts {
59368
- name: string;
59369
- path: string;
59370
- traitName: string;
59371
- isInitial?: boolean;
59372
- }
59373
- /**
59374
- * Build a Page that binds to a single trait.
59375
- */
59376
- declare function makePage(opts: MakePageOpts): Page;
59377
- /**
59378
- * Build an OrbitalDefinition from its three components.
59379
- */
59380
- declare function makeOrbital(name: string, entity: Entity, traits: Trait[], pages: Page[]): OrbitalDefinition;
59381
- /**
59382
- * Options for {@link makeTraitRef}.
59383
- */
59384
- interface MakeTraitRefOpts {
59385
- /**
59386
- * Optional registry path disambiguator that pairs with {@link ref}
59387
- * (see {@link TraitReference.from}).
59388
- */
59389
- from?: string;
59390
- /** Trait reference string, e.g. "Browse.traits.BrowseItemBrowse". */
59391
- ref: string;
59392
- /** Rename the inlined trait at the call site. */
59393
- name?: string;
59394
- /** Rebind the trait to a different linkedEntity. */
59395
- linkedEntity?: string;
59396
- /** Dual-carry id sibling of {@link linkedEntity} (V4 identity graph). */
59397
- linkedEntityId?: EntityId;
59398
- /** Per-key rename map, e.g. `{ OPEN: "ADD_ITEM" }`. */
59399
- events?: Record<string, string>;
59400
- /**
59401
- * Entity-field remap, e.g. `{ name: "title", folder: "parentId" }`. Rewrites
59402
- * the inlined trait's canonical `@entity.X` / `@payload.row.X` references to
59403
- * the consumer entity's field names. Mirrors {@link TraitReference.fields}.
59404
- */
59405
- fields?: Record<string, string>;
59406
- /**
59407
- * Per-event SExpression effect replacement. Keys are POST-rename event
59408
- * names. See {@link TraitReference.effects} for the full contract.
59409
- */
59410
- effects?: Record<string, SExpr[]>;
59411
- /** Replace the imported trait's `listens` array entirely. */
59412
- listens?: TraitEventListener[];
59413
- /** Set every emit's scope. */
59414
- emitsScope?: 'internal' | 'external';
59415
- /**
59416
- * Call-site config overrides. Each entry is either a plain wiring value
59417
- * (`TraitConfigValue`) or a fully-annotated re-declaration
59418
- * (`ConfigFieldDeclaration`). Matches {@link TraitReference.config}.
59419
- */
59420
- config?: CallSiteConfig;
59421
- }
59422
- /**
59423
- * Typed-narrowing variant of {@link MakeTraitRefOpts} for callers that know
59424
- * the imported atom's overridable surfaces — its event-key set, listen-key
59425
- * set, and config shape. Generated std factories use this variant so an LLM
59426
- * tool consumer (orbital-agent) sees the closed event-name set and the
59427
- * config field schema instead of the un-narrowed `Record<string, string>` /
59428
- * `TraitConfig` defaults.
59429
- *
59430
- * Type parameters:
59431
- * - `EventKey` — string union of the atom's emit event names. Narrows the
59432
- * `events` rename map's keys to legal originals only.
59433
- * - `ConfigShape` — typed shape of the trait's `config { ... }` block (literal
59434
- * unions intact). Narrows the `config` override to the atom's actual fields.
59435
- * Extends `CallSiteConfig` to allow both plain wiring values and annotated
59436
- * declarations. Existing callers using plain `TraitConfig` shapes are
59437
- * unaffected (TraitConfig ⊆ CallSiteConfig).
59438
- * - `ListenKey` — string union of the atom's listen-key contract. Narrows
59439
- * each listens entry's `event` against the atom's real subscription set.
59440
- *
59441
- * Runtime behavior is unchanged — {@link makeTraitRef} accepts both the
59442
- * narrow and wide forms via the standard structural-typing rules. This is
59443
- * a type-level narrowing only; widening at the call boundary is intentional.
59444
- */
59445
- interface MakeTraitRefOptsTyped<EventKey extends string = string, ConfigShape extends CallSiteConfig = Record<string, never>, ListenKey extends string = string> extends Omit<MakeTraitRefOpts, 'events' | 'effects' | 'listens' | 'config'> {
59446
- /** Per-key rename map, narrowed to the atom's actual event keys. */
59447
- events?: Partial<Record<EventKey, string>>;
59448
- /**
59449
- * Per-event SExpression effect replacement. Keys are POST-rename event
59450
- * names so they're caller-defined (no narrowing here); values stay typed
59451
- * as `SExpr[]`.
59452
- */
59453
- effects?: Partial<Record<string, SExpr[]>>;
59454
- /**
59455
- * Replace the imported trait's `listens` array entirely. Each entry's
59456
- * `event` field is narrowed to {@link ListenKey} where the atom's
59457
- * subscription set is fixed; otherwise this widens to plain string.
59458
- */
59459
- listens?: Array<TraitEventListener & {
59460
- event?: ListenKey;
59461
- }>;
59462
- /** Typed call-site config overrides — narrowed to {@link ConfigShape}. */
59463
- config?: ConfigShape;
59464
- }
59465
- /**
59466
- * Build a {@link TraitReference} from options.
59467
- *
59468
- * Pass-through factory: copies only the fields that are actually provided,
59469
- * so optionals stay absent (no `key: undefined` slots) and the emitted
59470
- * object matches the inliner's expectation that "present = override".
59471
- */
59472
- declare function makeTraitRef(opts: MakeTraitRefOpts): TraitReference;
59473
- /**
59474
- * Options for {@link makePageRef}.
59475
- */
59476
- interface MakePageRefOpts {
59477
- /**
59478
- * Optional registry path disambiguator that pairs with {@link ref}
59479
- * (see {@link PageRefObject.from}).
59480
- */
59481
- from?: string;
59482
- /** Page reference string, e.g. "Browse.pages.BrowseItemPage". */
59483
- ref: string;
59484
- /** URL path override. */
59485
- path?: string;
59486
- /** Rebind the page's primary entity. */
59487
- linkedEntity?: string;
59488
- /** Replace the page's trait list. */
59489
- traits?: TraitRef[];
59490
- }
59491
- /**
59492
- * Typed-narrowing variant of {@link MakePageRefOpts}. Narrows the `traits`
59493
- * override array's entries to the orbital's known trait-name union — so the
59494
- * agent can't pass a trait name that doesn't exist on the page's owning
59495
- * orbital. Generated std page-helpers use this variant to surface the
59496
- * trait set in the tool schema; un-narrowed call sites stay compatible.
59497
- *
59498
- * Type parameter:
59499
- * - `TraitName` — string union of trait names the page may reference.
59500
- */
59501
- interface MakePageRefOptsTyped<TraitName extends string = string> extends Omit<MakePageRefOpts, 'traits'> {
59502
- traits?: Array<{
59503
- ref: TraitName;
59504
- } | TraitRef>;
59505
- }
59506
- /**
59507
- * Build a {@link PageRefObject} from options. Pass-through factory — omits
59508
- * optional keys that are `undefined`.
59509
- */
59510
- declare function makePageRef(opts: MakePageRefOpts): PageRefObject;
59511
- /**
59512
- * Options for {@link makeOrbitalWithUses}.
59513
- */
59514
- interface MakeOrbitalWithUsesOpts {
59515
- /** Orbital name. */
59516
- name: string;
59517
- /**
59518
- * Per-orbital `uses:` header entries (see CLAUDE.md "uses: lives inside
59519
- * the orbital").
59520
- */
59521
- uses: UseDeclaration[];
59522
- /** Entity (inline or reference form). */
59523
- entity: EntityRef;
59524
- /** Trait references. */
59525
- traits: TraitRef[];
59526
- /** Optional page references (omitted entirely when not provided). */
59527
- pages?: PageRef[];
59528
- }
59529
- /**
59530
- * Build an {@link OrbitalDefinition} with the `uses:` header set. Follows
59531
- * the convention that `uses:` lives on the orbital (not the schema).
59532
- *
59533
- * When `pages` is omitted, the result has no `pages` property (matches the
59534
- * existing {@link OrbitalDefinition.pages} optionality in descriptors that
59535
- * carry trait-only atoms).
59536
- */
59537
- declare function makeOrbitalWithUses(opts: MakeOrbitalWithUsesOpts): OrbitalDefinition;
59538
- /**
59539
- * Options for {@link makeAtomOrbital}.
59540
- *
59541
- * Overrides for the single trait reference. Mirrors the {@link MakeTraitRefOpts}
59542
- * subset that is meaningful at the atom-wrapping call site.
59543
- */
59544
- interface MakeAtomOrbitalTraitOverrides {
59545
- name?: string;
59546
- events?: Record<string, string>;
59547
- effects?: Record<string, SExpr[]>;
59548
- listens?: TraitEventListener[];
59549
- emitsScope?: 'internal' | 'external';
59550
- config?: CallSiteConfig;
59551
- }
59552
- /**
59553
- * Options for {@link makeAtomOrbital}.
59554
- */
59555
- interface MakeAtomOrbitalOpts {
59556
- /** Orbital name, e.g. `${entityName}Orbital`. */
59557
- name: string;
59558
- /** Atom registry path, e.g. `std/behaviors/atoms/std-browse`. */
59559
- atomPath: string;
59560
- /** Import alias (PascalCase), e.g. `Browse`. */
59561
- alias: string;
59562
- /** Entity definition to attach to the orbital. */
59563
- entity: Entity;
59564
- /** Trait reference string, e.g. `Browse.traits.BrowseItemBrowse`. */
59565
- traitRef: string;
59566
- /** Optional trait-level overrides applied at the call site. */
59567
- traitOverrides?: MakeAtomOrbitalTraitOverrides;
59568
- /** Optional page reference string, e.g. `Browse.pages.BrowseItemPage`. */
59569
- pageRef?: string;
59570
- /** Optional page-level overrides applied at the call site. */
59571
- pageOverrides?: {
59572
- path?: string;
59573
- };
59574
- }
59575
- /**
59576
- * Build a single-atom {@link OrbitalDefinition}.
59577
- *
59578
- * The common atom shape: one entity + one trait reference + (optionally) one
59579
- * page reference, all under a single `uses:` import. Wraps
59580
- * {@link makeTraitRef}, {@link makePageRef}, and {@link makeOrbitalWithUses}.
59581
- *
59582
- * The trait reference is linkedEntity-bound to `entity.name` by default so
59583
- * that the inliner's entity-substitution pass rewrites every `["ref", X]`
59584
- * and `@X.path` reference inside the atom.
59585
- */
59586
- declare function makeAtomOrbital(opts: MakeAtomOrbitalOpts): OrbitalDefinition;
59587
- /**
59588
- * Wrap one or more OrbitalDefinitions into an OrbitalSchema.
59589
- * Every .orb file should be a full OrbitalSchema — this is the builder for that.
59590
- */
59591
- declare function makeSchema(name: string, ...definitions: OrbitalDefinition[]): OrbitalSchema;
59592
- /**
59593
- * Merge multiple OrbitalDefinitions into one.
59594
- * Collects all traits from all sources into a single orbital with a shared entity.
59595
- * Pure: clones all traits, no mutation.
59596
- */
59597
- declare function mergeOrbitals(name: string, entity: Entity, sources: OrbitalDefinition[], pages: Page[]): OrbitalDefinition;
59598
- /**
59599
- * Wire an intra-orbital event between two traits.
59600
- * Adds emits to the source trait, listens to the target trait.
59601
- * Pure: returns cloned traits, no mutation.
59602
- */
59603
- declare function wire(source: Trait, target: Trait, event: TraitEventContract, triggers: string): [Trait, Trait];
59604
- /**
59605
- * Extract the first trait from an OrbitalDefinition or OrbitalSchema.
59606
- * If given an OrbitalSchema, unwraps to the first orbital inside it.
59607
- */
59608
- declare function extractTrait(input: OrbitalDefinition | OrbitalSchema): Trait;
59609
- /**
59610
- * Wire a cross-orbital event between two orbitals.
59611
- * Adds emits to a's first trait, listens to b's first trait.
59612
- * Pure: returns new orbitals, no mutation.
59613
- */
59614
- declare function connect(a: OrbitalDefinition | OrbitalSchema, b: OrbitalDefinition | OrbitalSchema, event: TraitEventContract, triggers?: string): [OrbitalDefinition, OrbitalDefinition];
59615
- interface ComposeConnection {
59616
- from: string;
59617
- to: string;
59618
- event: TraitEventContract;
59619
- triggers?: string;
59620
- }
59621
- interface ComposePage {
59622
- name: string;
59623
- path: string;
59624
- traits: string[];
59625
- isInitial?: boolean;
59626
- }
59627
- /**
59628
- * Compose multiple orbitals into a single OrbitalSchema (application).
59629
- * Applies connections (cross-orbital event wiring) and page assignments.
59630
- */
59631
- declare function compose(orbitals: (OrbitalDefinition | OrbitalSchema)[], pages: ComposePage[], connections: ComposeConnection[], appName?: string): OrbitalSchema;
59632
- /**
59633
- * Chain orbitals in sequence with automatic event wiring.
59634
- * Sugar over connect + compose: wires events[0] from orbital[0] to orbital[1], etc.
59635
- */
59636
- declare function pipe(orbitals: (OrbitalDefinition | OrbitalSchema)[], events: TraitEventContract[], appName?: string): OrbitalSchema;
59637
-
59638
- export { EntitySemanticRoleSchema as $, AGENT_DOMAIN_CATEGORIES as A, type DesignPreferencesInput as B, type ColorSlice as C, type DensitySlice as D, DesignPreferencesSchema as E, type DesignTokens as F, type DesignTokensInput as G, DesignTokensSchema as H, type DomainCategory as I, DomainCategorySchema as J, type DomainContext as K, type DomainContextInput as L, type MakeTraitRefOpts as M, DomainContextSchema as N, type OrbitalSchema as O, type DomainVocabulary as P, DomainVocabularySchema as Q, type ElevationSlice as R, ElevationSliceSchema as S, type ElevationTokens as T, ElevationTokensSchema as U, type EntityCall as V, EntityCallSchema as W, type EntityRef as X, EntityRefSchema as Y, EntityRefStringSchema as Z, type EntitySemanticRole as _, type OrbitalDefinition as a, type PageRefObject as a$, type EventListener as a0, EventListenerSchema as a1, type EventSemanticRole as a2, EventSemanticRoleSchema as a3, type EventSource as a4, EventSourceSchema as a5, type EventWiringEntry as a6, type Orbital as a7, type GameSubCategory as a8, GameSubCategorySchema as a9, type MotionIntentMap as aA, MotionIntentMapSchema as aB, MotionIntentSchema as aC, type MotionSlice as aD, MotionSliceSchema as aE, type MotionTokens as aF, MotionTokensSchema as aG, type NodeClassification as aH, NodeClassificationSchema as aI, type OrbitalConfig as aJ, type OrbitalConfigInput as aK, OrbitalConfigSchema as aL, OrbitalDefinitionSchema as aM, type OrbitalInput as aN, type OrbitalPage as aO, type OrbitalPageInput as aP, OrbitalPageSchema as aQ, type OrbitalPageStrictInput as aR, OrbitalPageStrictSchema as aS, type OrbitalSchemaInput as aT, OrbitalSchemaSchema as aU, type OrbitalSchemaWithTraits as aV, type OrbitalUnit as aW, OrbitalUnitSchema as aX, OrbitalSchema$1 as aY, type Page as aZ, type PageRef as a_, type GeometrySlice as aa, GeometrySliceSchema as ab, type GeometryTokens as ac, GeometryTokensSchema as ad, type IconFamily as ae, IconFamilySchema as af, type IconographySlice as ag, IconographySliceSchema as ah, type IconographyTokens as ai, IconographyTokensSchema as aj, type IllustrationSlice as ak, IllustrationSliceSchema as al, type IllustrationStyle as am, IllustrationStyleSchema as an, type IllustrationTokens as ao, IllustrationTokensSchema as ap, type LayoutStrategy as aq, type MotionDurationKey as ar, MotionDurationKeySchema as as, type MotionDurationPalette as at, MotionDurationPaletteSchema as au, type MotionEasingKey as av, MotionEasingKeySchema as aw, type MotionEasingPalette as ax, MotionEasingPaletteSchema as ay, type MotionIntent as az, ALLOWED_CUSTOM_COMPONENTS as b, isPageReferenceObject as b$, PageRefObjectSchema as b0, PageRefSchema as b1, PageRefStringSchema as b2, PageSchema as b3, type PageTraitRef as b4, PageTraitRefSchema as b5, type RelatedLink as b6, RelatedLinkSchema as b7, type SchemaMetadata as b8, SchemaMetadataSchema as b9, TypeScaleTokensSchema as bA, type TypeSizeKey as bB, TypeSizeKeySchema as bC, type TypeSlice as bD, TypeSliceSchema as bE, type TypeSlot as bF, TypeSlotSchema as bG, type TypeWeight as bH, TypeWeightSchema as bI, type UXHints as bJ, UXHintsSchema as bK, type UseDeclaration as bL, UseDeclarationSchema as bM, type UserPersona as bN, type UserPersonaInput as bO, UserPersonaSchema as bP, type ViewType as bQ, ViewTypeSchema as bR, applyEventWiring as bS, composeBehaviors as bT, detectLayoutStrategy as bU, isEntityCall as bV, isEntityReference as bW, isEntityReferenceAny as bX, isImportedTraitRef as bY, isOrbitalDefinition as bZ, isPageReference as b_, type SkinSpec as ba, SkinSpecSchema as bb, type SpacingScale as bc, SpacingScaleSchema as bd, type StateSemanticRole as be, StateSemanticRoleSchema as bf, type SuggestedGuard as bg, SuggestedGuardSchema as bh, type ThemeDefinition as bi, ThemeDefinitionSchema as bj, type ThemeRef as bk, ThemeRefSchema as bl, ThemeRefStringSchema as bm, type ThemeTokens as bn, ThemeTokensSchema as bo, type ThemeVariant as bp, ThemeVariantSchema as bq, type TypeIntent as br, type TypeIntentMap as bs, TypeIntentMapSchema as bt, TypeIntentSchema as bu, type TypeScale as bv, type TypeScaleEntry as bw, TypeScaleEntrySchema as bx, TypeScaleSchema as by, type TypeScaleTokens as bz, type AgentDomainCategory as c, isPageReferenceString as c0, isThemeReference as c1, parseEntityRef as c2, parseImportedTraitRef as c3, parseOrbitalSchema as c4, parsePageRef as c5, safeParseOrbitalSchema as c6, type ComposeConnection as c7, type ComposePage as c8, type MakeAtomOrbitalOpts as c9, pipe as cA, plural as cB, wire as cC, type MakeAtomOrbitalTraitOverrides as ca, type MakeEntityOpts as cb, type MakeLayoutTraitOpts as cc, type MakeOrbitalWithUsesOpts as cd, type MakePageOpts as ce, type MakePageRefOpts as cf, type MakePageRefOptsTyped as cg, type MakeTraitRefOptsTyped as ch, applyTraitConfigOverrides as ci, compose as cj, connect as ck, ensureIdField as cl, extractTrait as cm, makeAtomOrbital as cn, makeEntity as co, makeLayoutTrait as cp, makeOrbital as cq, makeOrbitalWithUses as cr, makePage as cs, makePageRef as ct, makeRenderUI as cu, makeSchema as cv, makeSlot as cw, makeTraitRef as cx, mergeLedgers as cy, mergeOrbitals as cz, AgentDomainCategorySchema as d, type AllowedCustomComponent as e, ColorSliceSchema as f, type ColorTokens as g, ColorTokensSchema as h, type ComposeBehaviorsInput as i, type ComposeBehaviorsResult as j, type ComputedEventContract as k, ComputedEventContractSchema as l, type ComputedEventListener as m, ComputedEventListenerSchema as n, type ConfigProvenanceRecord as o, ConfigProvenanceRecordSchema as p, type CustomPatternDefinition as q, type CustomPatternDefinitionInput as r, CustomPatternDefinitionSchema as s, type CustomPatternMap as t, type CustomPatternMapInput as u, CustomPatternMapSchema as v, DensitySliceSchema as w, type DensityTokens as x, DensityTokensSchema as y, type DesignPreferences as z };
60027
+ export { type EntitySemanticRole as $, AGENT_DOMAIN_CATEGORIES as A, type DesignPreferencesInput as B, type ColorSlice as C, type DensitySlice as D, type EntityRef as E, DesignPreferencesSchema as F, type DesignTokens as G, type DesignTokensInput as H, DesignTokensSchema as I, type DomainCategory as J, DomainCategorySchema as K, type DomainContext as L, type DomainContextInput as M, DomainContextSchema as N, type OrbitalSchema as O, type PageRef as P, type DomainVocabulary as Q, DomainVocabularySchema as R, type ElevationSlice as S, ElevationSliceSchema as T, type UseDeclaration as U, type ElevationTokens as V, ElevationTokensSchema as W, type EntityCall as X, EntityCallSchema as Y, EntityRefSchema as Z, EntityRefStringSchema as _, type OrbitalDefinition as a, PageSchema as a$, EntitySemanticRoleSchema as a0, type EventListener as a1, EventListenerSchema as a2, type EventSemanticRole as a3, EventSemanticRoleSchema as a4, type EventSource as a5, EventSourceSchema as a6, type Orbital as a7, type GameSubCategory as a8, GameSubCategorySchema as a9, MotionIntentMapSchema as aA, MotionIntentSchema as aB, type MotionSlice as aC, MotionSliceSchema as aD, type MotionTokens as aE, MotionTokensSchema as aF, type NodeClassification as aG, NodeClassificationSchema as aH, type OrbitalConfig as aI, type OrbitalConfigInput as aJ, OrbitalConfigSchema as aK, OrbitalDefinitionSchema as aL, type OrbitalInput as aM, type OrbitalPage as aN, type OrbitalPageInput as aO, OrbitalPageSchema as aP, type OrbitalPageStrictInput as aQ, OrbitalPageStrictSchema as aR, type OrbitalSchemaInput as aS, OrbitalSchemaSchema as aT, type OrbitalSchemaWithTraits as aU, type OrbitalUnit as aV, OrbitalUnitSchema as aW, OrbitalSchema$1 as aX, PageRefObjectSchema as aY, PageRefSchema as aZ, PageRefStringSchema as a_, type GeometrySlice as aa, GeometrySliceSchema as ab, type GeometryTokens as ac, GeometryTokensSchema as ad, type IconFamily as ae, IconFamilySchema as af, type IconographySlice as ag, IconographySliceSchema as ah, type IconographyTokens as ai, IconographyTokensSchema as aj, type IllustrationSlice as ak, IllustrationSliceSchema as al, type IllustrationStyle as am, IllustrationStyleSchema as an, type IllustrationTokens as ao, IllustrationTokensSchema as ap, type MotionDurationKey as aq, MotionDurationKeySchema as ar, type MotionDurationPalette as as, MotionDurationPaletteSchema as at, type MotionEasingKey as au, MotionEasingKeySchema as av, type MotionEasingPalette as aw, MotionEasingPaletteSchema as ax, type MotionIntent as ay, type MotionIntentMap as az, type Page as b, type PageTraitRef as b0, PageTraitRefSchema as b1, type RelatedLink as b2, RelatedLinkSchema as b3, type SchemaMetadata as b4, SchemaMetadataSchema as b5, type SkinSpec as b6, SkinSpecSchema as b7, type SpacingScale as b8, SpacingScaleSchema as b9, TypeSliceSchema as bA, type TypeSlot as bB, TypeSlotSchema as bC, type TypeWeight as bD, TypeWeightSchema as bE, type UXHints as bF, UXHintsSchema as bG, UseDeclarationSchema as bH, type UserPersona as bI, type UserPersonaInput as bJ, UserPersonaSchema as bK, type ViewType as bL, ViewTypeSchema as bM, isEntityCall as bN, isEntityReference as bO, isEntityReferenceAny as bP, isImportedTraitRef as bQ, isOrbitalDefinition as bR, isPageReference as bS, isPageReferenceObject as bT, isPageReferenceString as bU, isThemeReference as bV, parseEntityRef as bW, parseImportedTraitRef as bX, parseOrbitalSchema as bY, parsePageRef as bZ, safeParseOrbitalSchema as b_, type StateSemanticRole as ba, StateSemanticRoleSchema as bb, type SuggestedGuard as bc, SuggestedGuardSchema as bd, type ThemeDefinition as be, ThemeDefinitionSchema as bf, type ThemeRef as bg, ThemeRefSchema as bh, ThemeRefStringSchema as bi, type ThemeTokens as bj, ThemeTokensSchema as bk, type ThemeVariant as bl, ThemeVariantSchema as bm, type TypeIntent as bn, type TypeIntentMap as bo, TypeIntentMapSchema as bp, TypeIntentSchema as bq, type TypeScale as br, type TypeScaleEntry as bs, TypeScaleEntrySchema as bt, TypeScaleSchema as bu, type TypeScaleTokens as bv, TypeScaleTokensSchema as bw, type TypeSizeKey as bx, TypeSizeKeySchema as by, type TypeSlice as bz, type PageRefObject as c, ALLOWED_CUSTOM_COMPONENTS as d, type AgentDomainCategory as e, AgentDomainCategorySchema as f, type AllowedCustomComponent as g, ColorSliceSchema as h, type ColorTokens as i, ColorTokensSchema as j, type ComputedEventContract as k, ComputedEventContractSchema as l, type ComputedEventListener as m, ComputedEventListenerSchema as n, type ConfigProvenanceRecord as o, ConfigProvenanceRecordSchema as p, type CustomPatternDefinition as q, type CustomPatternDefinitionInput as r, CustomPatternDefinitionSchema as s, type CustomPatternMap as t, type CustomPatternMapInput as u, CustomPatternMapSchema as v, DensitySliceSchema as w, type DensityTokens as x, DensityTokensSchema as y, type DesignPreferences as z };