@dreamboard-games/sdk 0.5.0-alpha.2 → 0.5.0-alpha.4

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 (151) hide show
  1. package/README.md +186 -45
  2. package/dist/board-target-B0QG6OYx.d.ts +8 -0
  3. package/dist/chunk-3JXUL4VN.js +139 -0
  4. package/dist/chunk-3JXUL4VN.js.map +1 -0
  5. package/dist/{chunk-S2JEDVWH.js → chunk-C77SYIVT.js} +6102 -6505
  6. package/dist/chunk-C77SYIVT.js.map +1 -0
  7. package/dist/chunk-DMFVAZI2.js +16 -0
  8. package/dist/chunk-DMFVAZI2.js.map +1 -0
  9. package/dist/chunk-OOFMBCFF.js +1338 -0
  10. package/dist/chunk-OOFMBCFF.js.map +1 -0
  11. package/dist/chunk-UG2Q4NLG.js +590 -0
  12. package/dist/chunk-UG2Q4NLG.js.map +1 -0
  13. package/dist/chunk-XU6WJW6K.js +847 -0
  14. package/dist/chunk-XU6WJW6K.js.map +1 -0
  15. package/dist/diagnostics-B8d5aLad.d.ts +65 -0
  16. package/dist/extract-gVKcB8Og.d.ts +4736 -0
  17. package/dist/index.d.ts +3782 -1
  18. package/dist/index.js +1096 -6
  19. package/dist/index.js.map +1 -1
  20. package/dist/model-vdpLHrxh.d.ts +432 -0
  21. package/dist/react.d.ts +60 -0
  22. package/dist/react.js +208 -0
  23. package/dist/react.js.map +1 -0
  24. package/dist/reducer.d.ts +1244 -78
  25. package/dist/reducer.js +4204 -121
  26. package/dist/reducer.js.map +1 -1
  27. package/dist/testing.d.ts +520 -564
  28. package/dist/testing.js +2451 -915
  29. package/dist/testing.js.map +1 -1
  30. package/dist/types-Bj5ZLTUV.d.ts +114 -0
  31. package/package.json +40 -142
  32. package/dist/HandView-Bi2lxzQP.d.ts +0 -79
  33. package/dist/ResourceCounter-BFxJknqp.d.ts +0 -98
  34. package/dist/ThemeProvider-CElaL2ik.d.ts +0 -99
  35. package/dist/attributes-DbvyMbXw.d.ts +0 -68
  36. package/dist/browser-interaction.d.ts +0 -910
  37. package/dist/browser-interaction.js +0 -119
  38. package/dist/browser-interaction.js.map +0 -1
  39. package/dist/chunk-32PFKDV7.js +0 -11705
  40. package/dist/chunk-32PFKDV7.js.map +0 -1
  41. package/dist/chunk-3BAD4VC2.js +0 -263
  42. package/dist/chunk-3BAD4VC2.js.map +0 -1
  43. package/dist/chunk-3SKDNDPG.js +0 -104
  44. package/dist/chunk-3SKDNDPG.js.map +0 -1
  45. package/dist/chunk-5YV2WHJ4.js +0 -25
  46. package/dist/chunk-5YV2WHJ4.js.map +0 -1
  47. package/dist/chunk-ANRB4XKA.js +0 -90
  48. package/dist/chunk-ANRB4XKA.js.map +0 -1
  49. package/dist/chunk-BI4G3PM2.js +0 -1864
  50. package/dist/chunk-BI4G3PM2.js.map +0 -1
  51. package/dist/chunk-EVCLTY4Q.js +0 -935
  52. package/dist/chunk-EVCLTY4Q.js.map +0 -1
  53. package/dist/chunk-GDPKTBUR.js +0 -564
  54. package/dist/chunk-GDPKTBUR.js.map +0 -1
  55. package/dist/chunk-H6VDGFL5.js +0 -2903
  56. package/dist/chunk-H6VDGFL5.js.map +0 -1
  57. package/dist/chunk-LR3ZTWQF.js +0 -5960
  58. package/dist/chunk-LR3ZTWQF.js.map +0 -1
  59. package/dist/chunk-PF7L4BMG.js +0 -117
  60. package/dist/chunk-PF7L4BMG.js.map +0 -1
  61. package/dist/chunk-PN5O6GG2.js +0 -32
  62. package/dist/chunk-PN5O6GG2.js.map +0 -1
  63. package/dist/chunk-PZ5AY32C.js +0 -10
  64. package/dist/chunk-PZ5AY32C.js.map +0 -1
  65. package/dist/chunk-S2JEDVWH.js.map +0 -1
  66. package/dist/chunk-T3ZKNUZ7.js +0 -1
  67. package/dist/chunk-T3ZKNUZ7.js.map +0 -1
  68. package/dist/chunk-UGH54WZ2.js +0 -223
  69. package/dist/chunk-UGH54WZ2.js.map +0 -1
  70. package/dist/chunk-VCDWP5VL.js +0 -746
  71. package/dist/chunk-VCDWP5VL.js.map +0 -1
  72. package/dist/chunk-VDXOF4FW.js +0 -69
  73. package/dist/chunk-VDXOF4FW.js.map +0 -1
  74. package/dist/chunk-WHR5UW3F.js +0 -1988
  75. package/dist/chunk-WHR5UW3F.js.map +0 -1
  76. package/dist/chunk-Y75CFE77.js +0 -17
  77. package/dist/chunk-Y75CFE77.js.map +0 -1
  78. package/dist/chunk-Z7QCREWI.js +0 -3435
  79. package/dist/chunk-Z7QCREWI.js.map +0 -1
  80. package/dist/chunk-ZZGN2ATS.js +0 -1941
  81. package/dist/chunk-ZZGN2ATS.js.map +0 -1
  82. package/dist/components-gAbIz7hK.d.ts +0 -1284
  83. package/dist/definitions-BgmV_GhC.d.ts +0 -300
  84. package/dist/diagnostics-DIi3ina7.d.ts +0 -50
  85. package/dist/digest.d.ts +0 -8
  86. package/dist/game-CsZScpcn.d.ts +0 -763
  87. package/dist/hex-board-view-aKkblDp6.d.ts +0 -1228
  88. package/dist/index-CcT9Q7N7.d.ts +0 -193
  89. package/dist/index.d-DjzoK7zn.d.ts +0 -2101
  90. package/dist/package-set.d.ts +0 -13
  91. package/dist/package-set.js +0 -12
  92. package/dist/package-set.js.map +0 -1
  93. package/dist/player-state-Cqpyeql0.d.ts +0 -371
  94. package/dist/plugin-runtime-contract.d.ts +0 -17
  95. package/dist/plugin-runtime-contract.js +0 -92
  96. package/dist/plugin-runtime-contract.js.map +0 -1
  97. package/dist/primitive-props-BNHDkgd7.d.ts +0 -16
  98. package/dist/protocol-dYgafTYY.d.ts +0 -314
  99. package/dist/reducer/advanced.d.ts +0 -82
  100. package/dist/reducer/advanced.js +0 -51
  101. package/dist/reducer/advanced.js.map +0 -1
  102. package/dist/reducer-contract.d.ts +0 -11
  103. package/dist/reducer-contract.js +0 -16
  104. package/dist/reducer-contract.js.map +0 -1
  105. package/dist/reference-games/index.d.ts +0 -31
  106. package/dist/reference-games/index.js +0 -48
  107. package/dist/reference-games/index.js.map +0 -1
  108. package/dist/runtime/primitives.d.ts +0 -250
  109. package/dist/runtime/primitives.js +0 -189
  110. package/dist/runtime/primitives.js.map +0 -1
  111. package/dist/runtime/runtime-api.d.ts +0 -2
  112. package/dist/runtime/runtime-api.js +0 -1
  113. package/dist/runtime/runtime-api.js.map +0 -1
  114. package/dist/runtime/workspace-contract.d.ts +0 -392
  115. package/dist/runtime/workspace-contract.js +0 -28
  116. package/dist/runtime/workspace-contract.js.map +0 -1
  117. package/dist/runtime-RJ5orDJU.d.ts +0 -1699
  118. package/dist/runtime-api-Bz5pwNU_.d.ts +0 -296
  119. package/dist/runtime-json-CQ9QbLZ5.d.ts +0 -5
  120. package/dist/runtime.d.ts +0 -83
  121. package/dist/runtime.js +0 -242
  122. package/dist/runtime.js.map +0 -1
  123. package/dist/schema.d.ts +0 -379
  124. package/dist/stale-contract-artifact-error-XLaweZtF.d.ts +0 -18
  125. package/dist/testing-compiler.d.ts +0 -37
  126. package/dist/testing-compiler.js +0 -272
  127. package/dist/testing-compiler.js.map +0 -1
  128. package/dist/testing-runtime.d.ts +0 -119
  129. package/dist/testing-runtime.js +0 -212
  130. package/dist/testing-runtime.js.map +0 -1
  131. package/dist/types-DJj5MJkl.d.ts +0 -256
  132. package/dist/types-DR7DoB1x.d.ts +0 -28
  133. package/dist/types-JWCYHmu7.d.ts +0 -122
  134. package/dist/types.d.ts +0 -1958
  135. package/dist/types.js +0 -14
  136. package/dist/types.js.map +0 -1
  137. package/dist/ui/components.d.ts +0 -17
  138. package/dist/ui/components.js +0 -216
  139. package/dist/ui/components.js.map +0 -1
  140. package/dist/ui/defaults.d.ts +0 -19
  141. package/dist/ui/defaults.js +0 -104
  142. package/dist/ui/defaults.js.map +0 -1
  143. package/dist/ui/player-state.d.ts +0 -2
  144. package/dist/ui/player-state.js +0 -1
  145. package/dist/ui/player-state.js.map +0 -1
  146. package/dist/ui/plugin-styles.css +0 -2
  147. package/dist/ui-contract-GTUPkf8z.d.ts +0 -1168
  148. package/dist/ui.d.ts +0 -317
  149. package/dist/ui.js +0 -277
  150. package/dist/ui.js.map +0 -1
  151. package/dist/views-BpuWcOyN.d.ts +0 -1641
