@almadar/core 11.4.0 → 11.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/{builders-CAQ_shuO.d.ts → builders-JiXD6W1T.d.ts} +2434 -266
  2. package/dist/builders.d.ts +5 -5
  3. package/dist/builders.js +3 -3
  4. package/dist/{bus-QFvlnIfW.d.ts → bus-__zVNcsp.d.ts} +26 -6
  5. package/dist/{chunk-OLSKERKZ.js → chunk-27Y5AXHB.js} +21 -0
  6. package/dist/chunk-2WLRKYD5.js +3823 -0
  7. package/dist/{chunk-UCP26C3C.js → chunk-J64IR3DR.js} +14 -4
  8. package/dist/{chunk-ISAUHHDU.js → chunk-J64YVVB4.js} +1 -1
  9. package/dist/{chunk-JPJQCTJI.js → chunk-JN3MMQTB.js} +3 -1
  10. package/dist/{chunk-JCRN3F6T.js → chunk-LQZXCL47.js} +62 -26
  11. package/dist/{chunk-O2ZUOWNK.js → chunk-OQ3Y5SL3.js} +1 -1
  12. package/dist/{chunk-TOAMAGC7.js → chunk-Q4OJQNYY.js} +5 -2
  13. package/dist/{chunk-QV6J4EAF.js → chunk-VC3HXUWQ.js} +7071 -48
  14. package/dist/{chunk-7JO77HA6.js → chunk-VQWE3FCB.js} +1 -1
  15. package/dist/{chunk-DHWP7B4S.js → chunk-XYHBAUWE.js} +102 -5
  16. package/dist/{effect--PY8R4Oi.d.ts → effect-gddySYLX.d.ts} +212 -49
  17. package/dist/{effect-result-fH1ZTxn6.d.ts → effect-result-BvBwmspK.d.ts} +76 -9
  18. package/dist/factory/index.d.ts +2 -2
  19. package/dist/factory/index.js +4 -4
  20. package/dist/factory-runtime/index.d.ts +3 -3
  21. package/dist/factory-runtime/index.js +10 -10
  22. package/dist/fixtures.d.ts +3 -3
  23. package/dist/fixtures.js +2 -2
  24. package/dist/i18n/index.js +1 -1
  25. package/dist/{index-Dk2AoJdI.d.ts → index-h6KrpmjR.d.ts} +27 -27
  26. package/dist/index.d.ts +14 -14
  27. package/dist/index.js +15 -15
  28. package/dist/kernel-wire.d.ts +2 -2
  29. package/dist/kernel-wire.js +1 -1
  30. package/dist/language/constructs.json +13 -3
  31. package/dist/language/program-types.json +22 -1
  32. package/dist/language/validation-codes.json +96 -1
  33. package/dist/language/vocabulary.json +19 -1
  34. package/dist/language-data.js +1 -1
  35. package/dist/patterns/component-mapping.json +11 -1
  36. package/dist/patterns/definitions.d.ts +1 -1
  37. package/dist/patterns/definitions.js +1 -1
  38. package/dist/patterns/event-contracts.json +1 -1
  39. package/dist/patterns/index.d.ts +41 -3
  40. package/dist/patterns/index.js +2 -2
  41. package/dist/patterns/patterns-registry.json +7071 -48
  42. package/dist/patterns/registry.json +7071 -48
  43. package/dist/{trait-BO2gbBte.d.ts → trait-Oun4JgeZ.d.ts} +113 -73
  44. package/dist/types/index.d.ts +8 -8
  45. package/dist/types/index.js +7 -7
  46. package/dist/{types-CSBhbbse.d.ts → types-B-r7Z7Lf.d.ts} +2 -2
  47. package/package.json +6 -6
  48. package/dist/chunk-AIRZM37O.js +0 -3809
  49. package/dist/{domain-Cpmja5ak.d.ts → domain-WtYcvBMH.d.ts} +51 -51
@@ -1,6 +1,6 @@
1
1
  import { S as SExpr, E as Expression, J as JsonValue } from './expression-DxY6ct3t.js';
2
2
  import { z } from 'zod';
3
- import { b as EventId, F as FieldProjection, d as Effect, e as TypedEffect, T as TraitId, O as OrbitalId, E as EntityField, f as TypeVariable, g as EntityId, P as PageId, A as AnyPatternConfig, h as Entity } from './effect--PY8R4Oi.js';
3
+ import { b as EventId, F as FieldProjection, d as Effect, e as TypedEffect, T as TraitId, O as OrbitalId, E as EntityField, f as TypeVariable, g as EntityId, P as PageId, A as AnyPatternConfig, h as Entity } from './effect-gddySYLX.js';
4
4
 
5
5
  /**
6
6
  * Awaiting-server skeletons — the platform-neutral contract.
@@ -24,13 +24,13 @@ type SkeletonVariant = (typeof SKELETON_VARIANTS)[number];
24
24
  declare const SkeletonVariantSchema: z.ZodEnum<{
25
25
  header: "header";
26
26
  form: "form";
27
- detail: "detail";
28
- grid: "grid";
29
27
  card: "card";
28
+ grid: "grid";
30
29
  list: "list";
31
- text: "text";
32
- stats: "stats";
30
+ detail: "detail";
33
31
  table: "table";
32
+ stats: "stats";
33
+ text: "text";
34
34
  }>;
35
35
  /** A sized shape. `rows` for table/list/text, cards for grid, field pairs for detail; `columns` for table/stats; `fields` for form. */
