@dreamboard-games/sdk 0.4.0-alpha.0 → 0.4.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/README.md +8 -1
  2. package/REFERENCE.md +1849 -379
  3. package/dist/{ResourceCounter-BTXklCEZ.d.ts → ResourceCounter-BuiNstXs.d.ts} +5 -1
  4. package/dist/{ThemeProvider-DvMl17Ny.d.ts → ThemeProvider-B1sIoBlX.d.ts} +1 -1
  5. package/dist/attributes-DbvyMbXw.d.ts +68 -0
  6. package/dist/authoring/index.d.ts +66 -0
  7. package/dist/authoring/index.js +560 -0
  8. package/dist/authoring/index.js.map +1 -0
  9. package/dist/browser-interaction.d.ts +246 -44
  10. package/dist/browser-interaction.js +14 -1
  11. package/dist/{chunk-Q5O7GPVY.js → chunk-45FI6XII.js} +630 -375
  12. package/dist/chunk-45FI6XII.js.map +1 -0
  13. package/dist/{chunk-4G7552LO.js → chunk-6JQFGSLD.js} +216 -47
  14. package/dist/chunk-6JQFGSLD.js.map +1 -0
  15. package/dist/{chunk-NBAEEHAU.js → chunk-CP35NPPY.js} +5926 -5266
  16. package/dist/chunk-CP35NPPY.js.map +1 -0
  17. package/dist/{chunk-2LDZ5C3T.js → chunk-FWVV2X74.js} +2 -2
  18. package/dist/{chunk-MNKDSGIA.js → chunk-HWJS3VOJ.js} +6 -2
  19. package/dist/chunk-HWJS3VOJ.js.map +1 -0
  20. package/dist/chunk-K5ZRJTZZ.js +328 -0
  21. package/dist/chunk-K5ZRJTZZ.js.map +1 -0
  22. package/dist/{chunk-U5KBV2BA.js → chunk-N6ZDIMRB.js} +444 -223
  23. package/dist/chunk-N6ZDIMRB.js.map +1 -0
  24. package/dist/chunk-O6M6PN4E.js +1225 -0
  25. package/dist/chunk-O6M6PN4E.js.map +1 -0
  26. package/dist/chunk-PF7L4BMG.js +117 -0
  27. package/dist/chunk-PF7L4BMG.js.map +1 -0
  28. package/dist/{chunk-P7F4L2FF.js → chunk-WOWFONLZ.js} +609 -1287
  29. package/dist/chunk-WOWFONLZ.js.map +1 -0
  30. package/dist/{chunk-QLG6VEMW.js → chunk-WUIVY2KE.js} +318 -21
  31. package/dist/chunk-WUIVY2KE.js.map +1 -0
  32. package/dist/chunk-ZAS2SENW.js +12 -0
  33. package/dist/chunk-ZAS2SENW.js.map +1 -0
  34. package/dist/codegen.d.ts +11 -1
  35. package/dist/codegen.js +1 -1
  36. package/dist/{components-DaIqi9QM.d.ts → components-BbWPnZCF.d.ts} +37 -70
  37. package/dist/{hex-board-view-UCUjMALd.d.ts → hex-board-view-Kz9Q_zsv.d.ts} +1 -1
  38. package/dist/index.js +2 -1
  39. package/dist/package-set.d.ts +2 -2
  40. package/dist/package-set.js +2 -1
  41. package/dist/player-state-Cqpyeql0.d.ts +371 -0
  42. package/dist/protocol-BP193lva.d.ts +267 -0
  43. package/dist/reducer/advanced.d.ts +2 -2
  44. package/dist/reducer/advanced.js +1 -1
  45. package/dist/reducer-contract.js +1 -1
  46. package/dist/reducer.d.ts +7 -7
  47. package/dist/reducer.js +190 -183
  48. package/dist/reducer.js.map +1 -1
  49. package/dist/runtime/primitives.d.ts +10 -9
  50. package/dist/runtime/primitives.js +9 -6
  51. package/dist/runtime/runtime-api.d.ts +2 -2
  52. package/dist/runtime/workspace-contract.d.ts +28 -76
  53. package/dist/runtime/workspace-contract.js +7 -5
  54. package/dist/runtime-api-BJharVaj.d.ts +198 -0
  55. package/dist/runtime-api-C6aWo9c0.d.ts +95 -0
  56. package/dist/runtime-json-CQ9QbLZ5.d.ts +5 -0
  57. package/dist/runtime.d.ts +80 -11
  58. package/dist/runtime.js +89 -445
  59. package/dist/runtime.js.map +1 -1
  60. package/dist/testing.d.ts +643 -22
  61. package/dist/testing.js +1371 -76
  62. package/dist/testing.js.map +1 -1
  63. package/dist/types-CYeN0wLK.d.ts +29 -0
  64. package/dist/{attributes-BeRyboMS.d.ts → types-DJj5MJkl.d.ts} +32 -55
  65. package/dist/types.d.ts +14 -7
  66. package/dist/ui/components.d.ts +4 -5
  67. package/dist/ui/components.js +19 -1
  68. package/dist/ui/player-state.d.ts +2 -365
  69. package/dist/ui/plugin-styles.css +1 -1
  70. package/dist/{ui-contract-BUC6iS3s.d.ts → ui-contract-CY7cxsCC.d.ts} +17 -26
  71. package/dist/ui.d.ts +8 -13
  72. package/dist/ui.js +20 -2
  73. package/dist/{views-B0hlW6IT.d.ts → views-fn2RuXOx.d.ts} +59 -44
  74. package/package.json +28 -4
  75. package/dist/chunk-4G7552LO.js.map +0 -1
  76. package/dist/chunk-MNKDSGIA.js.map +0 -1
  77. package/dist/chunk-NBAEEHAU.js.map +0 -1
  78. package/dist/chunk-P7F4L2FF.js.map +0 -1
  79. package/dist/chunk-Q5O7GPVY.js.map +0 -1
  80. package/dist/chunk-QLG6VEMW.js.map +0 -1
  81. package/dist/chunk-U5KBV2BA.js.map +0 -1
  82. package/dist/hex-color-MhOyuY-o.d.ts +0 -8
  83. package/dist/runtime-api-BXd70c2e.d.ts +0 -490
  84. /package/dist/{chunk-2LDZ5C3T.js.map → chunk-FWVV2X74.js.map} +0 -0
