@dreamboard-games/sdk 0.5.0-alpha.36 → 0.5.0-alpha.37

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.
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { r as Features, J as InstanceOptions, n as CoreInstance, q as FeatureContext, G as GameInstance, C as Card, I as IdOf, ac as Zone, a4 as SeatCardId, d as BoardCollection, h as BoardSpaceCollection, c as BoardBase, Y as RuntimeBoard, a3 as RuntimeTargetOptions, A as ActionProps, e as BoardDataOf, g as BoardSpace, a7 as TargetOptions, p as DropTarget, ae as ZoneHostId } from './model-U0F5B3cr.js';
2
2
  export { a as AnyInput, b as AnyInteraction, B as Board, f as BoardDropTarget, i as BoardSpaceData, j as BoardSpaceId, k as BoardTarget, l as CardBase, m as CardDataOf, D as Drafts, o as DropAreaBinding, F as Feature, s as GameSnapshot, H as Hook, t as Input, u as InputBase, v as InputControl, w as InputDomainOf, x as InputKey, y as InputKind, z as InputTarget, E as InputTargetOption, K as Interaction, L as InteractionBase, M as InteractionDropTarget, N as InteractionKey, O as InteractionParams, P as LocalState, Q as NativeEvent, R as Phase, S as PhaseName, T as PlacedTileDataOf, U as Player, V as PositionDropTarget, W as ReadModel, X as ReadonlyData, Z as RuntimeBoardDropTarget, _ as RuntimeBoardTarget, $ as RuntimeDropTarget, a0 as RuntimeInteractionDropTarget, a1 as RuntimePositionDropTarget, a2 as RuntimeSelectionTarget, a5 as SelectionTarget, a6 as TableOfGame, a8 as Tile, a9 as TileDataOf, aa as Turn, ab as ViewOf, ad as ZoneBase } from './model-U0F5B3cr.js';
3
- import { a8 as InteractionDescriptor, V as GameplayBasis, aE as PluginSessionDescriptor, aC as PluginGameplayFrame, b0 as RuntimeJson, S as GameSource, be as SourceSnapshot, D as CommandSource, b8 as SeatBoardTopology, bb as SeatTileRef, ba as SeatSpaceRef, g as BoardEdge, o as BoardVertex, bL as ZoneInteractionRefs, az as PlayerId, aU as ReducerSeatProjectionBundle, b9 as SeatProjectionBundle, h as BoardEdgeId, p as BoardVertexId } from './extract-_TyEXSCt.js';
3
+ import { aC as PluginGameplayFrame, a8 as InteractionDescriptor, bL as ZoneInteractionRefs, V as GameplayBasis, aE as PluginSessionDescriptor, b0 as RuntimeJson, S as GameSource, be as SourceSnapshot, D as CommandSource, b8 as SeatBoardTopology, bb as SeatTileRef, ba as SeatSpaceRef, g as BoardEdge, o as BoardVertex, az as PlayerId, aU as ReducerSeatProjectionBundle, b9 as SeatProjectionBundle, h as BoardEdgeId, p as BoardVertexId } from './extract-_TyEXSCt.js';
4
4
  export { A as ActionInteractionDescriptor, b as ApplySource, k as BoardSpaceHostId, aI as GameEvent, aJ as GameEventDetail, Q as GameOutcome, W as HiddenCardId, $ as InputDomain, a0 as InputDomainSchema, a1 as InputSelection, a3 as InteractionAvailability, a4 as InteractionAvailabilitySchema, a5 as InteractionChoiceOption, a6 as InteractionCommitPolicy, a7 as InteractionCommitPolicySchema, a9 as InteractionDescriptorSchema, aa as InteractionDiagnosticReason, ac as InteractionInputDescriptor, ad as InteractionInputDescriptorSchema, aq as OutcomeResult, ar as OutcomeScoreComponent, as as OutcomeStanding, at as OutcomeTieBreak, au as PerPlayerInstanceFamily, av as PerPlayerInstanceId, aD as PluginPlayerSummary, aK as ProjectedTile, b1 as RuntimeJsonSchema, bc as SimultaneousPhaseSnapshot, bd as SourceRequest, bf as SourceState, bj as SubmitResult, aI as SystemActionEvent, bB as ViewCard, bD as ViewCardSchema, bJ as ZoneHandlesSnapshot, bO as boardSpaceHostId, bQ as parseBoardSpaceHostId, bR as parsePerPlayerInstanceId, bT as perPlayerInstanceId } from './extract-_TyEXSCt.js';
5
5
  import * as z from 'zod';
6
6
  export { I as InteractionShortcutBinding, L as LocalShortcutBinding, S as ShortcutActivity, a as ShortcutBinding, b as ShortcutHint, c as ShortcutOptions, d as ShortcutResult, e as ShortcutTarget, f as ShortcutZoneTarget, g as ShortcutsController, s as shortcutsFeature } from './shortcuts-DXkAlfNw.js';
@@ -20,6 +20,15 @@ type DreamboardSdkPackageSet = {
20
20
  };
21
21
  declare const DREAMBOARD_SDK_PACKAGE_SET: DreamboardSdkPackageSet;
22
22
 
23
+ /** Self-contained hosted snapshot. References are local to this frame. */
24
+ type CompactGameplayFrame = Omit<PluginGameplayFrame, "availableInteractions" | "zones"> & {
25
+ readonly interactionsByRef: Readonly<Record<string, InteractionDescriptor>>;
26
+ readonly availableInteractionRefs: readonly string[];
27
+ readonly zones: Readonly<Record<string, Readonly<Record<string, ZoneInteractionRefs>>>>;
28
+ };
29
+ /** Hydrates a schema-admitted frame, retaining the shared descriptor objects. */
30
+ declare function hydrateCompactGameplayFrame(frame: CompactGameplayFrame): PluginGameplayFrame;
31
+
23
32
  declare const DREAMBOARD_PLUGIN_PROTOCOL: "dreamboard-plugin";
24
33
  declare const DREAMBOARD_PLUGIN_PROTOCOL_VERSION: 11;
25
34
  type InteractionResult = {
@@ -53,11 +62,18 @@ type HostToPluginPayload = {
53
62
  readonly frame: PluginGameplayFrame;
54
63
  /** Confirms a durable action covered by this frame. Independent of causedBy. */
55
64
  readonly acknowledgedClientActionId?: string;
65
+ } | {
66
+ readonly type: "gameplay.compact-frame";
67
+ readonly frame: CompactGameplayFrame;
68
+ readonly acknowledgedClientActionId?: string;
56
69
  } | Extract<InteractionResult, {
57
70
  accepted: false;
58
71
  }>;
59
72
  type PluginToHostPayload = {
60
73
  readonly type: "runtime.ready";
74
+ } | {
75
+ readonly type: "runtime.capabilities";
76
+ readonly compactGameplayFrames: true;
61
77
  } | {
62
78
  readonly type: "runtime.resume";
63
79
  readonly pendingClientActionId?: string;
@@ -1361,47 +1377,84 @@ declare function computePluginActionSetVersion(input: ActionSetVersionInput): st
1361
1377
  declare function digestPluginGameplayFrame(frame: PluginGameplayFrame): string;
1362
1378
  declare function digestPluginCommandRequest(command: SubmitInteractionCommand | CancelInteractionCommand): string;
1363
1379
 
1364
- /** Self-contained hosted snapshot. References are local to this frame. */
1365
- type CompactGameplayFrame = Omit<PluginGameplayFrame, "availableInteractions" | "zones"> & {
1366
- readonly interactionsByRef: Readonly<Record<string, InteractionDescriptor>>;
1367
- readonly availableInteractionRefs: readonly string[];
1368
- readonly zones: Readonly<Record<string, Readonly<Record<string, ZoneInteractionRefs>>>>;
1369
- };
1370
- declare const CompactGameplayFrameSchema: z.ZodObject<{
1371
- players: z.ZodArray<z.ZodString>;
1372
- events: z.ZodArray<z.ZodObject<{
1373
- kind: z.ZodLiteral<"systemAction">;
1374
- procedureId: z.ZodString;
1375
- title: z.ZodString;
1376
- summary: z.ZodOptional<z.ZodString>;
1377
- details: z.ZodOptional<z.ZodArray<z.ZodObject<{
1378
- label: z.ZodString;
1379
- value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
1380
- kind: z.ZodLiteral<"tile">;
1381
- ref: z.core.$ZodBranded<z.ZodString, "SeatTileRef", "out">;
1382
- }, z.core.$strict>]>;
1383
- }, z.core.$strict>>>;
1384
- }, z.core.$strict>>;
1385
- flow: z.ZodObject<{
1386
- currentPhase: z.ZodNullable<z.ZodString>;
1387
- activePlayers: z.ZodArray<z.ZodString>;
1388
- simultaneousPhase: z.ZodNullable<z.ZodObject<{
1389
- phaseName: z.ZodString;
1390
- interactionId: z.ZodString;
1391
- actorIds: z.ZodArray<z.ZodString>;
1392
- sealedPlayerIds: z.ZodArray<z.ZodString>;
1393
- pendingPlayerIds: z.ZodArray<z.ZodString>;
1394
- }, z.core.$strict>>;
1395
- }, z.core.$strict>;
1396
- basis: z.ZodObject<{
1380
+ interface MaterializePluginGameplayFrameInput {
1381
+ readonly players: readonly PlayerId[];
1382
+ readonly causedBy?: string;
1383
+ readonly currentPhase: string | null;
1384
+ readonly activePlayers: readonly PlayerId[];
1385
+ readonly dynamicProjection: ReducerSeatProjectionBundle;
1386
+ readonly perspectivePlayerId: PlayerId;
1387
+ readonly sessionId: string;
1388
+ readonly version: number;
1389
+ readonly actionSetVersion: string;
1390
+ }
1391
+ declare function materializePluginGameplayFrame(input: MaterializePluginGameplayFrameInput): PluginGameplayFrame;
1392
+ /** Selects one seat from an already schema-validated all-seat projection. */
1393
+ declare function materializeCompactGameplayFrame(input: Omit<MaterializePluginGameplayFrameInput, "dynamicProjection"> & {
1394
+ readonly dynamicProjection: SeatProjectionBundle;
1395
+ }): CompactGameplayFrame;
1396
+
1397
+ declare const GameEventDetailSchema: z.ZodObject<{
1398
+ label: z.ZodString;
1399
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
1400
+ kind: z.ZodLiteral<"tile">;
1401
+ ref: z.core.$ZodBranded<z.ZodString, "SeatTileRef", "out">;
1402
+ }, z.core.$strict>]>;
1403
+ }, z.core.$strict>;
1404
+ declare const SystemActionEventSchema: z.ZodObject<{
1405
+ kind: z.ZodLiteral<"systemAction">;
1406
+ procedureId: z.ZodString;
1407
+ title: z.ZodString;
1408
+ summary: z.ZodOptional<z.ZodString>;
1409
+ audience: z.ZodDiscriminatedUnion<[z.ZodObject<{
1410
+ kind: z.ZodLiteral<"public">;
1411
+ }, z.core.$strict>, z.ZodObject<{
1412
+ kind: z.ZodLiteral<"seats">;
1413
+ playerIds: z.ZodArray<z.ZodString>;
1414
+ }, z.core.$strict>], "kind">;
1415
+ details: z.ZodOptional<z.ZodArray<z.ZodObject<{
1416
+ label: z.ZodString;
1417
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
1418
+ kind: z.ZodLiteral<"tile">;
1419
+ tileId: z.ZodString;
1420
+ }, z.core.$strict>]>;
1421
+ }, z.core.$strict>>>;
1422
+ }, z.core.$strict>;
1423
+ declare const GameEventSchema: z.ZodObject<{
1424
+ kind: z.ZodLiteral<"systemAction">;
1425
+ procedureId: z.ZodString;
1426
+ title: z.ZodString;
1427
+ summary: z.ZodOptional<z.ZodString>;
1428
+ details: z.ZodOptional<z.ZodArray<z.ZodObject<{
1429
+ label: z.ZodString;
1430
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
1431
+ kind: z.ZodLiteral<"tile">;
1432
+ ref: z.core.$ZodBranded<z.ZodString, "SeatTileRef", "out">;
1433
+ }, z.core.$strict>]>;
1434
+ }, z.core.$strict>>>;
1435
+ }, z.core.$strict>;
1436
+ declare const SeatProjectionBundleSchema: z.ZodObject<{
1437
+ referenceBasis: z.ZodObject<{
1397
1438
  sessionId: z.ZodString;
1398
1439
  version: z.ZodNumber;
1399
- actionSetVersion: z.ZodString;
1400
- perspectivePlayerId: z.ZodString;
1401
1440
  }, z.core.$strict>;
1402
- view: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1403
- causedBy: z.ZodOptional<z.ZodString>;
1404
- interactionsByRef: z.ZodRecord<z.ZodString, z.ZodObject<{
1441
+ simultaneousPhase: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1442
+ phaseName: z.ZodString;
1443
+ interactionId: z.ZodString;
1444
+ actorIds: z.ZodArray<z.ZodString>;
1445
+ sealedPlayerIds: z.ZodArray<z.ZodString>;
1446
+ pendingPlayerIds: z.ZodArray<z.ZodString>;
1447
+ }, z.core.$strict>, z.ZodNull]>>;
1448
+ schedulerFlow: z.ZodOptional<z.ZodObject<{
1449
+ version: z.ZodLiteral<1>;
1450
+ activePlayerIds: z.ZodArray<z.ZodString>;
1451
+ pendingPlayerIds: z.ZodArray<z.ZodString>;
1452
+ continuationDependencies: z.ZodArray<z.ZodObject<{
1453
+ waiterPlayerId: z.ZodString;
1454
+ blockerPlayerIds: z.ZodArray<z.ZodString>;
1455
+ }, z.core.$strict>>;
1456
+ }, z.core.$strict>>;
1457
+ interactionsByRef: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1405
1458
  phaseName: z.ZodString;
1406
1459
  interactionKey: z.ZodString;
1407
1460
  interactionId: z.ZodString;
@@ -1604,379 +1657,50 @@ declare const CompactGameplayFrameSchema: z.ZodObject<{
1604
1657
  errorCode: z.ZodString;
1605
1658
  }, z.core.$strict>>>;
1606
1659
  kind: z.ZodLiteral<"action">;
1607
- }, z.core.$strict>>;
1608
- availableInteractionRefs: z.ZodArray<z.ZodString>;
1609
- zones: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
1610
- tiles: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1611
- disclosure: z.ZodLiteral<"visible">;
1612
- ref: z.core.$ZodBranded<z.ZodString, "SeatTileRef", "out">;
1613
- tileTypeId: z.ZodString;
1660
+ }, z.core.$strict>>>;
1661
+ seats: z.ZodRecord<z.ZodString, z.ZodObject<{
1662
+ events: z.ZodArray<z.ZodObject<{
1663
+ kind: z.ZodLiteral<"systemAction">;
1664
+ procedureId: z.ZodString;
1665
+ title: z.ZodString;
1666
+ summary: z.ZodOptional<z.ZodString>;
1667
+ details: z.ZodOptional<z.ZodArray<z.ZodObject<{
1668
+ label: z.ZodString;
1669
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
1670
+ kind: z.ZodLiteral<"tile">;
1671
+ ref: z.core.$ZodBranded<z.ZodString, "SeatTileRef", "out">;
1672
+ }, z.core.$strict>]>;
1673
+ }, z.core.$strict>>>;
1674
+ }, z.core.$strict>>;
1675
+ view: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1676
+ boards: z.ZodOptional<z.ZodNever>;
1677
+ }, z.core.$catchall<z.ZodJSONSchema>>>>;
1678
+ boards: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1679
+ id: z.ZodString;
1680
+ baseId: z.ZodString;
1614
1681
  name: z.ZodString;
1615
- frontImage: z.ZodOptional<z.ZodString>;
1616
- ownerId: z.ZodNullable<z.ZodString>;
1682
+ scope: z.ZodEnum<{
1683
+ shared: "shared";
1684
+ perPlayer: "perPlayer";
1685
+ }>;
1686
+ playerId: z.ZodOptional<z.ZodString>;
1687
+ typeId: z.ZodOptional<z.ZodString>;
1617
1688
  fields: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1618
