@dreamboard-games/sdk 0.4.0-alpha.4 → 0.4.0-alpha.6
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/REFERENCE.md +1089 -123
- package/dist/{HandView-x8MhbhFl.d.ts → HandView-Bi2lxzQP.d.ts} +3 -3
- package/dist/{ThemeProvider-DRalAWzY.d.ts → ThemeProvider-CElaL2ik.d.ts} +1 -1
- package/dist/authoring/index.js +2 -2
- package/dist/browser-interaction.js +1 -1
- package/dist/{chunk-E3X552YM.js → chunk-2TRZSZGD.js} +1061 -425
- package/dist/chunk-2TRZSZGD.js.map +1 -0
- package/dist/{chunk-CP35NPPY.js → chunk-52DH7VQF.js} +61 -7
- package/dist/chunk-52DH7VQF.js.map +1 -0
- package/dist/{chunk-N6ZDIMRB.js → chunk-B2YBS3SG.js} +1 -1
- package/dist/chunk-B2YBS3SG.js.map +1 -0
- package/dist/{chunk-LKJLAGND.js → chunk-DDST4U2P.js} +2 -2
- package/dist/{chunk-SUMZ5OEH.js → chunk-HK3WN4U7.js} +2 -2
- package/dist/{chunk-SUMZ5OEH.js.map → chunk-HK3WN4U7.js.map} +1 -1
- package/dist/{chunk-QOFFRHZR.js → chunk-OV6JC2BM.js} +64 -28
- package/dist/chunk-OV6JC2BM.js.map +1 -0
- package/dist/{chunk-K5ZRJTZZ.js → chunk-PAPIAMYX.js} +6 -3
- package/dist/chunk-PAPIAMYX.js.map +1 -0
- package/dist/{chunk-TTISZQNI.js → chunk-SOBNI363.js} +39 -28
- package/dist/chunk-SOBNI363.js.map +1 -0
- package/dist/{chunk-Y6Y2YABD.js → chunk-TGMXBRKY.js} +22 -6
- package/dist/chunk-TGMXBRKY.js.map +1 -0
- package/dist/{chunk-XZ667T4K.js → chunk-UC2UXAC6.js} +2 -2
- package/dist/{chunk-O6M6PN4E.js → chunk-UUQNOGZV.js} +94 -53
- package/dist/chunk-UUQNOGZV.js.map +1 -0
- package/dist/{chunk-WUIVY2KE.js → chunk-WHR5UW3F.js} +1 -1
- package/dist/chunk-WHR5UW3F.js.map +1 -0
- package/dist/codegen.d.ts +13 -0
- package/dist/codegen.js +1 -1
- package/dist/{components-B7hFaEn_.d.ts → components-BTwSIjXj.d.ts} +77 -206
- package/dist/{hex-board-view-BFlWDb9k.d.ts → hex-board-view-aKkblDp6.d.ts} +180 -1
- package/dist/{index-gjxQichK.d.ts → index-CFTjJIXd.d.ts} +5 -4
- package/dist/{index.d-BL3bT5lt.d.ts → index.d-DMASeF6M.d.ts} +294 -27
- package/dist/index.js +2 -2
- package/dist/package-set.d.ts +2 -2
- package/dist/package-set.js +2 -2
- package/dist/{runtime-api-BJharVaj.d.ts → plugin-state-BRH3UiUp.d.ts} +19 -3
- package/dist/{protocol-BP193lva.d.ts → protocol-835hEGne.d.ts} +42 -1
- package/dist/reducer/advanced.d.ts +4 -2
- package/dist/reducer/advanced.js +1 -1
- package/dist/reducer-contract.d.ts +1 -1
- package/dist/reducer-contract.js +2 -2
- package/dist/reducer.d.ts +10 -4
- package/dist/reducer.js +317 -15
- package/dist/reducer.js.map +1 -1
- package/dist/runtime/primitives.d.ts +32 -7
- package/dist/runtime/primitives.js +9 -5
- package/dist/runtime/runtime-api.d.ts +1 -1
- package/dist/runtime/workspace-contract.d.ts +7 -7
- package/dist/runtime/workspace-contract.js +6 -6
- package/dist/runtime-Dkfm1x2r.d.ts +1670 -0
- package/dist/runtime.d.ts +10 -9
- package/dist/runtime.js +240 -16
- package/dist/runtime.js.map +1 -1
- package/dist/testing.d.ts +78 -15
- package/dist/testing.js +69 -8
- package/dist/testing.js.map +1 -1
- package/dist/{types-CYeN0wLK.d.ts → types-aI4V9CWe.d.ts} +5 -5
- package/dist/types.d.ts +13 -0
- package/dist/ui/components.d.ts +6 -3
- package/dist/ui/components.js +15 -3
- package/dist/ui/plugin-styles.css +2 -2
- package/dist/{ui-contract-B4NjRlvC.d.ts → ui-contract-Ue6SywvO.d.ts} +24 -10
- package/dist/ui.d.ts +9 -6
- package/dist/ui.js +16 -4
- package/dist/views-32rSsfeU.d.ts +1559 -0
- package/package.json +21 -20
- package/dist/chunk-CP35NPPY.js.map +0 -1
- package/dist/chunk-E3X552YM.js.map +0 -1
- package/dist/chunk-K5ZRJTZZ.js.map +0 -1
- package/dist/chunk-N6ZDIMRB.js.map +0 -1
- package/dist/chunk-O6M6PN4E.js.map +0 -1
- package/dist/chunk-QOFFRHZR.js.map +0 -1
- package/dist/chunk-TTISZQNI.js.map +0 -1
- package/dist/chunk-WUIVY2KE.js.map +0 -1
- package/dist/chunk-Y6Y2YABD.js.map +0 -1
- package/dist/views-fn2RuXOx.d.ts +0 -3168
- /package/dist/{chunk-LKJLAGND.js.map → chunk-DDST4U2P.js.map} +0 -0
- /package/dist/{chunk-XZ667T4K.js.map → chunk-UC2UXAC6.js.map} +0 -0
|
@@ -128,9 +128,10 @@ type ReduceResultReject = {
|
|
|
128
128
|
type ReduceResultAccept = {
|
|
129
129
|
"kind": "accept";
|
|
130
130
|
"state": ReducerSessionState;
|
|
131
|
-
"terminal"?:
|
|
131
|
+
"terminal"?: GameOutcome;
|
|
132
132
|
"effects": Array<Effect>;
|
|
133
133
|
"continuations": ContinuationMap;
|
|
134
|
+
"events": Array<GameEvent>;
|
|
134
135
|
};
|
|
135
136
|
type DispatchTrace = DispatchTraceAcceptedClientInput | DispatchTraceAppliedEffect | DispatchTraceRngConsumption;
|
|
136
137
|
type DispatchTraceAcceptedClientInput = {
|
|
@@ -156,13 +157,48 @@ type DispatchResultReject = {
|
|
|
156
157
|
type DispatchResultAccept = {
|
|
157
158
|
"kind": "accept";
|
|
158
159
|
"state": ReducerSessionState;
|
|
159
|
-
"terminal"?:
|
|
160
|
+
"terminal"?: GameOutcome;
|
|
160
161
|
"trace": Array<DispatchTrace>;
|
|
162
|
+
"events": Array<GameEvent>;
|
|
161
163
|
};
|
|
162
|
-
type
|
|
163
|
-
"
|
|
164
|
-
"
|
|
165
|
-
|
|
164
|
+
type GameEventDetail = {
|
|
165
|
+
"label": string;
|
|
166
|
+
"value": string | number | boolean;
|
|
167
|
+
};
|
|
168
|
+
type SystemActionEvent = {
|
|
169
|
+
"kind": "systemAction";
|
|
170
|
+
"procedureId": string;
|
|
171
|
+
"title": string;
|
|
172
|
+
"summary"?: string;
|
|
173
|
+
"details"?: Array<GameEventDetail>;
|
|
174
|
+
};
|
|
175
|
+
type GameEvent = SystemActionEvent;
|
|
176
|
+
type OutcomeResult = "win" | "draw" | "loss" | "eliminated";
|
|
177
|
+
type OutcomeScoreComponent = {
|
|
178
|
+
"id": string;
|
|
179
|
+
"label": string;
|
|
180
|
+
"value": number;
|
|
181
|
+
};
|
|
182
|
+
type OutcomeTieBreak = {
|
|
183
|
+
"id": string;
|
|
184
|
+
"label": string;
|
|
185
|
+
"value": number | string;
|
|
186
|
+
};
|
|
187
|
+
type OutcomeStanding = {
|
|
188
|
+
"playerId": string;
|
|
189
|
+
"rank": number;
|
|
190
|
+
"result": OutcomeResult;
|
|
191
|
+
"score"?: number;
|
|
192
|
+
"scoreBreakdown"?: Array<OutcomeScoreComponent>;
|
|
193
|
+
"tieBreaks"?: Array<OutcomeTieBreak>;
|
|
194
|
+
};
|
|
195
|
+
type GameOutcomeReason = {
|
|
196
|
+
"code": string;
|
|
197
|
+
"message"?: string;
|
|
198
|
+
};
|
|
199
|
+
type GameOutcome = {
|
|
200
|
+
"reason": GameOutcomeReason;
|
|
201
|
+
"standings": Array<OutcomeStanding>;
|
|
166
202
|
};
|
|
167
203
|
type ReducerRuntimeLogEntry = ReducerRuntimeLogEntryAcceptedClientInput | ReducerRuntimeLogEntryAppliedEffect | ReducerRuntimeLogEntryRngConsumption | ReducerRuntimeLogEntryStateCommit;
|
|
168
204
|
type ReducerRuntimeLogEntryAcceptedClientInput = {
|
|
@@ -235,11 +271,19 @@ type wire_EffectRollDie = EffectRollDie;
|
|
|
235
271
|
type wire_EffectShufflePlayerZone = EffectShufflePlayerZone;
|
|
236
272
|
type wire_EffectShuffleSharedZone = EffectShuffleSharedZone;
|
|
237
273
|
type wire_EffectTransition = EffectTransition;
|
|
274
|
+
type wire_GameEvent = GameEvent;
|
|
275
|
+
type wire_GameEventDetail = GameEventDetail;
|
|
238
276
|
type wire_GameInput = GameInput;
|
|
239
277
|
type wire_GameInputInteraction = GameInputInteraction;
|
|
278
|
+
type wire_GameOutcome = GameOutcome;
|
|
279
|
+
type wire_GameOutcomeReason = GameOutcomeReason;
|
|
240
280
|
type wire_InitializePhaseRequest = InitializePhaseRequest;
|
|
241
281
|
type wire_InitializeRequest = InitializeRequest;
|
|
242
282
|
type wire_JsonValue = JsonValue;
|
|
283
|
+
type wire_OutcomeResult = OutcomeResult;
|
|
284
|
+
type wire_OutcomeScoreComponent = OutcomeScoreComponent;
|
|
285
|
+
type wire_OutcomeStanding = OutcomeStanding;
|
|
286
|
+
type wire_OutcomeTieBreak = OutcomeTieBreak;
|
|
243
287
|
type wire_ProjectSeatsDynamicRequest = ProjectSeatsDynamicRequest;
|
|
244
288
|
type wire_ReduceRequest = ReduceRequest;
|
|
245
289
|
type wire_ReduceResult = ReduceResult;
|
|
@@ -265,11 +309,11 @@ type wire_RuntimeSimultaneousSubmission = RuntimeSimultaneousSubmission;
|
|
|
265
309
|
type wire_SeatProjection = SeatProjection;
|
|
266
310
|
type wire_SeatProjectionBundle = SeatProjectionBundle;
|
|
267
311
|
type wire_SimultaneousPhaseProjection = SimultaneousPhaseProjection;
|
|
268
|
-
type
|
|
312
|
+
type wire_SystemActionEvent = SystemActionEvent;
|
|
269
313
|
type wire_TransitionRecord = TransitionRecord;
|
|
270
314
|
type wire_ValidateInputRequest = ValidateInputRequest;
|
|
271
315
|
declare namespace wire {
|
|
272
|
-
export type { wire_BoardStaticProjection as BoardStaticProjection, wire_ContinuationMap as ContinuationMap, wire_ContinuationToken as ContinuationToken, wire_DispatchRequest as DispatchRequest, wire_DispatchResult as DispatchResult, wire_DispatchResultAccept as DispatchResultAccept, wire_DispatchResultReject as DispatchResultReject, wire_DispatchTrace as DispatchTrace, wire_DispatchTraceAcceptedClientInput as DispatchTraceAcceptedClientInput, wire_DispatchTraceAppliedEffect as DispatchTraceAppliedEffect, wire_DispatchTraceRngConsumption as DispatchTraceRngConsumption, wire_Effect as Effect, wire_EffectId as EffectId, wire_EffectRollDie as EffectRollDie, wire_EffectShufflePlayerZone as EffectShufflePlayerZone, wire_EffectShuffleSharedZone as EffectShuffleSharedZone, wire_EffectTransition as EffectTransition, wire_GameInput as GameInput, wire_GameInputInteraction as GameInputInteraction, wire_InitializePhaseRequest as InitializePhaseRequest, wire_InitializeRequest as InitializeRequest, wire_JsonValue as JsonValue, wire_ProjectSeatsDynamicRequest as ProjectSeatsDynamicRequest, wire_ReduceRequest as ReduceRequest, wire_ReduceResult as ReduceResult, wire_ReduceResultAccept as ReduceResultAccept, wire_ReduceResultReject as ReduceResultReject, wire_ReducerContractVersion as ReducerContractVersion, wire_ReducerDomainState as ReducerDomainState, wire_ReducerFlowState as ReducerFlowState, wire_ReducerInputValidationResult as ReducerInputValidationResult, wire_ReducerRuntimeLogEntry as ReducerRuntimeLogEntry, wire_ReducerRuntimeLogEntryAcceptedClientInput as ReducerRuntimeLogEntryAcceptedClientInput, wire_ReducerRuntimeLogEntryAppliedEffect as ReducerRuntimeLogEntryAppliedEffect, wire_ReducerRuntimeLogEntryRngConsumption as ReducerRuntimeLogEntryRngConsumption, wire_ReducerRuntimeLogEntryStateCommit as ReducerRuntimeLogEntryStateCommit, wire_ReducerRuntimeState as ReducerRuntimeState, wire_ReducerSessionMeta as ReducerSessionMeta, wire_ReducerSessionState as ReducerSessionState, wire_ReducerSetupSelection as ReducerSetupSelection, wire_RngState as RngState, wire_RuntimeSimultaneousCurrent as RuntimeSimultaneousCurrent, wire_RuntimeSimultaneousState as RuntimeSimultaneousState, wire_RuntimeSimultaneousSubmission as RuntimeSimultaneousSubmission, wire_SeatProjection as SeatProjection, wire_SeatProjectionBundle as SeatProjectionBundle, wire_SimultaneousPhaseProjection as SimultaneousPhaseProjection,
|
|
316
|
+
export type { wire_BoardStaticProjection as BoardStaticProjection, wire_ContinuationMap as ContinuationMap, wire_ContinuationToken as ContinuationToken, wire_DispatchRequest as DispatchRequest, wire_DispatchResult as DispatchResult, wire_DispatchResultAccept as DispatchResultAccept, wire_DispatchResultReject as DispatchResultReject, wire_DispatchTrace as DispatchTrace, wire_DispatchTraceAcceptedClientInput as DispatchTraceAcceptedClientInput, wire_DispatchTraceAppliedEffect as DispatchTraceAppliedEffect, wire_DispatchTraceRngConsumption as DispatchTraceRngConsumption, wire_Effect as Effect, wire_EffectId as EffectId, wire_EffectRollDie as EffectRollDie, wire_EffectShufflePlayerZone as EffectShufflePlayerZone, wire_EffectShuffleSharedZone as EffectShuffleSharedZone, wire_EffectTransition as EffectTransition, wire_GameEvent as GameEvent, wire_GameEventDetail as GameEventDetail, wire_GameInput as GameInput, wire_GameInputInteraction as GameInputInteraction, wire_GameOutcome as GameOutcome, wire_GameOutcomeReason as GameOutcomeReason, wire_InitializePhaseRequest as InitializePhaseRequest, wire_InitializeRequest as InitializeRequest, wire_JsonValue as JsonValue, wire_OutcomeResult as OutcomeResult, wire_OutcomeScoreComponent as OutcomeScoreComponent, wire_OutcomeStanding as OutcomeStanding, wire_OutcomeTieBreak as OutcomeTieBreak, wire_ProjectSeatsDynamicRequest as ProjectSeatsDynamicRequest, wire_ReduceRequest as ReduceRequest, wire_ReduceResult as ReduceResult, wire_ReduceResultAccept as ReduceResultAccept, wire_ReduceResultReject as ReduceResultReject, wire_ReducerContractVersion as ReducerContractVersion, wire_ReducerDomainState as ReducerDomainState, wire_ReducerFlowState as ReducerFlowState, wire_ReducerInputValidationResult as ReducerInputValidationResult, wire_ReducerRuntimeLogEntry as ReducerRuntimeLogEntry, wire_ReducerRuntimeLogEntryAcceptedClientInput as ReducerRuntimeLogEntryAcceptedClientInput, wire_ReducerRuntimeLogEntryAppliedEffect as ReducerRuntimeLogEntryAppliedEffect, wire_ReducerRuntimeLogEntryRngConsumption as ReducerRuntimeLogEntryRngConsumption, wire_ReducerRuntimeLogEntryStateCommit as ReducerRuntimeLogEntryStateCommit, wire_ReducerRuntimeState as ReducerRuntimeState, wire_ReducerSessionMeta as ReducerSessionMeta, wire_ReducerSessionState as ReducerSessionState, wire_ReducerSetupSelection as ReducerSetupSelection, wire_RngState as RngState, wire_RuntimeSimultaneousCurrent as RuntimeSimultaneousCurrent, wire_RuntimeSimultaneousState as RuntimeSimultaneousState, wire_RuntimeSimultaneousSubmission as RuntimeSimultaneousSubmission, wire_SeatProjection as SeatProjection, wire_SeatProjectionBundle as SeatProjectionBundle, wire_SimultaneousPhaseProjection as SimultaneousPhaseProjection, wire_SystemActionEvent as SystemActionEvent, wire_TransitionRecord as TransitionRecord, wire_ValidateInputRequest as ValidateInputRequest };
|
|
273
317
|
}
|
|
274
318
|
|
|
275
319
|
declare const ReducerContractVersionSchema: z.ZodString;
|
|
@@ -677,11 +721,98 @@ declare const ReduceResultRejectSchema: z.ZodObject<{
|
|
|
677
721
|
errorCode: z.ZodString;
|
|
678
722
|
message: z.ZodOptional<z.ZodString>;
|
|
679
723
|
}, z.core.$strict>;
|
|
680
|
-
declare const
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
724
|
+
declare const GameOutcomeReasonSchema: z.ZodObject<{
|
|
725
|
+
code: z.ZodString;
|
|
726
|
+
message: z.ZodOptional<z.ZodString>;
|
|
727
|
+
}, z.core.$strict>;
|
|
728
|
+
declare const OutcomeResultSchema: z.ZodEnum<{
|
|
729
|
+
win: "win";
|
|
730
|
+
draw: "draw";
|
|
731
|
+
loss: "loss";
|
|
732
|
+
eliminated: "eliminated";
|
|
733
|
+
}>;
|
|
734
|
+
declare const OutcomeScoreComponentSchema: z.ZodObject<{
|
|
735
|
+
id: z.ZodString;
|
|
736
|
+
label: z.ZodString;
|
|
737
|
+
value: z.ZodNumber;
|
|
738
|
+
}, z.core.$strict>;
|
|
739
|
+
declare const OutcomeTieBreakSchema: z.ZodObject<{
|
|
740
|
+
id: z.ZodString;
|
|
741
|
+
label: z.ZodString;
|
|
742
|
+
value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
743
|
+
}, z.core.$strict>;
|
|
744
|
+
declare const OutcomeStandingSchema: z.ZodObject<{
|
|
745
|
+
playerId: z.ZodString;
|
|
746
|
+
rank: z.ZodNumber;
|
|
747
|
+
result: z.ZodEnum<{
|
|
748
|
+
win: "win";
|
|
749
|
+
draw: "draw";
|
|
750
|
+
loss: "loss";
|
|
751
|
+
eliminated: "eliminated";
|
|
752
|
+
}>;
|
|
753
|
+
score: z.ZodOptional<z.ZodNumber>;
|
|
754
|
+
scoreBreakdown: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
755
|
+
id: z.ZodString;
|
|
756
|
+
label: z.ZodString;
|
|
757
|
+
value: z.ZodNumber;
|
|
758
|
+
}, z.core.$strict>>>;
|
|
759
|
+
tieBreaks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
760
|
+
id: z.ZodString;
|
|
761
|
+
label: z.ZodString;
|
|
762
|
+
value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
763
|
+
}, z.core.$strict>>>;
|
|
764
|
+
}, z.core.$strict>;
|
|
765
|
+
declare const GameOutcomeSchema: z.ZodObject<{
|
|
766
|
+
reason: z.ZodObject<{
|
|
767
|
+
code: z.ZodString;
|
|
768
|
+
message: z.ZodOptional<z.ZodString>;
|
|
769
|
+
}, z.core.$strict>;
|
|
770
|
+
standings: z.ZodArray<z.ZodObject<{
|
|
771
|
+
playerId: z.ZodString;
|
|
772
|
+
rank: z.ZodNumber;
|
|
773
|
+
result: z.ZodEnum<{
|
|
774
|
+
win: "win";
|
|
775
|
+
draw: "draw";
|
|
776
|
+
loss: "loss";
|
|
777
|
+
eliminated: "eliminated";
|
|
778
|
+
}>;
|
|
779
|
+
score: z.ZodOptional<z.ZodNumber>;
|
|
780
|
+
scoreBreakdown: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
781
|
+
id: z.ZodString;
|
|
782
|
+
label: z.ZodString;
|
|
783
|
+
value: z.ZodNumber;
|
|
784
|
+
}, z.core.$strict>>>;
|
|
785
|
+
tieBreaks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
786
|
+
id: z.ZodString;
|
|
787
|
+
label: z.ZodString;
|
|
788
|
+
value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
789
|
+
}, z.core.$strict>>>;
|
|
790
|
+
}, z.core.$strict>>;
|
|
791
|
+
}, z.core.$strict>;
|
|
792
|
+
declare const GameEventDetailSchema: z.ZodObject<{
|
|
793
|
+
label: z.ZodString;
|
|
794
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
795
|
+
}, z.core.$strict>;
|
|
796
|
+
declare const SystemActionEventSchema: z.ZodObject<{
|
|
797
|
+
kind: z.ZodLiteral<"systemAction">;
|
|
798
|
+
procedureId: z.ZodString;
|
|
799
|
+
title: z.ZodString;
|
|
800
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
801
|
+
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
802
|
+
label: z.ZodString;
|
|
803
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
804
|
+
}, z.core.$strict>>>;
|
|
684
805
|
}, z.core.$strict>;
|
|
806
|
+
declare const GameEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
807
|
+
kind: z.ZodLiteral<"systemAction">;
|
|
808
|
+
procedureId: z.ZodString;
|
|
809
|
+
title: z.ZodString;
|
|
810
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
811
|
+
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
812
|
+
label: z.ZodString;
|
|
813
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
814
|
+
}, z.core.$strict>>>;
|
|
815
|
+
}, z.core.$strict>], "kind">;
|
|
685
816
|
declare const ReduceResultAcceptSchema: z.ZodObject<{
|
|
686
817
|
kind: z.ZodLiteral<"accept">;
|
|
687
818
|
state: z.ZodObject<{
|
|
@@ -728,9 +859,31 @@ declare const ReduceResultAcceptSchema: z.ZodObject<{
|
|
|
728
859
|
}, z.core.$strict>;
|
|
729
860
|
}, z.core.$strict>;
|
|
730
861
|
terminal: z.ZodOptional<z.ZodObject<{
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
862
|
+
reason: z.ZodObject<{
|
|
863
|
+
code: z.ZodString;
|
|
864
|
+
message: z.ZodOptional<z.ZodString>;
|
|
865
|
+
}, z.core.$strict>;
|
|
866
|
+
standings: z.ZodArray<z.ZodObject<{
|
|
867
|
+
playerId: z.ZodString;
|
|
868
|
+
rank: z.ZodNumber;
|
|
869
|
+
result: z.ZodEnum<{
|
|
870
|
+
win: "win";
|
|
871
|
+
draw: "draw";
|
|
872
|
+
loss: "loss";
|
|
873
|
+
eliminated: "eliminated";
|
|
874
|
+
}>;
|
|
875
|
+
score: z.ZodOptional<z.ZodNumber>;
|
|
876
|
+
scoreBreakdown: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
877
|
+
id: z.ZodString;
|
|
878
|
+
label: z.ZodString;
|
|
879
|
+
value: z.ZodNumber;
|
|
880
|
+
}, z.core.$strict>>>;
|
|
881
|
+
tieBreaks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
882
|
+
id: z.ZodString;
|
|
883
|
+
label: z.ZodString;
|
|
884
|
+
value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
885
|
+
}, z.core.$strict>>>;
|
|
886
|
+
}, z.core.$strict>>;
|
|
734
887
|
}, z.core.$strict>>;
|
|
735
888
|
effects: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
736
889
|
effectId: z.ZodString;
|
|
@@ -754,6 +907,16 @@ declare const ReduceResultAcceptSchema: z.ZodObject<{
|
|
|
754
907
|
id: z.ZodString;
|
|
755
908
|
data: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
756
909
|
}, z.core.$strict>>;
|
|
910
|
+
events: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
911
|
+
kind: z.ZodLiteral<"systemAction">;
|
|
912
|
+
procedureId: z.ZodString;
|
|
913
|
+
title: z.ZodString;
|
|
914
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
915
|
+
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
916
|
+
label: z.ZodString;
|
|
917
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
918
|
+
}, z.core.$strict>>>;
|
|
919
|
+
}, z.core.$strict>], "kind">>;
|
|
757
920
|
}, z.core.$strict>;
|
|
758
921
|
declare const ReduceResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
759
922
|
kind: z.ZodLiteral<"reject">;
|
|
@@ -805,9 +968,31 @@ declare const ReduceResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
805
968
|
}, z.core.$strict>;
|
|
806
969
|
}, z.core.$strict>;
|
|
807
970
|
terminal: z.ZodOptional<z.ZodObject<{
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
971
|
+
reason: z.ZodObject<{
|
|
972
|
+
code: z.ZodString;
|
|
973
|
+
message: z.ZodOptional<z.ZodString>;
|
|
974
|
+
}, z.core.$strict>;
|
|
975
|
+
standings: z.ZodArray<z.ZodObject<{
|
|
976
|
+
playerId: z.ZodString;
|
|
977
|
+
rank: z.ZodNumber;
|
|
978
|
+
result: z.ZodEnum<{
|
|
979
|
+
win: "win";
|
|
980
|
+
draw: "draw";
|
|
981
|
+
loss: "loss";
|
|
982
|
+
eliminated: "eliminated";
|
|
983
|
+
}>;
|
|
984
|
+
score: z.ZodOptional<z.ZodNumber>;
|
|
985
|
+
scoreBreakdown: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
986
|
+
id: z.ZodString;
|
|
987
|
+
label: z.ZodString;
|
|
988
|
+
value: z.ZodNumber;
|
|
989
|
+
}, z.core.$strict>>>;
|
|
990
|
+
tieBreaks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
991
|
+
id: z.ZodString;
|
|
992
|
+
label: z.ZodString;
|
|
993
|
+
value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
994
|
+
}, z.core.$strict>>>;
|
|
995
|
+
}, z.core.$strict>>;
|
|
811
996
|
}, z.core.$strict>>;
|
|
812
997
|
effects: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
813
998
|
effectId: z.ZodString;
|
|
@@ -831,6 +1016,16 @@ declare const ReduceResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
831
1016
|
id: z.ZodString;
|
|
832
1017
|
data: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
833
1018
|
}, z.core.$strict>>;
|
|
1019
|
+
events: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1020
|
+
kind: z.ZodLiteral<"systemAction">;
|
|
1021
|
+
procedureId: z.ZodString;
|
|
1022
|
+
title: z.ZodString;
|
|
1023
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
1024
|
+
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1025
|
+
label: z.ZodString;
|
|
1026
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
1027
|
+
}, z.core.$strict>>>;
|
|
1028
|
+
}, z.core.$strict>], "kind">>;
|
|
834
1029
|
}, z.core.$strict>], "kind">;
|
|
835
1030
|
declare const DispatchTraceAcceptedClientInputSchema: z.ZodObject<{
|
|
836
1031
|
kind: z.ZodLiteral<"acceptedClientInput">;
|
|
@@ -959,9 +1154,31 @@ declare const DispatchResultAcceptSchema: z.ZodObject<{
|
|
|
959
1154
|
}, z.core.$strict>;
|
|
960
1155
|
}, z.core.$strict>;
|
|
961
1156
|
terminal: z.ZodOptional<z.ZodObject<{
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
1157
|
+
reason: z.ZodObject<{
|
|
1158
|
+
code: z.ZodString;
|
|
1159
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1160
|
+
}, z.core.$strict>;
|
|
1161
|
+
standings: z.ZodArray<z.ZodObject<{
|
|
1162
|
+
playerId: z.ZodString;
|
|
1163
|
+
rank: z.ZodNumber;
|
|
1164
|
+
result: z.ZodEnum<{
|
|
1165
|
+
win: "win";
|
|
1166
|
+
draw: "draw";
|
|
1167
|
+
loss: "loss";
|
|
1168
|
+
eliminated: "eliminated";
|
|
1169
|
+
}>;
|
|
1170
|
+
score: z.ZodOptional<z.ZodNumber>;
|
|
1171
|
+
scoreBreakdown: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1172
|
+
id: z.ZodString;
|
|
1173
|
+
label: z.ZodString;
|
|
1174
|
+
value: z.ZodNumber;
|
|
1175
|
+
}, z.core.$strict>>>;
|
|
1176
|
+
tieBreaks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1177
|
+
id: z.ZodString;
|
|
1178
|
+
label: z.ZodString;
|
|
1179
|
+
value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
1180
|
+
}, z.core.$strict>>>;
|
|
1181
|
+
}, z.core.$strict>>;
|
|
965
1182
|
}, z.core.$strict>>;
|
|
966
1183
|
trace: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
967
1184
|
kind: z.ZodLiteral<"acceptedClientInput">;
|
|
@@ -1000,6 +1217,16 @@ declare const DispatchResultAcceptSchema: z.ZodObject<{
|
|
|
1000
1217
|
operation: z.ZodString;
|
|
1001
1218
|
traceEntry: z.ZodString;
|
|
1002
1219
|
}, z.core.$strict>], "kind">>;
|
|
1220
|
+
events: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1221
|
+
kind: z.ZodLiteral<"systemAction">;
|
|
1222
|
+
procedureId: z.ZodString;
|
|
1223
|
+
title: z.ZodString;
|
|
1224
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
1225
|
+
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1226
|
+
label: z.ZodString;
|
|
1227
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
1228
|
+
}, z.core.$strict>>>;
|
|
1229
|
+
}, z.core.$strict>], "kind">>;
|
|
1003
1230
|
}, z.core.$strict>;
|
|
1004
1231
|
declare const DispatchResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1005
1232
|
kind: z.ZodLiteral<"reject">;
|
|
@@ -1051,9 +1278,31 @@ declare const DispatchResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1051
1278
|
}, z.core.$strict>;
|
|
1052
1279
|
}, z.core.$strict>;
|
|
1053
1280
|
terminal: z.ZodOptional<z.ZodObject<{
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1281
|
+
reason: z.ZodObject<{
|
|
1282
|
+
code: z.ZodString;
|
|
1283
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1284
|
+
}, z.core.$strict>;
|
|
1285
|
+
standings: z.ZodArray<z.ZodObject<{
|
|
1286
|
+
playerId: z.ZodString;
|
|
1287
|
+
rank: z.ZodNumber;
|
|
1288
|
+
result: z.ZodEnum<{
|
|
1289
|
+
win: "win";
|
|
1290
|
+
draw: "draw";
|
|
1291
|
+
loss: "loss";
|
|
1292
|
+
eliminated: "eliminated";
|
|
1293
|
+
}>;
|
|
1294
|
+
score: z.ZodOptional<z.ZodNumber>;
|
|
1295
|
+
scoreBreakdown: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1296
|
+
id: z.ZodString;
|
|
1297
|
+
label: z.ZodString;
|
|
1298
|
+
value: z.ZodNumber;
|
|
1299
|
+
}, z.core.$strict>>>;
|
|
1300
|
+
tieBreaks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1301
|
+
id: z.ZodString;
|
|
1302
|
+
label: z.ZodString;
|
|
1303
|
+
value: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
1304
|
+
}, z.core.$strict>>>;
|
|
1305
|
+
}, z.core.$strict>>;
|
|
1057
1306
|
}, z.core.$strict>>;
|
|
1058
1307
|
trace: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1059
1308
|
kind: z.ZodLiteral<"acceptedClientInput">;
|
|
@@ -1092,6 +1341,16 @@ declare const DispatchResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1092
1341
|
operation: z.ZodString;
|
|
1093
1342
|
traceEntry: z.ZodString;
|
|
1094
1343
|
}, z.core.$strict>], "kind">>;
|
|
1344
|
+
events: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1345
|
+
kind: z.ZodLiteral<"systemAction">;
|
|
1346
|
+
procedureId: z.ZodString;
|
|
1347
|
+
title: z.ZodString;
|
|
1348
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
1349
|
+
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1350
|
+
label: z.ZodString;
|
|
1351
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
1352
|
+
}, z.core.$strict>>>;
|
|
1353
|
+
}, z.core.$strict>], "kind">>;
|
|
1095
1354
|
}, z.core.$strict>], "kind">;
|
|
1096
1355
|
declare const ReducerRuntimeLogEntryAcceptedClientInputSchema: z.ZodObject<{
|
|
1097
1356
|
kind: z.ZodLiteral<"acceptedClientInput">;
|
|
@@ -1371,11 +1630,19 @@ declare const zod_EffectSchema: typeof EffectSchema;
|
|
|
1371
1630
|
declare const zod_EffectShufflePlayerZoneSchema: typeof EffectShufflePlayerZoneSchema;
|
|
1372
1631
|
declare const zod_EffectShuffleSharedZoneSchema: typeof EffectShuffleSharedZoneSchema;
|
|
1373
1632
|
declare const zod_EffectTransitionSchema: typeof EffectTransitionSchema;
|
|
1633
|
+
declare const zod_GameEventDetailSchema: typeof GameEventDetailSchema;
|
|
1634
|
+
declare const zod_GameEventSchema: typeof GameEventSchema;
|
|
1374
1635
|
declare const zod_GameInputInteractionSchema: typeof GameInputInteractionSchema;
|
|
1375
1636
|
declare const zod_GameInputSchema: typeof GameInputSchema;
|
|
1637
|
+
declare const zod_GameOutcomeReasonSchema: typeof GameOutcomeReasonSchema;
|
|
1638
|
+
declare const zod_GameOutcomeSchema: typeof GameOutcomeSchema;
|
|
1376
1639
|
declare const zod_InitializePhaseRequestSchema: typeof InitializePhaseRequestSchema;
|
|
1377
1640
|
declare const zod_InitializeRequestSchema: typeof InitializeRequestSchema;
|
|
1378
1641
|
declare const zod_JsonValueSchema: typeof JsonValueSchema;
|
|
1642
|
+
declare const zod_OutcomeResultSchema: typeof OutcomeResultSchema;
|
|
1643
|
+
declare const zod_OutcomeScoreComponentSchema: typeof OutcomeScoreComponentSchema;
|
|
1644
|
+
declare const zod_OutcomeStandingSchema: typeof OutcomeStandingSchema;
|
|
1645
|
+
declare const zod_OutcomeTieBreakSchema: typeof OutcomeTieBreakSchema;
|
|
1379
1646
|
declare const zod_ProjectSeatsDynamicRequestSchema: typeof ProjectSeatsDynamicRequestSchema;
|
|
1380
1647
|
declare const zod_ReduceRequestSchema: typeof ReduceRequestSchema;
|
|
1381
1648
|
declare const zod_ReduceResultAcceptSchema: typeof ReduceResultAcceptSchema;
|
|
@@ -1401,11 +1668,11 @@ declare const zod_RuntimeSimultaneousSubmissionSchema: typeof RuntimeSimultaneou
|
|
|
1401
1668
|
declare const zod_SeatProjectionBundleSchema: typeof SeatProjectionBundleSchema;
|
|
1402
1669
|
declare const zod_SeatProjectionSchema: typeof SeatProjectionSchema;
|
|
1403
1670
|
declare const zod_SimultaneousPhaseProjectionSchema: typeof SimultaneousPhaseProjectionSchema;
|
|
1404
|
-
declare const
|
|
1671
|
+
declare const zod_SystemActionEventSchema: typeof SystemActionEventSchema;
|
|
1405
1672
|
declare const zod_TransitionRecordSchema: typeof TransitionRecordSchema;
|
|
1406
1673
|
declare const zod_ValidateInputRequestSchema: typeof ValidateInputRequestSchema;
|
|
1407
1674
|
declare namespace zod {
|
|
1408
|
-
export { zod_BoardStaticProjectionSchema as BoardStaticProjectionSchema, zod_ContinuationMapSchema as ContinuationMapSchema, zod_ContinuationTokenSchema as ContinuationTokenSchema, zod_DispatchRequestSchema as DispatchRequestSchema, zod_DispatchResultAcceptSchema as DispatchResultAcceptSchema, zod_DispatchResultRejectSchema as DispatchResultRejectSchema, zod_DispatchResultSchema as DispatchResultSchema, zod_DispatchTraceAcceptedClientInputSchema as DispatchTraceAcceptedClientInputSchema, zod_DispatchTraceAppliedEffectSchema as DispatchTraceAppliedEffectSchema, zod_DispatchTraceRngConsumptionSchema as DispatchTraceRngConsumptionSchema, zod_DispatchTraceSchema as DispatchTraceSchema, zod_EffectIdSchema as EffectIdSchema, zod_EffectRollDieSchema as EffectRollDieSchema, zod_EffectSchema as EffectSchema, zod_EffectShufflePlayerZoneSchema as EffectShufflePlayerZoneSchema, zod_EffectShuffleSharedZoneSchema as EffectShuffleSharedZoneSchema, zod_EffectTransitionSchema as EffectTransitionSchema, zod_GameInputInteractionSchema as GameInputInteractionSchema, zod_GameInputSchema as GameInputSchema, zod_InitializePhaseRequestSchema as InitializePhaseRequestSchema, zod_InitializeRequestSchema as InitializeRequestSchema, zod_JsonValueSchema as JsonValueSchema, zod_ProjectSeatsDynamicRequestSchema as ProjectSeatsDynamicRequestSchema, zod_ReduceRequestSchema as ReduceRequestSchema, zod_ReduceResultAcceptSchema as ReduceResultAcceptSchema, zod_ReduceResultRejectSchema as ReduceResultRejectSchema, zod_ReduceResultSchema as ReduceResultSchema, zod_ReducerContractVersionSchema as ReducerContractVersionSchema, zod_ReducerDomainStateSchema as ReducerDomainStateSchema, zod_ReducerFlowStateSchema as ReducerFlowStateSchema, zod_ReducerInputValidationResultSchema as ReducerInputValidationResultSchema, zod_ReducerRuntimeLogEntryAcceptedClientInputSchema as ReducerRuntimeLogEntryAcceptedClientInputSchema, zod_ReducerRuntimeLogEntryAppliedEffectSchema as ReducerRuntimeLogEntryAppliedEffectSchema, zod_ReducerRuntimeLogEntryRngConsumptionSchema as ReducerRuntimeLogEntryRngConsumptionSchema, zod_ReducerRuntimeLogEntrySchema as ReducerRuntimeLogEntrySchema, zod_ReducerRuntimeLogEntryStateCommitSchema as ReducerRuntimeLogEntryStateCommitSchema, zod_ReducerRuntimeStateSchema as ReducerRuntimeStateSchema, zod_ReducerSessionMetaSchema as ReducerSessionMetaSchema, zod_ReducerSessionStateSchema as ReducerSessionStateSchema, zod_ReducerSetupSelectionSchema as ReducerSetupSelectionSchema, zod_RngStateSchema as RngStateSchema, zod_RuntimeSimultaneousCurrentSchema as RuntimeSimultaneousCurrentSchema, zod_RuntimeSimultaneousStateSchema as RuntimeSimultaneousStateSchema, zod_RuntimeSimultaneousSubmissionSchema as RuntimeSimultaneousSubmissionSchema, zod_SeatProjectionBundleSchema as SeatProjectionBundleSchema, zod_SeatProjectionSchema as SeatProjectionSchema, zod_SimultaneousPhaseProjectionSchema as SimultaneousPhaseProjectionSchema,
|
|
1675
|
+
export { zod_BoardStaticProjectionSchema as BoardStaticProjectionSchema, zod_ContinuationMapSchema as ContinuationMapSchema, zod_ContinuationTokenSchema as ContinuationTokenSchema, zod_DispatchRequestSchema as DispatchRequestSchema, zod_DispatchResultAcceptSchema as DispatchResultAcceptSchema, zod_DispatchResultRejectSchema as DispatchResultRejectSchema, zod_DispatchResultSchema as DispatchResultSchema, zod_DispatchTraceAcceptedClientInputSchema as DispatchTraceAcceptedClientInputSchema, zod_DispatchTraceAppliedEffectSchema as DispatchTraceAppliedEffectSchema, zod_DispatchTraceRngConsumptionSchema as DispatchTraceRngConsumptionSchema, zod_DispatchTraceSchema as DispatchTraceSchema, zod_EffectIdSchema as EffectIdSchema, zod_EffectRollDieSchema as EffectRollDieSchema, zod_EffectSchema as EffectSchema, zod_EffectShufflePlayerZoneSchema as EffectShufflePlayerZoneSchema, zod_EffectShuffleSharedZoneSchema as EffectShuffleSharedZoneSchema, zod_EffectTransitionSchema as EffectTransitionSchema, zod_GameEventDetailSchema as GameEventDetailSchema, zod_GameEventSchema as GameEventSchema, zod_GameInputInteractionSchema as GameInputInteractionSchema, zod_GameInputSchema as GameInputSchema, zod_GameOutcomeReasonSchema as GameOutcomeReasonSchema, zod_GameOutcomeSchema as GameOutcomeSchema, zod_InitializePhaseRequestSchema as InitializePhaseRequestSchema, zod_InitializeRequestSchema as InitializeRequestSchema, zod_JsonValueSchema as JsonValueSchema, zod_OutcomeResultSchema as OutcomeResultSchema, zod_OutcomeScoreComponentSchema as OutcomeScoreComponentSchema, zod_OutcomeStandingSchema as OutcomeStandingSchema, zod_OutcomeTieBreakSchema as OutcomeTieBreakSchema, zod_ProjectSeatsDynamicRequestSchema as ProjectSeatsDynamicRequestSchema, zod_ReduceRequestSchema as ReduceRequestSchema, zod_ReduceResultAcceptSchema as ReduceResultAcceptSchema, zod_ReduceResultRejectSchema as ReduceResultRejectSchema, zod_ReduceResultSchema as ReduceResultSchema, zod_ReducerContractVersionSchema as ReducerContractVersionSchema, zod_ReducerDomainStateSchema as ReducerDomainStateSchema, zod_ReducerFlowStateSchema as ReducerFlowStateSchema, zod_ReducerInputValidationResultSchema as ReducerInputValidationResultSchema, zod_ReducerRuntimeLogEntryAcceptedClientInputSchema as ReducerRuntimeLogEntryAcceptedClientInputSchema, zod_ReducerRuntimeLogEntryAppliedEffectSchema as ReducerRuntimeLogEntryAppliedEffectSchema, zod_ReducerRuntimeLogEntryRngConsumptionSchema as ReducerRuntimeLogEntryRngConsumptionSchema, zod_ReducerRuntimeLogEntrySchema as ReducerRuntimeLogEntrySchema, zod_ReducerRuntimeLogEntryStateCommitSchema as ReducerRuntimeLogEntryStateCommitSchema, zod_ReducerRuntimeStateSchema as ReducerRuntimeStateSchema, zod_ReducerSessionMetaSchema as ReducerSessionMetaSchema, zod_ReducerSessionStateSchema as ReducerSessionStateSchema, zod_ReducerSetupSelectionSchema as ReducerSetupSelectionSchema, zod_RngStateSchema as RngStateSchema, zod_RuntimeSimultaneousCurrentSchema as RuntimeSimultaneousCurrentSchema, zod_RuntimeSimultaneousStateSchema as RuntimeSimultaneousStateSchema, zod_RuntimeSimultaneousSubmissionSchema as RuntimeSimultaneousSubmissionSchema, zod_SeatProjectionBundleSchema as SeatProjectionBundleSchema, zod_SeatProjectionSchema as SeatProjectionSchema, zod_SimultaneousPhaseProjectionSchema as SimultaneousPhaseProjectionSchema, zod_SystemActionEventSchema as SystemActionEventSchema, zod_TransitionRecordSchema as TransitionRecordSchema, zod_ValidateInputRequestSchema as ValidateInputRequestSchema };
|
|
1409
1676
|
}
|
|
1410
1677
|
|
|
1411
1678
|
/**
|
|
@@ -1413,7 +1680,7 @@ declare namespace zod {
|
|
|
1413
1680
|
* any breaking change to schema/reducer-runtime.schema.json. At bundle load
|
|
1414
1681
|
* time hosts refuse bundles whose major version differs.
|
|
1415
1682
|
*/
|
|
1416
|
-
declare const REDUCER_CONTRACT_VERSION: "0.
|
|
1683
|
+
declare const REDUCER_CONTRACT_VERSION: "0.3.0";
|
|
1417
1684
|
|
|
1418
1685
|
type MaybePromise<T> = T | Promise<T>;
|
|
1419
1686
|
/**
|
package/dist/index.js
CHANGED
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
DREAMBOARD_SDK_PACKAGES,
|
|
3
3
|
DREAMBOARD_SDK_PACKAGE_SET,
|
|
4
4
|
DREAMBOARD_SDK_VERSION
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-DDST4U2P.js";
|
|
6
|
+
import "./chunk-HK3WN4U7.js";
|
|
7
7
|
import "./chunk-PZ5AY32C.js";
|
|
8
8
|
export {
|
|
9
9
|
DREAMBOARD_SDK_PACKAGES,
|
package/dist/package-set.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
declare const DREAMBOARD_SDK_VERSION: "0.4.0-alpha.
|
|
1
|
+
declare const DREAMBOARD_SDK_VERSION: "0.4.0-alpha.6";
|
|
2
2
|
declare const DREAMBOARD_SDK_PACKAGES: {
|
|
3
|
-
readonly "@dreamboard-games/sdk": "0.4.0-alpha.
|
|
3
|
+
readonly "@dreamboard-games/sdk": "0.4.0-alpha.6";
|
|
4
4
|
};
|
|
5
5
|
type DreamboardSdkPackageName = keyof typeof DREAMBOARD_SDK_PACKAGES;
|
|
6
6
|
type DreamboardSdkPackageSet = {
|
package/dist/package-set.js
CHANGED
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
DREAMBOARD_SDK_PACKAGES,
|
|
3
3
|
DREAMBOARD_SDK_PACKAGE_SET,
|
|
4
4
|
DREAMBOARD_SDK_VERSION
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-DDST4U2P.js";
|
|
6
|
+
import "./chunk-HK3WN4U7.js";
|
|
7
7
|
import "./chunk-PZ5AY32C.js";
|
|
8
8
|
export {
|
|
9
9
|
DREAMBOARD_SDK_PACKAGES,
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import './runtime-api-C6aWo9c0.js';
|
|
2
|
-
|
|
3
1
|
/** Choice option surfaced on a prompt-kind interaction's structured context. */
|
|
4
2
|
interface InteractionContextOption {
|
|
5
3
|
id: string;
|
|
@@ -151,6 +149,8 @@ interface InteractionDescriptorBase<Key extends string = string> {
|
|
|
151
149
|
phaseName: string;
|
|
152
150
|
interactionKey: Key;
|
|
153
151
|
interactionId: string;
|
|
152
|
+
label: string;
|
|
153
|
+
help?: string;
|
|
154
154
|
/** Draft commit policy. Always materialized by the trusted reducer bundle. */
|
|
155
155
|
commit: InteractionCommitPolicy;
|
|
156
156
|
/** Canonical descriptor digest used by browser replay/protocol tooling when projected by the host. */
|
|
@@ -194,5 +194,21 @@ interface ZoneHandlesSnapshot<InteractionType extends string = string> {
|
|
|
194
194
|
cardViewsById: Readonly<Record<string, string>>;
|
|
195
195
|
playableByCardId: Readonly<Record<string, ReadonlyArray<InteractionDescriptor<InteractionType>>>>;
|
|
196
196
|
}
|
|
197
|
+
interface GameEventDetail {
|
|
198
|
+
label: string;
|
|
199
|
+
value: string | number | boolean;
|
|
200
|
+
}
|
|
201
|
+
interface SystemActionEvent {
|
|
202
|
+
kind: "systemAction";
|
|
203
|
+
procedureId: string;
|
|
204
|
+
title: string;
|
|
205
|
+
summary?: string;
|
|
206
|
+
details?: readonly GameEventDetail[];
|
|
207
|
+
}
|
|
208
|
+
type GameEvent = SystemActionEvent;
|
|
209
|
+
type ProjectedGameEvent = GameEvent & {
|
|
210
|
+
version: number;
|
|
211
|
+
index: number;
|
|
212
|
+
};
|
|
197
213
|
|
|
198
|
-
export type { InputDomain as I, ZoneHandlesSnapshot as Z,
|
|
214
|
+
export type { GameEvent as G, InputDomain as I, ProjectedGameEvent as P, SystemActionEvent as S, ZoneHandlesSnapshot as Z, GameEventDetail as a, InteractionDescriptor as b, InteractionInputDescriptor as c };
|
|
@@ -84,10 +84,31 @@ interface InteractionDiagnosticReason {
|
|
|
84
84
|
readonly ruleId: string;
|
|
85
85
|
readonly errorCode: string;
|
|
86
86
|
}
|
|
87
|
+
interface SetupGuidanceStep {
|
|
88
|
+
readonly id: string;
|
|
89
|
+
readonly label: string;
|
|
90
|
+
readonly description?: string;
|
|
91
|
+
}
|
|
92
|
+
interface GameGuidanceProjection {
|
|
93
|
+
readonly phase: {
|
|
94
|
+
readonly id: string;
|
|
95
|
+
readonly label: string;
|
|
96
|
+
readonly summary?: string;
|
|
97
|
+
readonly objective?: string;
|
|
98
|
+
};
|
|
99
|
+
readonly setup?: {
|
|
100
|
+
readonly profileId: string;
|
|
101
|
+
readonly name: string;
|
|
102
|
+
readonly summary?: string;
|
|
103
|
+
readonly steps: readonly SetupGuidanceStep[];
|
|
104
|
+
};
|
|
105
|
+
}
|
|
87
106
|
interface InteractionDescriptorBase<Interaction extends string = string> {
|
|
88
107
|
readonly phaseName: string;
|
|
89
108
|
readonly interactionKey: Interaction;
|
|
90
109
|
readonly interactionId: string;
|
|
110
|
+
readonly label: string;
|
|
111
|
+
readonly help?: string;
|
|
91
112
|
readonly zoneId?: string;
|
|
92
113
|
readonly zoneIds?: readonly string[];
|
|
93
114
|
readonly commit: InteractionCommitPolicy;
|
|
@@ -130,6 +151,22 @@ interface SimultaneousPhaseSnapshot {
|
|
|
130
151
|
readonly sealedPlayerIds: readonly PlayerId[];
|
|
131
152
|
readonly pendingPlayerIds: readonly PlayerId[];
|
|
132
153
|
}
|
|
154
|
+
interface GameEventDetail {
|
|
155
|
+
readonly label: string;
|
|
156
|
+
readonly value: string | number | boolean;
|
|
157
|
+
}
|
|
158
|
+
interface SystemActionEvent {
|
|
159
|
+
readonly kind: "systemAction";
|
|
160
|
+
readonly procedureId: string;
|
|
161
|
+
readonly title: string;
|
|
162
|
+
readonly summary?: string;
|
|
163
|
+
readonly details?: readonly GameEventDetail[];
|
|
164
|
+
}
|
|
165
|
+
type GameEvent = SystemActionEvent;
|
|
166
|
+
type ProjectedGameEvent = GameEvent & {
|
|
167
|
+
readonly version: number;
|
|
168
|
+
readonly index: number;
|
|
169
|
+
};
|
|
133
170
|
interface PluginGameplayFrame<View = unknown, Phase extends string = string, Stage extends string = string, Interaction extends string = string> {
|
|
134
171
|
readonly gameVersion: number;
|
|
135
172
|
readonly actionSetVersion: string;
|
|
@@ -142,12 +179,16 @@ interface PluginGameplayFrame<View = unknown, Phase extends string = string, Sta
|
|
|
142
179
|
readonly simultaneousPhase: SimultaneousPhaseSnapshot | null;
|
|
143
180
|
};
|
|
144
181
|
readonly availableInteractions: ReadonlyArray<InteractionDescriptor<Interaction>>;
|
|
182
|
+
readonly guidance?: GameGuidanceProjection | null;
|
|
183
|
+
readonly recentEvents: readonly ProjectedGameEvent[];
|
|
145
184
|
readonly zones: Readonly<Record<string, ZoneHandlesSnapshot<Interaction>>>;
|
|
146
185
|
}
|
|
147
186
|
interface ReducerSeatProjectionBundle {
|
|
148
187
|
readonly currentStage?: string | null;
|
|
149
188
|
readonly stageSeats?: readonly string[];
|
|
150
189
|
readonly simultaneousPhase?: SimultaneousPhaseSnapshot | null;
|
|
190
|
+
readonly guidance?: GameGuidanceProjection | null;
|
|
191
|
+
readonly recentEvents?: readonly ProjectedGameEvent[];
|
|
151
192
|
readonly interactionsByRef?: unknown;
|
|
152
193
|
readonly seats: Readonly<Record<string, {
|
|
153
194
|
readonly view?: unknown;
|
|
@@ -264,4 +305,4 @@ type ActionSetVersionInput = {
|
|
|
264
305
|
readonly availableInteractions: readonly InteractionDescriptor[];
|
|
265
306
|
};
|
|
266
307
|
|
|
267
|
-
export { type ActionInteractionDescriptor as A, type
|
|
308
|
+
export { type ActionInteractionDescriptor as A, type PromptInteractionDescriptor as B, type CanonicalJson as C, DREAMBOARD_PLUGIN_PROTOCOL as D, type ReducerSeatProjectionBundle as E, type RuntimeJson as F, type GameEvent as G, type HostToPluginEnvelope as H, type InputDomain as I, type SubmissionResult as J, type SubmitInteractionCommand as K, type SystemActionEvent as L, type ValidationResult as M, canonicalizePluginRuntimeJson as N, digestPluginRuntimeJson as O, type PlayerId as P, encodeCanonicalPluginRuntimeJson as Q, type ReducerBoardStaticProjection as R, type SimultaneousPhaseSnapshot as S, type ValidateInteractionCommand as V, type ZoneHandlesSnapshot as Z, type ActionSetVersionInput as a, DREAMBOARD_PLUGIN_PROTOCOL_VERSION as b, type GameEventDetail as c, type HostToPluginPayload as d, type InputDomainDependencies as e, type InputDomainDependencyCase as f, type InputSelection as g, type InteractionAvailability as h, type InteractionChoiceOption as i, type InteractionCommitPolicy as j, type InteractionContext as k, type InteractionContextOption as l, type InteractionDescriptor as m, type InteractionDiagnosticReason as n, type InteractionInputDescriptor as o, type PluginGameplayFrame as p, type PluginInteractionBasis as q, type PluginPlayerSummary as r, type PluginProtocolEnvelope as s, type PluginProtocolFrame as t, type PluginProtocolStep as u, type PluginProtocolTape as v, type PluginSessionDescriptor as w, type PluginToHostEnvelope as x, type PluginToHostPayload as y, type ProjectedGameEvent as z };
|