@@ -1,490 +0,0 @@
1
- import { H as HexColor } from './hex-color-MhOyuY-o.js';
2
-
3
- type PlayerId = string;
4
-
5
- /**
6
- * Plugin State Types
7
- *
8
- * These types define the state structure that the host app sends to the plugin
9
- * via state-sync messages. The plugin uses these types to access pre-computed
10
- * game state without needing to parse raw SSE messages.
11
- */
12
- type ActionName = string;
13
- interface SeatAssignment {
14
- playerId: PlayerId;
15
- controllerUserId?: string;
16
- displayName: string;
17
- playerColor?: HexColor;
18
- isHost?: boolean;
19
- }
20
- interface HistoryEntrySummary {
21
- id: string;
22
- version: number;
23
- timestamp: string;
24
- description: string;
25
- playerId?: PlayerId;
26
- actionType?: ActionName;
27
- isCurrent: boolean;
28
- }
29
- /**
30
- * Lobby state for the pre-game lobby phase
31
- */
32
- interface LobbyState {
33
- /** Current seat assignments in the lobby */
34
- seats: SeatAssignment[];
35
- /** Whether the game can be started (all seats filled) */
36
- canStart: boolean;
37
- /** User ID of the session host */
38
- hostUserId: string;
39
- }
40
- /**
41
- * Notification types that get queued for the plugin
42
- */
43
- type NotificationType = "YOUR_TURN" | "PROMPT_OPENED" | "ACTION_EXECUTED" | "ACTION_REJECTED" | "TURN_CHANGED" | "STATE_CHANGED" | "GAME_ENDED" | "ERROR";
44
- /**
45
- * YOUR_TURN notification payload
46
- */
47
- interface YourTurnPayload {
48
- type: "YOUR_TURN";
49
- activePlayers: PlayerId[];
50
- }
51
- /**
52
- * PROMPT_OPENED notification payload
53
- */
54
- interface PromptOpenedPayload {
55
- type: "PROMPT_OPENED";
56
- promptId: string;
57
- promptInstanceId: string;
58
- targetPlayer: PlayerId;
59
- title?: string;
60
- }
61
- /**
62
- * ACTION_EXECUTED notification payload
63
- */
64
- interface ActionExecutedPayload {
65
- type: "ACTION_EXECUTED";
66
- playerId: PlayerId;
67
- actionType: string;
68
- }
69
- /**
70
- * ACTION_REJECTED notification payload
71
- */
72
- interface ActionRejectedPayload {
73
- type: "ACTION_REJECTED";
74
- reason: string;
75
- targetPlayer?: string;
76
- }
77
- /**
78
- * STATE_CHANGED notification payload
79
- */
80
- interface StateChangedPayload {
81
- type: "STATE_CHANGED";
82
- newState: string;
83
- }
84
- /**
85
- * TURN_CHANGED notification payload
86
- */
87
- interface TurnChangedPayload {
88
- type: "TURN_CHANGED";
89
- previousPlayers: PlayerId[];
90
- currentPlayers: PlayerId[];
91
- }
92
- /**
93
- * GAME_ENDED notification payload
94
- */
95
- interface GameEndedPayload {
96
- type: "GAME_ENDED";
97
- winner?: string;
98
- finalScores: Record<string, number>;
99
- reason: string;
100
- }
101
- /**
102
- * ERROR notification payload
103
- */
104
- interface ErrorPayload {
105
- type: "ERROR";
106
- message: string;
107
- code?: string;
108
- }
109
- /**
110
- * Union of all notification payloads
111
- */
112
- type NotificationPayload = YourTurnPayload | PromptOpenedPayload | ActionExecutedPayload | ActionRejectedPayload | TurnChangedPayload | StateChangedPayload | GameEndedPayload | ErrorPayload;
113
- /**
114
- * Notification entry in the queue.
115
- * Notifications are ephemeral events that the plugin can consume and mark as read.
116
- */
117
- interface Notification {
118
- /** Unique notification ID */
119
- id: string;
120
- /** Type of notification */
121
- type: NotificationType;
122
- /** Type-specific payload */
123
- payload: NotificationPayload;
124
- /** Timestamp when the notification was created */
125
- timestamp: number;
126
- /** Whether the plugin has marked this notification as read */
127
- read: boolean;
128
- }
129
- /**
130
- * Session state that gets synchronized to the plugin.
131
- * This includes player switching info that was previously sent via
132
- * separate player-switched messages.
133
- */
134
- interface PluginSessionState$1 {
135
- /** Current session ID */
136
- sessionId: string | null;
137
- /** Player IDs that this user can control (immutable after game starts) */
138
- controllablePlayerIds: PlayerId[];
139
- /** The currently selected player ID that the user is controlling */
140
- controllingPlayerId: PlayerId | null;
141
- /** User ID of the controller */
142
- userId: string | null;
143
- }
144
- /**
145
- * History state for the host's history navigator.
146
- * Only sent to the host user.
147
- */
148
- interface HistoryState {
149
- /** List of history entries (newest first when displayed) */
150
- entries: HistoryEntrySummary[];
151
- /** Index of the current state in the history */
152
- currentIndex: number;
153
- /** Whether there are earlier states to restore to */
154
- canGoBack: boolean;
155
- /** Whether there are later states to restore to */
156
- canGoForward: boolean;
157
- }
158
- /** Choice option surfaced on a prompt-kind interaction's structured context. */
159
- interface InteractionContextOption {
160
- id: string;
161
- label?: string;
162
- }
163
- /** Structured context attached to a prompt-kind InteractionDescriptor. */
164
- interface InteractionContext {
165
- /** Addressed player id. */
166
- to: string;
167
- title?: string;
168
- /** Authored prompt payload. Shape is defined by the game's prompt schema. */
169
- payload?: Record<string, unknown>;
170
- /** Selectable options for choice-kind prompts. */
171
- options?: readonly InteractionContextOption[];
172
- }
173
- type InteractionCommitPolicy = {
174
- mode: "manual";
175
- } | {
176
- mode: "autoWhenReady";
177
- };
178
- type InputSelection = {
179
- mode: "single";
180
- } | {
181
- mode: "many";
182
- min: number;
183
- max?: number;
184
- distinct?: boolean;
185
- };
186
- type InputDomain = CardTargetDomain | BoardTargetDomain | ResourceMapDomain | BoundedNumberDomain | ChoiceDomain | ChoiceListDomain;
187
- type InputDomainResolver = EagerInputDomainDependencies | LazyInputDomainDependencies;
188
- interface EagerInputDomainDependencies {
189
- mode: "eager";
190
- dependentCases: readonly InputDomainDependencyCase[];
191
- }
192
- interface LazyInputDomainDependencies {
193
- mode: "lazy";
194
- dependsOn: readonly string[];
195
- resolver: {
196
- interactionKey?: string;
197
- inputKey: string;
198
- };
199
- }
200
- interface ResolvedCardTargetDomain {
201
- type: "cardTarget";
202
- projection: "resolved";
203
- zoneId?: string;
204
- zoneIds?: readonly string[];
205
- eligibleTargets: readonly string[];
206
- selection?: InputSelection;
207
- dependencies?: InputDomainResolver;
208
- }
209
- interface LazyCardTargetDomain {
210
- type: "cardTarget";
211
- projection: "lazy";
212
- zoneId?: string;
213
- zoneIds?: readonly string[];
214
- selection?: InputSelection;
215
- dependencies: LazyInputDomainDependencies;
216
- }
217
- type CardTargetDomain = ResolvedCardTargetDomain | LazyCardTargetDomain;
218
- interface ResolvedBoardTargetDomain {
219
- type: "boardTarget";
220
- projection: "resolved";
221
- targetKind: string;
222
- boardId?: string;
223
- eligibleTargets: readonly string[];
224
- selection?: InputSelection;
225
- dependencies?: InputDomainResolver;
226
- }
227
- interface LazyBoardTargetDomain {
228
- type: "boardTarget";
229
- projection: "lazy";
230
- targetKind: string;
231
- boardId?: string;
232
- selection?: InputSelection;
233
- dependencies: LazyInputDomainDependencies;
234
- }
235
- type BoardTargetDomain = ResolvedBoardTargetDomain | LazyBoardTargetDomain;
236
- interface ResourceMapDomain {
237
- type: "resourceMap";
238
- resources?: ReadonlyArray<{
239
- resourceId: string;
240
- label?: string;
241
- icon?: string;
242
- min: number;
243
- max: number;
244
- }>;
245
- dependencies?: InputDomainResolver;
246
- }
247
- interface BoundedNumberDomain {
248
- type: "boundedNumber";
249
- min?: number;
250
- max?: number;
251
- step?: number;
252
- dependencies?: InputDomainResolver;
253
- }
254
- interface ChoiceDomain {
255
- type: "choice";
256
- choices?: readonly InteractionChoiceOption[];
257
- selection?: InputSelection;
258
- dependencies?: InputDomainResolver;
259
- }
260
- interface ChoiceListDomain {
261
- type: "choiceList";
262
- choices?: readonly InteractionChoiceOption[];
263
- min?: number;
264
- max?: number;
265
- selection?: InputSelection;
266
- dependencies?: InputDomainResolver;
267
- }
268
- interface InputDomainDependencyCase {
269
- when: Readonly<Record<string, string>>;
270
- domain: InputDomain;
271
- }
272
- interface InteractionChoiceOption {
273
- value: string | null;
274
- label: string;
275
- icon?: string;
276
- badge?: string;
277
- description?: string;
278
- disabled?: boolean;
279
- disabledReason?: string;
280
- }
281
- interface InteractionInputDescriptor {
282
- key: string;
283
- kind: string;
284
- domain: InputDomain;
285
- defaultValue?: unknown;
286
- }
287
- interface InteractionDiagnosticReason {
288
- ruleId: string;
289
- errorCode: string;
290
- }
291
- type InteractionAvailability = {
292
- status: "available";
293
- } | {
294
- status: "notYourTurn";
295
- reason: string;
296
- } | {
297
- status: "insufficientResources";
298
- reason: string;
299
- missingResources: Readonly<Record<string, number>>;
300
- } | {
301
- status: "blocked";
302
- reason: string;
303
- code?: string;
304
- };
305
- interface InteractionDescriptorBase<Key extends string = string> {
306
- phaseName: string;
307
- interactionKey: Key;
308
- interactionId: string;
309
- /** Draft commit policy. Always materialized by the trusted reducer bundle. */
310
- commit: InteractionCommitPolicy;
311
- /** Canonical descriptor digest used by browser replay/protocol tooling when projected by the host. */
312
- descriptorDigest?: string;
313
- /** Explicit authoring/runtime actor seat used by browser replay draft digests. */
314
- actorSeat?: number;
315
- /** Canonical draft digest used by browser replay/protocol tooling when projected by the host. */
316
- draftDigest?: string;
317
- /** Source zone id for zone-scoped interactions (e.g., cardInput). */
318
- zoneId?: string;
319
- /** Source zone ids for zone-scoped interactions that span multiple zones. */
320
- zoneIds?: readonly string[];
321
- /** Ordered input descriptors. This is the canonical source for input keys, collector kind, and valid-value domains. */
322
- inputs: readonly InteractionInputDescriptor[];
323
- /** Resolved cost map keyed by resource id (if interaction declares one). */
324
- cost?: Record<string, unknown>;
325
- /** Snapshot of seat's currently available resources keyed by resource id. */
326
- currentResources?: Record<string, unknown>;
327
- /** Authoritative availability state for this descriptor. */
328
- availability: InteractionAvailability;
329
- /** Optional verbose diagnostics for dev tooling; omitted from production projections. */
330
- reasons?: readonly InteractionDiagnosticReason[];
331
- }
332
- type ActionInteractionDescriptor<Key extends string = string> = InteractionDescriptorBase<Key> & {
333
- kind: "action";
334
- };
335
- type PromptInteractionDescriptor<Key extends string = string> = InteractionDescriptorBase<Key> & {
336
- kind: "prompt";
337
- /** Structured prompt context for prompt-kind interactions. */
338
- context: InteractionContext;
339
- };
340
- type InteractionDescriptor<Key extends string = string> = ActionInteractionDescriptor<Key> | PromptInteractionDescriptor<Key>;
341
- /**
342
- * Per-player view of a single zone. Mirrors the ZoneHandles wire shape from
343
- * the trusted bundle's resolveZoneHandles; `cardViewsById` is JSON-serialized
344
- * `ViewCard` and `playableByCardId` lists the interactions that are playable
345
- * on each card (eligibility already filtered by each interaction's validate).
346
- */
347
- interface ZoneHandlesSnapshot<InteractionType extends string = string> {
348
- cardIds: readonly string[];
349
- cardViewsById: Readonly<Record<string, string>>;
350
- playableByCardId: Readonly<Record<string, ReadonlyArray<InteractionDescriptor<InteractionType>>>>;
351
- }
352
- interface SimultaneousPhaseSnapshot {
353
- phaseName: string;
354
- interactionId: string;
355
- actorIds: PlayerId[];
356
- sealedPlayerIds: PlayerId[];
357
- pendingPlayerIds: PlayerId[];
358
- }
359
- interface GameplaySnapshot<PhaseType extends string = string, StageType extends string = string, InteractionType extends string = string> {
360
- currentPhase: PhaseType | null;
361
- currentStage: StageType | null;
362
- activePlayers: PlayerId[];
363
- simultaneousPhase?: SimultaneousPhaseSnapshot | null;
364
- availableInteractions: ReadonlyArray<InteractionDescriptor<InteractionType>>;
365
- /**
366
- * Zone handles scoped to the controlling player. Keyed by zoneId.
367
- * Authored via phase `zones`; projected from `resolveZoneHandles`.
368
- */
369
- zones: Readonly<Record<string, ZoneHandlesSnapshot<InteractionType>>>;
370
- }
371
- /**
372
- * The complete state snapshot sent to the plugin via state-sync.
373
- * This is the single source of truth for all reducer-native plugin state.
374
- */
375
- interface PluginStateSnapshot<View = unknown, PhaseType extends string = string, StageType extends string = string, InteractionType extends string = string> {
376
- /** Projected seat-specific reducer-native view for the controlling player */
377
- view: View | null;
378
- /** Gameplay transport state that sits alongside the projected reducer view */
379
- gameplay: GameplaySnapshot<PhaseType, StageType, InteractionType>;
380
- /** Lobby state (from LOBBY_UPDATE) - null if game has started */
381
- lobby: LobbyState | null;
382
- /** Notification queue (from YOUR_TURN, ACTION_REJECTED, PROMPT_OPENED, etc.) */
383
- notifications: Notification[];
384
- /** Session state (includes controllingPlayerId for player switching) */
385
- session: PluginSessionState$1;
386
- /** History state for host navigation (null if not host or history disabled) */
387
- history: HistoryState | null;
388
- /** Monotonic sync ID for acknowledgment tracking */
389
- syncId: number;
390
- }
391
-
392
- /**
393
- * Result of validating a player action
394
- */
395
- interface ValidationResult {
396
- /** Whether the action is valid */
397
- valid: boolean;
398
- /** Machine-readable error code if validation failed */
399
- errorCode?: string;
400
- /** Human-readable error message if validation failed */
401
- message?: string;
402
- }
403
- /**
404
- * Structured authoritative submission failure returned by runtime submit APIs.
405
- */
406
- interface SubmissionError extends Error {
407
- /** Machine-readable error code when available */
408
- errorCode?: string;
409
- }
410
- /**
411
- * Plugin session state
412
- */
413
- interface PluginSessionState {
414
- /** Session initialization status */
415
- status: "loading" | "ready";
416
- /** Current session ID (null if not initialized) */
417
- sessionId: string | null;
418
- /** Player IDs that this user can control (immutable after game starts) */
419
- controllablePlayerIds: PlayerId[];
420
- /** The currently selected player ID that the user is controlling */
421
- controllingPlayerId: PlayerId | null;
422
- /** User ID of the controller (null if not initialized) */
423
- userId: string | null;
424
- }
425
- /**
426
- * RuntimeAPI provides the interface between plugin code and the game runtime.
427
- * This API is exposed to plugin iframes for subscribing to game events and submitting actions.
428
- */
429
- interface RuntimeAPI {
430
- /**
431
- * Validate a player interaction before submitting it. `params` is typed
432
- * as `unknown` because a `promptInput` collector can declare a scalar
433
- * response schema (`z.enum([...])`, `z.string()`, `z.number()`, ...)
434
- * while ordinary collectors pass an object.
435
- *
436
- * @param playerId - ID of the player performing the interaction
437
- * @param interactionId - Identifier of the interaction
438
- * @param params - Interaction-specific payload
439
- * @returns Promise that resolves with validation result
440
- */
441
- validateInteraction: (playerId: PlayerId, interactionId: string, params: unknown) => Promise<ValidationResult>;
442
- /**
443
- * Submit a player interaction to the game server. `submitInteraction`
444
- * is the single submission verb for every interaction kind — authors
445
- * do not split between "action" and "prompt response" calls.
446
- *
447
- * @param playerId - ID of the player performing the interaction
448
- * @param interactionId - Identifier of the interaction
449
- * @param params - Interaction-specific payload (see
450
- * {@link validateInteraction} for the `unknown` typing rationale)
451
- * @throws SubmissionError if submission is rejected by the authority.
452
- */
453
- submitInteraction: (playerId: PlayerId, interactionId: string, params: unknown) => Promise<void>;
454
- /**
455
- * Get the current plugin session state.
456
- * Returns initialization status and session/player IDs.
457
- *
458
- * @returns Current plugin session state
459
- *
460
- * @example
461
- * ```typescript
462
- * const { status, sessionId, playerId } = runtime.getSessionState();
463
- * if (status === "ready") {
464
- * console.log('Connected to session:', sessionId);
465
- * }
466
- * ```
467
- */
468
- getSessionState: () => PluginSessionState;
469
- /**
470
- * Disconnect from the runtime and clean up all listeners.
471
- * Should be called when the plugin is unmounting.
472
- */
473
- disconnect: () => void;
474
- /**
475
- * Request to switch to a different player.
476
- * Only works if the user controls multiple seats.
477
- * The parent window will handle the switch and update the session state.
478
- *
479
- * @param playerId - ID of the player to switch to
480
- *
481
- * @example
482
- * ```typescript
483
- * // Switch to player-2
484
- * runtime.switchPlayer?.('player-2');
485
- * ```
486
- */
487
- switchPlayer?: (playerId: PlayerId) => void;
488
- }
489
-
490
- export type { GameplaySnapshot as G, InputDomain as I, PlayerId as P, RuntimeAPI as R, SubmissionError as S, ValidationResult as V, ZoneHandlesSnapshot as Z, InteractionDescriptor as a, InteractionInputDescriptor as b, PluginSessionState as c, PluginStateSnapshot as d };