package/dist/schema.d.ts DELETED
@@ -1,379 +0,0 @@
1
- import { z } from 'zod';
2
- import { M as RuntimeJson, x as PluginProtocolEnvelope, f as HostToPluginPayload, o as InteractionDescriptor, v as PluginGameplayFrame, B as PluginProtocolTape, Z as ZoneHandlesSnapshot, E as PluginSessionDescriptor, J as PluginToHostPayload } from './protocol-dYgafTYY.js';
3
-
4
- declare const RuntimeJsonSchema: z.ZodType<RuntimeJson>;
5
- declare const BoardStaticProjectionSchema: z.ZodObject<{
6
- view: z.ZodType<RuntimeJson, unknown, z.core.$ZodTypeInternals<RuntimeJson, unknown>>;
7
- hash: z.ZodOptional<z.ZodString>;
8
- manifestVersion: z.ZodOptional<z.ZodString>;
9
- }, z.core.$strict>;
10
- declare const SetupGuidanceStepSchema: z.ZodObject<{
11
- id: z.ZodString;
12
- label: z.ZodString;
13
- description: z.ZodOptional<z.ZodString>;
14
- }, z.core.$strict>;
15
- declare const GameGuidanceProjectionSchema: z.ZodObject<{
16
- phase: z.ZodObject<{
17
- id: z.ZodString;
18
- label: z.ZodString;
19
- summary: z.ZodOptional<z.ZodString>;
20
- objective: z.ZodOptional<z.ZodString>;
21
- }, z.core.$strict>;
22
- setup: z.ZodOptional<z.ZodObject<{
23
- profileId: z.ZodString;
24
- name: z.ZodString;
25
- summary: z.ZodOptional<z.ZodString>;
26
- steps: z.ZodArray<z.ZodObject<{
27
- id: z.ZodString;
28
- label: z.ZodString;
29
- description: z.ZodOptional<z.ZodString>;
30
- }, z.core.$strict>>;
31
- }, z.core.$strict>>;
32
- }, z.core.$strict>;
33
- declare const GameEventDetailSchema: z.ZodObject<{
34
- label: z.ZodString;
35
- value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
36
- }, z.core.$strict>;
37
- declare const SystemActionEventSchema: z.ZodObject<{
38
- kind: z.ZodLiteral<"systemAction">;
39
- procedureId: z.ZodString;
40
- title: z.ZodString;
41
- summary: z.ZodOptional<z.ZodString>;
42
- details: z.ZodOptional<z.ZodArray<z.ZodObject<{
43
- label: z.ZodString;
44
- value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
45
- }, z.core.$strict>>>;
46
- }, z.core.$strict>;
47
- declare const GameEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
48
- kind: z.ZodLiteral<"systemAction">;
49
- procedureId: z.ZodString;
50
- title: z.ZodString;
51
- summary: z.ZodOptional<z.ZodString>;
52
- details: z.ZodOptional<z.ZodArray<z.ZodObject<{
53
- label: z.ZodString;
54
- value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
55
- }, z.core.$strict>>>;
56
- }, z.core.$strict>], "kind">;
57
- declare const SeatProjectionBundleSchema: z.ZodObject<{
58
- currentStage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
- stageSeats: z.ZodOptional<z.ZodArray<z.ZodString>>;
60
- simultaneousPhase: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
61
- schedulerFlow: z.ZodOptional<z.ZodObject<{
62
- version: z.ZodLiteral<1>;
63
- activePlayerIds: z.ZodArray<z.ZodString>;
64
- pendingPlayerIds: z.ZodArray<z.ZodString>;
65
- continuationDependencies: z.ZodArray<z.ZodObject<{
66
- waiterPlayerId: z.ZodString;
67
- blockerPlayerIds: z.ZodArray<z.ZodString>;
68
- }, z.core.$strict>>;
69
- }, z.core.$strict>>;
70
- guidance: z.ZodOptional<z.ZodNullable<z.ZodObject<{
71
- phase: z.ZodObject<{
72
- id: z.ZodString;
73
- label: z.ZodString;
74
- summary: z.ZodOptional<z.ZodString>;
75
- objective: z.ZodOptional<z.ZodString>;
76
- }, z.core.$strict>;
77
- setup: z.ZodOptional<z.ZodObject<{
78
- profileId: z.ZodString;
79
- name: z.ZodString;
80
- summary: z.ZodOptional<z.ZodString>;
81
- steps: z.ZodArray<z.ZodObject<{
82
- id: z.ZodString;
83
- label: z.ZodString;
84
- description: z.ZodOptional<z.ZodString>;
85
- }, z.core.$strict>>;
86
- }, z.core.$strict>>;
87
- }, z.core.$strict>>>;
88
- sharedView: z.ZodOptional<z.ZodUnknown>;
89
- interactionsByRef: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
90
- seats: z.ZodRecord<z.ZodString, z.ZodObject<{
91
- view: z.ZodOptional<z.ZodUnknown>;
92
- availableInteractionRefs: z.ZodOptional<z.ZodArray<z.ZodString>>;
93
- zones: z.ZodOptional<z.ZodUnknown>;
94
- }, z.core.$strict>>;
95
- }, z.core.$strict>;
96
- declare const PlayerIdSchema: z.ZodString;
97
- declare const PluginPlayerSummarySchema: z.ZodObject<{
98
- playerId: z.ZodString;
99
- displayName: z.ZodString;
100
- color: z.ZodOptional<z.ZodString>;
101
- }, z.core.$strict>;
102
- declare const PluginSessionDescriptorSchema: z.ZodObject<{
103
- sessionId: z.ZodString;
104
- players: z.ZodArray<z.ZodObject<{
105
- playerId: z.ZodString;
106
- displayName: z.ZodString;
107
- color: z.ZodOptional<z.ZodString>;
108
- }, z.core.$strict>>;
109
- }, z.core.$strict>;
110
- declare const InteractionCommitPolicySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
111
- mode: z.ZodLiteral<"manual">;
112
- }, z.core.$strict>, z.ZodObject<{
113
- mode: z.ZodLiteral<"autoWhenReady">;
114
- }, z.core.$strict>], "mode">;
115
- declare const InputSelectionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
116
- mode: z.ZodLiteral<"single">;
117
- }, z.core.$strict>, z.ZodObject<{
118
- mode: z.ZodLiteral<"many">;
119
- min: z.ZodNumber;
120
- max: z.ZodOptional<z.ZodNumber>;
121
- distinct: z.ZodOptional<z.ZodBoolean>;
122
- }, z.core.$strict>], "mode">;
123
- declare const InputDomainDependenciesSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
124
- mode: z.ZodLiteral<"eager">;
125
- dependentCases: z.ZodArray<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
126
- }, z.core.$strict>, z.ZodObject<{
127
- mode: z.ZodLiteral<"lazy">;
128
- dependsOn: z.ZodArray<z.ZodString>;
129
- resolver: z.ZodObject<{
130
- interactionKey: z.ZodOptional<z.ZodString>;
131
- inputKey: z.ZodString;
132
- }, z.core.$strict>;
133
- }, z.core.$strict>], "mode">;
134
- declare const InputDomainSchema: z.ZodObject<{
135
- type: z.ZodString;
136
- selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
137
- mode: z.ZodLiteral<"single">;
138
- }, z.core.$strict>, z.ZodObject<{
139
- mode: z.ZodLiteral<"many">;
140
- min: z.ZodNumber;
141
- max: z.ZodOptional<z.ZodNumber>;
142
- distinct: z.ZodOptional<z.ZodBoolean>;
143
- }, z.core.$strict>], "mode">>;
144
- dependencies: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
145
- mode: z.ZodLiteral<"eager">;
146
- dependentCases: z.ZodArray<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
147
- }, z.core.$strict>, z.ZodObject<{
148
- mode: z.ZodLiteral<"lazy">;
149
- dependsOn: z.ZodArray<z.ZodString>;
150
- resolver: z.ZodObject<{
151
- interactionKey: z.ZodOptional<z.ZodString>;
152
- inputKey: z.ZodString;
153
- }, z.core.$strict>;
154
- }, z.core.$strict>], "mode">>;
155
- }, z.core.$catchall<z.ZodType<RuntimeJson, unknown, z.core.$ZodTypeInternals<RuntimeJson, unknown>>>>;
156
- declare const InteractionChoiceOptionSchema: z.ZodObject<{
157
- value: z.ZodNullable<z.ZodString>;
158
- label: z.ZodString;
159
- icon: z.ZodOptional<z.ZodString>;
160
- badge: z.ZodOptional<z.ZodString>;
161
- description: z.ZodOptional<z.ZodString>;
162
- disabled: z.ZodOptional<z.ZodBoolean>;
163
- disabledReason: z.ZodOptional<z.ZodString>;
164
- }, z.core.$strict>;
165
- declare const InteractionInputDescriptorSchema: z.ZodObject<{
166
- key: z.ZodString;
167
- kind: z.ZodString;
168
- domain: z.ZodObject<{
169
- type: z.ZodString;
170
- selection: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
171
- mode: z.ZodLiteral<"single">;
172
- }, z.core.$strict>, z.ZodObject<{
173
- mode: z.ZodLiteral<"many">;
174
- min: z.ZodNumber;
175
- max: z.ZodOptional<z.ZodNumber>;
176
- distinct: z.ZodOptional<z.ZodBoolean>;
177
- }, z.core.$strict>], "mode">>;
178
- dependencies: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
179
- mode: z.ZodLiteral<"eager">;
180
- dependentCases: z.ZodArray<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
181
- }, z.core.$strict>, z.ZodObject<{
182
- mode: z.ZodLiteral<"lazy">;
183
- dependsOn: z.ZodArray<z.ZodString>;
184
- resolver: z.ZodObject<{
185
- interactionKey: z.ZodOptional<z.ZodString>;
186
- inputKey: z.ZodString;
187
- }, z.core.$strict>;
188
- }, z.core.$strict>], "mode">>;
189
- }, z.core.$catchall<z.ZodType<RuntimeJson, unknown, z.core.$ZodTypeInternals<RuntimeJson, unknown>>>>;
190
- defaultValue: z.ZodOptional<z.ZodType<RuntimeJson, unknown, z.core.$ZodTypeInternals<RuntimeJson, unknown>>>;
191
- }, z.core.$strict>;
192
- declare const InteractionAvailabilitySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
193
- status: z.ZodLiteral<"available">;
194
- }, z.core.$strict>, z.ZodObject<{
195
- status: z.ZodLiteral<"notYourTurn">;
196
- reason: z.ZodString;
197
- }, z.core.$strict>, z.ZodObject<{
198
- status: z.ZodLiteral<"insufficientResources">;
199
- reason: z.ZodString;
200
- missingResources: z.ZodRecord<z.ZodString, z.ZodNumber>;
201
- }, z.core.$strict>, z.ZodObject<{
202
- status: z.ZodLiteral<"blocked">;
203
- reason: z.ZodString;
204
- code: z.ZodOptional<z.ZodString>;
205
- }, z.core.$strict>], "status">;
206
- declare const InteractionContextSchema: z.ZodObject<{
207
- to: z.ZodString;
208
- title: z.ZodOptional<z.ZodString>;
209
- payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<RuntimeJson, unknown, z.core.$ZodTypeInternals<RuntimeJson, unknown>>>>;
210
- options: z.ZodOptional<z.ZodArray<z.ZodObject<{
211
- id: z.ZodString;
212
- label: z.ZodOptional<z.ZodString>;
213
- }, z.core.$strict>>>;
214
- }, z.core.$strict>;
215
- declare const InteractionDescriptorSchema: z.ZodType<InteractionDescriptor>;
216
- declare const ZoneHandlesSnapshotSchema: z.ZodType<ZoneHandlesSnapshot>;
217
- declare const SimultaneousPhaseSnapshotSchema: z.ZodObject<{
218
- phaseName: z.ZodString;
219
- interactionId: z.ZodString;
220
- actorIds: z.ZodArray<z.ZodString>;
221
- sealedPlayerIds: z.ZodArray<z.ZodString>;
222
- pendingPlayerIds: z.ZodArray<z.ZodString>;
223
- }, z.core.$strict>;
224
- declare const GameplayBasisSchema: z.ZodObject<{
225
- version: z.ZodNumber;
226
- actionSetVersion: z.ZodString;
227
- perspectivePlayerId: z.ZodString;
228
- }, z.core.$strict>;
229
- declare const GameOutcomeSchema: z.ZodObject<{
230
- reason: z.ZodObject<{
231
- code: z.ZodString;
232
- message: z.ZodOptional<z.ZodString>;
233
- }, z.core.$strict>;
234
- standings: z.ZodArray<z.ZodObject<{
235
- playerId: z.ZodString;
236
- rank: z.ZodNumber;
237
- result: z.ZodEnum<{
238
- win: "win";
239
- draw: "draw";
240
- loss: "loss";
241
- eliminated: "eliminated";
242
- }>;
243
- score: z.ZodOptional<z.ZodNumber>;
244
- scoreBreakdown: z.ZodOptional<z.ZodArray<z.ZodObject<{
245
- id: z.ZodString;
246
- label: z.ZodString;
247
- value: z.ZodNumber;
248
- }, z.core.$strict>>>;
249
- tieBreaks: z.ZodOptional<z.ZodArray<z.ZodObject<{
250
- id: z.ZodString;
251
- label: z.ZodString;
252
- value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
253
- }, z.core.$strict>>>;
254
- }, z.core.$strict>>;
255
- }, z.core.$strict>;
256
- declare const PluginGameplayFrameSchema: z.ZodType<PluginGameplayFrame>;
257
- declare const InteractionResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
258
- type: z.ZodLiteral<"interaction.result">;
259
- clientActionId: z.ZodString;
260
- accepted: z.ZodLiteral<true>;
261
- }, z.core.$strict>, z.ZodObject<{
262
- type: z.ZodLiteral<"interaction.result">;
263
- clientActionId: z.ZodString;
264
- accepted: z.ZodLiteral<false>;
265
- errorCode: z.ZodString;
266
- message: z.ZodOptional<z.ZodString>;
267
- }, z.core.$strict>], "accepted">;
268
- declare const SubmitInteractionCommandSchema: z.ZodObject<{
269
- type: z.ZodLiteral<"interaction.submit">;
270
- clientActionId: z.ZodString;
271
- basis: z.ZodObject<{
272
- version: z.ZodNumber;
273
- actionSetVersion: z.ZodString;
274
- perspectivePlayerId: z.ZodString;
275
- }, z.core.$strict>;
276
- interactionId: z.ZodString;
277
- params: z.ZodType<RuntimeJson, unknown, z.core.$ZodTypeInternals<RuntimeJson, unknown>>;
278
- }, z.core.$strict>;
279
- declare const HostToPluginPayloadSchema: z.ZodType<HostToPluginPayload>;
280
- declare const PluginToHostPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
281
- type: z.ZodLiteral<"runtime.ready">;
282
- }, z.core.$strict>, z.ZodObject<{
283
- type: z.ZodLiteral<"runtime.ack">;
284
- sequence: z.ZodNumber;
285
- clientReceivedAtMs: z.ZodOptional<z.ZodNumber>;
286
- clientRenderedAtMs: z.ZodOptional<z.ZodNumber>;
287
- }, z.core.$strict>, z.ZodObject<{
288
- type: z.ZodLiteral<"interaction.submit">;
289
- clientActionId: z.ZodString;
290
- basis: z.ZodObject<{
291
- version: z.ZodNumber;
292
- actionSetVersion: z.ZodString;
293
- perspectivePlayerId: z.ZodString;
294
- }, z.core.$strict>;
295
- interactionId: z.ZodString;
296
- params: z.ZodType<RuntimeJson, unknown, z.core.$ZodTypeInternals<RuntimeJson, unknown>>;
297
- }, z.core.$strict>, z.ZodObject<{
298
- type: z.ZodLiteral<"runtime.error">;
299
- message: z.ZodString;
300
- code: z.ZodOptional<z.ZodString>;
301
- }, z.core.$strict>], "type">;
302
- declare function createPluginProtocolEnvelopeSchema<Payload>(payloadSchema: z.ZodType<Payload>): z.ZodType<PluginProtocolEnvelope<Payload>>;
303
- declare const HostToPluginEnvelopeSchema: z.ZodType<PluginProtocolEnvelope<HostToPluginPayload>, unknown, z.core.$ZodTypeInternals<PluginProtocolEnvelope<HostToPluginPayload>, unknown>>;
304
- declare const PluginToHostEnvelopeSchema: z.ZodType<PluginProtocolEnvelope<{
305
- type: "runtime.ready";
306
- } | {
307
- type: "runtime.ack";
308
- sequence: number;
309
- clientReceivedAtMs?: number | undefined;
310
- clientRenderedAtMs?: number | undefined;
311
- } | {
312
- type: "interaction.submit";
313
- clientActionId: string;
314
- basis: {
315
- version: number;
316
- actionSetVersion: string;
317
- perspectivePlayerId: string;
318
- };
319
- interactionId: string;
320
- params: RuntimeJson;
321
- } | {
322
- type: "runtime.error";
323
- message: string;
324
- code?: string | undefined;
325
- }>, unknown, z.core.$ZodTypeInternals<PluginProtocolEnvelope<{
326
- type: "runtime.ready";
327
- } | {
328
- type: "runtime.ack";
329
- sequence: number;
330
- clientReceivedAtMs?: number | undefined;
331
- clientRenderedAtMs?: number | undefined;
332
- } | {
333
- type: "interaction.submit";
334
- clientActionId: string;
335
- basis: {
336
- version: number;
337
- actionSetVersion: string;
338
- perspectivePlayerId: string;
339
- };
340
- interactionId: string;
341
- params: RuntimeJson;
342
- } | {
343
- type: "runtime.error";
344
- message: string;
345
- code?: string | undefined;
346
- }>, unknown>>;
347
- declare const PluginProtocolFrameSchema: z.ZodObject<{
348
- id: z.ZodString;
349
- frame: z.ZodType<PluginGameplayFrame<unknown, string, string, string>, unknown, z.core.$ZodTypeInternals<PluginGameplayFrame<unknown, string, string, string>, unknown>>;
350
- projectionDigest: z.ZodString;
351
- }, z.core.$strict>;
352
- declare const PluginProtocolStepSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
353
- id: z.ZodString;
354
- kind: z.ZodLiteral<"host.frame">;
355
- frameId: z.ZodString;
356
- }, z.core.$strict>, z.ZodObject<{
357
- id: z.ZodString;
358
- kind: z.ZodLiteral<"client.submit">;
359
- fromFrameId: z.ZodString;
360
- requestDigest: z.ZodString;
361
- response: z.ZodDiscriminatedUnion<[z.ZodObject<{
362
- type: z.ZodLiteral<"interaction.result">;
363
- clientActionId: z.ZodString;
364
- accepted: z.ZodLiteral<true>;
365
- }, z.core.$strict>, z.ZodObject<{
366
- type: z.ZodLiteral<"interaction.result">;
367
- clientActionId: z.ZodString;
368
- accepted: z.ZodLiteral<false>;
369
- errorCode: z.ZodString;
370
- message: z.ZodOptional<z.ZodString>;
371
- }, z.core.$strict>], "accepted">;
372
- }, z.core.$strict>], "kind">;
373
- declare const PluginProtocolTapeSchema: z.ZodType<PluginProtocolTape>;
374
- declare function parsePluginSessionDescriptor(value: unknown): PluginSessionDescriptor;
375
- declare function parsePluginGameplayFrame(value: unknown): PluginGameplayFrame;
376
- declare function parseHostToPluginEnvelope(value: unknown): PluginProtocolEnvelope<HostToPluginPayload>;
377
- declare function parsePluginToHostEnvelope(value: unknown): PluginProtocolEnvelope<PluginToHostPayload>;
378
-
379
- export { BoardStaticProjectionSchema, GameEventDetailSchema, GameEventSchema, GameGuidanceProjectionSchema, GameOutcomeSchema, GameplayBasisSchema, HostToPluginEnvelopeSchema, HostToPluginPayloadSchema, InputDomainDependenciesSchema, InputDomainSchema, InputSelectionSchema, InteractionAvailabilitySchema, InteractionChoiceOptionSchema, InteractionCommitPolicySchema, InteractionContextSchema, InteractionDescriptorSchema, InteractionInputDescriptorSchema, InteractionResultSchema, PlayerIdSchema, PluginGameplayFrameSchema, PluginPlayerSummarySchema, PluginProtocolFrameSchema, PluginProtocolStepSchema, PluginProtocolTapeSchema, PluginSessionDescriptorSchema, PluginToHostEnvelopeSchema, PluginToHostPayloadSchema, RuntimeJsonSchema, SeatProjectionBundleSchema, SetupGuidanceStepSchema, SimultaneousPhaseSnapshotSchema, SubmitInteractionCommandSchema, SystemActionEventSchema, ZoneHandlesSnapshotSchema, createPluginProtocolEnvelopeSchema, parseHostToPluginEnvelope, parsePluginGameplayFrame, parsePluginSessionDescriptor, parsePluginToHostEnvelope };
@@ -1,18 +0,0 @@
1
- type StaleContractArtifactKind = "session-state";
2
- type StaleContractArtifactErrorOptions = {
3
- artifact: StaleContractArtifactKind;
4
- expected: string;
5
- found: string;
6
- remedy?: string;
7
- };
8
- declare class StaleContractArtifactError extends Error {
9
- readonly code = "STALE_CONTRACT_ARTIFACT";
10
- readonly artifact: StaleContractArtifactKind;
11
- readonly expected: string;
12
- readonly found: string;
13
- readonly remedy: string;
14
- constructor(options: StaleContractArtifactErrorOptions);
15
- }
16
- declare function isStaleContractArtifactError(error: unknown): error is StaleContractArtifactError;
17
-
18
- export { StaleContractArtifactError as S, type StaleContractArtifactErrorOptions as a, type StaleContractArtifactKind as b, isStaleContractArtifactError as i };
@@ -1,37 +0,0 @@
1
- import { j as ScenarioCheckpointSelector, o as ScenarioDefinitionGameLike, x as ScenarioReplayDefinition, h as ScenarioCheckpoint } from './definitions-BgmV_GhC.js';
2
- import 'zod';
3
- import './views-BpuWcOyN.js';
4
- import './runtime-RJ5orDJU.js';
5
- import './types.js';
6
- import './protocol-dYgafTYY.js';
7
- import './diagnostics-DIi3ina7.js';
8
-
9
- type CompiledScenarioReplay<Game extends ScenarioDefinitionGameLike = ScenarioDefinitionGameLike> = {
10
- readonly schemaVersion: 1;
11
- readonly scenario: {
12
- readonly path: string;
13
- /** Covers the local game/scenario module graph, including assertions. */
14
- readonly sourceDigest: `sha256:${string}`;
15
- };
16
- /** Canonical serializable scenario projection; never contains `then`. */
17
- readonly definition: ScenarioReplayDefinition<Game>;
18
- readonly checkpoint: ScenarioCheckpoint;
19
- readonly expected: {
20
- readonly checkpointDigest: `sha256:${string}`;
21
- readonly publicProjectionDigest: `sha256:${string}`;
22
- };
23
- };
24
- type CompileScenarioReplayOptions = {
25
- readonly scenarioPath: string;
26
- readonly at?: ScenarioCheckpointSelector;
27
- };
28
- /**
29
- * Compile one authored scenario into the trusted, serializable replay DTO used
30
- * by dev-host, Workbench, demo, and performance adapters.
31
- *
32
- * The DTO may contain sealed/private command parameters. It must never cross a
33
- * player, spectator, browser, or ordinary-log boundary.
34
- */
35
- declare function compileScenarioReplay(options: CompileScenarioReplayOptions): Promise<CompiledScenarioReplay>;
36
-
37
- export { type CompileScenarioReplayOptions, type CompiledScenarioReplay, compileScenarioReplay };