- properties: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1619
- }, z.core.$strict>, z.ZodObject<{
1620
- disclosure: z.ZodLiteral<"concealed">;
1621
- ref: z.core.$ZodBranded<z.ZodString, "SeatTileRef", "out">;
1622
- appearance: z.ZodDiscriminatedUnion<[z.ZodObject<{
1623
- layout: z.ZodLiteral<"hex">;
1624
- cells: z.ZodArray<z.ZodObject<{
1625
- q: z.ZodInt;
1626
- r: z.ZodInt;
1627
- }, z.core.$strict>>;
1628
- backImage: z.ZodOptional<z.ZodString>;
1629
- }, z.core.$strict>, z.ZodObject<{
1630
- layout: z.ZodLiteral<"square">;
1631
- cells: z.ZodArray<z.ZodObject<{
1632
- col: z.ZodInt;
1633
- row: z.ZodInt;
1634
- }, z.core.$strict>>;
1635
- backImage: z.ZodOptional<z.ZodString>;
1636
- }, z.core.$strict>], "layout">;
1637
- }, z.core.$strict>], "disclosure">>;
1638
- cardIds: z.ZodArray<z.ZodString>;
1639
- cardViewsById: z.ZodRecord<z.ZodString, z.ZodObject<{
1640
- id: z.ZodString;
1641
- cardType: z.ZodString;
1642
- name: z.ZodOptional<z.ZodString>;
1643
- text: z.ZodOptional<z.ZodString>;
1644
- frontImage: z.ZodOptional<z.ZodString>;
1645
- backImage: z.ZodOptional<z.ZodString>;
1646
- properties: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1647
- }, z.core.$strict>>;
1648
- cardBacksById: z.ZodRecord<z.ZodString, z.ZodString>;
1649
- playableByCardId: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
1650
- shuffled: z.ZodOptional<z.ZodLiteral<true>>;
1651
- }, z.core.$strict>>>;
1652
- }, z.core.$strict>;
1653
- /** Hydrates a schema-admitted frame, retaining the shared descriptor objects. */
1654
- declare function hydrateCompactGameplayFrame(frame: CompactGameplayFrame): PluginGameplayFrame;
1655
-
1656
- interface MaterializePluginGameplayFrameInput {
1657
- readonly players: readonly PlayerId[];
1658
- readonly causedBy?: string;
1659
- readonly currentPhase: string | null;
1660
- readonly activePlayers: readonly PlayerId[];
1661
- readonly dynamicProjection: ReducerSeatProjectionBundle;
1662
- readonly perspectivePlayerId: PlayerId;
1663
- readonly sessionId: string;
1664
- readonly version: number;
1665
- readonly actionSetVersion: string;
1666
- }
1667
- declare function materializePluginGameplayFrame(input: MaterializePluginGameplayFrameInput): PluginGameplayFrame;
1668
- /** Selects one seat from an already schema-validated all-seat projection. */
1669
- declare function materializeCompactGameplayFrame(input: Omit<MaterializePluginGameplayFrameInput, "dynamicProjection"> & {
1670
- readonly dynamicProjection: SeatProjectionBundle;
1671
- }): CompactGameplayFrame;
1672
-
1673
- declare const GameEventDetailSchema: z.ZodObject<{
1674
- label: z.ZodString;
1675
- value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
1676
- kind: z.ZodLiteral<"tile">;
1677
- ref: z.core.$ZodBranded<z.ZodString, "SeatTileRef", "out">;
1678
- }, z.core.$strict>]>;
1679
- }, z.core.$strict>;
1680
- declare const SystemActionEventSchema: z.ZodObject<{
1681
- kind: z.ZodLiteral<"systemAction">;
1682
- procedureId: z.ZodString;
1683
- title: z.ZodString;
1684
- summary: z.ZodOptional<z.ZodString>;
1685
- audience: z.ZodDiscriminatedUnion<[z.ZodObject<{
1686
- kind: z.ZodLiteral<"public">;
1687
- }, z.core.$strict>, z.ZodObject<{
1688
- kind: z.ZodLiteral<"seats">;
1689
- playerIds: z.ZodArray<z.ZodString>;
1690
- }, z.core.$strict>], "kind">;
1691
- details: z.ZodOptional<z.ZodArray<z.ZodObject<{
1692
- label: z.ZodString;
1693
- value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
1694
- kind: z.ZodLiteral<"tile">;
1695
- tileId: z.ZodString;
1696
- }, z.core.$strict>]>;
1697
- }, z.core.$strict>>>;
1698
- }, z.core.$strict>;
1699
- declare const GameEventSchema: z.ZodObject<{
1700
- kind: z.ZodLiteral<"systemAction">;
1701
- procedureId: z.ZodString;
1702
- title: z.ZodString;
1703
- summary: z.ZodOptional<z.ZodString>;
1704
- details: z.ZodOptional<z.ZodArray<z.ZodObject<{
1705
- label: z.ZodString;
1706
- value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
1707
- kind: z.ZodLiteral<"tile">;
1708
- ref: z.core.$ZodBranded<z.ZodString, "SeatTileRef", "out">;
1709
- }, z.core.$strict>]>;
1710
- }, z.core.$strict>>>;
1711
- }, z.core.$strict>;
1712
- declare const SeatProjectionBundleSchema: z.ZodObject<{
1713
- referenceBasis: z.ZodObject<{
1714
- sessionId: z.ZodString;
1715
- version: z.ZodNumber;
1716
- }, z.core.$strict>;
1717
- simultaneousPhase: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1718
- phaseName: z.ZodString;
1719
- interactionId: z.ZodString;
1720
- actorIds: z.ZodArray<z.ZodString>;
1721
- sealedPlayerIds: z.ZodArray<z.ZodString>;
1722
- pendingPlayerIds: z.ZodArray<z.ZodString>;
1723
- }, z.core.$strict>, z.ZodNull]>>;
1724
- schedulerFlow: z.ZodOptional<z.ZodObject<{
1725
- version: z.ZodLiteral<1>;
1726
- activePlayerIds: z.ZodArray<z.ZodString>;
1727
- pendingPlayerIds: z.ZodArray<z.ZodString>;
1728
- continuationDependencies: z.ZodArray<z.ZodObject<{
1729
- waiterPlayerId: z.ZodString;
1730
- blockerPlayerIds: z.ZodArray<z.ZodString>;
1731
- }, z.core.$strict>>;
1732
- }, z.core.$strict>>;
1733
- interactionsByRef: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1734
- phaseName: z.ZodString;
1735
- interactionKey: z.ZodString;
1736
- interactionId: z.ZodString;
1737
- label: z.ZodString;
1738
- help: z.ZodOptional<z.ZodString>;
1739
- zoneId: z.ZodOptional<z.ZodString>;
1740
- zoneIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1741
- commit: z.ZodDiscriminatedUnion<[z.ZodObject<{
1742
- mode: z.ZodLiteral<"manual">;
1743
- }, z.core.$strict>, z.ZodObject<{
1744
- mode: z.ZodLiteral<"autoWhenReady">;
1745
- }, z.core.$strict>], "mode">;
1746
- descriptorDigest: z.ZodOptional<z.ZodString>;
1747
- actorSeat: z.ZodOptional<z.ZodNumber>;
1748
- draftDigest: z.ZodOptional<z.ZodString>;
1749
- inputs: z.ZodArray<z.ZodObject<{
1750
- key: z.ZodString;
1751
- kind: z.ZodEnum<{
1752
- card: "card";
1753
- tile: "tile";
1754
- "board-edge": "board-edge";
1755
- "board-vertex": "board-vertex";
1756
- "board-space": "board-space";
1757
- form: "form";
1758
- position: "position";
1759
- rng: "rng";
1760
- }>;
1761
- domain: z.ZodDiscriminatedUnion<[z.ZodObject<{
1762
- selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1763
- mode: z.ZodLiteral<"single">;
1764
- }, z.core.$strict>, z.ZodObject<{
1765
- mode: z.ZodLiteral<"many">;
1766
- min: z.ZodNumber;
1767
- max: z.ZodOptional<z.ZodNumber>;
1768
- distinct: z.ZodOptional<z.ZodBoolean>;
1769
- }, z.core.$strict>], "mode">>;
1770
- type: z.ZodLiteral<"cardTarget">;
1771
- projection: z.ZodLiteral<"resolved">;
1772
- targetKind: z.ZodLiteral<"card">;
1773
- zoneIds: z.ZodArray<z.ZodString>;
1774
- eligibleTargets: z.ZodArray<z.ZodString>;
1775
- }, z.core.$strict>, z.ZodObject<{
1776
- selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1777
- mode: z.ZodLiteral<"single">;
1778
- }, z.core.$strict>, z.ZodObject<{
1779
- mode: z.ZodLiteral<"many">;
1780
- min: z.ZodNumber;
1781
- max: z.ZodOptional<z.ZodNumber>;
1782
- distinct: z.ZodOptional<z.ZodBoolean>;
1783
- }, z.core.$strict>], "mode">>;
1784
- type: z.ZodLiteral<"tileTarget">;
1785
- projection: z.ZodLiteral<"resolved">;
1786
- targetKind: z.ZodLiteral<"tile">;
1787
- zoneIds: z.ZodArray<z.ZodString>;
1788
- boardIds: z.ZodArray<z.ZodString>;
1789
- eligibleTargets: z.ZodArray<z.core.$ZodBranded<z.ZodString, "SeatTileRef", "out">>;
1790
- }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
1791
- selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1792
- mode: z.ZodLiteral<"single">;
1793
- }, z.core.$strict>, z.ZodObject<{
1794
- mode: z.ZodLiteral<"many">;
1795
- min: z.ZodNumber;
1796
- max: z.ZodOptional<z.ZodNumber>;
1797
- distinct: z.ZodOptional<z.ZodBoolean>;
1798
- }, z.core.$strict>], "mode">>;
1799
- type: z.ZodLiteral<"boardTarget">;
1800
- projection: z.ZodLiteral<"resolved">;
1801
- targetKind: z.ZodEnum<{
1802
- edge: "edge";
1803
- vertex: "vertex";
1804
- space: "space";
1805
- }>;
1806
- boardId: z.ZodString;
1807
- valueKind: z.ZodLiteral<"board-id">;
1808
- eligibleTargets: z.ZodArray<z.ZodString>;
1809
- }, z.core.$strict>, z.ZodObject<{
1810
- selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1811
- mode: z.ZodLiteral<"single">;
1812
- }, z.core.$strict>, z.ZodObject<{
1813
- mode: z.ZodLiteral<"many">;
1814
- min: z.ZodNumber;
1815
- max: z.ZodOptional<z.ZodNumber>;
1816
- distinct: z.ZodOptional<z.ZodBoolean>;
1817
- }, z.core.$strict>], "mode">>;
1818
- type: z.ZodLiteral<"boardTarget">;
1819
- projection: z.ZodLiteral<"resolved">;
1820
- targetKind: z.ZodLiteral<"space">;
1821
- boardBaseId: z.ZodString;
1822
- valueKind: z.ZodLiteral<"board-space">;
1823
- eligibleTargets: z.ZodArray<z.ZodObject<{
1824
- boardId: z.ZodString;
1825
- spaceId: z.ZodString;
1826
- }, z.core.$strict>>;
1827
- }, z.core.$strict>], "valueKind">, z.ZodObject<{
1828
- selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1829
- mode: z.ZodLiteral<"single">;
1830
- }, z.core.$strict>, z.ZodObject<{
1831
- mode: z.ZodLiteral<"many">;
1832
- min: z.ZodNumber;
1833
- max: z.ZodOptional<z.ZodNumber>;
1834
- distinct: z.ZodOptional<z.ZodBoolean>;
1835
- }, z.core.$strict>], "mode">>;
1836
- type: z.ZodLiteral<"zonePosition">;
1837
- zones: z.ZodArray<z.ZodObject<{
1838
- zoneId: z.ZodString;
1839
- hostId: z.ZodString;
1840
- size: z.ZodNumber;
1841
- }, z.core.$strict>>;
1842
- }, z.core.$strict>, z.ZodObject<{
1843
- selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1844
- mode: z.ZodLiteral<"single">;
1845
- }, z.core.$strict>, z.ZodObject<{
1846
- mode: z.ZodLiteral<"many">;
1847
- min: z.ZodNumber;
1848
- max: z.ZodOptional<z.ZodNumber>;
1849
- distinct: z.ZodOptional<z.ZodBoolean>;
1850
- }, z.core.$strict>], "mode">>;
1851
- type: z.ZodLiteral<"resourceMap">;
1852
- resources: z.ZodArray<z.ZodObject<{
1853
- resourceId: z.ZodString;
1854
- label: z.ZodOptional<z.ZodString>;
1855
- icon: z.ZodOptional<z.ZodString>;
1856
- min: z.ZodNumber;
1857
- max: z.ZodNumber;
1858
- }, z.core.$strict>>;
1859
- }, z.core.$strict>, z.ZodObject<{
1860
- selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1861
- mode: z.ZodLiteral<"single">;
1862
- }, z.core.$strict>, z.ZodObject<{
1863
- mode: z.ZodLiteral<"many">;
1864
- min: z.ZodNumber;
1865
- max: z.ZodOptional<z.ZodNumber>;
1866
- distinct: z.ZodOptional<z.ZodBoolean>;
1867
- }, z.core.$strict>], "mode">>;
1868
- type: z.ZodLiteral<"boundedNumber">;
1869
- min: z.ZodNumber;
1870
- max: z.ZodNumber;
1871
- step: z.ZodOptional<z.ZodNumber>;
1872
- }, z.core.$strict>, z.ZodObject<{
1873
- selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1874
- mode: z.ZodLiteral<"single">;
1875
- }, z.core.$strict>, z.ZodObject<{
1876
- mode: z.ZodLiteral<"many">;
1877
- min: z.ZodNumber;
1878
- max: z.ZodOptional<z.ZodNumber>;
1879
- distinct: z.ZodOptional<z.ZodBoolean>;
1880
- }, z.core.$strict>], "mode">>;
1881
- type: z.ZodLiteral<"choice">;
1882
- choices: z.ZodArray<z.ZodObject<{
1883
- value: z.ZodNullable<z.ZodString>;
1884
- label: z.ZodString;
1885
- icon: z.ZodOptional<z.ZodString>;
1886
- badge: z.ZodOptional<z.ZodString>;
1887
- description: z.ZodOptional<z.ZodString>;
1888
- disabled: z.ZodOptional<z.ZodBoolean>;
1889
- disabledReason: z.ZodOptional<z.ZodString>;
1890
- }, z.core.$strict>>;
1891
- }, z.core.$strict>, z.ZodObject<{
1892
- selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1893
- mode: z.ZodLiteral<"single">;
1894
- }, z.core.$strict>, z.ZodObject<{
1895
- mode: z.ZodLiteral<"many">;
1896
- min: z.ZodNumber;
1897
- max: z.ZodOptional<z.ZodNumber>;
1898
- distinct: z.ZodOptional<z.ZodBoolean>;
1899
- }, z.core.$strict>], "mode">>;
1900
- type: z.ZodLiteral<"choiceList">;
1901
- choices: z.ZodArray<z.ZodObject<{
1902
- label: z.ZodString;
1903
- icon: z.ZodOptional<z.ZodString>;
1904
- badge: z.ZodOptional<z.ZodString>;
1905
- description: z.ZodOptional<z.ZodString>;
1906
- disabled: z.ZodOptional<z.ZodBoolean>;
1907
- disabledReason: z.ZodOptional<z.ZodString>;
1908
- value: z.ZodString;
1909
- }, z.core.$strict>>;
1910
- min: z.ZodOptional<z.ZodNumber>;
1911
- max: z.ZodOptional<z.ZodNumber>;
1912
- }, z.core.$strict>], "type">;
1913
- defaultValue: z.ZodOptional<z.ZodJSONSchema>;
1914
- }, z.core.$strict>>;
1915
- step: z.ZodOptional<z.ZodObject<{
1916
- index: z.ZodNumber;
1917
- total: z.ZodNumber;
1918
- selected: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1919
- canCancel: z.ZodBoolean;
1920
- }, z.core.$strict>>;
1921
- availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
1922
- status: z.ZodLiteral<"available">;
1923
- }, z.core.$strict>, z.ZodObject<{
1924
- status: z.ZodLiteral<"notYourTurn">;
1925
- reason: z.ZodString;
1926
- }, z.core.$strict>, z.ZodObject<{
1927
- status: z.ZodLiteral<"blocked">;
1928
- reason: z.ZodString;
1929
- code: z.ZodOptional<z.ZodString>;
1930
- }, z.core.$strict>], "status">;
1931
- reasons: z.ZodOptional<z.ZodArray<z.ZodObject<{
1932
- ruleId: z.ZodString;
1933
- errorCode: z.ZodString;
1934
- }, z.core.$strict>>>;
1935
- kind: z.ZodLiteral<"action">;
1936
- }, z.core.$strict>>>;
1937
- seats: z.ZodRecord<z.ZodString, z.ZodObject<{
1938
- events: z.ZodArray<z.ZodObject<{
1939
- kind: z.ZodLiteral<"systemAction">;
1940
- procedureId: z.ZodString;
1941
- title: z.ZodString;
1942
- summary: z.ZodOptional<z.ZodString>;
1943
- details: z.ZodOptional<z.ZodArray<z.ZodObject<{
1944
- label: z.ZodString;
1945
- value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
1946
- kind: z.ZodLiteral<"tile">;
1947
- ref: z.core.$ZodBranded<z.ZodString, "SeatTileRef", "out">;
1948
- }, z.core.$strict>]>;
1949
- }, z.core.$strict>>>;
1950
- }, z.core.$strict>>;
1951
- view: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1952
- boards: z.ZodOptional<z.ZodNever>;
1953
- }, z.core.$catchall<z.ZodJSONSchema>>>>;
1954
- boards: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1955
- id: z.ZodString;
1956
- baseId: z.ZodString;
1957
- name: z.ZodString;
1958
- scope: z.ZodEnum<{
1959
- shared: "shared";
1960
- perPlayer: "perPlayer";
1961
- }>;
1962
- playerId: z.ZodOptional<z.ZodString>;
1963
- typeId: z.ZodOptional<z.ZodString>;
1964
- fields: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1965
- relations: z.ZodArray<z.ZodObject<{
1966
- id: z.ZodString;
1967
- typeId: z.ZodString;
1968
- fromSpaceId: z.ZodString;
1969
- toSpaceId: z.ZodString;
1970
- directed: z.ZodBoolean;
1971
- fields: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1972
- }, z.core.$strict>>;
1973
- layout: z.ZodLiteral<"generic">;
1974
- spaces: z.ZodRecord<z.ZodString, z.ZodObject<{
1975
- id: z.ZodString;
1976
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1977
- typeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1978
- fields: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1979
- }, z.core.$strict>>;
1689
+ relations: z.ZodArray<z.ZodObject<{
1690
+ id: z.ZodString;
1691
+ typeId: z.ZodString;
1692
+ fromSpaceId: z.ZodString;
1693
+ toSpaceId: z.ZodString;
1694
+ directed: z.ZodBoolean;
1695
+ fields: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1696
+ }, z.core.$strict>>;
1697
+ layout: z.ZodLiteral<"generic">;
1698
+ spaces: z.ZodRecord<z.ZodString, z.ZodObject<{
1699
+ id: z.ZodString;
1700
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1701
+ typeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1702
+ fields: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1703
+ }, z.core.$strict>>;
1980
1704
  }, z.core.$strict>, z.ZodObject<{
1981
1705
  id: z.ZodString;
1982
1706
  baseId: z.ZodString;
@@ -3493,554 +3217,298 @@ declare const PluginGameplayFrameSchema: z.ZodObject<{
3493
3217
  perspectivePlayerId: z.ZodString;
3494
3218
  }, z.core.$strict>;
3495
3219
  }, z.core.$strict>;