36
36
  type SkeletonShape = {
@@ -43,13 +43,13 @@ declare const SkeletonShapeSchema: z.ZodObject<{
43
43
  variant: z.ZodEnum<{
44
44
  header: "header";
45
45
  form: "form";
46
- detail: "detail";
47
- grid: "grid";
48
46
  card: "card";
47
+ grid: "grid";
49
48
  list: "list";
50
- text: "text";
51
- stats: "stats";
49
+ detail: "detail";
52
50
  table: "table";
51
+ stats: "stats";
52
+ text: "text";
53
53
  }>;
54
54
  rows: z.ZodOptional<z.ZodNumber>;
55
55
  columns: z.ZodOptional<z.ZodNumber>;
@@ -63,24 +63,24 @@ type SkeletonSpec = SkeletonVariant | "none" | SkeletonShape;
63
63
  declare const SkeletonSpecSchema: z.ZodUnion<readonly [z.ZodEnum<{
64
64
  header: "header";
65
65
  form: "form";
66
- detail: "detail";
67
- grid: "grid";
68
66
  card: "card";
67
+ grid: "grid";
69
68
  list: "list";
70
- text: "text";
71
- stats: "stats";
69
+ detail: "detail";
72
70
  table: "table";
71
+ stats: "stats";
72
+ text: "text";
73
73
  }>, z.ZodLiteral<"none">, z.ZodObject<{
74
74
  variant: z.ZodEnum<{
75
75
  header: "header";
76
76
  form: "form";
77
- detail: "detail";
78
- grid: "grid";
79
77
  card: "card";
78
+ grid: "grid";
80
79
  list: "list";
81
- text: "text";
82
- stats: "stats";
80
+ detail: "detail";
83
81
  table: "table";
82
+ stats: "stats";
83
+ text: "text";
84
84
  }>;
85
85
  rows: z.ZodOptional<z.ZodNumber>;
86
86
  columns: z.ZodOptional<z.ZodNumber>;
@@ -727,7 +727,7 @@ declare const DeclaredTraitConfigSchema: z.ZodType<DeclaredTraitConfig, Record<s
727
727
  /**
728
728
  * Field types for trait data entities
729
729
  */
730
- type TraitFieldType = 'string' | 'number' | 'boolean' | 'date' | 'array' | 'object' | 'timestamp' | 'datetime' | 'instant' | 'enum' | 'email' | 'url' | 'phone' | 'uuid' | 'image' | 'bytes' | 'trait' | 'slot' | 'pattern' | 'node' | 'event' | 'EventAddress' | 'CallKey' | 'SExpr' | 'union' | 'tuple' | 'field' | TypeVariable;
730
+ type TraitFieldType = 'string' | 'number' | 'boolean' | 'date' | 'array' | 'object' | 'timestamp' | 'datetime' | 'instant' | 'enum' | 'email' | 'url' | 'phone' | 'uuid' | 'image' | 'bytes' | 'trait' | 'slot' | 'pattern' | 'node' | 'event' | 'EventAddress' | 'CallKey' | 'MessageKey' | 'SExpr' | 'union' | 'tuple' | 'field' | TypeVariable;
731
731
  /**
732
732
  * Simplified field for trait data entities
733
733
  */
@@ -786,6 +786,8 @@ type TraitTick = {
786
786
  runsInBackground?: boolean;
787
787
  /** `[visible]`: a browser tick that pauses while its trait's rendered output is off screen. */
788
788
  whileVisible?: boolean;
789
+ /** Runs only once its row has been in its current state this many milliseconds (a state's `for Ns`). */
790
+ afterEntryMs?: number;
789
791
  pages?: string[];
790
792
  /** V4 dual-carry id sibling of `pages` — optional until the Phase-7 flip. */
791
793
  pageIds?: PageId[];
@@ -822,6 +824,7 @@ declare const TraitTickSchema: z.ZodObject<{
822
824
  appliesTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
823
825
  runsInBackground: z.ZodOptional<z.ZodBoolean>;
824
826
  whileVisible: z.ZodOptional<z.ZodBoolean>;
827
+ afterEntryMs: z.ZodOptional<z.ZodNumber>;
825
828
  pages: z.ZodOptional<z.ZodArray<z.ZodString>>;
826
829
  pageIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<PageId, string, z.core.$ZodTypeInternals<PageId, string>>>>;
827
830
  guard: z.ZodOptional<z.ZodType<SExpr, unknown, z.core.$ZodTypeInternals<SExpr, unknown>>>;
@@ -1099,16 +1102,17 @@ declare const RequiredFieldSchema: z.ZodObject<{
1099
1102
  url: "url";
1100
1103
  field: "field";
1101
1104
  timestamp: "timestamp";
1102
- image: "image";
1103
- slot: "slot";
1104
1105
  datetime: "datetime";
1105
1106
  instant: "instant";
1106
1107
  email: "email";
1107
1108
  phone: "phone";
1108
1109
  uuid: "uuid";
1110
+ image: "image";
1109
1111
  bytes: "bytes";
1112
+ slot: "slot";
1110
1113
  EventAddress: "EventAddress";
1111
1114
  CallKey: "CallKey";
1115
+ MessageKey: "MessageKey";
1112
1116
  SExpr: "SExpr";
1113
1117
  }>, z.ZodCustom<`$${string}`, `$${string}`>]>;
1114
1118
  description: z.ZodOptional<z.ZodString>;
@@ -1282,16 +1286,17 @@ declare const TraitReferenceSchema: z.ZodObject<{
1282
1286
  url: "url";
1283
1287
  field: "field";
1284
1288
  timestamp: "timestamp";
1285
- image: "image";
1286
- slot: "slot";
1287
1289
  datetime: "datetime";
1288
1290
  instant: "instant";
1289
1291
  email: "email";
1290
1292
  phone: "phone";
1291
1293
  uuid: "uuid";
1294
+ image: "image";
1292
1295
  bytes: "bytes";
1296
+ slot: "slot";
1293
1297
  EventAddress: "EventAddress";
1294
1298
  CallKey: "CallKey";
1299
+ MessageKey: "MessageKey";
1295
1300
  SExpr: "SExpr";
1296
1301
  }>, z.ZodCustom<`$${string}`, `$${string}`>]>;
1297
1302
  description: z.ZodOptional<z.ZodString>;
@@ -1372,6 +1377,7 @@ declare const TraitReferenceSchema: z.ZodObject<{
1372
1377
  appliesTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
1373
1378
  runsInBackground: z.ZodOptional<z.ZodBoolean>;
1374
1379
  whileVisible: z.ZodOptional<z.ZodBoolean>;
1380
+ afterEntryMs: z.ZodOptional<z.ZodNumber>;
1375
1381
  pages: z.ZodOptional<z.ZodArray<z.ZodString>>;
1376
1382
  pageIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<PageId, string, z.core.$ZodTypeInternals<PageId, string>>>>;
1377
1383
  guard: z.ZodOptional<z.ZodType<SExpr, unknown, z.core.$ZodTypeInternals<SExpr, unknown>>>;
@@ -1428,25 +1434,25 @@ declare const TraitReferenceSchema: z.ZodObject<{
1428
1434
  presentation: z.ZodEnum<{
1429
1435
  modal: "modal";
1430
1436
  drawer: "drawer";
1431
- "confirm-dialog": "confirm-dialog";
1432
1437
  popover: "popover";
1433
1438
  inline: "inline";
1439
+ "confirm-dialog": "confirm-dialog";
1434
1440
  }>;
1435
1441
  content: z.ZodUnion<readonly [z.ZodType<AnyPatternConfig, unknown, z.core.$ZodTypeInternals<AnyPatternConfig, unknown>>, z.ZodArray<z.ZodType<AnyPatternConfig, unknown, z.core.$ZodTypeInternals<AnyPatternConfig, unknown>>>]>;
1436
1442
  props: z.ZodOptional<z.ZodObject<{
1437
1443
  size: z.ZodOptional<z.ZodEnum<{
1438
- md: "md";
1439
1444
  sm: "sm";
1440
- full: "full";
1445
+ md: "md";
1441
1446
  lg: "lg";
1442
1447
  xl: "xl";
1448
+ full: "full";
1443
1449
  }>>;
1444
1450
  position: z.ZodOptional<z.ZodEnum<{
1445
- right: "right";
1446
1451
  center: "center";
1452
+ left: "left";
1453
+ right: "right";
1447
1454
  top: "top";
1448
1455
  bottom: "bottom";
1449
- left: "left";
1450
1456
  }>>;
1451
1457
  title: z.ZodOptional<z.ZodString>;
1452
1458
  closable: z.ZodOptional<z.ZodBoolean>;
@@ -1491,6 +1497,10 @@ declare const TraitReferenceSchema: z.ZodObject<{
1491
1497
  indexes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1492
1498
  fields: z.ZodArray<z.ZodString>;
1493
1499
  orderBy: z.ZodOptional<z.ZodString>;
1500
+ nearest: z.ZodOptional<z.ZodObject<{
1501
+ field: z.ZodString;
1502
+ dimension: z.ZodNumber;
1503
+ }, z.core.$strict>>;
1494
1504
  }, z.core.$strict>>>;
1495
1505
  collection: z.ZodOptional<z.ZodString>;
1496
1506
  fields: z.ZodArray<z.ZodType<EntityField, unknown, z.core.$ZodTypeInternals<EntityField, unknown>>>;
@@ -1505,11 +1515,11 @@ declare const TraitReferenceSchema: z.ZodObject<{
1505
1515
  category: z.ZodString;
1506
1516
  animations: z.ZodOptional<z.ZodArray<z.ZodString>>;
1507
1517
  style: z.ZodOptional<z.ZodEnum<{
1508
- isometric: "isometric";
1509
1518
  pixel: "pixel";
1510
1519
  vector: "vector";
1511
1520
  hd: "hd";
1512
1521
  "1-bit": "1-bit";
1522
+ isometric: "isometric";
1513
1523
  }>>;
1514
1524
  variant: z.ZodOptional<z.ZodString>;
1515
1525
  dimension: z.ZodOptional<z.ZodEnum<{
@@ -1605,25 +1615,25 @@ declare const TraitUIBindingSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
1605
1615
  presentation: z.ZodEnum<{
1606
1616
  modal: "modal";
1607
1617
  drawer: "drawer";
1608
- "confirm-dialog": "confirm-dialog";
1609
1618
  popover: "popover";
1610
1619
  inline: "inline";
1620
+ "confirm-dialog": "confirm-dialog";
1611
1621
  }>;
1612
1622
  content: z.ZodUnion<readonly [z.ZodType<AnyPatternConfig, unknown, z.core.$ZodTypeInternals<AnyPatternConfig, unknown>>, z.ZodArray<z.ZodType<AnyPatternConfig, unknown, z.core.$ZodTypeInternals<AnyPatternConfig, unknown>>>]>;
1613
1623
  props: z.ZodOptional<z.ZodObject<{
1614
1624
  size: z.ZodOptional<z.ZodEnum<{
1615
- md: "md";
1616
1625
  sm: "sm";
1617
- full: "full";
1626
+ md: "md";
1618
1627
  lg: "lg";
1619
1628
  xl: "xl";
1629
+ full: "full";
1620
1630
  }>>;
1621
1631
  position: z.ZodOptional<z.ZodEnum<{
1622
- right: "right";
1623
1632
  center: "center";
1633
+ left: "left";
1634
+ right: "right";
1624
1635
  top: "top";
1625
1636
  bottom: "bottom";
1626
- left: "left";
1627
1637
  }>>;
1628
1638
  title: z.ZodOptional<z.ZodString>;
1629
1639
  closable: z.ZodOptional<z.ZodBoolean>;
@@ -1907,16 +1917,17 @@ declare const TraitSchema: z.ZodObject<{
1907
1917
  url: "url";
1908
1918
  field: "field";
1909
1919
  timestamp: "timestamp";
1910
- image: "image";
1911
- slot: "slot";
1912
1920
  datetime: "datetime";
1913
1921
  instant: "instant";
1914
1922
  email: "email";
1915
1923
  phone: "phone";
1916
1924
  uuid: "uuid";
1925
+ image: "image";
1917
1926
  bytes: "bytes";
1927
+ slot: "slot";
1918
1928
  EventAddress: "EventAddress";
1919
1929
  CallKey: "CallKey";
1930
+ MessageKey: "MessageKey";
1920
1931
  SExpr: "SExpr";
1921
1932
  }>, z.ZodCustom<`$${string}`, `$${string}`>]>;
1922
1933
  description: z.ZodOptional<z.ZodString>;
@@ -1997,6 +2008,7 @@ declare const TraitSchema: z.ZodObject<{
1997
2008
  appliesTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
1998
2009
  runsInBackground: z.ZodOptional<z.ZodBoolean>;
1999
2010
  whileVisible: z.ZodOptional<z.ZodBoolean>;
2011
+ afterEntryMs: z.ZodOptional<z.ZodNumber>;
2000
2012
  pages: z.ZodOptional<z.ZodArray<z.ZodString>>;
2001
2013
  pageIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<PageId, string, z.core.$ZodTypeInternals<PageId, string>>>>;
2002
2014
  guard: z.ZodOptional<z.ZodType<SExpr, unknown, z.core.$ZodTypeInternals<SExpr, unknown>>>;
@@ -2053,25 +2065,25 @@ declare const TraitSchema: z.ZodObject<{
2053
2065
  presentation: z.ZodEnum<{
2054
2066
  modal: "modal";
2055
2067
  drawer: "drawer";
2056
- "confirm-dialog": "confirm-dialog";
2057
2068
  popover: "popover";
2058
2069
  inline: "inline";
2070
+ "confirm-dialog": "confirm-dialog";
2059
2071
  }>;
2060
2072
  content: z.ZodUnion<readonly [z.ZodType<AnyPatternConfig, unknown, z.core.$ZodTypeInternals<AnyPatternConfig, unknown>>, z.ZodArray<z.ZodType<AnyPatternConfig, unknown, z.core.$ZodTypeInternals<AnyPatternConfig, unknown>>>]>;
2061
2073
  props: z.ZodOptional<z.ZodObject<{
2062
2074
  size: z.ZodOptional<z.ZodEnum<{
2063
- md: "md";
2064
2075
  sm: "sm";
2065
- full: "full";
2076
+ md: "md";
2066
2077
  lg: "lg";
2067
2078
  xl: "xl";
2079
+ full: "full";
2068
2080
  }>>;
2069
2081
  position: z.ZodOptional<z.ZodEnum<{
2070
- right: "right";
2071
2082
  center: "center";
2083
+ left: "left";
2084
+ right: "right";
2072
2085
  top: "top";
2073
2086
  bottom: "bottom";
2074
- left: "left";
2075
2087
  }>>;
2076
2088
  title: z.ZodOptional<z.ZodString>;
2077
2089
  closable: z.ZodOptional<z.ZodBoolean>;
@@ -2116,6 +2128,10 @@ declare const TraitSchema: z.ZodObject<{
2116
2128
  indexes: z.ZodOptional<z.ZodArray<z.ZodObject<{
2117
2129
  fields: z.ZodArray<z.ZodString>;
2118
2130
  orderBy: z.ZodOptional<z.ZodString>;
2131
+ nearest: z.ZodOptional<z.ZodObject<{
2132
+ field: z.ZodString;
2133
+ dimension: z.ZodNumber;
2134
+ }, z.core.$strict>>;
2119
2135
  }, z.core.$strict>>>;
2120
2136
  collection: z.ZodOptional<z.ZodString>;
2121
2137
  fields: z.ZodArray<z.ZodType<EntityField, unknown, z.core.$ZodTypeInternals<EntityField, unknown>>>;
@@ -2130,11 +2146,11 @@ declare const TraitSchema: z.ZodObject<{
2130
2146
  category: z.ZodString;
2131
2147
  animations: z.ZodOptional<z.ZodArray<z.ZodString>>;
2132
2148
  style: z.ZodOptional<z.ZodEnum<{
2133
- isometric: "isometric";
2134
2149
  pixel: "pixel";
2135
2150
  vector: "vector";
2136
2151
  hd: "hd";
2137
2152
  "1-bit": "1-bit";
2153
+ isometric: "isometric";
2138
2154
  }>>;
2139
2155
  variant: z.ZodOptional<z.ZodString>;
2140
2156
  dimension: z.ZodOptional<z.ZodEnum<{
@@ -2213,16 +2229,17 @@ declare const TraitRefSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2213
2229
  url: "url";
2214
2230
  field: "field";
2215
2231
  timestamp: "timestamp";
2216
- image: "image";
2217
- slot: "slot";
2218
2232
  datetime: "datetime";
2219
2233
  instant: "instant";
2220
2234
  email: "email";
2221
2235
  phone: "phone";
2222
2236
  uuid: "uuid";
2237
+ image: "image";
2223
2238
  bytes: "bytes";
2239
+ slot: "slot";
2224
2240
  EventAddress: "EventAddress";
2225
2241
  CallKey: "CallKey";
2242
+ MessageKey: "MessageKey";
2226
2243
  SExpr: "SExpr";
2227
2244
  }>, z.ZodCustom<`$${string}`, `$${string}`>]>;
2228
2245
  description: z.ZodOptional<z.ZodString>;
@@ -2303,6 +2320,7 @@ declare const TraitRefSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2303
2320
  appliesTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
2304
2321
  runsInBackground: z.ZodOptional<z.ZodBoolean>;
2305
2322
  whileVisible: z.ZodOptional<z.ZodBoolean>;
2323
+ afterEntryMs: z.ZodOptional<z.ZodNumber>;
2306
2324
  pages: z.ZodOptional<z.ZodArray<z.ZodString>>;
2307
2325
  pageIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<PageId, string, z.core.$ZodTypeInternals<PageId, string>>>>;
2308
2326
  guard: z.ZodOptional<z.ZodType<SExpr, unknown, z.core.$ZodTypeInternals<SExpr, unknown>>>;
@@ -2359,25 +2377,25 @@ declare const TraitRefSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2359
2377
  presentation: z.ZodEnum<{
2360
2378
  modal: "modal";
2361
2379
  drawer: "drawer";
2362
- "confirm-dialog": "confirm-dialog";
2363
2380
  popover: "popover";
2364
2381
  inline: "inline";
2382
+ "confirm-dialog": "confirm-dialog";
2365
2383
  }>;
2366
2384
  content: z.ZodUnion<readonly [z.ZodType<AnyPatternConfig, unknown, z.core.$ZodTypeInternals<AnyPatternConfig, unknown>>, z.ZodArray<z.ZodType<AnyPatternConfig, unknown, z.core.$ZodTypeInternals<AnyPatternConfig, unknown>>>]>;
2367
2385
  props: z.ZodOptional<z.ZodObject<{
2368
2386
  size: z.ZodOptional<z.ZodEnum<{
2369
- md: "md";
2370
2387
  sm: "sm";
2371
- full: "full";
2388
+ md: "md";
2372
2389
  lg: "lg";
2373
2390
  xl: "xl";
2391
+ full: "full";
2374
2392
  }>>;
2375
2393
  position: z.ZodOptional<z.ZodEnum<{
2376
- right: "right";
2377
2394
  center: "center";
2395
+ left: "left";
2396
+ right: "right";
2378
2397
  top: "top";
2379
2398
  bottom: "bottom";
2380
- left: "left";
2381
2399
  }>>;
2382
2400
  title: z.ZodOptional<z.ZodString>;
2383
2401
  closable: z.ZodOptional<z.ZodBoolean>;
@@ -2422,6 +2440,10 @@ declare const TraitRefSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2422
2440
  indexes: z.ZodOptional<z.ZodArray<z.ZodObject<{
2423
2441
  fields: z.ZodArray<z.ZodString>;
2424
2442
  orderBy: z.ZodOptional<z.ZodString>;
2443
+ nearest: z.ZodOptional<z.ZodObject<{
2444
+ field: z.ZodString;
2445
+ dimension: z.ZodNumber;
2446
+ }, z.core.$strict>>;
2425
2447
  }, z.core.$strict>>>;
2426
2448
  collection: z.ZodOptional<z.ZodString>;
2427
2449
  fields: z.ZodArray<z.ZodType<EntityField, unknown, z.core.$ZodTypeInternals<EntityField, unknown>>>;
@@ -2436,11 +2458,11 @@ declare const TraitRefSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2436
2458
  category: z.ZodString;
2437
2459
  animations: z.ZodOptional<z.ZodArray<z.ZodString>>;
2438
2460
  style: z.ZodOptional<z.ZodEnum<{
2439
- isometric: "isometric";
2440
2461
  pixel: "pixel";
2441
2462
  vector: "vector";
2442
2463
  hd: "hd";
2443
2464
  "1-bit": "1-bit";
2465
+ isometric: "isometric";
2444
2466
  }>>;
2445
2467
  variant: z.ZodOptional<z.ZodString>;
2446
2468
  dimension: z.ZodOptional<z.ZodEnum<{
@@ -2547,16 +2569,17 @@ declare const TraitRefSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2547
2569
  url: "url";
2548
2570
  field: "field";
2549
2571
  timestamp: "timestamp";
2550
- image: "image";
2551
- slot: "slot";
2552
2572
  datetime: "datetime";
2553
2573
  instant: "instant";
2554
2574
  email: "email";
2555
2575
  phone: "phone";
2556
2576
  uuid: "uuid";
2577
+ image: "image";
2557
2578
  bytes: "bytes";
2579
+ slot: "slot";
2558
2580
  EventAddress: "EventAddress";
2559
2581
  CallKey: "CallKey";
2582
+ MessageKey: "MessageKey";
2560
2583
  SExpr: "SExpr";
2561
2584
  }>, z.ZodCustom<`$${string}`, `$${string}`>]>;
2562
2585
  description: z.ZodOptional<z.ZodString>;
@@ -2637,6 +2660,7 @@ declare const TraitRefSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2637
2660
  appliesTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
2638
2661
  runsInBackground: z.ZodOptional<z.ZodBoolean>;
2639
2662
  whileVisible: z.ZodOptional<z.ZodBoolean>;
2663
+ afterEntryMs: z.ZodOptional<z.ZodNumber>;
2640
2664
  pages: z.ZodOptional<z.ZodArray<z.ZodString>>;
2641
2665
  pageIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<PageId, string, z.core.$ZodTypeInternals<PageId, string>>>>;
2642
2666
  guard: z.ZodOptional<z.ZodType<SExpr, unknown, z.core.$ZodTypeInternals<SExpr, unknown>>>;
@@ -2693,25 +2717,25 @@ declare const TraitRefSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2693
2717
  presentation: z.ZodEnum<{
2694
2718
  modal: "modal";
2695
2719
  drawer: "drawer";
2696
- "confirm-dialog": "confirm-dialog";
2697
2720
  popover: "popover";
2698
2721
  inline: "inline";
2722
+ "confirm-dialog": "confirm-dialog";
2699
2723
  }>;
2700
2724
  content: z.ZodUnion<readonly [z.ZodType<AnyPatternConfig, unknown, z.core.$ZodTypeInternals<AnyPatternConfig, unknown>>, z.ZodArray<z.ZodType<AnyPatternConfig, unknown, z.core.$ZodTypeInternals<AnyPatternConfig, unknown>>>]>;
2701
2725
  props: z.ZodOptional<z.ZodObject<{
2702
2726
  size: z.ZodOptional<z.ZodEnum<{
2703
- md: "md";
2704
2727
  sm: "sm";
2705
- full: "full";
2728
+ md: "md";
2706
2729
  lg: "lg";
2707
2730
  xl: "xl";
2731
+ full: "full";
2708
2732
  }>>;
2709
2733
  position: z.ZodOptional<z.ZodEnum<{
2710
- right: "right";
2711
2734
  center: "center";
2735
+ left: "left";
2736
+ right: "right";
2712
2737
  top: "top";
2713
2738
  bottom: "bottom";
2714
- left: "left";
2715
2739
  }>>;
2716
2740
  title: z.ZodOptional<z.ZodString>;
2717
2741
  closable: z.ZodOptional<z.ZodBoolean>;
@@ -2756,6 +2780,10 @@ declare const TraitRefSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2756
2780
  indexes: z.ZodOptional<z.ZodArray<z.ZodObject<{
2757
2781
  fields: z.ZodArray<z.ZodString>;
2758
2782
  orderBy: z.ZodOptional<z.ZodString>;
2783
+ nearest: z.ZodOptional<z.ZodObject<{
2784
+ field: z.ZodString;
2785
+ dimension: z.ZodNumber;
2786
+ }, z.core.$strict>>;
2759
2787
  }, z.core.$strict>>>;
2760
2788
  collection: z.ZodOptional<z.ZodString>;
2761
2789
  fields: z.ZodArray<z.ZodType<EntityField, unknown, z.core.$ZodTypeInternals<EntityField, unknown>>>;
@@ -2770,11 +2798,11 @@ declare const TraitRefSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2770
2798
  category: z.ZodString;
2771
2799
  animations: z.ZodOptional<z.ZodArray<z.ZodString>>;
2772
2800
  style: z.ZodOptional<z.ZodEnum<{
2773
- isometric: "isometric";
2774
2801
  pixel: "pixel";
2775
2802
  vector: "vector";
2776
2803
  hd: "hd";
2777
2804
  "1-bit": "1-bit";
2805
+ isometric: "isometric";
2778
2806
  }>>;
2779
2807
  variant: z.ZodOptional<z.ZodString>;
2780
2808
  dimension: z.ZodOptional<z.ZodEnum<{
@@ -2923,16 +2951,17 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObje
2923
2951
  url: "url";
2924
2952
  field: "field";
2925
2953
  timestamp: "timestamp";
2926
- image: "image";
2927
- slot: "slot";
2928
2954
  datetime: "datetime";
2929
2955
  instant: "instant";
2930
2956
  email: "email";
2931
2957
  phone: "phone";
2932
2958
  uuid: "uuid";
2959
+ image: "image";
2933
2960
  bytes: "bytes";
2961
+ slot: "slot";
2934
2962
  EventAddress: "EventAddress";
2935
2963
  CallKey: "CallKey";
2964
+ MessageKey: "MessageKey";
2936
2965
  SExpr: "SExpr";
2937
2966
  }>, z.ZodCustom<`$${string}`, `$${string}`>]>;
2938
2967
  description: z.ZodOptional<z.ZodString>;
@@ -3013,6 +3042,7 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObje
3013
3042
  appliesTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
3014
3043
  runsInBackground: z.ZodOptional<z.ZodBoolean>;
3015
3044
  whileVisible: z.ZodOptional<z.ZodBoolean>;
3045
+ afterEntryMs: z.ZodOptional<z.ZodNumber>;
3016
3046
  pages: z.ZodOptional<z.ZodArray<z.ZodString>>;
3017
3047
  pageIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<PageId, string, z.core.$ZodTypeInternals<PageId, string>>>>;
3018
3048
  guard: z.ZodOptional<z.ZodType<SExpr, unknown, z.core.$ZodTypeInternals<SExpr, unknown>>>;
@@ -3069,25 +3099,25 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObje
3069
3099
  presentation: z.ZodEnum<{
3070
3100
  modal: "modal";
3071
3101
  drawer: "drawer";
3072
- "confirm-dialog": "confirm-dialog";
3073
3102
  popover: "popover";
3074
3103
  inline: "inline";
3104
+ "confirm-dialog": "confirm-dialog";
3075
3105
  }>;
3076
3106
  content: z.ZodUnion<readonly [z.ZodType<AnyPatternConfig, unknown, z.core.$ZodTypeInternals<AnyPatternConfig, unknown>>, z.ZodArray<z.ZodType<AnyPatternConfig, unknown, z.core.$ZodTypeInternals<AnyPatternConfig, unknown>>>]>;
3077
3107
  props: z.ZodOptional<z.ZodObject<{
3078
3108
  size: z.ZodOptional<z.ZodEnum<{
3079
- md: "md";
3080
3109
  sm: "sm";
3081
- full: "full";
3110
+ md: "md";
3082
3111
  lg: "lg";
3083
3112
  xl: "xl";
3113
+ full: "full";
3084
3114
  }>>;
3085
3115
  position: z.ZodOptional<z.ZodEnum<{
3086
- right: "right";
3087
3116
  center: "center";
3117
+ left: "left";
3118
+ right: "right";
3088
3119
  top: "top";
3089
3120
  bottom: "bottom";
3090
- left: "left";
3091
3121
  }>>;
3092
3122
  title: z.ZodOptional<z.ZodString>;
3093
3123
  closable: z.ZodOptional<z.ZodBoolean>;
@@ -3132,6 +3162,10 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObje
3132
3162
  indexes: z.ZodOptional<z.ZodArray<z.ZodObject<{
3133
3163
  fields: z.ZodArray<z.ZodString>;
3134
3164
  orderBy: z.ZodOptional<z.ZodString>;
3165
+ nearest: z.ZodOptional<z.ZodObject<{
3166
+ field: z.ZodString;
3167
+ dimension: z.ZodNumber;
3168
+ }, z.core.$strict>>;
3135
3169
  }, z.core.$strict>>>;
3136
3170
  collection: z.ZodOptional<z.ZodString>;
3137
3171
  fields: z.ZodArray<z.ZodType<EntityField, unknown, z.core.$ZodTypeInternals<EntityField, unknown>>>;
@@ -3146,11 +3180,11 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObje
3146
3180
  category: z.ZodString;
3147
3181
  animations: z.ZodOptional<z.ZodArray<z.ZodString>>;
3148
3182
  style: z.ZodOptional<z.ZodEnum<{
3149
- isometric: "isometric";
3150
3183
  pixel: "pixel";
3151
3184
  vector: "vector";
3152
3185
  hd: "hd";
3153
3186
  "1-bit": "1-bit";
3187
+ isometric: "isometric";
3154
3188
  }>>;
3155
3189
  variant: z.ZodOptional<z.ZodString>;
3156
3190
  dimension: z.ZodOptional<z.ZodEnum<{
@@ -3257,16 +3291,17 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObje
3257
3291
  url: "url";
3258
3292
  field: "field";
3259
3293
  timestamp: "timestamp";
3260
- image: "image";
3261
- slot: "slot";
3262
3294
  datetime: "datetime";
3263
3295
  instant: "instant";
3264
3296
  email: "email";
3265
3297
  phone: "phone";
3266
3298
  uuid: "uuid";
3299
+ image: "image";
3267
3300
  bytes: "bytes";
3301
+ slot: "slot";
3268
3302
  EventAddress: "EventAddress";
3269
3303
  CallKey: "CallKey";
3304
+ MessageKey: "MessageKey";
3270
3305
  SExpr: "SExpr";
3271
3306
  }>, z.ZodCustom<`$${string}`, `$${string}`>]>;
3272
3307
  description: z.ZodOptional<z.ZodString>;
@@ -3347,6 +3382,7 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObje
3347
3382
  appliesTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
3348
3383
  runsInBackground: z.ZodOptional<z.ZodBoolean>;
3349
3384
  whileVisible: z.ZodOptional<z.ZodBoolean>;
3385
+ afterEntryMs: z.ZodOptional<z.ZodNumber>;
3350
3386
  pages: z.ZodOptional<z.ZodArray<z.ZodString>>;
3351
3387
  pageIds: z.ZodOptional<z.ZodArray<z.ZodString & z.ZodType<PageId, string, z.core.$ZodTypeInternals<PageId, string>>>>;
3352
3388
  guard: z.ZodOptional<z.ZodType<SExpr, unknown, z.core.$ZodTypeInternals<SExpr, unknown>>>;
@@ -3403,25 +3439,25 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObje
3403
3439
  presentation: z.ZodEnum<{
3404
3440
  modal: "modal";
3405
3441
  drawer: "drawer";
3406
- "confirm-dialog": "confirm-dialog";
3407
3442
  popover: "popover";
3408
3443
  inline: "inline";
3444
+ "confirm-dialog": "confirm-dialog";
3409
3445
  }>;
3410
3446
  content: z.ZodUnion<readonly [z.ZodType<AnyPatternConfig, unknown, z.core.$ZodTypeInternals<AnyPatternConfig, unknown>>, z.ZodArray<z.ZodType<AnyPatternConfig, unknown, z.core.$ZodTypeInternals<AnyPatternConfig, unknown>>>]>;
3411
3447
  props: z.ZodOptional<z.ZodObject<{
3412
3448
  size: z.ZodOptional<z.ZodEnum<{
3413
- md: "md";
3414
3449
  sm: "sm";
3415
- full: "full";
3450
+ md: "md";
3416
3451
  lg: "lg";
3417
3452
  xl: "xl";
3453
+ full: "full";
3418
3454
  }>>;
3419
3455
  position: z.ZodOptional<z.ZodEnum<{
3420
- right: "right";
3421
3456
  center: "center";
3457
+ left: "left";
3458
+ right: "right";
3422
3459
  top: "top";
3423
3460
  bottom: "bottom";
3424
- left: "left";
3425
3461
  }>>;
3426
3462
  title: z.ZodOptional<z.ZodString>;
3427
3463
  closable: z.ZodOptional<z.ZodBoolean>;
@@ -3466,6 +3502,10 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObje
3466
3502
  indexes: z.ZodOptional<z.ZodArray<z.ZodObject<{
3467
3503
  fields: z.ZodArray<z.ZodString>;
3468
3504
  orderBy: z.ZodOptional<z.ZodString>;
3505
+ nearest: z.ZodOptional<z.ZodObject<{
3506
+ field: z.ZodString;
3507
+ dimension: z.ZodNumber;
3508
+ }, z.core.$strict>>;
3469
3509
  }, z.core.$strict>>>;
3470
3510
  collection: z.ZodOptional<z.ZodString>;
3471
3511
  fields: z.ZodArray<z.ZodType<EntityField, unknown, z.core.$ZodTypeInternals<EntityField, unknown>>>;
@@ -3480,11 +3520,11 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObje
3480
3520
  category: z.ZodString;
3481
3521
  animations: z.ZodOptional<z.ZodArray<z.ZodString>>;
3482
3522
  style: z.ZodOptional<z.ZodEnum<{
3483
- isometric: "isometric";
3484
3523
  pixel: "pixel";
3485
3524
  vector: "vector";
3486
3525
  hd: "hd";
3487
3526
  "1-bit": "1-bit";
3527
+ isometric: "isometric";
3488
3528
  }>>;
3489
3529
  variant: z.ZodOptional<z.ZodString>;
3490
3530
  dimension: z.ZodOptional<z.ZodEnum<{