3496
- /** Only rejections are standalone wire results; success accompanies a frame. */
3497
- declare const InteractionResultSchema: z.ZodObject<{
3498
- type: z.ZodLiteral<"interaction.result">;
3499
- clientActionId: z.ZodString;
3500
- accepted: z.ZodLiteral<false>;
3501
- errorCode: z.ZodString;
3502
- message: z.ZodOptional<z.ZodString>;
3503
- }, z.core.$strict>;
3504
- declare const SubmitInteractionCommandSchema: z.ZodObject<{
3505
- type: z.ZodLiteral<"interaction.submit">;
3506
- clientActionId: z.ZodString;
3507
- basis: z.ZodObject<{
3508
- sessionId: z.ZodString;
3509
- version: z.ZodNumber;
3510
- actionSetVersion: z.ZodString;
3511
- perspectivePlayerId: z.ZodString;
3220
+ declare const CompactGameplayFrameSchema: z.ZodObject<{
3221
+ players: z.ZodArray<z.ZodString>;
3222
+ events: z.ZodArray<z.ZodObject<{
3223
+ kind: z.ZodLiteral<"systemAction">;
3224
+ procedureId: z.ZodString;
3225
+ title: z.ZodString;
3226
+ summary: z.ZodOptional<z.ZodString>;
3227
+ details: z.ZodOptional<z.ZodArray<z.ZodObject<{
3228
+ label: z.ZodString;
3229
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
3230
+ kind: z.ZodLiteral<"tile">;
3231
+ ref: z.core.$ZodBranded<z.ZodString, "SeatTileRef", "out">;
3232
+ }, z.core.$strict>]>;
3233
+ }, z.core.$strict>>>;
3234
+ }, z.core.$strict>>;
3235
+ flow: z.ZodObject<{
3236
+ currentPhase: z.ZodNullable<z.ZodString>;
3237
+ activePlayers: z.ZodArray<z.ZodString>;
3238
+ simultaneousPhase: z.ZodNullable<z.ZodObject<{
3239
+ phaseName: z.ZodString;
3240
+ interactionId: z.ZodString;
3241
+ actorIds: z.ZodArray<z.ZodString>;
3242
+ sealedPlayerIds: z.ZodArray<z.ZodString>;
3243
+ pendingPlayerIds: z.ZodArray<z.ZodString>;
3244
+ }, z.core.$strict>>;
3512
3245
  }, z.core.$strict>;
3513
- interactionId: z.ZodString;
3514
- params: z.ZodJSONSchema;
3515
- }, z.core.$strict>;
3516
- declare const CancelInteractionCommandSchema: z.ZodObject<{
3517
- interactionId: z.ZodString;
3518
3246
  basis: z.ZodObject<{
3519
3247
  sessionId: z.ZodString;
3520
3248
  version: z.ZodNumber;
3521
3249
  actionSetVersion: z.ZodString;
3522
3250
  perspectivePlayerId: z.ZodString;
3523
3251
  }, z.core.$strict>;
3524
- clientActionId: z.ZodString;
3525
- type: z.ZodLiteral<"interaction.cancel">;
3526
- }, z.core.$strict>;
3527
- declare const HostToPluginPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3528
- type: z.ZodLiteral<"runtime.init">;
3529
- session: z.ZodObject<{
3530
- sessionId: z.ZodString;
3531
- players: z.ZodArray<z.ZodObject<{
3532
- playerId: z.ZodString;
3533
- displayName: z.ZodString;
3534
- color: z.ZodOptional<z.ZodString>;
3535
- }, z.core.$strict>>;
3536
- assets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodInstanceOf<Blob>>>;
3537
- }, z.core.$strict>;
3538
- }, z.core.$strict>, z.ZodObject<{
3539
- type: z.ZodLiteral<"gameplay.frame">;
3540
- frame: z.ZodObject<{
3541
- players: z.ZodArray<z.ZodString>;
3542
- causedBy: z.ZodOptional<z.ZodString>;
3543
- events: z.ZodArray<z.ZodObject<{
3544
- kind: z.ZodLiteral<"systemAction">;
3545
- procedureId: z.ZodString;
3546
- title: z.ZodString;
3547
- summary: z.ZodOptional<z.ZodString>;
3548
- details: z.ZodOptional<z.ZodArray<z.ZodObject<{
3549
- label: z.ZodString;
3550
- value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
3551
- kind: z.ZodLiteral<"tile">;
3552
- ref: z.core.$ZodBranded<z.ZodString, "SeatTileRef", "out">;
3553
- }, z.core.$strict>]>;
3554
- }, z.core.$strict>>>;
3555
- }, z.core.$strict>>;
3556
- view: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
3557
- flow: z.ZodObject<{
3558
- currentPhase: z.ZodNullable<z.ZodString>;
3559
- activePlayers: z.ZodArray<z.ZodString>;
3560
- simultaneousPhase: z.ZodNullable<z.ZodObject<{
3561
- phaseName: z.ZodString;
3562
- interactionId: z.ZodString;
3563
- actorIds: z.ZodArray<z.ZodString>;
3564
- sealedPlayerIds: z.ZodArray<z.ZodString>;
3565
- pendingPlayerIds: z.ZodArray<z.ZodString>;
3566
- }, z.core.$strict>>;
3567
- }, z.core.$strict>;
3568
- availableInteractions: z.ZodArray<z.ZodObject<{
3569
- phaseName: z.ZodString;
3570
- interactionKey: z.ZodString;
3571
- interactionId: z.ZodString;
3572
- label: z.ZodString;
3573
- help: z.ZodOptional<z.ZodString>;
3574
- zoneId: z.ZodOptional<z.ZodString>;
3575
- zoneIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
3576
- commit: z.ZodDiscriminatedUnion<[z.ZodObject<{
3577
- mode: z.ZodLiteral<"manual">;
3252
+ view: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
3253
+ causedBy: z.ZodOptional<z.ZodString>;
3254
+ interactionsByRef: z.ZodRecord<z.ZodString, z.ZodObject<{
3255
+ phaseName: z.ZodString;
3256
+ interactionKey: z.ZodString;
3257
+ interactionId: z.ZodString;
3258
+ label: z.ZodString;
3259
+ help: z.ZodOptional<z.ZodString>;
3260
+ zoneId: z.ZodOptional<z.ZodString>;
3261
+ zoneIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
3262
+ commit: z.ZodDiscriminatedUnion<[z.ZodObject<{
3263
+ mode: z.ZodLiteral<"manual">;
3264
+ }, z.core.$strict>, z.ZodObject<{
3265
+ mode: z.ZodLiteral<"autoWhenReady">;
3266
+ }, z.core.$strict>], "mode">;
3267
+ descriptorDigest: z.ZodOptional<z.ZodString>;
3268
+ actorSeat: z.ZodOptional<z.ZodNumber>;
3269
+ draftDigest: z.ZodOptional<z.ZodString>;
3270
+ inputs: z.ZodArray<z.ZodObject<{
3271
+ key: z.ZodString;
3272
+ kind: z.ZodEnum<{
3273
+ card: "card";
3274
+ tile: "tile";
3275
+ "board-edge": "board-edge";
3276
+ "board-vertex": "board-vertex";
3277
+ "board-space": "board-space";
3278
+ form: "form";
3279
+ position: "position";
3280
+ rng: "rng";
3281
+ }>;
3282
+ domain: z.ZodDiscriminatedUnion<[z.ZodObject<{
3283
+ selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3284
+ mode: z.ZodLiteral<"single">;
3285
+ }, z.core.$strict>, z.ZodObject<{
3286
+ mode: z.ZodLiteral<"many">;
3287
+ min: z.ZodNumber;
3288
+ max: z.ZodOptional<z.ZodNumber>;
3289
+ distinct: z.ZodOptional<z.ZodBoolean>;
3290
+ }, z.core.$strict>], "mode">>;
3291
+ type: z.ZodLiteral<"cardTarget">;
3292
+ projection: z.ZodLiteral<"resolved">;
3293
+ targetKind: z.ZodLiteral<"card">;
3294
+ zoneIds: z.ZodArray<z.ZodString>;
3295
+ eligibleTargets: z.ZodArray<z.ZodString>;
3578
3296
  }, z.core.$strict>, z.ZodObject<{
3579
- mode: z.ZodLiteral<"autoWhenReady">;
3580
- }, z.core.$strict>], "mode">;
3581
- descriptorDigest: z.ZodOptional<z.ZodString>;
3582
- actorSeat: z.ZodOptional<z.ZodNumber>;
3583
- draftDigest: z.ZodOptional<z.ZodString>;
3584
- inputs: z.ZodArray<z.ZodObject<{
3585
- key: z.ZodString;
3586
- kind: z.ZodEnum<{
3587
- card: "card";
3588
- tile: "tile";
3589
- "board-edge": "board-edge";
3590
- "board-vertex": "board-vertex";
3591
- "board-space": "board-space";
3592
- form: "form";
3593
- position: "position";
3594
- rng: "rng";
3595
- }>;
3596
- domain: z.ZodDiscriminatedUnion<[z.ZodObject<{
3597
- selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3598
- mode: z.ZodLiteral<"single">;
3599
- }, z.core.$strict>, z.ZodObject<{
3600
- mode: z.ZodLiteral<"many">;
3601
- min: z.ZodNumber;
3602
- max: z.ZodOptional<z.ZodNumber>;
3603
- distinct: z.ZodOptional<z.ZodBoolean>;
3604
- }, z.core.$strict>], "mode">>;
3605
- type: z.ZodLiteral<"cardTarget">;
3606
- projection: z.ZodLiteral<"resolved">;
3607
- targetKind: z.ZodLiteral<"card">;
3608
- zoneIds: z.ZodArray<z.ZodString>;
3609
- eligibleTargets: z.ZodArray<z.ZodString>;
3297
+ selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3298
+ mode: z.ZodLiteral<"single">;
3610
3299
  }, z.core.$strict>, z.ZodObject<{
3611
- selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3612
- mode: z.ZodLiteral<"single">;
3613
- }, z.core.$strict>, z.ZodObject<{
3614
- mode: z.ZodLiteral<"many">;
3615
- min: z.ZodNumber;
3616
- max: z.ZodOptional<z.ZodNumber>;
3617
- distinct: z.ZodOptional<z.ZodBoolean>;
3618
- }, z.core.$strict>], "mode">>;
3619
- type: z.ZodLiteral<"tileTarget">;
3620
- projection: z.ZodLiteral<"resolved">;
3621
- targetKind: z.ZodLiteral<"tile">;
3622
- zoneIds: z.ZodArray<z.ZodString>;
3623
- boardIds: z.ZodArray<z.ZodString>;
3624
- eligibleTargets: z.ZodArray<z.core.$ZodBranded<z.ZodString, "SeatTileRef", "out">>;
3625
- }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
3626
- selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3627
- mode: z.ZodLiteral<"single">;
3628
- }, z.core.$strict>, z.ZodObject<{
3629
- mode: z.ZodLiteral<"many">;
3630
- min: z.ZodNumber;
3631
- max: z.ZodOptional<z.ZodNumber>;
3632
- distinct: z.ZodOptional<z.ZodBoolean>;
3633
- }, z.core.$strict>], "mode">>;
3634
- type: z.ZodLiteral<"boardTarget">;
3635
- projection: z.ZodLiteral<"resolved">;
3636
- targetKind: z.ZodEnum<{
3637
- edge: "edge";
3638
- vertex: "vertex";
3639
- space: "space";
3640
- }>;
3641
- boardId: z.ZodString;
3642
- valueKind: z.ZodLiteral<"board-id">;
3643
- eligibleTargets: z.ZodArray<z.ZodString>;
3300
+ mode: z.ZodLiteral<"many">;
3301
+ min: z.ZodNumber;
3302
+ max: z.ZodOptional<z.ZodNumber>;
3303
+ distinct: z.ZodOptional<z.ZodBoolean>;
3304
+ }, z.core.$strict>], "mode">>;
3305
+ type: z.ZodLiteral<"tileTarget">;
3306
+ projection: z.ZodLiteral<"resolved">;
3307
+ targetKind: z.ZodLiteral<"tile">;
3308
+ zoneIds: z.ZodArray<z.ZodString>;
3309
+ boardIds: z.ZodArray<z.ZodString>;
3310
+ eligibleTargets: z.ZodArray<z.core.$ZodBranded<z.ZodString, "SeatTileRef", "out">>;
3311
+ }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
3312
+ selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3313
+ mode: z.ZodLiteral<"single">;
3644
3314
  }, z.core.$strict>, z.ZodObject<{
3645
- selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3646
- mode: z.ZodLiteral<"single">;
3647
- }, z.core.$strict>, z.ZodObject<{
3648
- mode: z.ZodLiteral<"many">;
3649
- min: z.ZodNumber;
3650
- max: z.ZodOptional<z.ZodNumber>;
3651
- distinct: z.ZodOptional<z.ZodBoolean>;
3652
- }, z.core.$strict>], "mode">>;
3653
- type: z.ZodLiteral<"boardTarget">;
3654
- projection: z.ZodLiteral<"resolved">;
3655
- targetKind: z.ZodLiteral<"space">;
3656
- boardBaseId: z.ZodString;
3657
- valueKind: z.ZodLiteral<"board-space">;
3658
- eligibleTargets: z.ZodArray<z.ZodObject<{
3659
- boardId: z.ZodString;
3660
- spaceId: z.ZodString;
3661
- }, z.core.$strict>>;
3662
- }, z.core.$strict>], "valueKind">, z.ZodObject<{
3663
- selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3664
- mode: z.ZodLiteral<"single">;
3665
- }, z.core.$strict>, z.ZodObject<{
3666
- mode: z.ZodLiteral<"many">;
3667
- min: z.ZodNumber;
3668
- max: z.ZodOptional<z.ZodNumber>;
3669
- distinct: z.ZodOptional<z.ZodBoolean>;
3670
- }, z.core.$strict>], "mode">>;
3671
- type: z.ZodLiteral<"zonePosition">;
3672
- zones: z.ZodArray<z.ZodObject<{
3673
- zoneId: z.ZodString;
3674
- hostId: z.ZodString;
3675
- size: z.ZodNumber;
3676
- }, z.core.$strict>>;
3677
- }, z.core.$strict>, z.ZodObject<{
3678
- selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3679
- mode: z.ZodLiteral<"single">;
3680
- }, z.core.$strict>, z.ZodObject<{
3681
- mode: z.ZodLiteral<"many">;
3682
- min: z.ZodNumber;
3683
- max: z.ZodOptional<z.ZodNumber>;
3684
- distinct: z.ZodOptional<z.ZodBoolean>;
3685
- }, z.core.$strict>], "mode">>;
3686
- type: z.ZodLiteral<"resourceMap">;
3687
- resources: z.ZodArray<z.ZodObject<{
3688
- resourceId: z.ZodString;
3689
- label: z.ZodOptional<z.ZodString>;
3690
- icon: z.ZodOptional<z.ZodString>;
3691
- min: z.ZodNumber;
3692
- max: z.ZodNumber;
3693
- }, z.core.$strict>>;
3694
- }, z.core.$strict>, z.ZodObject<{
3695
- selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3696
- mode: z.ZodLiteral<"single">;
3697
- }, z.core.$strict>, z.ZodObject<{
3698
- mode: z.ZodLiteral<"many">;
3699
- min: z.ZodNumber;
3700
- max: z.ZodOptional<z.ZodNumber>;
3701
- distinct: z.ZodOptional<z.ZodBoolean>;
3702
- }, z.core.$strict>], "mode">>;
3703
- type: z.ZodLiteral<"boundedNumber">;
3315
+ mode: z.ZodLiteral<"many">;
3704
3316
  min: z.ZodNumber;
3705
- max: z.ZodNumber;
3706
- step: z.ZodOptional<z.ZodNumber>;
3317
+ max: z.ZodOptional<z.ZodNumber>;
3318
+ distinct: z.ZodOptional<z.ZodBoolean>;
3319
+ }, z.core.$strict>], "mode">>;
3320
+ type: z.ZodLiteral<"boardTarget">;
3321
+ projection: z.ZodLiteral<"resolved">;
3322
+ targetKind: z.ZodEnum<{
3323
+ edge: "edge";
3324
+ vertex: "vertex";
3325
+ space: "space";
3326
+ }>;
3327
+ boardId: z.ZodString;
3328
+ valueKind: z.ZodLiteral<"board-id">;
3329
+ eligibleTargets: z.ZodArray<z.ZodString>;
3330
+ }, z.core.$strict>, z.ZodObject<{
3331
+ selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3332
+ mode: z.ZodLiteral<"single">;
3707
3333
  }, z.core.$strict>, z.ZodObject<{
3708
- selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3709
- mode: z.ZodLiteral<"single">;
3710
- }, z.core.$strict>, z.ZodObject<{
3711
- mode: z.ZodLiteral<"many">;
3712
- min: z.ZodNumber;
3713
- max: z.ZodOptional<z.ZodNumber>;
3714
- distinct: z.ZodOptional<z.ZodBoolean>;
3715
- }, z.core.$strict>], "mode">>;
3716
- type: z.ZodLiteral<"choice">;
3717
- choices: z.ZodArray<z.ZodObject<{
3718
- value: z.ZodNullable<z.ZodString>;
3719
- label: z.ZodString;
3720
- icon: z.ZodOptional<z.ZodString>;
3721
- badge: z.ZodOptional<z.ZodString>;
3722
- description: z.ZodOptional<z.ZodString>;
3723
- disabled: z.ZodOptional<z.ZodBoolean>;
3724
- disabledReason: z.ZodOptional<z.ZodString>;
3725
- }, z.core.$strict>>;
3334
+ mode: z.ZodLiteral<"many">;
3335
+ min: z.ZodNumber;
3336
+ max: z.ZodOptional<z.ZodNumber>;
3337
+ distinct: z.ZodOptional<z.ZodBoolean>;
3338
+ }, z.core.$strict>], "mode">>;
3339
+ type: z.ZodLiteral<"boardTarget">;
3340
+ projection: z.ZodLiteral<"resolved">;
3341
+ targetKind: z.ZodLiteral<"space">;
3342
+ boardBaseId: z.ZodString;
3343
+ valueKind: z.ZodLiteral<"board-space">;
3344
+ eligibleTargets: z.ZodArray<z.ZodObject<{
3345
+ boardId: z.ZodString;
3346
+ spaceId: z.ZodString;
3347
+ }, z.core.$strict>>;
3348
+ }, z.core.$strict>], "valueKind">, z.ZodObject<{
3349
+ selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3350
+ mode: z.ZodLiteral<"single">;
3726
3351
  }, z.core.$strict>, z.ZodObject<{
3727
- selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3728
- mode: z.ZodLiteral<"single">;
3729
- }, z.core.$strict>, z.ZodObject<{
3730
- mode: z.ZodLiteral<"many">;
3731
- min: z.ZodNumber;
3732
- max: z.ZodOptional<z.ZodNumber>;
3733
- distinct: z.ZodOptional<z.ZodBoolean>;
3734
- }, z.core.$strict>], "mode">>;
3735
- type: z.ZodLiteral<"choiceList">;
3736
- choices: z.ZodArray<z.ZodObject<{
3737
- label: z.ZodString;
3738
- icon: z.ZodOptional<z.ZodString>;
3739
- badge: z.ZodOptional<z.ZodString>;
3740
- description: z.ZodOptional<z.ZodString>;
3741
- disabled: z.ZodOptional<z.ZodBoolean>;
3742
- disabledReason: z.ZodOptional<z.ZodString>;
3743
- value: z.ZodString;
3744
- }, z.core.$strict>>;
3745
- min: z.ZodOptional<z.ZodNumber>;
3352
+ mode: z.ZodLiteral<"many">;
3353
+ min: z.ZodNumber;
3746
3354
  max: z.ZodOptional<z.ZodNumber>;
3747
- }, z.core.$strict>], "type">;
3748
- defaultValue: z.ZodOptional<z.ZodJSONSchema>;
3749
- }, z.core.$strict>>;
3750
- step: z.ZodOptional<z.ZodObject<{
3751
- index: z.ZodNumber;
3752
- total: z.ZodNumber;
3753
- selected: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
3754
- canCancel: z.ZodBoolean;
3755
- }, z.core.$strict>>;
3756
- availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
3757
- status: z.ZodLiteral<"available">;
3355
+ distinct: z.ZodOptional<z.ZodBoolean>;
3356
+ }, z.core.$strict>], "mode">>;
3357
+ type: z.ZodLiteral<"zonePosition">;
3358
+ zones: z.ZodArray<z.ZodObject<{
3359
+ zoneId: z.ZodString;
3360
+ hostId: z.ZodString;
3361
+ size: z.ZodNumber;
3362
+ }, z.core.$strict>>;
3758
3363
  }, z.core.$strict>, z.ZodObject<{
3759
- status: z.ZodLiteral<"notYourTurn">;
3760
- reason: z.ZodString;
3364
+ selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3365
+ mode: z.ZodLiteral<"single">;
3366
+ }, z.core.$strict>, z.ZodObject<{
3367
+ mode: z.ZodLiteral<"many">;
3368
+ min: z.ZodNumber;
3369
+ max: z.ZodOptional<z.ZodNumber>;
3370
+ distinct: z.ZodOptional<z.ZodBoolean>;
3371
+ }, z.core.$strict>], "mode">>;
3372
+ type: z.ZodLiteral<"resourceMap">;
3373
+ resources: z.ZodArray<z.ZodObject<{
3374
+ resourceId: z.ZodString;
3375
+ label: z.ZodOptional<z.ZodString>;
3376
+ icon: z.ZodOptional<z.ZodString>;
3377
+ min: z.ZodNumber;
3378
+ max: z.ZodNumber;
3379
+ }, z.core.$strict>>;
3761
3380
  }, z.core.$strict>, z.ZodObject<{
3762
- status: z.ZodLiteral<"blocked">;
3763
- reason: z.ZodString;
3764
- code: z.ZodOptional<z.ZodString>;
3765
- }, z.core.$strict>], "status">;
3766
- reasons: z.ZodOptional<z.ZodArray<z.ZodObject<{
3767
- ruleId: z.ZodString;
3768
- errorCode: z.ZodString;
3769
- }, z.core.$strict>>>;
3770
- kind: z.ZodLiteral<"action">;
3771
- }, z.core.$strict>>;
3772
- zones: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
3773
- tiles: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
3774
- disclosure: z.ZodLiteral<"visible">;
3775
- ref: z.core.$ZodBranded<z.ZodString, "SeatTileRef", "out">;
3776
- tileTypeId: z.ZodString;
3777
- name: z.ZodString;
3778
- frontImage: z.ZodOptional<z.ZodString>;
3779
- ownerId: z.ZodNullable<z.ZodString>;
3780
- fields: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
3781
- properties: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
3381
+ selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3382
+ mode: z.ZodLiteral<"single">;
3383
+ }, z.core.$strict>, z.ZodObject<{
3384
+ mode: z.ZodLiteral<"many">;
3385
+ min: z.ZodNumber;
3386
+ max: z.ZodOptional<z.ZodNumber>;
3387
+ distinct: z.ZodOptional<z.ZodBoolean>;
3388
+ }, z.core.$strict>], "mode">>;
3389
+ type: z.ZodLiteral<"boundedNumber">;
3390
+ min: z.ZodNumber;
3391
+ max: z.ZodNumber;
3392
+ step: z.ZodOptional<z.ZodNumber>;
3782
3393
  }, z.core.$strict>, z.ZodObject<{
3783
- disclosure: z.ZodLiteral<"concealed">;
3784
- ref: z.core.$ZodBranded<z.ZodString, "SeatTileRef", "out">;
3785
- appearance: z.ZodDiscriminatedUnion<[z.ZodObject<{
3786
- layout: z.ZodLiteral<"hex">;
3787
- cells: z.ZodArray<z.ZodObject<{
3788
- q: z.ZodInt;
3789
- r: z.ZodInt;
3790
- }, z.core.$strict>>;
3791
- backImage: z.ZodOptional<z.ZodString>;
3394
+ selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3395
+ mode: z.ZodLiteral<"single">;
3792
3396
  }, z.core.$strict>, z.ZodObject<{
3793
- layout: z.ZodLiteral<"square">;
3794
- cells: z.ZodArray<z.ZodObject<{
3795
- col: z.ZodInt;
3796
- row: z.ZodInt;
3797
- }, z.core.$strict>>;
3798
- backImage: z.ZodOptional<z.ZodString>;
3799
- }, z.core.$strict>], "layout">;
3800
- }, z.core.$strict>], "disclosure">>;
3801
- cardIds: z.ZodArray<z.ZodString>;
3802
- cardViewsById: z.ZodRecord<z.ZodString, z.ZodObject<{
3803
- id: z.ZodString;
3804
- cardType: z.ZodString;
3805
- name: z.ZodOptional<z.ZodString>;
3806
- text: z.ZodOptional<z.ZodString>;
3807
- frontImage: z.ZodOptional<z.ZodString>;
3808
- backImage: z.ZodOptional<z.ZodString>;
3809
- properties: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
3810
- }, z.core.$strict>>;
3811
- cardBacksById: z.ZodRecord<z.ZodString, z.ZodString>;
3812
- playableByCardId: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
3813
- phaseName: z.ZodString;
3814
- interactionKey: z.ZodString;
3815
- interactionId: z.ZodString;
3816
- label: z.ZodString;
3817
- help: z.ZodOptional<z.ZodString>;
3818
- zoneId: z.ZodOptional<z.ZodString>;
3819
- zoneIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
3820
- commit: z.ZodDiscriminatedUnion<[z.ZodObject<{
3821
- mode: z.ZodLiteral<"manual">;
3397
+ mode: z.ZodLiteral<"many">;
3398
+ min: z.ZodNumber;
3399
+ max: z.ZodOptional<z.ZodNumber>;
3400
+ distinct: z.ZodOptional<z.ZodBoolean>;
3401
+ }, z.core.$strict>], "mode">>;
3402
+ type: z.ZodLiteral<"choice">;
3403
+ choices: z.ZodArray<z.ZodObject<{
3404
+ value: z.ZodNullable<z.ZodString>;
3405
+ label: z.ZodString;
3406
+ icon: z.ZodOptional<z.ZodString>;
3407
+ badge: z.ZodOptional<z.ZodString>;
3408
+ description: z.ZodOptional<z.ZodString>;
3409
+ disabled: z.ZodOptional<z.ZodBoolean>;
3410
+ disabledReason: z.ZodOptional<z.ZodString>;
3411
+ }, z.core.$strict>>;
3412
+ }, z.core.$strict>, z.ZodObject<{
3413
+ selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3414
+ mode: z.ZodLiteral<"single">;
3822
3415
  }, z.core.$strict>, z.ZodObject<{
3823
- mode: z.ZodLiteral<"autoWhenReady">;
3824
- }, z.core.$strict>], "mode">;
3825
- descriptorDigest: z.ZodOptional<z.ZodString>;
3826
- actorSeat: z.ZodOptional<z.ZodNumber>;
3827
- draftDigest: z.ZodOptional<z.ZodString>;
3828
- inputs: z.ZodArray<z.ZodObject<{
3829
- key: z.ZodString;
3830
- kind: z.ZodEnum<{
3831
- card: "card";
3832
- tile: "tile";
3833
- "board-edge": "board-edge";
3834
- "board-vertex": "board-vertex";
3835
- "board-space": "board-space";
3836
- form: "form";
3837
- position: "position";
3838
- rng: "rng";
3839
- }>;
3840
- domain: z.ZodDiscriminatedUnion<[z.ZodObject<{
3841
- selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3842
- mode: z.ZodLiteral<"single">;
3843
- }, z.core.$strict>, z.ZodObject<{
3844
- mode: z.ZodLiteral<"many">;
3845
- min: z.ZodNumber;
3846
- max: z.ZodOptional<z.ZodNumber>;
3847
- distinct: z.ZodOptional<z.ZodBoolean>;
3848
- }, z.core.$strict>], "mode">>;
3849
- type: z.ZodLiteral<"cardTarget">;
3850
- projection: z.ZodLiteral<"resolved">;
3851
- targetKind: z.ZodLiteral<"card">;
3852
- zoneIds: z.ZodArray<z.ZodString>;
3853
- eligibleTargets: z.ZodArray<z.ZodString>;
3854
- }, z.core.$strict>, z.ZodObject<{
3855
- selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3856
- mode: z.ZodLiteral<"single">;
3857
- }, z.core.$strict>, z.ZodObject<{
3858
- mode: z.ZodLiteral<"many">;
3859
- min: z.ZodNumber;
3860
- max: z.ZodOptional<z.ZodNumber>;
3861
- distinct: z.ZodOptional<z.ZodBoolean>;
3862
- }, z.core.$strict>], "mode">>;
3863
- type: z.ZodLiteral<"tileTarget">;
3864
- projection: z.ZodLiteral<"resolved">;
3865
- targetKind: z.ZodLiteral<"tile">;
3866
- zoneIds: z.ZodArray<z.ZodString>;
3867
- boardIds: z.ZodArray<z.ZodString>;
3868
- eligibleTargets: z.ZodArray<z.core.$ZodBranded<z.ZodString, "SeatTileRef", "out">>;
3869
- }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
3870
- selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3871
- mode: z.ZodLiteral<"single">;
3872
- }, z.core.$strict>, z.ZodObject<{
3873
- mode: z.ZodLiteral<"many">;
3874
- min: z.ZodNumber;
3875
- max: z.ZodOptional<z.ZodNumber>;
3876
- distinct: z.ZodOptional<z.ZodBoolean>;
3877
- }, z.core.$strict>], "mode">>;
3878
- type: z.ZodLiteral<"boardTarget">;
3879
- projection: z.ZodLiteral<"resolved">;
3880
- targetKind: z.ZodEnum<{
3881
- edge: "edge";
3882
- vertex: "vertex";
3883
- space: "space";
3884
- }>;
3885
- boardId: z.ZodString;
3886
- valueKind: z.ZodLiteral<"board-id">;
3887
- eligibleTargets: z.ZodArray<z.ZodString>;
3888
- }, z.core.$strict>, z.ZodObject<{
3889
- selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3890
- mode: z.ZodLiteral<"single">;
3891
- }, z.core.$strict>, z.ZodObject<{
3892
- mode: z.ZodLiteral<"many">;
3893
- min: z.ZodNumber;
3894
- max: z.ZodOptional<z.ZodNumber>;
3895
- distinct: z.ZodOptional<z.ZodBoolean>;
3896
- }, z.core.$strict>], "mode">>;
3897
- type: z.ZodLiteral<"boardTarget">;
3898
- projection: z.ZodLiteral<"resolved">;
3899
- targetKind: z.ZodLiteral<"space">;
3900
- boardBaseId: z.ZodString;
3901
- valueKind: z.ZodLiteral<"board-space">;
3902
- eligibleTargets: z.ZodArray<z.ZodObject<{
3903
- boardId: z.ZodString;
3904
- spaceId: z.ZodString;
3905
- }, z.core.$strict>>;
3906
- }, z.core.$strict>], "valueKind">, z.ZodObject<{
3907
- selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3908
- mode: z.ZodLiteral<"single">;
3909
- }, z.core.$strict>, z.ZodObject<{
3910
- mode: z.ZodLiteral<"many">;
3911
- min: z.ZodNumber;
3912
- max: z.ZodOptional<z.ZodNumber>;
3913
- distinct: z.ZodOptional<z.ZodBoolean>;
3914
- }, z.core.$strict>], "mode">>;
3915
- type: z.ZodLiteral<"zonePosition">;
3916
- zones: z.ZodArray<z.ZodObject<{
3917
- zoneId: z.ZodString;
3918
- hostId: z.ZodString;
3919
- size: z.ZodNumber;
3920
- }, z.core.$strict>>;
3921
- }, z.core.$strict>, z.ZodObject<{
3922
- selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3923
- mode: z.ZodLiteral<"single">;
3924
- }, z.core.$strict>, z.ZodObject<{
3925
- mode: z.ZodLiteral<"many">;
3926
- min: z.ZodNumber;
3927
- max: z.ZodOptional<z.ZodNumber>;
3928
- distinct: z.ZodOptional<z.ZodBoolean>;
3929
- }, z.core.$strict>], "mode">>;
3930
- type: z.ZodLiteral<"resourceMap">;
3931
- resources: z.ZodArray<z.ZodObject<{
3932
- resourceId: z.ZodString;
3933
- label: z.ZodOptional<z.ZodString>;
3934
- icon: z.ZodOptional<z.ZodString>;
3935
- min: z.ZodNumber;
3936
- max: z.ZodNumber;
3937
- }, z.core.$strict>>;
3938
- }, z.core.$strict>, z.ZodObject<{
3939
- selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3940
- mode: z.ZodLiteral<"single">;
3941
- }, z.core.$strict>, z.ZodObject<{
3942
- mode: z.ZodLiteral<"many">;
3943
- min: z.ZodNumber;
3944
- max: z.ZodOptional<z.ZodNumber>;
3945
- distinct: z.ZodOptional<z.ZodBoolean>;
3946
- }, z.core.$strict>], "mode">>;
3947
- type: z.ZodLiteral<"boundedNumber">;
3948
- min: z.ZodNumber;
3949
- max: z.ZodNumber;
3950
- step: z.ZodOptional<z.ZodNumber>;
3951
- }, z.core.$strict>, z.ZodObject<{
3952
- selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3953
- mode: z.ZodLiteral<"single">;
3954
- }, z.core.$strict>, z.ZodObject<{
3955
- mode: z.ZodLiteral<"many">;
3956
- min: z.ZodNumber;
3957
- max: z.ZodOptional<z.ZodNumber>;
3958
- distinct: z.ZodOptional<z.ZodBoolean>;
3959
- }, z.core.$strict>], "mode">>;
3960
- type: z.ZodLiteral<"choice">;
3961
- choices: z.ZodArray<z.ZodObject<{
3962
- value: z.ZodNullable<z.ZodString>;
3963
- label: z.ZodString;
3964
- icon: z.ZodOptional<z.ZodString>;
3965
- badge: z.ZodOptional<z.ZodString>;
3966
- description: z.ZodOptional<z.ZodString>;
3967
- disabled: z.ZodOptional<z.ZodBoolean>;
3968
- disabledReason: z.ZodOptional<z.ZodString>;
3969
- }, z.core.$strict>>;
3970
- }, z.core.$strict>, z.ZodObject<{
3971
- selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3972
- mode: z.ZodLiteral<"single">;
3973
- }, z.core.$strict>, z.ZodObject<{
3974
- mode: z.ZodLiteral<"many">;
3975
- min: z.ZodNumber;
3976
- max: z.ZodOptional<z.ZodNumber>;
3977
- distinct: z.ZodOptional<z.ZodBoolean>;
3978
- }, z.core.$strict>], "mode">>;
3979
- type: z.ZodLiteral<"choiceList">;
3980
- choices: z.ZodArray<z.ZodObject<{
3981
- label: z.ZodString;
3982
- icon: z.ZodOptional<z.ZodString>;
3983
- badge: z.ZodOptional<z.ZodString>;
3984
- description: z.ZodOptional<z.ZodString>;
3985
- disabled: z.ZodOptional<z.ZodBoolean>;
3986
- disabledReason: z.ZodOptional<z.ZodString>;
3987
- value: z.ZodString;
3988
- }, z.core.$strict>>;
3989
- min: z.ZodOptional<z.ZodNumber>;
3990
- max: z.ZodOptional<z.ZodNumber>;
3991
- }, z.core.$strict>], "type">;
3992
- defaultValue: z.ZodOptional<z.ZodJSONSchema>;
3993
- }, z.core.$strict>>;
3994
- step: z.ZodOptional<z.ZodObject<{
3995
- index: z.ZodNumber;
3996
- total: z.ZodNumber;
3997
- selected: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
3998
- canCancel: z.ZodBoolean;
3416
+ mode: z.ZodLiteral<"many">;
3417
+ min: z.ZodNumber;
3418
+ max: z.ZodOptional<z.ZodNumber>;
3419
+ distinct: z.ZodOptional<z.ZodBoolean>;
3420
+ }, z.core.$strict>], "mode">>;
3421
+ type: z.ZodLiteral<"choiceList">;
3422
+ choices: z.ZodArray<z.ZodObject<{
3423
+ label: z.ZodString;
3424
+ icon: z.ZodOptional<z.ZodString>;
3425
+ badge: z.ZodOptional<z.ZodString>;
3426
+ description: z.ZodOptional<z.ZodString>;
3427
+ disabled: z.ZodOptional<z.ZodBoolean>;
3428
+ disabledReason: z.ZodOptional<z.ZodString>;
3429
+ value: z.ZodString;
3999
3430
  }, z.core.$strict>>;
4000
- availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
4001
- status: z.ZodLiteral<"available">;
4002
- }, z.core.$strict>, z.ZodObject<{
4003
- status: z.ZodLiteral<"notYourTurn">;
4004
- reason: z.ZodString;
4005
- }, z.core.$strict>, z.ZodObject<{
4006
- status: z.ZodLiteral<"blocked">;
4007
- reason: z.ZodString;
4008
- code: z.ZodOptional<z.ZodString>;
4009
- }, z.core.$strict>], "status">;
4010
- reasons: z.ZodOptional<z.ZodArray<z.ZodObject<{
4011
- ruleId: z.ZodString;
4012
- errorCode: z.ZodString;
4013
- }, z.core.$strict>>>;
4014
- kind: z.ZodLiteral<"action">;
4015
- }, z.core.$strict>>>;
4016
- shuffled: z.ZodOptional<z.ZodLiteral<true>>;
3431
+ min: z.ZodOptional<z.ZodNumber>;
3432
+ max: z.ZodOptional<z.ZodNumber>;
3433
+ }, z.core.$strict>], "type">;
3434
+ defaultValue: z.ZodOptional<z.ZodJSONSchema>;
3435
+ }, z.core.$strict>>;
3436
+ step: z.ZodOptional<z.ZodObject<{
3437
+ index: z.ZodNumber;
3438
+ total: z.ZodNumber;
3439
+ selected: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
3440
+ canCancel: z.ZodBoolean;
3441
+ }, z.core.$strict>>;
3442
+ availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
3443
+ status: z.ZodLiteral<"available">;
3444
+ }, z.core.$strict>, z.ZodObject<{
3445
+ status: z.ZodLiteral<"notYourTurn">;
3446
+ reason: z.ZodString;
3447
+ }, z.core.$strict>, z.ZodObject<{
3448
+ status: z.ZodLiteral<"blocked">;
3449
+ reason: z.ZodString;
3450
+ code: z.ZodOptional<z.ZodString>;
3451
+ }, z.core.$strict>], "status">;
3452
+ reasons: z.ZodOptional<z.ZodArray<z.ZodObject<{
3453
+ ruleId: z.ZodString;
3454
+ errorCode: z.ZodString;
4017
3455
  }, z.core.$strict>>>;
4018
- basis: z.ZodObject<{
4019
- sessionId: z.ZodString;
4020
- version: z.ZodNumber;
4021
- actionSetVersion: z.ZodString;
4022
- perspectivePlayerId: z.ZodString;
4023
- }, z.core.$strict>;
4024
- }, z.core.$strict>;
4025
- acknowledgedClientActionId: z.ZodOptional<z.ZodString>;
4026
- }, z.core.$strict>, z.ZodObject<{
4027
- type: z.ZodLiteral<"interaction.result">;
4028
- clientActionId: z.ZodString;
4029
- accepted: z.ZodLiteral<false>;
4030
- errorCode: z.ZodString;
4031
- message: z.ZodOptional<z.ZodString>;
4032
- }, z.core.$strict>], "type">;
4033
- declare const PluginToHostPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4034
- type: z.ZodLiteral<"runtime.ready">;
4035
- }, z.core.$strict>, z.ZodObject<{
4036
- type: z.ZodLiteral<"runtime.resume">;
4037
- pendingClientActionId: z.ZodOptional<z.ZodString>;
4038
- }, z.core.$strict>, z.ZodObject<{
4039
- type: z.ZodLiteral<"runtime.ack">;
4040
- sequence: z.ZodNumber;
4041
- clientReceivedAtMs: z.ZodOptional<z.ZodNumber>;
4042
- clientRenderedAtMs: z.ZodOptional<z.ZodNumber>;
4043
- }, z.core.$strict>, z.ZodObject<{
3456
+ kind: z.ZodLiteral<"action">;
3457
+ }, z.core.$strict>>;
3458
+ availableInteractionRefs: z.ZodArray<z.ZodString>;
3459
+ zones: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
3460
+ tiles: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
3461
+ disclosure: z.ZodLiteral<"visible">;
3462
+ ref: z.core.$ZodBranded<z.ZodString, "SeatTileRef", "out">;
3463
+ tileTypeId: z.ZodString;
3464
+ name: z.ZodString;
3465
+ frontImage: z.ZodOptional<z.ZodString>;
3466
+ ownerId: z.ZodNullable<z.ZodString>;
3467
+ fields: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
3468
+ properties: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
3469
+ }, z.core.$strict>, z.ZodObject<{
3470
+ disclosure: z.ZodLiteral<"concealed">;
3471
+ ref: z.core.$ZodBranded<z.ZodString, "SeatTileRef", "out">;
3472
+ appearance: z.ZodDiscriminatedUnion<[z.ZodObject<{
3473
+ layout: z.ZodLiteral<"hex">;
3474
+ cells: z.ZodArray<z.ZodObject<{
3475
+ q: z.ZodInt;
3476
+ r: z.ZodInt;
3477
+ }, z.core.$strict>>;
3478
+ backImage: z.ZodOptional<z.ZodString>;
3479
+ }, z.core.$strict>, z.ZodObject<{
3480
+ layout: z.ZodLiteral<"square">;
3481
+ cells: z.ZodArray<z.ZodObject<{
3482
+ col: z.ZodInt;
3483
+ row: z.ZodInt;
3484
+ }, z.core.$strict>>;
3485
+ backImage: z.ZodOptional<z.ZodString>;
3486
+ }, z.core.$strict>], "layout">;
3487
+ }, z.core.$strict>], "disclosure">>;
3488
+ cardIds: z.ZodArray<z.ZodString>;
3489
+ cardViewsById: z.ZodRecord<z.ZodString, z.ZodObject<{
3490
+ id: z.ZodString;
3491
+ cardType: z.ZodString;
3492
+ name: z.ZodOptional<z.ZodString>;
3493
+ text: z.ZodOptional<z.ZodString>;
3494
+ frontImage: z.ZodOptional<z.ZodString>;
3495
+ backImage: z.ZodOptional<z.ZodString>;
3496
+ properties: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
3497
+ }, z.core.$strict>>;
3498
+ cardBacksById: z.ZodRecord<z.ZodString, z.ZodString>;
3499
+ playableByCardId: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
3500
+ shuffled: z.ZodOptional<z.ZodLiteral<true>>;
3501
+ }, z.core.$strict>>>;
3502
+ }, z.core.$strict>;
3503
+ /** Only rejections are standalone wire results; success accompanies a frame. */
3504
+ declare const InteractionResultSchema: z.ZodObject<{
3505
+ type: z.ZodLiteral<"interaction.result">;
3506
+ clientActionId: z.ZodString;
3507
+ accepted: z.ZodLiteral<false>;
3508
+ errorCode: z.ZodString;
3509
+ message: z.ZodOptional<z.ZodString>;
3510
+ }, z.core.$strict>;
3511
+ declare const SubmitInteractionCommandSchema: z.ZodObject<{
4044
3512
  type: z.ZodLiteral<"interaction.submit">;
4045
3513
  clientActionId: z.ZodString;
4046
3514
  basis: z.ZodObject<{
@@ -4051,7 +3519,8 @@ declare const PluginToHostPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4051
3519
  }, z.core.$strict>;
4052
3520
  interactionId: z.ZodString;
4053
3521
  params: z.ZodJSONSchema;
4054
- }, z.core.$strict>, z.ZodObject<{
3522
+ }, z.core.$strict>;
3523
+ declare const CancelInteractionCommandSchema: z.ZodObject<{
4055
3524
  interactionId: z.ZodString;
4056
3525
  basis: z.ZodObject<{
4057
3526
  sessionId: z.ZodString;
@@ -4061,13 +3530,1592 @@ declare const PluginToHostPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4061
3530
  }, z.core.$strict>;
4062
3531
  clientActionId: z.ZodString;
4063
3532
  type: z.ZodLiteral<"interaction.cancel">;
3533
+ }, z.core.$strict>;
3534
+ declare const HostToPluginPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3535
+ type: z.ZodLiteral<"runtime.init">;
3536
+ session: z.ZodObject<{
3537
+ sessionId: z.ZodString;
3538
+ players: z.ZodArray<z.ZodObject<{
3539
+ playerId: z.ZodString;
3540
+ displayName: z.ZodString;
3541
+ color: z.ZodOptional<z.ZodString>;
3542
+ }, z.core.$strict>>;
3543
+ assets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodInstanceOf<Blob>>>;
3544
+ }, z.core.$strict>;
4064
3545
  }, z.core.$strict>, z.ZodObject<{
4065
- type: z.ZodLiteral<"runtime.error">;
4066
- message: z.ZodString;
4067
- code: z.ZodOptional<z.ZodString>;
4068
- }, z.core.$strict>], "type">;
4069
- declare function createPluginProtocolEnvelopeSchema<Payload>(payloadSchema: z.ZodType<Payload>): z.ZodType<PluginProtocolEnvelope<Payload>>;
4070
- declare const HostToPluginEnvelopeSchema: z.ZodType<PluginProtocolEnvelope<{
3546
+ type: z.ZodLiteral<"gameplay.frame">;
3547
+ frame: z.ZodObject<{
3548
+ players: z.ZodArray<z.ZodString>;
3549
+ causedBy: z.ZodOptional<z.ZodString>;
3550
+ events: z.ZodArray<z.ZodObject<{
3551
+ kind: z.ZodLiteral<"systemAction">;
3552
+ procedureId: z.ZodString;
3553
+ title: z.ZodString;
3554
+ summary: z.ZodOptional<z.ZodString>;
3555
+ details: z.ZodOptional<z.ZodArray<z.ZodObject<{
3556
+ label: z.ZodString;
3557
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
3558
+ kind: z.ZodLiteral<"tile">;
3559
+ ref: z.core.$ZodBranded<z.ZodString, "SeatTileRef", "out">;
3560
+ }, z.core.$strict>]>;
3561
+ }, z.core.$strict>>>;
3562
+ }, z.core.$strict>>;
3563
+ view: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
3564
+ flow: z.ZodObject<{
3565
+ currentPhase: z.ZodNullable<z.ZodString>;
3566
+ activePlayers: z.ZodArray<z.ZodString>;
3567
+ simultaneousPhase: z.ZodNullable<z.ZodObject<{
3568
+ phaseName: z.ZodString;
3569
+ interactionId: z.ZodString;
3570
+ actorIds: z.ZodArray<z.ZodString>;
3571
+ sealedPlayerIds: z.ZodArray<z.ZodString>;
3572
+ pendingPlayerIds: z.ZodArray<z.ZodString>;
3573
+ }, z.core.$strict>>;
3574
+ }, z.core.$strict>;
3575
+ availableInteractions: z.ZodArray<z.ZodObject<{
3576
+ phaseName: z.ZodString;
3577
+ interactionKey: z.ZodString;
3578
+ interactionId: z.ZodString;
3579
+ label: z.ZodString;
3580
+ help: z.ZodOptional<z.ZodString>;
3581
+ zoneId: z.ZodOptional<z.ZodString>;
3582
+ zoneIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
3583
+ commit: z.ZodDiscriminatedUnion<[z.ZodObject<{
3584
+ mode: z.ZodLiteral<"manual">;
3585
+ }, z.core.$strict>, z.ZodObject<{
3586
+ mode: z.ZodLiteral<"autoWhenReady">;
3587
+ }, z.core.$strict>], "mode">;
3588
+ descriptorDigest: z.ZodOptional<z.ZodString>;
3589
+ actorSeat: z.ZodOptional<z.ZodNumber>;
3590
+ draftDigest: z.ZodOptional<z.ZodString>;
3591
+ inputs: z.ZodArray<z.ZodObject<{
3592
+ key: z.ZodString;
3593
+ kind: z.ZodEnum<{
3594
+ card: "card";
3595
+ tile: "tile";
3596
+ "board-edge": "board-edge";
3597
+ "board-vertex": "board-vertex";
3598
+ "board-space": "board-space";
3599
+ form: "form";
3600
+ position: "position";
3601
+ rng: "rng";
3602
+ }>;
3603
+ domain: z.ZodDiscriminatedUnion<[z.ZodObject<{
3604
+ selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3605
+ mode: z.ZodLiteral<"single">;
3606
+ }, z.core.$strict>, z.ZodObject<{
3607
+ mode: z.ZodLiteral<"many">;
3608
+ min: z.ZodNumber;
3609
+ max: z.ZodOptional<z.ZodNumber>;
3610
+ distinct: z.ZodOptional<z.ZodBoolean>;
3611
+ }, z.core.$strict>], "mode">>;
3612
+ type: z.ZodLiteral<"cardTarget">;
3613
+ projection: z.ZodLiteral<"resolved">;
3614
+ targetKind: z.ZodLiteral<"card">;
3615
+ zoneIds: z.ZodArray<z.ZodString>;
3616
+ eligibleTargets: z.ZodArray<z.ZodString>;
3617
+ }, z.core.$strict>, z.ZodObject<{
3618
+ selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3619
+ mode: z.ZodLiteral<"single">;
3620
+ }, z.core.$strict>, z.ZodObject<{
3621
+ mode: z.ZodLiteral<"many">;
3622
+ min: z.ZodNumber;
3623
+ max: z.ZodOptional<z.ZodNumber>;
3624
+ distinct: z.ZodOptional<z.ZodBoolean>;
3625
+ }, z.core.$strict>], "mode">>;
3626
+ type: z.ZodLiteral<"tileTarget">;
3627
+ projection: z.ZodLiteral<"resolved">;
3628
+ targetKind: z.ZodLiteral<"tile">;
3629
+ zoneIds: z.ZodArray<z.ZodString>;
3630
+ boardIds: z.ZodArray<z.ZodString>;
3631
+ eligibleTargets: z.ZodArray<z.core.$ZodBranded<z.ZodString, "SeatTileRef", "out">>;
3632
+ }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
3633
+ selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3634
+ mode: z.ZodLiteral<"single">;
3635
+ }, z.core.$strict>, z.ZodObject<{
3636
+ mode: z.ZodLiteral<"many">;
3637
+ min: z.ZodNumber;
3638
+ max: z.ZodOptional<z.ZodNumber>;
3639
+ distinct: z.ZodOptional<z.ZodBoolean>;
3640
+ }, z.core.$strict>], "mode">>;
3641
+ type: z.ZodLiteral<"boardTarget">;
3642
+ projection: z.ZodLiteral<"resolved">;
3643
+ targetKind: z.ZodEnum<{
3644
+ edge: "edge";
3645
+ vertex: "vertex";
3646
+ space: "space";
3647
+ }>;
3648
+ boardId: z.ZodString;
3649
+ valueKind: z.ZodLiteral<"board-id">;
3650
+ eligibleTargets: z.ZodArray<z.ZodString>;
3651
+ }, z.core.$strict>, z.ZodObject<{
3652
+ selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3653
+ mode: z.ZodLiteral<"single">;
3654
+ }, z.core.$strict>, z.ZodObject<{
3655
+ mode: z.ZodLiteral<"many">;
3656
+ min: z.ZodNumber;
3657
+ max: z.ZodOptional<z.ZodNumber>;
3658
+ distinct: z.ZodOptional<z.ZodBoolean>;
3659
+ }, z.core.$strict>], "mode">>;
3660
+ type: z.ZodLiteral<"boardTarget">;
3661
+ projection: z.ZodLiteral<"resolved">;
3662
+ targetKind: z.ZodLiteral<"space">;
3663
+ boardBaseId: z.ZodString;
3664
+ valueKind: z.ZodLiteral<"board-space">;
3665
+ eligibleTargets: z.ZodArray<z.ZodObject<{
3666
+ boardId: z.ZodString;
3667
+ spaceId: z.ZodString;
3668
+ }, z.core.$strict>>;
3669
+ }, z.core.$strict>], "valueKind">, z.ZodObject<{
3670
+ selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3671
+ mode: z.ZodLiteral<"single">;
3672
+ }, z.core.$strict>, z.ZodObject<{
3673
+ mode: z.ZodLiteral<"many">;
3674
+ min: z.ZodNumber;
3675
+ max: z.ZodOptional<z.ZodNumber>;
3676
+ distinct: z.ZodOptional<z.ZodBoolean>;
3677
+ }, z.core.$strict>], "mode">>;
3678
+ type: z.ZodLiteral<"zonePosition">;
3679
+ zones: z.ZodArray<z.ZodObject<{
3680
+ zoneId: z.ZodString;
3681
+ hostId: z.ZodString;
3682
+ size: z.ZodNumber;
3683
+ }, z.core.$strict>>;
3684
+ }, z.core.$strict>, z.ZodObject<{
3685
+ selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3686
+ mode: z.ZodLiteral<"single">;
3687
+ }, z.core.$strict>, z.ZodObject<{
3688
+ mode: z.ZodLiteral<"many">;
3689
+ min: z.ZodNumber;
3690
+ max: z.ZodOptional<z.ZodNumber>;
3691
+ distinct: z.ZodOptional<z.ZodBoolean>;
3692
+ }, z.core.$strict>], "mode">>;
3693
+ type: z.ZodLiteral<"resourceMap">;
3694
+ resources: z.ZodArray<z.ZodObject<{
3695
+ resourceId: z.ZodString;
3696
+ label: z.ZodOptional<z.ZodString>;
3697
+ icon: z.ZodOptional<z.ZodString>;
3698
+ min: z.ZodNumber;
3699
+ max: z.ZodNumber;
3700
+ }, z.core.$strict>>;
3701
+ }, z.core.$strict>, z.ZodObject<{
3702
+ selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3703
+ mode: z.ZodLiteral<"single">;
3704
+ }, z.core.$strict>, z.ZodObject<{
3705
+ mode: z.ZodLiteral<"many">;
3706
+ min: z.ZodNumber;
3707
+ max: z.ZodOptional<z.ZodNumber>;
3708
+ distinct: z.ZodOptional<z.ZodBoolean>;
3709
+ }, z.core.$strict>], "mode">>;
3710
+ type: z.ZodLiteral<"boundedNumber">;
3711
+ min: z.ZodNumber;
3712
+ max: z.ZodNumber;
3713
+ step: z.ZodOptional<z.ZodNumber>;
3714
+ }, z.core.$strict>, z.ZodObject<{
3715
+ selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3716
+ mode: z.ZodLiteral<"single">;
3717
+ }, z.core.$strict>, z.ZodObject<{
3718
+ mode: z.ZodLiteral<"many">;
3719
+ min: z.ZodNumber;
3720
+ max: z.ZodOptional<z.ZodNumber>;
3721
+ distinct: z.ZodOptional<z.ZodBoolean>;
3722
+ }, z.core.$strict>], "mode">>;
3723
+ type: z.ZodLiteral<"choice">;
3724
+ choices: z.ZodArray<z.ZodObject<{
3725
+ value: z.ZodNullable<z.ZodString>;
3726
+ label: z.ZodString;
3727
+ icon: z.ZodOptional<z.ZodString>;
3728
+ badge: z.ZodOptional<z.ZodString>;
3729
+ description: z.ZodOptional<z.ZodString>;
3730
+ disabled: z.ZodOptional<z.ZodBoolean>;
3731
+ disabledReason: z.ZodOptional<z.ZodString>;
3732
+ }, z.core.$strict>>;
3733
+ }, z.core.$strict>, z.ZodObject<{
3734
+ selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3735
+ mode: z.ZodLiteral<"single">;
3736
+ }, z.core.$strict>, z.ZodObject<{
3737
+ mode: z.ZodLiteral<"many">;
3738
+ min: z.ZodNumber;
3739
+ max: z.ZodOptional<z.ZodNumber>;
3740
+ distinct: z.ZodOptional<z.ZodBoolean>;
3741
+ }, z.core.$strict>], "mode">>;
3742
+ type: z.ZodLiteral<"choiceList">;
3743
+ choices: z.ZodArray<z.ZodObject<{
3744
+ label: z.ZodString;
3745
+ icon: z.ZodOptional<z.ZodString>;
3746
+ badge: z.ZodOptional<z.ZodString>;
3747
+ description: z.ZodOptional<z.ZodString>;
3748
+ disabled: z.ZodOptional<z.ZodBoolean>;
3749
+ disabledReason: z.ZodOptional<z.ZodString>;
3750
+ value: z.ZodString;
3751
+ }, z.core.$strict>>;
3752
+ min: z.ZodOptional<z.ZodNumber>;
3753
+ max: z.ZodOptional<z.ZodNumber>;
3754
+ }, z.core.$strict>], "type">;
3755
+ defaultValue: z.ZodOptional<z.ZodJSONSchema>;
3756
+ }, z.core.$strict>>;
3757
+ step: z.ZodOptional<z.ZodObject<{
3758
+ index: z.ZodNumber;
3759
+ total: z.ZodNumber;
3760
+ selected: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
3761
+ canCancel: z.ZodBoolean;
3762
+ }, z.core.$strict>>;
3763
+ availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
3764
+ status: z.ZodLiteral<"available">;
3765
+ }, z.core.$strict>, z.ZodObject<{
3766
+ status: z.ZodLiteral<"notYourTurn">;
3767
+ reason: z.ZodString;
3768
+ }, z.core.$strict>, z.ZodObject<{
3769
+ status: z.ZodLiteral<"blocked">;
3770
+ reason: z.ZodString;
3771
+ code: z.ZodOptional<z.ZodString>;
3772
+ }, z.core.$strict>], "status">;
3773
+ reasons: z.ZodOptional<z.ZodArray<z.ZodObject<{
3774
+ ruleId: z.ZodString;
3775
+ errorCode: z.ZodString;
3776
+ }, z.core.$strict>>>;
3777
+ kind: z.ZodLiteral<"action">;
3778
+ }, z.core.$strict>>;
3779
+ zones: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
3780
+ tiles: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
3781
+ disclosure: z.ZodLiteral<"visible">;
3782
+ ref: z.core.$ZodBranded<z.ZodString, "SeatTileRef", "out">;
3783
+ tileTypeId: z.ZodString;
3784
+ name: z.ZodString;
3785
+ frontImage: z.ZodOptional<z.ZodString>;
3786
+ ownerId: z.ZodNullable<z.ZodString>;
3787
+ fields: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
3788
+ properties: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
3789
+ }, z.core.$strict>, z.ZodObject<{
3790
+ disclosure: z.ZodLiteral<"concealed">;
3791
+ ref: z.core.$ZodBranded<z.ZodString, "SeatTileRef", "out">;
3792
+ appearance: z.ZodDiscriminatedUnion<[z.ZodObject<{
3793
+ layout: z.ZodLiteral<"hex">;
3794
+ cells: z.ZodArray<z.ZodObject<{
3795
+ q: z.ZodInt;
3796
+ r: z.ZodInt;
3797
+ }, z.core.$strict>>;
3798
+ backImage: z.ZodOptional<z.ZodString>;
3799
+ }, z.core.$strict>, z.ZodObject<{
3800
+ layout: z.ZodLiteral<"square">;
3801
+ cells: z.ZodArray<z.ZodObject<{
3802
+ col: z.ZodInt;
3803
+ row: z.ZodInt;
3804
+ }, z.core.$strict>>;
3805
+ backImage: z.ZodOptional<z.ZodString>;
3806
+ }, z.core.$strict>], "layout">;
3807
+ }, z.core.$strict>], "disclosure">>;
3808
+ cardIds: z.ZodArray<z.ZodString>;
3809
+ cardViewsById: z.ZodRecord<z.ZodString, z.ZodObject<{
3810
+ id: z.ZodString;
3811
+ cardType: z.ZodString;
3812
+ name: z.ZodOptional<z.ZodString>;
3813
+ text: z.ZodOptional<z.ZodString>;
3814
+ frontImage: z.ZodOptional<z.ZodString>;
3815
+ backImage: z.ZodOptional<z.ZodString>;
3816
+ properties: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
3817
+ }, z.core.$strict>>;
3818
+ cardBacksById: z.ZodRecord<z.ZodString, z.ZodString>;
3819
+ playableByCardId: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
3820
+ phaseName: z.ZodString;
3821
+ interactionKey: z.ZodString;
3822
+ interactionId: z.ZodString;
3823
+ label: z.ZodString;
3824
+ help: z.ZodOptional<z.ZodString>;
3825
+ zoneId: z.ZodOptional<z.ZodString>;
3826
+ zoneIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
3827
+ commit: z.ZodDiscriminatedUnion<[z.ZodObject<{
3828
+ mode: z.ZodLiteral<"manual">;
3829
+ }, z.core.$strict>, z.ZodObject<{
3830
+ mode: z.ZodLiteral<"autoWhenReady">;
3831
+ }, z.core.$strict>], "mode">;
3832
+ descriptorDigest: z.ZodOptional<z.ZodString>;
3833
+ actorSeat: z.ZodOptional<z.ZodNumber>;
3834
+ draftDigest: z.ZodOptional<z.ZodString>;
3835
+ inputs: z.ZodArray<z.ZodObject<{
3836
+ key: z.ZodString;
3837
+ kind: z.ZodEnum<{
3838
+ card: "card";
3839
+ tile: "tile";
3840
+ "board-edge": "board-edge";
3841
+ "board-vertex": "board-vertex";
3842
+ "board-space": "board-space";
3843
+ form: "form";
3844
+ position: "position";
3845
+ rng: "rng";
3846
+ }>;
3847
+ domain: z.ZodDiscriminatedUnion<[z.ZodObject<{
3848
+ selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3849
+ mode: z.ZodLiteral<"single">;
3850
+ }, z.core.$strict>, z.ZodObject<{
3851
+ mode: z.ZodLiteral<"many">;
3852
+ min: z.ZodNumber;
3853
+ max: z.ZodOptional<z.ZodNumber>;
3854
+ distinct: z.ZodOptional<z.ZodBoolean>;
3855
+ }, z.core.$strict>], "mode">>;
3856
+ type: z.ZodLiteral<"cardTarget">;
3857
+ projection: z.ZodLiteral<"resolved">;
3858
+ targetKind: z.ZodLiteral<"card">;
3859
+ zoneIds: z.ZodArray<z.ZodString>;
3860
+ eligibleTargets: z.ZodArray<z.ZodString>;
3861
+ }, z.core.$strict>, z.ZodObject<{
3862
+ selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3863
+ mode: z.ZodLiteral<"single">;
3864
+ }, z.core.$strict>, z.ZodObject<{
3865
+ mode: z.ZodLiteral<"many">;
3866
+ min: z.ZodNumber;
3867
+ max: z.ZodOptional<z.ZodNumber>;
3868
+ distinct: z.ZodOptional<z.ZodBoolean>;
3869
+ }, z.core.$strict>], "mode">>;
3870
+ type: z.ZodLiteral<"tileTarget">;
3871
+ projection: z.ZodLiteral<"resolved">;
3872
+ targetKind: z.ZodLiteral<"tile">;
3873
+ zoneIds: z.ZodArray<z.ZodString>;
3874
+ boardIds: z.ZodArray<z.ZodString>;
3875
+ eligibleTargets: z.ZodArray<z.core.$ZodBranded<z.ZodString, "SeatTileRef", "out">>;
3876
+ }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
3877
+ selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3878
+ mode: z.ZodLiteral<"single">;
3879
+ }, z.core.$strict>, z.ZodObject<{
3880
+ mode: z.ZodLiteral<"many">;
3881
+ min: z.ZodNumber;
3882
+ max: z.ZodOptional<z.ZodNumber>;
3883
+ distinct: z.ZodOptional<z.ZodBoolean>;
3884
+ }, z.core.$strict>], "mode">>;
3885
+ type: z.ZodLiteral<"boardTarget">;
3886
+ projection: z.ZodLiteral<"resolved">;
3887
+ targetKind: z.ZodEnum<{
3888
+ edge: "edge";
3889
+ vertex: "vertex";
3890
+ space: "space";
3891
+ }>;
3892
+ boardId: z.ZodString;
3893
+ valueKind: z.ZodLiteral<"board-id">;
3894
+ eligibleTargets: z.ZodArray<z.ZodString>;
3895
+ }, z.core.$strict>, z.ZodObject<{
3896
+ selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3897
+ mode: z.ZodLiteral<"single">;
3898
+ }, z.core.$strict>, z.ZodObject<{
3899
+ mode: z.ZodLiteral<"many">;
3900
+ min: z.ZodNumber;
3901
+ max: z.ZodOptional<z.ZodNumber>;
3902
+ distinct: z.ZodOptional<z.ZodBoolean>;
3903
+ }, z.core.$strict>], "mode">>;
3904
+ type: z.ZodLiteral<"boardTarget">;
3905
+ projection: z.ZodLiteral<"resolved">;
3906
+ targetKind: z.ZodLiteral<"space">;
3907
+ boardBaseId: z.ZodString;
3908
+ valueKind: z.ZodLiteral<"board-space">;
3909
+ eligibleTargets: z.ZodArray<z.ZodObject<{
3910
+ boardId: z.ZodString;
3911
+ spaceId: z.ZodString;
3912
+ }, z.core.$strict>>;
3913
+ }, z.core.$strict>], "valueKind">, z.ZodObject<{
3914
+ selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3915
+ mode: z.ZodLiteral<"single">;
3916
+ }, z.core.$strict>, z.ZodObject<{
3917
+ mode: z.ZodLiteral<"many">;
3918
+ min: z.ZodNumber;
3919
+ max: z.ZodOptional<z.ZodNumber>;
3920
+ distinct: z.ZodOptional<z.ZodBoolean>;
3921
+ }, z.core.$strict>], "mode">>;
3922
+ type: z.ZodLiteral<"zonePosition">;
3923
+ zones: z.ZodArray<z.ZodObject<{
3924
+ zoneId: z.ZodString;
3925
+ hostId: z.ZodString;
3926
+ size: z.ZodNumber;
3927
+ }, z.core.$strict>>;
3928
+ }, z.core.$strict>, z.ZodObject<{
3929
+ selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3930
+ mode: z.ZodLiteral<"single">;
3931
+ }, z.core.$strict>, z.ZodObject<{
3932
+ mode: z.ZodLiteral<"many">;
3933
+ min: z.ZodNumber;
3934
+ max: z.ZodOptional<z.ZodNumber>;
3935
+ distinct: z.ZodOptional<z.ZodBoolean>;
3936
+ }, z.core.$strict>], "mode">>;
3937
+ type: z.ZodLiteral<"resourceMap">;
3938
+ resources: z.ZodArray<z.ZodObject<{
3939
+ resourceId: z.ZodString;
3940
+ label: z.ZodOptional<z.ZodString>;
3941
+ icon: z.ZodOptional<z.ZodString>;
3942
+ min: z.ZodNumber;
3943
+ max: z.ZodNumber;
3944
+ }, z.core.$strict>>;
3945
+ }, z.core.$strict>, z.ZodObject<{
3946
+ selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3947
+ mode: z.ZodLiteral<"single">;
3948
+ }, z.core.$strict>, z.ZodObject<{
3949
+ mode: z.ZodLiteral<"many">;
3950
+ min: z.ZodNumber;
3951
+ max: z.ZodOptional<z.ZodNumber>;
3952
+ distinct: z.ZodOptional<z.ZodBoolean>;
3953
+ }, z.core.$strict>], "mode">>;
3954
+ type: z.ZodLiteral<"boundedNumber">;
3955
+ min: z.ZodNumber;
3956
+ max: z.ZodNumber;
3957
+ step: z.ZodOptional<z.ZodNumber>;
3958
+ }, z.core.$strict>, z.ZodObject<{
3959
+ selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3960
+ mode: z.ZodLiteral<"single">;
3961
+ }, z.core.$strict>, z.ZodObject<{
3962
+ mode: z.ZodLiteral<"many">;
3963
+ min: z.ZodNumber;
3964
+ max: z.ZodOptional<z.ZodNumber>;
3965
+ distinct: z.ZodOptional<z.ZodBoolean>;
3966
+ }, z.core.$strict>], "mode">>;
3967
+ type: z.ZodLiteral<"choice">;
3968
+ choices: z.ZodArray<z.ZodObject<{
3969
+ value: z.ZodNullable<z.ZodString>;
3970
+ label: z.ZodString;
3971
+ icon: z.ZodOptional<z.ZodString>;
3972
+ badge: z.ZodOptional<z.ZodString>;
3973
+ description: z.ZodOptional<z.ZodString>;
3974
+ disabled: z.ZodOptional<z.ZodBoolean>;
3975
+ disabledReason: z.ZodOptional<z.ZodString>;
3976
+ }, z.core.$strict>>;
3977
+ }, z.core.$strict>, z.ZodObject<{
3978
+ selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3979
+ mode: z.ZodLiteral<"single">;
3980
+ }, z.core.$strict>, z.ZodObject<{
3981
+ mode: z.ZodLiteral<"many">;
3982
+ min: z.ZodNumber;
3983
+ max: z.ZodOptional<z.ZodNumber>;
3984
+ distinct: z.ZodOptional<z.ZodBoolean>;
3985
+ }, z.core.$strict>], "mode">>;
3986
+ type: z.ZodLiteral<"choiceList">;
3987
+ choices: z.ZodArray<z.ZodObject<{
3988
+ label: z.ZodString;
3989
+ icon: z.ZodOptional<z.ZodString>;
3990
+ badge: z.ZodOptional<z.ZodString>;
3991
+ description: z.ZodOptional<z.ZodString>;
3992
+ disabled: z.ZodOptional<z.ZodBoolean>;
3993
+ disabledReason: z.ZodOptional<z.ZodString>;
3994
+ value: z.ZodString;
3995
+ }, z.core.$strict>>;
3996
+ min: z.ZodOptional<z.ZodNumber>;
3997
+ max: z.ZodOptional<z.ZodNumber>;
3998
+ }, z.core.$strict>], "type">;
3999
+ defaultValue: z.ZodOptional<z.ZodJSONSchema>;
4000
+ }, z.core.$strict>>;
4001
+ step: z.ZodOptional<z.ZodObject<{
4002
+ index: z.ZodNumber;
4003
+ total: z.ZodNumber;
4004
+ selected: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
4005
+ canCancel: z.ZodBoolean;
4006
+ }, z.core.$strict>>;
4007
+ availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
4008
+ status: z.ZodLiteral<"available">;
4009
+ }, z.core.$strict>, z.ZodObject<{
4010
+ status: z.ZodLiteral<"notYourTurn">;
4011
+ reason: z.ZodString;
4012
+ }, z.core.$strict>, z.ZodObject<{
4013
+ status: z.ZodLiteral<"blocked">;
4014
+ reason: z.ZodString;
4015
+ code: z.ZodOptional<z.ZodString>;
4016
+ }, z.core.$strict>], "status">;
4017
+ reasons: z.ZodOptional<z.ZodArray<z.ZodObject<{
4018
+ ruleId: z.ZodString;
4019
+ errorCode: z.ZodString;
4020
+ }, z.core.$strict>>>;
4021
+ kind: z.ZodLiteral<"action">;
4022
+ }, z.core.$strict>>>;
4023
+ shuffled: z.ZodOptional<z.ZodLiteral<true>>;
4024
+ }, z.core.$strict>>>;
4025
+ basis: z.ZodObject<{
4026
+ sessionId: z.ZodString;
4027
+ version: z.ZodNumber;
4028
+ actionSetVersion: z.ZodString;
4029
+ perspectivePlayerId: z.ZodString;
4030
+ }, z.core.$strict>;
4031
+ }, z.core.$strict>;
4032
+ acknowledgedClientActionId: z.ZodOptional<z.ZodString>;
4033
+ }, z.core.$strict>, z.ZodObject<{
4034
+ type: z.ZodLiteral<"gameplay.compact-frame">;
4035
+ frame: z.ZodObject<{
4036
+ players: z.ZodArray<z.ZodString>;
4037
+ events: z.ZodArray<z.ZodObject<{
4038
+ kind: z.ZodLiteral<"systemAction">;
4039
+ procedureId: z.ZodString;
4040
+ title: z.ZodString;
4041
+ summary: z.ZodOptional<z.ZodString>;
4042
+ details: z.ZodOptional<z.ZodArray<z.ZodObject<{
4043
+ label: z.ZodString;
4044
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
4045
+ kind: z.ZodLiteral<"tile">;
4046
+ ref: z.core.$ZodBranded<z.ZodString, "SeatTileRef", "out">;
4047
+ }, z.core.$strict>]>;
4048
+ }, z.core.$strict>>>;
4049
+ }, z.core.$strict>>;
4050
+ flow: z.ZodObject<{
4051
+ currentPhase: z.ZodNullable<z.ZodString>;
4052
+ activePlayers: z.ZodArray<z.ZodString>;
4053
+ simultaneousPhase: z.ZodNullable<z.ZodObject<{
4054
+ phaseName: z.ZodString;
4055
+ interactionId: z.ZodString;
4056
+ actorIds: z.ZodArray<z.ZodString>;
4057
+ sealedPlayerIds: z.ZodArray<z.ZodString>;
4058
+ pendingPlayerIds: z.ZodArray<z.ZodString>;
4059
+ }, z.core.$strict>>;
4060
+ }, z.core.$strict>;
4061
+ basis: z.ZodObject<{
4062
+ sessionId: z.ZodString;
4063
+ version: z.ZodNumber;
4064
+ actionSetVersion: z.ZodString;
4065
+ perspectivePlayerId: z.ZodString;
4066
+ }, z.core.$strict>;
4067
+ view: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
4068
+ causedBy: z.ZodOptional<z.ZodString>;
4069
+ interactionsByRef: z.ZodRecord<z.ZodString, z.ZodObject<{
4070
+ phaseName: z.ZodString;
4071
+ interactionKey: z.ZodString;
4072
+ interactionId: z.ZodString;
4073
+ label: z.ZodString;
4074
+ help: z.ZodOptional<z.ZodString>;
4075
+ zoneId: z.ZodOptional<z.ZodString>;
4076
+ zoneIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
4077
+ commit: z.ZodDiscriminatedUnion<[z.ZodObject<{
4078
+ mode: z.ZodLiteral<"manual">;
4079
+ }, z.core.$strict>, z.ZodObject<{
4080
+ mode: z.ZodLiteral<"autoWhenReady">;
4081
+ }, z.core.$strict>], "mode">;
4082
+ descriptorDigest: z.ZodOptional<z.ZodString>;
4083
+ actorSeat: z.ZodOptional<z.ZodNumber>;
4084
+ draftDigest: z.ZodOptional<z.ZodString>;
4085
+ inputs: z.ZodArray<z.ZodObject<{
4086
+ key: z.ZodString;
4087
+ kind: z.ZodEnum<{
4088
+ card: "card";
4089
+ tile: "tile";
4090
+ "board-edge": "board-edge";
4091
+ "board-vertex": "board-vertex";
4092
+ "board-space": "board-space";
4093
+ form: "form";
4094
+ position: "position";
4095
+ rng: "rng";
4096
+ }>;
4097
+ domain: z.ZodDiscriminatedUnion<[z.ZodObject<{
4098
+ selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
4099
+ mode: z.ZodLiteral<"single">;
4100
+ }, z.core.$strict>, z.ZodObject<{
4101
+ mode: z.ZodLiteral<"many">;
4102
+ min: z.ZodNumber;
4103
+ max: z.ZodOptional<z.ZodNumber>;
4104
+ distinct: z.ZodOptional<z.ZodBoolean>;
4105
+ }, z.core.$strict>], "mode">>;
4106
+ type: z.ZodLiteral<"cardTarget">;
4107
+ projection: z.ZodLiteral<"resolved">;
4108
+ targetKind: z.ZodLiteral<"card">;
4109
+ zoneIds: z.ZodArray<z.ZodString>;
4110
+ eligibleTargets: z.ZodArray<z.ZodString>;
4111
+ }, z.core.$strict>, z.ZodObject<{
4112
+ selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
4113
+ mode: z.ZodLiteral<"single">;
4114
+ }, z.core.$strict>, z.ZodObject<{
4115
+ mode: z.ZodLiteral<"many">;
4116
+ min: z.ZodNumber;
4117
+ max: z.ZodOptional<z.ZodNumber>;
4118
+ distinct: z.ZodOptional<z.ZodBoolean>;
4119
+ }, z.core.$strict>], "mode">>;
4120
+ type: z.ZodLiteral<"tileTarget">;
4121
+ projection: z.ZodLiteral<"resolved">;
4122
+ targetKind: z.ZodLiteral<"tile">;
4123
+ zoneIds: z.ZodArray<z.ZodString>;
4124
+ boardIds: z.ZodArray<z.ZodString>;
4125
+ eligibleTargets: z.ZodArray<z.core.$ZodBranded<z.ZodString, "SeatTileRef", "out">>;
4126
+ }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
4127
+ selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
4128
+ mode: z.ZodLiteral<"single">;
4129
+ }, z.core.$strict>, z.ZodObject<{
4130
+ mode: z.ZodLiteral<"many">;
4131
+ min: z.ZodNumber;
4132
+ max: z.ZodOptional<z.ZodNumber>;
4133
+ distinct: z.ZodOptional<z.ZodBoolean>;
4134
+ }, z.core.$strict>], "mode">>;
4135
+ type: z.ZodLiteral<"boardTarget">;
4136
+ projection: z.ZodLiteral<"resolved">;
4137
+ targetKind: z.ZodEnum<{
4138
+ edge: "edge";
4139
+ vertex: "vertex";
4140
+ space: "space";
4141
+ }>;
4142
+ boardId: z.ZodString;
4143
+ valueKind: z.ZodLiteral<"board-id">;
4144
+ eligibleTargets: z.ZodArray<z.ZodString>;
4145
+ }, z.core.$strict>, z.ZodObject<{
4146
+ selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
4147
+ mode: z.ZodLiteral<"single">;
4148
+ }, z.core.$strict>, z.ZodObject<{
4149
+ mode: z.ZodLiteral<"many">;
4150
+ min: z.ZodNumber;
4151
+ max: z.ZodOptional<z.ZodNumber>;
4152
+ distinct: z.ZodOptional<z.ZodBoolean>;
4153
+ }, z.core.$strict>], "mode">>;
4154
+ type: z.ZodLiteral<"boardTarget">;
4155
+ projection: z.ZodLiteral<"resolved">;
4156
+ targetKind: z.ZodLiteral<"space">;
4157
+ boardBaseId: z.ZodString;
4158
+ valueKind: z.ZodLiteral<"board-space">;
4159
+ eligibleTargets: z.ZodArray<z.ZodObject<{
4160
+ boardId: z.ZodString;
4161
+ spaceId: z.ZodString;
4162
+ }, z.core.$strict>>;
4163
+ }, z.core.$strict>], "valueKind">, z.ZodObject<{
4164
+ selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
4165
+ mode: z.ZodLiteral<"single">;
4166
+ }, z.core.$strict>, z.ZodObject<{
4167
+ mode: z.ZodLiteral<"many">;
4168
+ min: z.ZodNumber;
4169
+ max: z.ZodOptional<z.ZodNumber>;
4170
+ distinct: z.ZodOptional<z.ZodBoolean>;
4171
+ }, z.core.$strict>], "mode">>;
4172
+ type: z.ZodLiteral<"zonePosition">;
4173
+ zones: z.ZodArray<z.ZodObject<{
4174
+ zoneId: z.ZodString;
4175
+ hostId: z.ZodString;
4176
+ size: z.ZodNumber;
4177
+ }, z.core.$strict>>;
4178
+ }, z.core.$strict>, z.ZodObject<{
4179
+ selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
4180
+ mode: z.ZodLiteral<"single">;
4181
+ }, z.core.$strict>, z.ZodObject<{
4182
+ mode: z.ZodLiteral<"many">;
4183
+ min: z.ZodNumber;
4184
+ max: z.ZodOptional<z.ZodNumber>;
4185
+ distinct: z.ZodOptional<z.ZodBoolean>;
4186
+ }, z.core.$strict>], "mode">>;
4187
+ type: z.ZodLiteral<"resourceMap">;
4188
+ resources: z.ZodArray<z.ZodObject<{
4189
+ resourceId: z.ZodString;
4190
+ label: z.ZodOptional<z.ZodString>;
4191
+ icon: z.ZodOptional<z.ZodString>;
4192
+ min: z.ZodNumber;
4193
+ max: z.ZodNumber;
4194
+ }, z.core.$strict>>;
4195
+ }, z.core.$strict>, z.ZodObject<{
4196
+ selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
4197
+ mode: z.ZodLiteral<"single">;
4198
+ }, z.core.$strict>, z.ZodObject<{
4199
+ mode: z.ZodLiteral<"many">;
4200
+ min: z.ZodNumber;
4201
+ max: z.ZodOptional<z.ZodNumber>;
4202
+ distinct: z.ZodOptional<z.ZodBoolean>;
4203
+ }, z.core.$strict>], "mode">>;
4204
+ type: z.ZodLiteral<"boundedNumber">;
4205
+ min: z.ZodNumber;
4206
+ max: z.ZodNumber;
4207
+ step: z.ZodOptional<z.ZodNumber>;
4208
+ }, z.core.$strict>, z.ZodObject<{
4209
+ selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
4210
+ mode: z.ZodLiteral<"single">;
4211
+ }, z.core.$strict>, z.ZodObject<{
4212
+ mode: z.ZodLiteral<"many">;
4213
+ min: z.ZodNumber;
4214
+ max: z.ZodOptional<z.ZodNumber>;
4215
+ distinct: z.ZodOptional<z.ZodBoolean>;
4216
+ }, z.core.$strict>], "mode">>;
4217
+ type: z.ZodLiteral<"choice">;
4218
+ choices: z.ZodArray<z.ZodObject<{
4219
+ value: z.ZodNullable<z.ZodString>;
4220
+ label: z.ZodString;
4221
+ icon: z.ZodOptional<z.ZodString>;
4222
+ badge: z.ZodOptional<z.ZodString>;
4223
+ description: z.ZodOptional<z.ZodString>;
4224
+ disabled: z.ZodOptional<z.ZodBoolean>;
4225
+ disabledReason: z.ZodOptional<z.ZodString>;
4226
+ }, z.core.$strict>>;
4227
+ }, z.core.$strict>, z.ZodObject<{
4228
+ selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
4229
+ mode: z.ZodLiteral<"single">;
4230
+ }, z.core.$strict>, z.ZodObject<{
4231
+ mode: z.ZodLiteral<"many">;
4232
+ min: z.ZodNumber;
4233
+ max: z.ZodOptional<z.ZodNumber>;
4234
+ distinct: z.ZodOptional<z.ZodBoolean>;
4235
+ }, z.core.$strict>], "mode">>;
4236
+ type: z.ZodLiteral<"choiceList">;
4237
+ choices: z.ZodArray<z.ZodObject<{
4238
+ label: z.ZodString;
4239
+ icon: z.ZodOptional<z.ZodString>;
4240
+ badge: z.ZodOptional<z.ZodString>;
4241
+ description: z.ZodOptional<z.ZodString>;
4242
+ disabled: z.ZodOptional<z.ZodBoolean>;
4243
+ disabledReason: z.ZodOptional<z.ZodString>;
4244
+ value: z.ZodString;
4245
+ }, z.core.$strict>>;
4246
+ min: z.ZodOptional<z.ZodNumber>;
4247
+ max: z.ZodOptional<z.ZodNumber>;
4248
+ }, z.core.$strict>], "type">;
4249
+ defaultValue: z.ZodOptional<z.ZodJSONSchema>;
4250
+ }, z.core.$strict>>;
4251
+ step: z.ZodOptional<z.ZodObject<{
4252
+ index: z.ZodNumber;
4253
+ total: z.ZodNumber;
4254
+ selected: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
4255
+ canCancel: z.ZodBoolean;
4256
+ }, z.core.$strict>>;
4257
+ availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
4258
+ status: z.ZodLiteral<"available">;
4259
+ }, z.core.$strict>, z.ZodObject<{
4260
+ status: z.ZodLiteral<"notYourTurn">;
4261
+ reason: z.ZodString;
4262
+ }, z.core.$strict>, z.ZodObject<{
4263
+ status: z.ZodLiteral<"blocked">;
4264
+ reason: z.ZodString;
4265
+ code: z.ZodOptional<z.ZodString>;
4266
+ }, z.core.$strict>], "status">;
4267
+ reasons: z.ZodOptional<z.ZodArray<z.ZodObject<{
4268
+ ruleId: z.ZodString;
4269
+ errorCode: z.ZodString;
4270
+ }, z.core.$strict>>>;
4271
+ kind: z.ZodLiteral<"action">;
4272
+ }, z.core.$strict>>;
4273
+ availableInteractionRefs: z.ZodArray<z.ZodString>;
4274
+ zones: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
4275
+ tiles: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
4276
+ disclosure: z.ZodLiteral<"visible">;
4277
+ ref: z.core.$ZodBranded<z.ZodString, "SeatTileRef", "out">;
4278
+ tileTypeId: z.ZodString;
4279
+ name: z.ZodString;
4280
+ frontImage: z.ZodOptional<z.ZodString>;
4281
+ ownerId: z.ZodNullable<z.ZodString>;
4282
+ fields: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
4283
+ properties: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
4284
+ }, z.core.$strict>, z.ZodObject<{
4285
+ disclosure: z.ZodLiteral<"concealed">;
4286
+ ref: z.core.$ZodBranded<z.ZodString, "SeatTileRef", "out">;
4287
+ appearance: z.ZodDiscriminatedUnion<[z.ZodObject<{
4288
+ layout: z.ZodLiteral<"hex">;
4289
+ cells: z.ZodArray<z.ZodObject<{
4290
+ q: z.ZodInt;
4291
+ r: z.ZodInt;
4292
+ }, z.core.$strict>>;
4293
+ backImage: z.ZodOptional<z.ZodString>;
4294
+ }, z.core.$strict>, z.ZodObject<{
4295
+ layout: z.ZodLiteral<"square">;
4296
+ cells: z.ZodArray<z.ZodObject<{
4297
+ col: z.ZodInt;
4298
+ row: z.ZodInt;
4299
+ }, z.core.$strict>>;
4300
+ backImage: z.ZodOptional<z.ZodString>;
4301
+ }, z.core.$strict>], "layout">;
4302
+ }, z.core.$strict>], "disclosure">>;
4303
+ cardIds: z.ZodArray<z.ZodString>;
4304
+ cardViewsById: z.ZodRecord<z.ZodString, z.ZodObject<{
4305
+ id: z.ZodString;
4306
+ cardType: z.ZodString;
4307
+ name: z.ZodOptional<z.ZodString>;
4308
+ text: z.ZodOptional<z.ZodString>;
4309
+ frontImage: z.ZodOptional<z.ZodString>;
4310
+ backImage: z.ZodOptional<z.ZodString>;
4311
+ properties: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
4312
+ }, z.core.$strict>>;
4313
+ cardBacksById: z.ZodRecord<z.ZodString, z.ZodString>;
4314
+ playableByCardId: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
4315
+ shuffled: z.ZodOptional<z.ZodLiteral<true>>;
4316
+ }, z.core.$strict>>>;
4317
+ }, z.core.$strict>;
4318
+ acknowledgedClientActionId: z.ZodOptional<z.ZodString>;
4319
+ }, z.core.$strict>, z.ZodObject<{
4320
+ type: z.ZodLiteral<"interaction.result">;
4321
+ clientActionId: z.ZodString;
4322
+ accepted: z.ZodLiteral<false>;
4323
+ errorCode: z.ZodString;
4324
+ message: z.ZodOptional<z.ZodString>;
4325
+ }, z.core.$strict>], "type">;
4326
+ declare const PluginToHostPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4327
+ type: z.ZodLiteral<"runtime.ready">;
4328
+ }, z.core.$strict>, z.ZodObject<{
4329
+ type: z.ZodLiteral<"runtime.capabilities">;
4330
+ compactGameplayFrames: z.ZodLiteral<true>;
4331
+ }, z.core.$strict>, z.ZodObject<{
4332
+ type: z.ZodLiteral<"runtime.resume">;
4333
+ pendingClientActionId: z.ZodOptional<z.ZodString>;
4334
+ }, z.core.$strict>, z.ZodObject<{
4335
+ type: z.ZodLiteral<"runtime.ack">;
4336
+ sequence: z.ZodNumber;
4337
+ clientReceivedAtMs: z.ZodOptional<z.ZodNumber>;
4338
+ clientRenderedAtMs: z.ZodOptional<z.ZodNumber>;
4339
+ }, z.core.$strict>, z.ZodObject<{
4340
+ type: z.ZodLiteral<"interaction.submit">;
4341
+ clientActionId: z.ZodString;
4342
+ basis: z.ZodObject<{
4343
+ sessionId: z.ZodString;
4344
+ version: z.ZodNumber;
4345
+ actionSetVersion: z.ZodString;
4346
+ perspectivePlayerId: z.ZodString;
4347
+ }, z.core.$strict>;
4348
+ interactionId: z.ZodString;
4349
+ params: z.ZodJSONSchema;
4350
+ }, z.core.$strict>, z.ZodObject<{
4351
+ interactionId: z.ZodString;
4352
+ basis: z.ZodObject<{
4353
+ sessionId: z.ZodString;
4354
+ version: z.ZodNumber;
4355
+ actionSetVersion: z.ZodString;
4356
+ perspectivePlayerId: z.ZodString;
4357
+ }, z.core.$strict>;
4358
+ clientActionId: z.ZodString;
4359
+ type: z.ZodLiteral<"interaction.cancel">;
4360
+ }, z.core.$strict>, z.ZodObject<{
4361
+ type: z.ZodLiteral<"runtime.error">;
4362
+ message: z.ZodString;
4363
+ code: z.ZodOptional<z.ZodString>;
4364
+ }, z.core.$strict>], "type">;
4365
+ declare function createPluginProtocolEnvelopeSchema<Payload>(payloadSchema: z.ZodType<Payload>): z.ZodType<PluginProtocolEnvelope<Payload>>;
4366
+ declare const HostToPluginEnvelopeSchema: z.ZodType<PluginProtocolEnvelope<{
4367
+ type: "interaction.result";
4368
+ clientActionId: string;
4369
+ accepted: false;
4370
+ errorCode: string;
4371
+ message?: string | undefined;
4372
+ } | {
4373
+ type: "runtime.init";
4374
+ session: {
4375
+ sessionId: string;
4376
+ players: {
4377
+ playerId: string;
4378
+ displayName: string;
4379
+ color?: string | undefined;
4380
+ }[];
4381
+ assets?: Record<string, Blob> | undefined;
4382
+ };
4383
+ } | {
4384
+ type: "gameplay.frame";
4385
+ frame: {
4386
+ players: string[];
4387
+ events: {
4388
+ kind: "systemAction";
4389
+ procedureId: string;
4390
+ title: string;
4391
+ summary?: string | undefined;
4392
+ details?: {
4393
+ label: string;
4394
+ value: string | number | boolean | {
4395
+ kind: "tile";
4396
+ ref: string & z.core.$brand<"SeatTileRef">;
4397
+ };
4398
+ }[] | undefined;
4399
+ }[];
4400
+ view: Record<string, z.core.util.JSONType> | null;
4401
+ flow: {
4402
+ currentPhase: string | null;
4403
+ activePlayers: string[];
4404
+ simultaneousPhase: {
4405
+ phaseName: string;
4406
+ interactionId: string;
4407
+ actorIds: string[];
4408
+ sealedPlayerIds: string[];
4409
+ pendingPlayerIds: string[];
4410
+ } | null;
4411
+ };
4412
+ availableInteractions: {
4413
+ phaseName: string;
4414
+ interactionKey: string;
4415
+ interactionId: string;
4416
+ label: string;
4417
+ commit: {
4418
+ mode: "manual";
4419
+ } | {
4420
+ mode: "autoWhenReady";
4421
+ };
4422
+ inputs: {
4423
+ key: string;
4424
+ kind: "card" | "tile" | "board-edge" | "board-vertex" | "board-space" | "form" | "position" | "rng";
4425
+ domain: {
4426
+ type: "cardTarget";
4427
+ projection: "resolved";
4428
+ targetKind: "card";
4429
+ zoneIds: string[];
4430
+ eligibleTargets: string[];
4431
+ selection?: {
4432
+ mode: "many";
4433
+ min: number;
4434
+ max?: number | undefined;
4435
+ distinct?: boolean | undefined;
4436
+ } | {
4437
+ mode: "single";
4438
+ } | undefined;
4439
+ } | {
4440
+ type: "tileTarget";
4441
+ projection: "resolved";
4442
+ targetKind: "tile";
4443
+ zoneIds: string[];
4444
+ boardIds: string[];
4445
+ eligibleTargets: (string & z.core.$brand<"SeatTileRef">)[];
4446
+ selection?: {
4447
+ mode: "many";
4448
+ min: number;
4449
+ max?: number | undefined;
4450
+ distinct?: boolean | undefined;
4451
+ } | {
4452
+ mode: "single";
4453
+ } | undefined;
4454
+ } | {
4455
+ type: "boardTarget";
4456
+ projection: "resolved";
4457
+ targetKind: "edge" | "vertex" | "space";
4458
+ boardId: string;
4459
+ valueKind: "board-id";
4460
+ eligibleTargets: string[];
4461
+ selection?: {
4462
+ mode: "many";
4463
+ min: number;
4464
+ max?: number | undefined;
4465
+ distinct?: boolean | undefined;
4466
+ } | {
4467
+ mode: "single";
4468
+ } | undefined;
4469
+ } | {
4470
+ type: "boardTarget";
4471
+ projection: "resolved";
4472
+ targetKind: "space";
4473
+ boardBaseId: string;
4474
+ valueKind: "board-space";
4475
+ eligibleTargets: {
4476
+ boardId: string;
4477
+ spaceId: string;
4478
+ }[];
4479
+ selection?: {
4480
+ mode: "many";
4481
+ min: number;
4482
+ max?: number | undefined;
4483
+ distinct?: boolean | undefined;
4484
+ } | {
4485
+ mode: "single";
4486
+ } | undefined;
4487
+ } | {
4488
+ type: "zonePosition";
4489
+ zones: {
4490
+ zoneId: string;
4491
+ hostId: string;
4492
+ size: number;
4493
+ }[];
4494
+ selection?: {
4495
+ mode: "many";
4496
+ min: number;
4497
+ max?: number | undefined;
4498
+ distinct?: boolean | undefined;
4499
+ } | {
4500
+ mode: "single";
4501
+ } | undefined;
4502
+ } | {
4503
+ type: "resourceMap";
4504
+ resources: {
4505
+ resourceId: string;
4506
+ min: number;
4507
+ max: number;
4508
+ label?: string | undefined;
4509
+ icon?: string | undefined;
4510
+ }[];
4511
+ selection?: {
4512
+ mode: "many";
4513
+ min: number;
4514
+ max?: number | undefined;
4515
+ distinct?: boolean | undefined;
4516
+ } | {
4517
+ mode: "single";
4518
+ } | undefined;
4519
+ } | {
4520
+ type: "boundedNumber";
4521
+ min: number;
4522
+ max: number;
4523
+ selection?: {
4524
+ mode: "many";
4525
+ min: number;
4526
+ max?: number | undefined;
4527
+ distinct?: boolean | undefined;
4528
+ } | {
4529
+ mode: "single";
4530
+ } | undefined;
4531
+ step?: number | undefined;
4532
+ } | {
4533
+ type: "choice";
4534
+ choices: {
4535
+ value: string | null;
4536
+ label: string;
4537
+ icon?: string | undefined;
4538
+ badge?: string | undefined;
4539
+ description?: string | undefined;
4540
+ disabled?: boolean | undefined;
4541
+ disabledReason?: string | undefined;
4542
+ }[];
4543
+ selection?: {
4544
+ mode: "many";
4545
+ min: number;
4546
+ max?: number | undefined;
4547
+ distinct?: boolean | undefined;
4548
+ } | {
4549
+ mode: "single";
4550
+ } | undefined;
4551
+ } | {
4552
+ type: "choiceList";
4553
+ choices: {
4554
+ label: string;
4555
+ value: string;
4556
+ icon?: string | undefined;
4557
+ badge?: string | undefined;
4558
+ description?: string | undefined;
4559
+ disabled?: boolean | undefined;
4560
+ disabledReason?: string | undefined;
4561
+ }[];
4562
+ selection?: {
4563
+ mode: "many";
4564
+ min: number;
4565
+ max?: number | undefined;
4566
+ distinct?: boolean | undefined;
4567
+ } | {
4568
+ mode: "single";
4569
+ } | undefined;
4570
+ min?: number | undefined;
4571
+ max?: number | undefined;
4572
+ };
4573
+ defaultValue?: z.core.util.JSONType | undefined;
4574
+ }[];
4575
+ availability: {
4576
+ status: "available";
4577
+ } | {
4578
+ status: "notYourTurn";
4579
+ reason: string;
4580
+ } | {
4581
+ status: "blocked";
4582
+ reason: string;
4583
+ code?: string | undefined;
4584
+ };
4585
+ kind: "action";
4586
+ help?: string | undefined;
4587
+ zoneId?: string | undefined;
4588
+ zoneIds?: string[] | undefined;
4589
+ descriptorDigest?: string | undefined;
4590
+ actorSeat?: number | undefined;
4591
+ draftDigest?: string | undefined;
4592
+ step?: {
4593
+ index: number;
4594
+ total: number;
4595
+ selected: Record<string, z.core.util.JSONType>;
4596
+ canCancel: boolean;
4597
+ } | undefined;
4598
+ reasons?: {
4599
+ ruleId: string;
4600
+ errorCode: string;
4601
+ }[] | undefined;
4602
+ }[];
4603
+ zones: Record<string, Record<string, {
4604
+ tiles: ({
4605
+ disclosure: "visible";
4606
+ ref: string & z.core.$brand<"SeatTileRef">;
4607
+ tileTypeId: string;
4608
+ name: string;
4609
+ ownerId: string | null;
4610
+ fields: Record<string, z.core.util.JSONType>;
4611
+ properties: Record<string, z.core.util.JSONType>;
4612
+ frontImage?: string | undefined;
4613
+ } | {
4614
+ disclosure: "concealed";
4615
+ ref: string & z.core.$brand<"SeatTileRef">;
4616
+ appearance: {
4617
+ layout: "hex";
4618
+ cells: {
4619
+ q: number;
4620
+ r: number;
4621
+ }[];
4622
+ backImage?: string | undefined;
4623
+ } | {
4624
+ layout: "square";
4625
+ cells: {
4626
+ col: number;
4627
+ row: number;
4628
+ }[];
4629
+ backImage?: string | undefined;
4630
+ };
4631
+ })[];
4632
+ cardIds: string[];
4633
+ cardViewsById: Record<string, {
4634
+ id: string;
4635
+ cardType: string;
4636
+ properties: Record<string, z.core.util.JSONType>;
4637
+ name?: string | undefined;
4638
+ text?: string | undefined;
4639
+ frontImage?: string | undefined;
4640
+ backImage?: string | undefined;
4641
+ }>;
4642
+ cardBacksById: Record<string, string>;
4643
+ playableByCardId: Record<string, {
4644
+ phaseName: string;
4645
+ interactionKey: string;
4646
+ interactionId: string;
4647
+ label: string;
4648
+ commit: {
4649
+ mode: "manual";
4650
+ } | {
4651
+ mode: "autoWhenReady";
4652
+ };
4653
+ inputs: {
4654
+ key: string;
4655
+ kind: "card" | "tile" | "board-edge" | "board-vertex" | "board-space" | "form" | "position" | "rng";
4656
+ domain: {
4657
+ type: "cardTarget";
4658
+ projection: "resolved";
4659
+ targetKind: "card";
4660
+ zoneIds: string[];
4661
+ eligibleTargets: string[];
4662
+ selection?: {
4663
+ mode: "many";
4664
+ min: number;
4665
+ max?: number | undefined;
4666
+ distinct?: boolean | undefined;
4667
+ } | {
4668
+ mode: "single";
4669
+ } | undefined;
4670
+ } | {
4671
+ type: "tileTarget";
4672
+ projection: "resolved";
4673
+ targetKind: "tile";
4674
+ zoneIds: string[];
4675
+ boardIds: string[];
4676
+ eligibleTargets: (string & z.core.$brand<"SeatTileRef">)[];
4677
+ selection?: {
4678
+ mode: "many";
4679
+ min: number;
4680
+ max?: number | undefined;
4681
+ distinct?: boolean | undefined;
4682
+ } | {
4683
+ mode: "single";
4684
+ } | undefined;
4685
+ } | {
4686
+ type: "boardTarget";
4687
+ projection: "resolved";
4688
+ targetKind: "edge" | "vertex" | "space";
4689
+ boardId: string;
4690
+ valueKind: "board-id";
4691
+ eligibleTargets: string[];
4692
+ selection?: {
4693
+ mode: "many";
4694
+ min: number;
4695
+ max?: number | undefined;
4696
+ distinct?: boolean | undefined;
4697
+ } | {
4698
+ mode: "single";
4699
+ } | undefined;
4700
+ } | {
4701
+ type: "boardTarget";
4702
+ projection: "resolved";
4703
+ targetKind: "space";
4704
+ boardBaseId: string;
4705
+ valueKind: "board-space";
4706
+ eligibleTargets: {
4707
+ boardId: string;
4708
+ spaceId: string;
4709
+ }[];
4710
+ selection?: {
4711
+ mode: "many";
4712
+ min: number;
4713
+ max?: number | undefined;
4714
+ distinct?: boolean | undefined;
4715
+ } | {
4716
+ mode: "single";
4717
+ } | undefined;
4718
+ } | {
4719
+ type: "zonePosition";
4720
+ zones: {
4721
+ zoneId: string;
4722
+ hostId: string;
4723
+ size: number;
4724
+ }[];
4725
+ selection?: {
4726
+ mode: "many";
4727
+ min: number;
4728
+ max?: number | undefined;
4729
+ distinct?: boolean | undefined;
4730
+ } | {
4731
+ mode: "single";
4732
+ } | undefined;
4733
+ } | {
4734
+ type: "resourceMap";
4735
+ resources: {
4736
+ resourceId: string;
4737
+ min: number;
4738
+ max: number;
4739
+ label?: string | undefined;
4740
+ icon?: string | undefined;
4741
+ }[];
4742
+ selection?: {
4743
+ mode: "many";
4744
+ min: number;
4745
+ max?: number | undefined;
4746
+ distinct?: boolean | undefined;
4747
+ } | {
4748
+ mode: "single";
4749
+ } | undefined;
4750
+ } | {
4751
+ type: "boundedNumber";
4752
+ min: number;
4753
+ max: number;
4754
+ selection?: {
4755
+ mode: "many";
4756
+ min: number;
4757
+ max?: number | undefined;
4758
+ distinct?: boolean | undefined;
4759
+ } | {
4760
+ mode: "single";
4761
+ } | undefined;
4762
+ step?: number | undefined;
4763
+ } | {
4764
+ type: "choice";
4765
+ choices: {
4766
+ value: string | null;
4767
+ label: string;
4768
+ icon?: string | undefined;
4769
+ badge?: string | undefined;
4770
+ description?: string | undefined;
4771
+ disabled?: boolean | undefined;
4772
+ disabledReason?: string | undefined;
4773
+ }[];
4774
+ selection?: {
4775
+ mode: "many";
4776
+ min: number;
4777
+ max?: number | undefined;
4778
+ distinct?: boolean | undefined;
4779
+ } | {
4780
+ mode: "single";
4781
+ } | undefined;
4782
+ } | {
4783
+ type: "choiceList";
4784
+ choices: {
4785
+ label: string;
4786
+ value: string;
4787
+ icon?: string | undefined;
4788
+ badge?: string | undefined;
4789
+ description?: string | undefined;
4790
+ disabled?: boolean | undefined;
4791
+ disabledReason?: string | undefined;
4792
+ }[];
4793
+ selection?: {
4794
+ mode: "many";
4795
+ min: number;
4796
+ max?: number | undefined;
4797
+ distinct?: boolean | undefined;
4798
+ } | {
4799
+ mode: "single";
4800
+ } | undefined;
4801
+ min?: number | undefined;
4802
+ max?: number | undefined;
4803
+ };
4804
+ defaultValue?: z.core.util.JSONType | undefined;
4805
+ }[];
4806
+ availability: {
4807
+ status: "available";
4808
+ } | {
4809
+ status: "notYourTurn";
4810
+ reason: string;
4811
+ } | {
4812
+ status: "blocked";
4813
+ reason: string;
4814
+ code?: string | undefined;
4815
+ };
4816
+ kind: "action";
4817
+ help?: string | undefined;
4818
+ zoneId?: string | undefined;
4819
+ zoneIds?: string[] | undefined;
4820
+ descriptorDigest?: string | undefined;
4821
+ actorSeat?: number | undefined;
4822
+ draftDigest?: string | undefined;
4823
+ step?: {
4824
+ index: number;
4825
+ total: number;
4826
+ selected: Record<string, z.core.util.JSONType>;
4827
+ canCancel: boolean;
4828
+ } | undefined;
4829
+ reasons?: {
4830
+ ruleId: string;
4831
+ errorCode: string;
4832
+ }[] | undefined;
4833
+ }[]>;
4834
+ shuffled?: true | undefined;
4835
+ }>>;
4836
+ basis: {
4837
+ sessionId: string;
4838
+ version: number;
4839
+ actionSetVersion: string;
4840
+ perspectivePlayerId: string;
4841
+ };
4842
+ causedBy?: string | undefined;
4843
+ };
4844
+ acknowledgedClientActionId?: string | undefined;
4845
+ } | {
4846
+ type: "gameplay.compact-frame";
4847
+ frame: {
4848
+ players: string[];
4849
+ events: {
4850
+ kind: "systemAction";
4851
+ procedureId: string;
4852
+ title: string;
4853
+ summary?: string | undefined;
4854
+ details?: {
4855
+ label: string;
4856
+ value: string | number | boolean | {
4857
+ kind: "tile";
4858
+ ref: string & z.core.$brand<"SeatTileRef">;
4859
+ };
4860
+ }[] | undefined;
4861
+ }[];
4862
+ flow: {
4863
+ currentPhase: string | null;
4864
+ activePlayers: string[];
4865
+ simultaneousPhase: {
4866
+ phaseName: string;
4867
+ interactionId: string;
4868
+ actorIds: string[];
4869
+ sealedPlayerIds: string[];
4870
+ pendingPlayerIds: string[];
4871
+ } | null;
4872
+ };
4873
+ basis: {
4874
+ sessionId: string;
4875
+ version: number;
4876
+ actionSetVersion: string;
4877
+ perspectivePlayerId: string;
4878
+ };
4879
+ view: Record<string, z.core.util.JSONType> | null;
4880
+ interactionsByRef: Record<string, {
4881
+ phaseName: string;
4882
+ interactionKey: string;
4883
+ interactionId: string;
4884
+ label: string;
4885
+ commit: {
4886
+ mode: "manual";
4887
+ } | {
4888
+ mode: "autoWhenReady";
4889
+ };
4890
+ inputs: {
4891
+ key: string;
4892
+ kind: "card" | "tile" | "board-edge" | "board-vertex" | "board-space" | "form" | "position" | "rng";
4893
+ domain: {
4894
+ type: "cardTarget";
4895
+ projection: "resolved";
4896
+ targetKind: "card";
4897
+ zoneIds: string[];
4898
+ eligibleTargets: string[];
4899
+ selection?: {
4900
+ mode: "many";
4901
+ min: number;
4902
+ max?: number | undefined;
4903
+ distinct?: boolean | undefined;
4904
+ } | {
4905
+ mode: "single";
4906
+ } | undefined;
4907
+ } | {
4908
+ type: "tileTarget";
4909
+ projection: "resolved";
4910
+ targetKind: "tile";
4911
+ zoneIds: string[];
4912
+ boardIds: string[];
4913
+ eligibleTargets: (string & z.core.$brand<"SeatTileRef">)[];
4914
+ selection?: {
4915
+ mode: "many";
4916
+ min: number;
4917
+ max?: number | undefined;
4918
+ distinct?: boolean | undefined;
4919
+ } | {
4920
+ mode: "single";
4921
+ } | undefined;
4922
+ } | {
4923
+ type: "boardTarget";
4924
+ projection: "resolved";
4925
+ targetKind: "edge" | "vertex" | "space";
4926
+ boardId: string;
4927
+ valueKind: "board-id";
4928
+ eligibleTargets: string[];
4929
+ selection?: {
4930
+ mode: "many";
4931
+ min: number;
4932
+ max?: number | undefined;
4933
+ distinct?: boolean | undefined;
4934
+ } | {
4935
+ mode: "single";
4936
+ } | undefined;
4937
+ } | {
4938
+ type: "boardTarget";
4939
+ projection: "resolved";
4940
+ targetKind: "space";
4941
+ boardBaseId: string;
4942
+ valueKind: "board-space";
4943
+ eligibleTargets: {
4944
+ boardId: string;
4945
+ spaceId: string;
4946
+ }[];
4947
+ selection?: {
4948
+ mode: "many";
4949
+ min: number;
4950
+ max?: number | undefined;
4951
+ distinct?: boolean | undefined;
4952
+ } | {
4953
+ mode: "single";
4954
+ } | undefined;
4955
+ } | {
4956
+ type: "zonePosition";
4957
+ zones: {
4958
+ zoneId: string;
4959
+ hostId: string;
4960
+ size: number;
4961
+ }[];
4962
+ selection?: {
4963
+ mode: "many";
4964
+ min: number;
4965
+ max?: number | undefined;
4966
+ distinct?: boolean | undefined;
4967
+ } | {
4968
+ mode: "single";
4969
+ } | undefined;
4970
+ } | {
4971
+ type: "resourceMap";
4972
+ resources: {
4973
+ resourceId: string;
4974
+ min: number;
4975
+ max: number;
4976
+ label?: string | undefined;
4977
+ icon?: string | undefined;
4978
+ }[];
4979
+ selection?: {
4980
+ mode: "many";
4981
+ min: number;
4982
+ max?: number | undefined;
4983
+ distinct?: boolean | undefined;
4984
+ } | {
4985
+ mode: "single";
4986
+ } | undefined;
4987
+ } | {
4988
+ type: "boundedNumber";
4989
+ min: number;
4990
+ max: number;
4991
+ selection?: {
4992
+ mode: "many";
4993
+ min: number;
4994
+ max?: number | undefined;
4995
+ distinct?: boolean | undefined;
4996
+ } | {
4997
+ mode: "single";
4998
+ } | undefined;
4999
+ step?: number | undefined;
5000
+ } | {
5001
+ type: "choice";
5002
+ choices: {
5003
+ value: string | null;
5004
+ label: string;
5005
+ icon?: string | undefined;
5006
+ badge?: string | undefined;
5007
+ description?: string | undefined;
5008
+ disabled?: boolean | undefined;
5009
+ disabledReason?: string | undefined;
5010
+ }[];
5011
+ selection?: {
5012
+ mode: "many";
5013
+ min: number;
5014
+ max?: number | undefined;
5015
+ distinct?: boolean | undefined;
5016
+ } | {
5017
+ mode: "single";
5018
+ } | undefined;
5019
+ } | {
5020
+ type: "choiceList";
5021
+ choices: {
5022
+ label: string;
5023
+ value: string;
5024
+ icon?: string | undefined;
5025
+ badge?: string | undefined;
5026
+ description?: string | undefined;
5027
+ disabled?: boolean | undefined;
5028
+ disabledReason?: string | undefined;
5029
+ }[];
5030
+ selection?: {
5031
+ mode: "many";
5032
+ min: number;
5033
+ max?: number | undefined;
5034
+ distinct?: boolean | undefined;
5035
+ } | {
5036
+ mode: "single";
5037
+ } | undefined;
5038
+ min?: number | undefined;
5039
+ max?: number | undefined;
5040
+ };
5041
+ defaultValue?: z.core.util.JSONType | undefined;
5042
+ }[];
5043
+ availability: {
5044
+ status: "available";
5045
+ } | {
5046
+ status: "notYourTurn";
5047
+ reason: string;
5048
+ } | {
5049
+ status: "blocked";
5050
+ reason: string;
5051
+ code?: string | undefined;
5052
+ };
5053
+ kind: "action";
5054
+ help?: string | undefined;
5055
+ zoneId?: string | undefined;
5056
+ zoneIds?: string[] | undefined;
5057
+ descriptorDigest?: string | undefined;
5058
+ actorSeat?: number | undefined;
5059
+ draftDigest?: string | undefined;
5060
+ step?: {
5061
+ index: number;
5062
+ total: number;
5063
+ selected: Record<string, z.core.util.JSONType>;
5064
+ canCancel: boolean;
5065
+ } | undefined;
5066
+ reasons?: {
5067
+ ruleId: string;
5068
+ errorCode: string;
5069
+ }[] | undefined;
5070
+ }>;
5071
+ availableInteractionRefs: string[];
5072
+ zones: Record<string, Record<string, {
5073
+ tiles: ({
5074
+ disclosure: "visible";
5075
+ ref: string & z.core.$brand<"SeatTileRef">;
5076
+ tileTypeId: string;
5077
+ name: string;
5078
+ ownerId: string | null;
5079
+ fields: Record<string, z.core.util.JSONType>;
5080
+ properties: Record<string, z.core.util.JSONType>;
5081
+ frontImage?: string | undefined;
5082
+ } | {
5083
+ disclosure: "concealed";
5084
+ ref: string & z.core.$brand<"SeatTileRef">;
5085
+ appearance: {
5086
+ layout: "hex";
5087
+ cells: {
5088
+ q: number;
5089
+ r: number;
5090
+ }[];
5091
+ backImage?: string | undefined;
5092
+ } | {
5093
+ layout: "square";
5094
+ cells: {
5095
+ col: number;
5096
+ row: number;
5097
+ }[];
5098
+ backImage?: string | undefined;
5099
+ };
5100
+ })[];
5101
+ cardIds: string[];
5102
+ cardViewsById: Record<string, {
5103
+ id: string;
5104
+ cardType: string;
5105
+ properties: Record<string, z.core.util.JSONType>;
5106
+ name?: string | undefined;
5107
+ text?: string | undefined;
5108
+ frontImage?: string | undefined;
5109
+ backImage?: string | undefined;
5110
+ }>;
5111
+ cardBacksById: Record<string, string>;
5112
+ playableByCardId: Record<string, string[]>;
5113
+ shuffled?: true | undefined;
5114
+ }>>;
5115
+ causedBy?: string | undefined;
5116
+ };
5117
+ acknowledgedClientActionId?: string | undefined;
5118
+ }>, unknown, z.core.$ZodTypeInternals<PluginProtocolEnvelope<{
4071
5119
  type: "interaction.result";
4072
5120
  clientActionId: string;
4073
5121
  accepted: false;
@@ -4546,25 +5594,8 @@ declare const HostToPluginEnvelopeSchema: z.ZodType<PluginProtocolEnvelope<{
4546
5594
  causedBy?: string | undefined;
4547
5595
  };
4548
5596
  acknowledgedClientActionId?: string | undefined;
4549
- }>, unknown, z.core.$ZodTypeInternals<PluginProtocolEnvelope<{
4550
- type: "interaction.result";
4551
- clientActionId: string;
4552
- accepted: false;
4553
- errorCode: string;
4554
- message?: string | undefined;
4555
- } | {
4556
- type: "runtime.init";
4557
- session: {
4558
- sessionId: string;
4559
- players: {
4560
- playerId: string;
4561
- displayName: string;
4562
- color?: string | undefined;
4563
- }[];
4564
- assets?: Record<string, Blob> | undefined;
4565
- };
4566
5597
  } | {
4567
- type: "gameplay.frame";
5598
+ type: "gameplay.compact-frame";
4568
5599
  frame: {
4569
5600
  players: string[];
4570
5601
  events: {
@@ -4580,7 +5611,6 @@ declare const HostToPluginEnvelopeSchema: z.ZodType<PluginProtocolEnvelope<{
4580
5611
  };
4581
5612
  }[] | undefined;
4582
5613
  }[];
4583
- view: Record<string, z.core.util.JSONType> | null;
4584
5614
  flow: {
4585
5615
  currentPhase: string | null;
4586
5616
  activePlayers: string[];
@@ -4592,7 +5622,14 @@ declare const HostToPluginEnvelopeSchema: z.ZodType<PluginProtocolEnvelope<{
4592
5622
  pendingPlayerIds: string[];
4593
5623
  } | null;
4594
5624
  };
4595
- availableInteractions: {
5625
+ basis: {
5626
+ sessionId: string;
5627
+ version: number;
5628
+ actionSetVersion: string;
5629
+ perspectivePlayerId: string;
5630
+ };
5631
+ view: Record<string, z.core.util.JSONType> | null;
5632
+ interactionsByRef: Record<string, {
4596
5633
  phaseName: string;
4597
5634
  interactionKey: string;
4598
5635
  interactionId: string;
@@ -4782,7 +5819,8 @@ declare const HostToPluginEnvelopeSchema: z.ZodType<PluginProtocolEnvelope<{
4782
5819
  ruleId: string;
4783
5820
  errorCode: string;
4784
5821
  }[] | undefined;
4785
- }[];
5822
+ }>;
5823
+ availableInteractionRefs: string[];
4786
5824
  zones: Record<string, Record<string, {
4787
5825
  tiles: ({
4788
5826
  disclosure: "visible";
@@ -4823,205 +5861,9 @@ declare const HostToPluginEnvelopeSchema: z.ZodType<PluginProtocolEnvelope<{
4823
5861
  backImage?: string | undefined;
4824
5862
  }>;
4825
5863
  cardBacksById: Record<string, string>;
4826
- playableByCardId: Record<string, {
4827
- phaseName: string;
4828
- interactionKey: string;
4829
- interactionId: string;
4830
- label: string;
4831
- commit: {
4832
- mode: "manual";
4833
- } | {
4834
- mode: "autoWhenReady";
4835
- };
4836
- inputs: {
4837
- key: string;
4838
- kind: "card" | "tile" | "board-edge" | "board-vertex" | "board-space" | "form" | "position" | "rng";
4839
- domain: {
4840
- type: "cardTarget";
4841
- projection: "resolved";
4842
- targetKind: "card";
4843
- zoneIds: string[];
4844
- eligibleTargets: string[];
4845
- selection?: {
4846
- mode: "many";
4847
- min: number;
4848
- max?: number | undefined;
4849
- distinct?: boolean | undefined;
4850
- } | {
4851
- mode: "single";
4852
- } | undefined;
4853
- } | {
4854
- type: "tileTarget";
4855
- projection: "resolved";
4856
- targetKind: "tile";
4857
- zoneIds: string[];
4858
- boardIds: string[];
4859
- eligibleTargets: (string & z.core.$brand<"SeatTileRef">)[];
4860
- selection?: {
4861
- mode: "many";
4862
- min: number;
4863
- max?: number | undefined;
4864
- distinct?: boolean | undefined;
4865
- } | {
4866
- mode: "single";
4867
- } | undefined;
4868
- } | {
4869
- type: "boardTarget";
4870
- projection: "resolved";
4871
- targetKind: "edge" | "vertex" | "space";
4872
- boardId: string;
4873
- valueKind: "board-id";
4874
- eligibleTargets: string[];
4875
- selection?: {
4876
- mode: "many";
4877
- min: number;
4878
- max?: number | undefined;
4879
- distinct?: boolean | undefined;
4880
- } | {
4881
- mode: "single";
4882
- } | undefined;
4883
- } | {
4884
- type: "boardTarget";
4885
- projection: "resolved";
4886
- targetKind: "space";
4887
- boardBaseId: string;
4888
- valueKind: "board-space";
4889
- eligibleTargets: {
4890
- boardId: string;
4891
- spaceId: string;
4892
- }[];
4893
- selection?: {
4894
- mode: "many";
4895
- min: number;
4896
- max?: number | undefined;
4897
- distinct?: boolean | undefined;
4898
- } | {
4899
- mode: "single";
4900
- } | undefined;
4901
- } | {
4902
- type: "zonePosition";
4903
- zones: {
4904
- zoneId: string;
4905
- hostId: string;
4906
- size: number;
4907
- }[];
4908
- selection?: {
4909
- mode: "many";
4910
- min: number;
4911
- max?: number | undefined;
4912
- distinct?: boolean | undefined;
4913
- } | {
4914
- mode: "single";
4915
- } | undefined;
4916
- } | {
4917
- type: "resourceMap";
4918
- resources: {
4919
- resourceId: string;
4920
- min: number;
4921
- max: number;
4922
- label?: string | undefined;
4923
- icon?: string | undefined;
4924
- }[];
4925
- selection?: {
4926
- mode: "many";
4927
- min: number;
4928
- max?: number | undefined;
4929
- distinct?: boolean | undefined;
4930
- } | {
4931
- mode: "single";
4932
- } | undefined;
4933
- } | {
4934
- type: "boundedNumber";
4935
- min: number;
4936
- max: number;
4937
- selection?: {
4938
- mode: "many";
4939
- min: number;
4940
- max?: number | undefined;
4941
- distinct?: boolean | undefined;
4942
- } | {
4943
- mode: "single";
4944
- } | undefined;
4945
- step?: number | undefined;
4946
- } | {
4947
- type: "choice";
4948
- choices: {
4949
- value: string | null;
4950
- label: string;
4951
- icon?: string | undefined;
4952
- badge?: string | undefined;
4953
- description?: string | undefined;
4954
- disabled?: boolean | undefined;
4955
- disabledReason?: string | undefined;
4956
- }[];
4957
- selection?: {
4958
- mode: "many";
4959
- min: number;
4960
- max?: number | undefined;
4961
- distinct?: boolean | undefined;
4962
- } | {
4963
- mode: "single";
4964
- } | undefined;
4965
- } | {
4966
- type: "choiceList";
4967
- choices: {
4968
- label: string;
4969
- value: string;
4970
- icon?: string | undefined;
4971
- badge?: string | undefined;
4972
- description?: string | undefined;
4973
- disabled?: boolean | undefined;
4974
- disabledReason?: string | undefined;
4975
- }[];
4976
- selection?: {
4977
- mode: "many";
4978
- min: number;
4979
- max?: number | undefined;
4980
- distinct?: boolean | undefined;
4981
- } | {
4982
- mode: "single";
4983
- } | undefined;
4984
- min?: number | undefined;
4985
- max?: number | undefined;
4986
- };
4987
- defaultValue?: z.core.util.JSONType | undefined;
4988
- }[];
4989
- availability: {
4990
- status: "available";
4991
- } | {
4992
- status: "notYourTurn";
4993
- reason: string;
4994
- } | {
4995
- status: "blocked";
4996
- reason: string;
4997
- code?: string | undefined;
4998
- };
4999
- kind: "action";
5000
- help?: string | undefined;
5001
- zoneId?: string | undefined;
5002
- zoneIds?: string[] | undefined;
5003
- descriptorDigest?: string | undefined;
5004
- actorSeat?: number | undefined;
5005
- draftDigest?: string | undefined;
5006
- step?: {
5007
- index: number;
5008
- total: number;
5009
- selected: Record<string, z.core.util.JSONType>;
5010
- canCancel: boolean;
5011
- } | undefined;
5012
- reasons?: {
5013
- ruleId: string;
5014
- errorCode: string;
5015
- }[] | undefined;
5016
- }[]>;
5864
+ playableByCardId: Record<string, string[]>;
5017
5865
  shuffled?: true | undefined;
5018
5866
  }>>;
5019
- basis: {
5020
- sessionId: string;
5021
- version: number;
5022
- actionSetVersion: string;
5023
- perspectivePlayerId: string;
5024
- };
5025
5867
  causedBy?: string | undefined;
5026
5868
  };
5027
5869
  acknowledgedClientActionId?: string | undefined;
@@ -5049,6 +5891,9 @@ declare const PluginToHostEnvelopeSchema: z.ZodType<PluginProtocolEnvelope<{
5049
5891
  type: "interaction.cancel";
5050
5892
  } | {
5051
5893
  type: "runtime.ready";
5894
+ } | {
5895
+ type: "runtime.capabilities";
5896
+ compactGameplayFrames: true;
5052
5897
  } | {
5053
5898
  type: "runtime.resume";
5054
5899
  pendingClientActionId?: string | undefined;
@@ -5084,6 +5929,9 @@ declare const PluginToHostEnvelopeSchema: z.ZodType<PluginProtocolEnvelope<{
5084
5929
  type: "interaction.cancel";
5085
5930
  } | {
5086
5931
  type: "runtime.ready";
5932
+ } | {
5933
+ type: "runtime.capabilities";
5934
+ compactGameplayFrames: true;
5087
5935
  } | {
5088
5936
  type: "runtime.resume";
5089
5937
  pendingClientActionId?: string | undefined;