@my-swu/simulator-client 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/schemas.js +414 -3
- package/dist/generated/types/common.d.ts +94 -0
- package/dist/generated/types/format-event-response.d.ts +1 -1
- package/dist/generated/types/game-state.d.ts +1 -1
- package/dist/generated/types/get-match-response.d.ts +1 -1
- package/dist/generated/types/list-active-ai-matches-response.d.ts +1 -1
- package/dist/generated/types/lobby-access-response.d.ts +1 -1
- package/dist/generated/types/lobby-server-message.d.ts +1 -1
- package/dist/generated/types/match-access-response.d.ts +1 -1
- package/dist/generated/types/match-history-replay-response.d.ts +1 -1
- package/dist/generated/types/match-spectator-access-response.d.ts +1 -1
- package/dist/generated/types/rematch-match-response.d.ts +1 -1
- package/dist/generated/types/restore-history-response.d.ts +1 -1
- package/dist/generated/types/restore-match-save-response.d.ts +1 -1
- package/dist/generated/types/server-message.d.ts +1 -1
- package/dist/generated/types/submit-match-deck-response.d.ts +1 -1
- package/dist/generated/types/tournament-room-access-response.d.ts +1 -1
- package/dist/generated/types/tournament-room-server-message.d.ts +1 -1
- package/dist/generated/types/undo-match-response.d.ts +1 -1
- package/dist/generated/version.d.ts +1 -1
- package/dist/generated/version.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/internal/authenticated-socket-session.js +2 -2
- package/dist/internal/errors.d.ts +5 -0
- package/dist/internal/errors.js +4 -0
- package/dist/match-session/controller.js +2 -1
- package/dist/resources/lobby-list-session.js +2 -2
- package/dist/resources/tournament-room-types.d.ts +2 -2
- package/dist/types.d.ts +1 -1
- package/dist/validators.d.ts +1 -1
- package/dist/validators.js +1 -1
- package/package.json +1 -1
- package/schema/common.schema.json +371 -2
- package/schema/game-command.schema.json +26 -0
- package/schema/game-state.schema.json +11 -0
- package/schema/health-response.schema.json +6 -1
- package/schema/manifest.json +1 -1
|
@@ -1887,7 +1887,7 @@ export const sdkSchemaCommon = {
|
|
|
1887
1887
|
"const": "eternal"
|
|
1888
1888
|
},
|
|
1889
1889
|
{
|
|
1890
|
-
"description": "
|
|
1890
|
+
"description": "Eternal legality with unrestricted leader/base rarity and low-rarity cards elsewhere.",
|
|
1891
1891
|
"type": "string",
|
|
1892
1892
|
"const": "peasant"
|
|
1893
1893
|
},
|
|
@@ -2977,6 +2977,310 @@ export const sdkSchemaCommon = {
|
|
|
2977
2977
|
"persistent"
|
|
2978
2978
|
]
|
|
2979
2979
|
},
|
|
2980
|
+
"EffectResolutionDraftStepView": {
|
|
2981
|
+
"description": "One selected draft answer. `step_id` remains stable across projection.",
|
|
2982
|
+
"oneOf": [
|
|
2983
|
+
{
|
|
2984
|
+
"type": "object",
|
|
2985
|
+
"properties": {
|
|
2986
|
+
"editable": {
|
|
2987
|
+
"type": "boolean"
|
|
2988
|
+
},
|
|
2989
|
+
"kind": {
|
|
2990
|
+
"type": "string",
|
|
2991
|
+
"const": "target"
|
|
2992
|
+
},
|
|
2993
|
+
"label": {
|
|
2994
|
+
"type": "string"
|
|
2995
|
+
},
|
|
2996
|
+
"purpose": {
|
|
2997
|
+
"$ref": "https://simulator-sdk.my-swu.com/schema/common.json#/$defs/TargetGroupPurpose"
|
|
2998
|
+
},
|
|
2999
|
+
"selected": {
|
|
3000
|
+
"type": "array",
|
|
3001
|
+
"items": {
|
|
3002
|
+
"$ref": "https://simulator-sdk.my-swu.com/schema/common.json#/$defs/AbilityTarget"
|
|
3003
|
+
}
|
|
3004
|
+
},
|
|
3005
|
+
"stepId": {
|
|
3006
|
+
"type": "string"
|
|
3007
|
+
}
|
|
3008
|
+
},
|
|
3009
|
+
"required": [
|
|
3010
|
+
"kind",
|
|
3011
|
+
"stepId",
|
|
3012
|
+
"label",
|
|
3013
|
+
"purpose",
|
|
3014
|
+
"selected",
|
|
3015
|
+
"editable"
|
|
3016
|
+
]
|
|
3017
|
+
},
|
|
3018
|
+
{
|
|
3019
|
+
"type": "object",
|
|
3020
|
+
"properties": {
|
|
3021
|
+
"editable": {
|
|
3022
|
+
"type": "boolean"
|
|
3023
|
+
},
|
|
3024
|
+
"kind": {
|
|
3025
|
+
"type": "string",
|
|
3026
|
+
"const": "amount"
|
|
3027
|
+
},
|
|
3028
|
+
"label": {
|
|
3029
|
+
"type": "string"
|
|
3030
|
+
},
|
|
3031
|
+
"selected": {
|
|
3032
|
+
"type": "integer",
|
|
3033
|
+
"format": "int16",
|
|
3034
|
+
"maximum": 32767,
|
|
3035
|
+
"minimum": -32768
|
|
3036
|
+
},
|
|
3037
|
+
"stepId": {
|
|
3038
|
+
"type": "string"
|
|
3039
|
+
}
|
|
3040
|
+
},
|
|
3041
|
+
"required": [
|
|
3042
|
+
"kind",
|
|
3043
|
+
"stepId",
|
|
3044
|
+
"label",
|
|
3045
|
+
"selected",
|
|
3046
|
+
"editable"
|
|
3047
|
+
]
|
|
3048
|
+
},
|
|
3049
|
+
{
|
|
3050
|
+
"type": "object",
|
|
3051
|
+
"properties": {
|
|
3052
|
+
"editable": {
|
|
3053
|
+
"type": "boolean"
|
|
3054
|
+
},
|
|
3055
|
+
"kind": {
|
|
3056
|
+
"type": "string",
|
|
3057
|
+
"const": "modes"
|
|
3058
|
+
},
|
|
3059
|
+
"label": {
|
|
3060
|
+
"type": "string"
|
|
3061
|
+
},
|
|
3062
|
+
"selected": {
|
|
3063
|
+
"type": "array",
|
|
3064
|
+
"items": {
|
|
3065
|
+
"type": "integer",
|
|
3066
|
+
"format": "uint",
|
|
3067
|
+
"minimum": 0
|
|
3068
|
+
}
|
|
3069
|
+
},
|
|
3070
|
+
"stepId": {
|
|
3071
|
+
"type": "string"
|
|
3072
|
+
}
|
|
3073
|
+
},
|
|
3074
|
+
"required": [
|
|
3075
|
+
"kind",
|
|
3076
|
+
"stepId",
|
|
3077
|
+
"label",
|
|
3078
|
+
"selected",
|
|
3079
|
+
"editable"
|
|
3080
|
+
]
|
|
3081
|
+
},
|
|
3082
|
+
{
|
|
3083
|
+
"type": "object",
|
|
3084
|
+
"properties": {
|
|
3085
|
+
"editable": {
|
|
3086
|
+
"type": "boolean"
|
|
3087
|
+
},
|
|
3088
|
+
"kind": {
|
|
3089
|
+
"type": "string",
|
|
3090
|
+
"const": "cards"
|
|
3091
|
+
},
|
|
3092
|
+
"label": {
|
|
3093
|
+
"type": "string"
|
|
3094
|
+
},
|
|
3095
|
+
"selected": {
|
|
3096
|
+
"type": "array",
|
|
3097
|
+
"items": {
|
|
3098
|
+
"type": "integer",
|
|
3099
|
+
"format": "uint32",
|
|
3100
|
+
"minimum": 0
|
|
3101
|
+
}
|
|
3102
|
+
},
|
|
3103
|
+
"stepId": {
|
|
3104
|
+
"type": "string"
|
|
3105
|
+
}
|
|
3106
|
+
},
|
|
3107
|
+
"required": [
|
|
3108
|
+
"kind",
|
|
3109
|
+
"stepId",
|
|
3110
|
+
"label",
|
|
3111
|
+
"selected",
|
|
3112
|
+
"editable"
|
|
3113
|
+
]
|
|
3114
|
+
},
|
|
3115
|
+
{
|
|
3116
|
+
"type": "object",
|
|
3117
|
+
"properties": {
|
|
3118
|
+
"editable": {
|
|
3119
|
+
"type": "boolean"
|
|
3120
|
+
},
|
|
3121
|
+
"kind": {
|
|
3122
|
+
"type": "string",
|
|
3123
|
+
"const": "name"
|
|
3124
|
+
},
|
|
3125
|
+
"label": {
|
|
3126
|
+
"type": "string"
|
|
3127
|
+
},
|
|
3128
|
+
"selected": {
|
|
3129
|
+
"type": "string"
|
|
3130
|
+
},
|
|
3131
|
+
"stepId": {
|
|
3132
|
+
"type": "string"
|
|
3133
|
+
}
|
|
3134
|
+
},
|
|
3135
|
+
"required": [
|
|
3136
|
+
"kind",
|
|
3137
|
+
"stepId",
|
|
3138
|
+
"label",
|
|
3139
|
+
"selected",
|
|
3140
|
+
"editable"
|
|
3141
|
+
]
|
|
3142
|
+
},
|
|
3143
|
+
{
|
|
3144
|
+
"type": "object",
|
|
3145
|
+
"properties": {
|
|
3146
|
+
"editable": {
|
|
3147
|
+
"type": "boolean"
|
|
3148
|
+
},
|
|
3149
|
+
"kind": {
|
|
3150
|
+
"type": "string",
|
|
3151
|
+
"const": "aspect"
|
|
3152
|
+
},
|
|
3153
|
+
"label": {
|
|
3154
|
+
"type": "string"
|
|
3155
|
+
},
|
|
3156
|
+
"selected": {
|
|
3157
|
+
"type": "string"
|
|
3158
|
+
},
|
|
3159
|
+
"stepId": {
|
|
3160
|
+
"type": "string"
|
|
3161
|
+
}
|
|
3162
|
+
},
|
|
3163
|
+
"required": [
|
|
3164
|
+
"kind",
|
|
3165
|
+
"stepId",
|
|
3166
|
+
"label",
|
|
3167
|
+
"selected",
|
|
3168
|
+
"editable"
|
|
3169
|
+
]
|
|
3170
|
+
},
|
|
3171
|
+
{
|
|
3172
|
+
"type": "object",
|
|
3173
|
+
"properties": {
|
|
3174
|
+
"attackerId": {
|
|
3175
|
+
"type": "integer",
|
|
3176
|
+
"format": "uint64",
|
|
3177
|
+
"minimum": 0
|
|
3178
|
+
},
|
|
3179
|
+
"editable": {
|
|
3180
|
+
"type": "boolean"
|
|
3181
|
+
},
|
|
3182
|
+
"kind": {
|
|
3183
|
+
"type": "string",
|
|
3184
|
+
"const": "attack"
|
|
3185
|
+
},
|
|
3186
|
+
"label": {
|
|
3187
|
+
"type": "string"
|
|
3188
|
+
},
|
|
3189
|
+
"stepId": {
|
|
3190
|
+
"type": "string"
|
|
3191
|
+
},
|
|
3192
|
+
"target": {
|
|
3193
|
+
"$ref": "https://simulator-sdk.my-swu.com/schema/common.json#/$defs/AttackTarget"
|
|
3194
|
+
}
|
|
3195
|
+
},
|
|
3196
|
+
"required": [
|
|
3197
|
+
"kind",
|
|
3198
|
+
"stepId",
|
|
3199
|
+
"label",
|
|
3200
|
+
"attackerId",
|
|
3201
|
+
"target",
|
|
3202
|
+
"editable"
|
|
3203
|
+
]
|
|
3204
|
+
},
|
|
3205
|
+
{
|
|
3206
|
+
"type": "object",
|
|
3207
|
+
"properties": {
|
|
3208
|
+
"editable": {
|
|
3209
|
+
"type": "boolean"
|
|
3210
|
+
},
|
|
3211
|
+
"kind": {
|
|
3212
|
+
"type": "string",
|
|
3213
|
+
"const": "distribution"
|
|
3214
|
+
},
|
|
3215
|
+
"label": {
|
|
3216
|
+
"type": "string"
|
|
3217
|
+
},
|
|
3218
|
+
"selected": {
|
|
3219
|
+
"type": "array",
|
|
3220
|
+
"items": {
|
|
3221
|
+
"$ref": "https://simulator-sdk.my-swu.com/schema/common.json#/$defs/DistributionAssignment"
|
|
3222
|
+
}
|
|
3223
|
+
},
|
|
3224
|
+
"stepId": {
|
|
3225
|
+
"type": "string"
|
|
3226
|
+
}
|
|
3227
|
+
},
|
|
3228
|
+
"required": [
|
|
3229
|
+
"kind",
|
|
3230
|
+
"stepId",
|
|
3231
|
+
"label",
|
|
3232
|
+
"selected",
|
|
3233
|
+
"editable"
|
|
3234
|
+
]
|
|
3235
|
+
}
|
|
3236
|
+
]
|
|
3237
|
+
},
|
|
3238
|
+
"EffectResolutionDraftView": {
|
|
3239
|
+
"description": "Engine-owned answers collected for one uncommitted semantic effect.",
|
|
3240
|
+
"type": "object",
|
|
3241
|
+
"properties": {
|
|
3242
|
+
"abilityId": {
|
|
3243
|
+
"type": "integer",
|
|
3244
|
+
"format": "uint64",
|
|
3245
|
+
"minimum": 0
|
|
3246
|
+
},
|
|
3247
|
+
"canDecline": {
|
|
3248
|
+
"type": "boolean"
|
|
3249
|
+
},
|
|
3250
|
+
"id": {
|
|
3251
|
+
"type": "integer",
|
|
3252
|
+
"format": "uint64",
|
|
3253
|
+
"minimum": 0
|
|
3254
|
+
},
|
|
3255
|
+
"locked": {
|
|
3256
|
+
"type": "boolean"
|
|
3257
|
+
},
|
|
3258
|
+
"originLabel": {
|
|
3259
|
+
"description": "Printed label of originating effect, retained for descendants.",
|
|
3260
|
+
"type": "string"
|
|
3261
|
+
},
|
|
3262
|
+
"sourceCardId": {
|
|
3263
|
+
"type": "integer",
|
|
3264
|
+
"format": "uint32",
|
|
3265
|
+
"minimum": 0
|
|
3266
|
+
},
|
|
3267
|
+
"steps": {
|
|
3268
|
+
"type": "array",
|
|
3269
|
+
"items": {
|
|
3270
|
+
"$ref": "https://simulator-sdk.my-swu.com/schema/common.json#/$defs/EffectResolutionDraftStepView"
|
|
3271
|
+
}
|
|
3272
|
+
}
|
|
3273
|
+
},
|
|
3274
|
+
"required": [
|
|
3275
|
+
"id",
|
|
3276
|
+
"abilityId",
|
|
3277
|
+
"sourceCardId",
|
|
3278
|
+
"originLabel",
|
|
3279
|
+
"canDecline",
|
|
3280
|
+
"locked",
|
|
3281
|
+
"steps"
|
|
3282
|
+
]
|
|
3283
|
+
},
|
|
2980
3284
|
"EffectRestrictionView": {
|
|
2981
3285
|
"description": "Public restriction category. Raw runtime filters remain engine-private.",
|
|
2982
3286
|
"type": "string",
|
|
@@ -4249,6 +4553,32 @@ export const sdkSchemaCommon = {
|
|
|
4249
4553
|
"declineAbility"
|
|
4250
4554
|
]
|
|
4251
4555
|
},
|
|
4556
|
+
{
|
|
4557
|
+
"type": "object",
|
|
4558
|
+
"properties": {
|
|
4559
|
+
"rewindEffectResolution": {
|
|
4560
|
+
"type": "object",
|
|
4561
|
+
"properties": {
|
|
4562
|
+
"draftId": {
|
|
4563
|
+
"type": "integer",
|
|
4564
|
+
"format": "uint64",
|
|
4565
|
+
"minimum": 0
|
|
4566
|
+
},
|
|
4567
|
+
"stepId": {
|
|
4568
|
+
"type": "string"
|
|
4569
|
+
}
|
|
4570
|
+
},
|
|
4571
|
+
"required": [
|
|
4572
|
+
"draftId",
|
|
4573
|
+
"stepId"
|
|
4574
|
+
]
|
|
4575
|
+
}
|
|
4576
|
+
},
|
|
4577
|
+
"additionalProperties": false,
|
|
4578
|
+
"required": [
|
|
4579
|
+
"rewindEffectResolution"
|
|
4580
|
+
]
|
|
4581
|
+
},
|
|
4252
4582
|
{
|
|
4253
4583
|
"type": "object",
|
|
4254
4584
|
"properties": {
|
|
@@ -6595,6 +6925,17 @@ export const sdkSchemaCommon = {
|
|
|
6595
6925
|
"$ref": "https://simulator-sdk.my-swu.com/schema/common.json#/$defs/DelayedEffectView"
|
|
6596
6926
|
}
|
|
6597
6927
|
},
|
|
6928
|
+
"effectResolutionDraft": {
|
|
6929
|
+
"description": "Viewer-owned effect inputs awaiting atomic commit.",
|
|
6930
|
+
"anyOf": [
|
|
6931
|
+
{
|
|
6932
|
+
"$ref": "https://simulator-sdk.my-swu.com/schema/common.json#/$defs/EffectResolutionDraftView"
|
|
6933
|
+
},
|
|
6934
|
+
{
|
|
6935
|
+
"type": "null"
|
|
6936
|
+
}
|
|
6937
|
+
]
|
|
6938
|
+
},
|
|
6598
6939
|
"eventsApplied": {
|
|
6599
6940
|
"type": "integer",
|
|
6600
6941
|
"format": "uint64",
|
|
@@ -8933,7 +9274,7 @@ export const sdkSchemaCommon = {
|
|
|
8933
9274
|
"const": "eternal"
|
|
8934
9275
|
},
|
|
8935
9276
|
{
|
|
8936
|
-
"description": "Peasant
|
|
9277
|
+
"description": "Peasant uses Eternal releases, setup rarity exemption, and no suspensions.",
|
|
8937
9278
|
"type": "string",
|
|
8938
9279
|
"const": "peasant"
|
|
8939
9280
|
},
|
|
@@ -10090,6 +10431,16 @@ export const sdkSchemaCommon = {
|
|
|
10090
10431
|
}
|
|
10091
10432
|
]
|
|
10092
10433
|
},
|
|
10434
|
+
"PendingAbilityModeChoiceInputKind": {
|
|
10435
|
+
"description": "Specialized input rendered for a mode-choice payload.",
|
|
10436
|
+
"oneOf": [
|
|
10437
|
+
{
|
|
10438
|
+
"description": "Select one exact numeric effect magnitude.",
|
|
10439
|
+
"type": "string",
|
|
10440
|
+
"const": "amount"
|
|
10441
|
+
}
|
|
10442
|
+
]
|
|
10443
|
+
},
|
|
10093
10444
|
"PendingAbilityModeChoiceView": {
|
|
10094
10445
|
"type": "object",
|
|
10095
10446
|
"properties": {
|
|
@@ -10105,6 +10456,17 @@ export const sdkSchemaCommon = {
|
|
|
10105
10456
|
"null"
|
|
10106
10457
|
]
|
|
10107
10458
|
},
|
|
10459
|
+
"inputKind": {
|
|
10460
|
+
"description": "Specialized renderer requested by the engine, absent for ordinary modes.",
|
|
10461
|
+
"anyOf": [
|
|
10462
|
+
{
|
|
10463
|
+
"$ref": "https://simulator-sdk.my-swu.com/schema/common.json#/$defs/PendingAbilityModeChoiceInputKind"
|
|
10464
|
+
},
|
|
10465
|
+
{
|
|
10466
|
+
"type": "null"
|
|
10467
|
+
}
|
|
10468
|
+
]
|
|
10469
|
+
},
|
|
10108
10470
|
"label": {
|
|
10109
10471
|
"type": "string"
|
|
10110
10472
|
},
|
|
@@ -10269,6 +10631,13 @@ export const sdkSchemaCommon = {
|
|
|
10269
10631
|
"description": "Whether an optional ability can be explicitly accepted without input.",
|
|
10270
10632
|
"type": "boolean"
|
|
10271
10633
|
},
|
|
10634
|
+
"canDecline": {
|
|
10635
|
+
"description": "Product-level cancellation policy, independent from rules optionality.",
|
|
10636
|
+
"type": [
|
|
10637
|
+
"boolean",
|
|
10638
|
+
"null"
|
|
10639
|
+
]
|
|
10640
|
+
},
|
|
10272
10641
|
"captureOptions": {
|
|
10273
10642
|
"anyOf": [
|
|
10274
10643
|
{
|
|
@@ -14376,12 +14745,17 @@ export const sdkSchemas = {
|
|
|
14376
14745
|
"title": "HealthResponse",
|
|
14377
14746
|
"type": "object",
|
|
14378
14747
|
"properties": {
|
|
14748
|
+
"buildSha": {
|
|
14749
|
+
"description": "Exact source revision compiled into the running server.",
|
|
14750
|
+
"type": "string"
|
|
14751
|
+
},
|
|
14379
14752
|
"status": {
|
|
14380
14753
|
"type": "string"
|
|
14381
14754
|
}
|
|
14382
14755
|
},
|
|
14383
14756
|
"required": [
|
|
14384
|
-
"status"
|
|
14757
|
+
"status",
|
|
14758
|
+
"buildSha"
|
|
14385
14759
|
]
|
|
14386
14760
|
},
|
|
14387
14761
|
'simulator-availability-response': {
|
|
@@ -18485,6 +18859,32 @@ export const sdkSchemas = {
|
|
|
18485
18859
|
"declineAbility"
|
|
18486
18860
|
]
|
|
18487
18861
|
},
|
|
18862
|
+
{
|
|
18863
|
+
"type": "object",
|
|
18864
|
+
"properties": {
|
|
18865
|
+
"rewindEffectResolution": {
|
|
18866
|
+
"type": "object",
|
|
18867
|
+
"properties": {
|
|
18868
|
+
"draftId": {
|
|
18869
|
+
"type": "integer",
|
|
18870
|
+
"format": "uint64",
|
|
18871
|
+
"minimum": 0
|
|
18872
|
+
},
|
|
18873
|
+
"stepId": {
|
|
18874
|
+
"type": "string"
|
|
18875
|
+
}
|
|
18876
|
+
},
|
|
18877
|
+
"required": [
|
|
18878
|
+
"draftId",
|
|
18879
|
+
"stepId"
|
|
18880
|
+
]
|
|
18881
|
+
}
|
|
18882
|
+
},
|
|
18883
|
+
"additionalProperties": false,
|
|
18884
|
+
"required": [
|
|
18885
|
+
"rewindEffectResolution"
|
|
18886
|
+
]
|
|
18887
|
+
},
|
|
18488
18888
|
{
|
|
18489
18889
|
"type": "object",
|
|
18490
18890
|
"properties": {
|
|
@@ -20835,6 +21235,17 @@ export const sdkSchemas = {
|
|
|
20835
21235
|
"$ref": "https://simulator-sdk.my-swu.com/schema/common.json#/$defs/DelayedEffectView"
|
|
20836
21236
|
}
|
|
20837
21237
|
},
|
|
21238
|
+
"effectResolutionDraft": {
|
|
21239
|
+
"description": "Viewer-owned effect inputs awaiting atomic commit.",
|
|
21240
|
+
"anyOf": [
|
|
21241
|
+
{
|
|
21242
|
+
"$ref": "https://simulator-sdk.my-swu.com/schema/common.json#/$defs/EffectResolutionDraftView"
|
|
21243
|
+
},
|
|
21244
|
+
{
|
|
21245
|
+
"type": "null"
|
|
21246
|
+
}
|
|
21247
|
+
]
|
|
21248
|
+
},
|
|
20838
21249
|
"eventsApplied": {
|
|
20839
21250
|
"type": "integer",
|
|
20840
21251
|
"format": "uint64",
|
|
@@ -976,6 +976,75 @@ export type EffectCardScopeView = (("card" | "unit" | "event" | "upgrade" | "plo
|
|
|
976
976
|
* Public lifetime category for an active effect.
|
|
977
977
|
*/
|
|
978
978
|
export type EffectDurationView = ("attack" | "phase" | "round" | "nextAction" | "whileSourceInPlay" | "persistent");
|
|
979
|
+
/**
|
|
980
|
+
* One selected draft answer. `step_id` remains stable across projection.
|
|
981
|
+
*/
|
|
982
|
+
export type EffectResolutionDraftStepView = ({
|
|
983
|
+
editable: boolean;
|
|
984
|
+
kind: "target";
|
|
985
|
+
label: string;
|
|
986
|
+
purpose: TargetGroupPurpose;
|
|
987
|
+
selected: AbilityTarget[];
|
|
988
|
+
stepId: string;
|
|
989
|
+
} | {
|
|
990
|
+
editable: boolean;
|
|
991
|
+
kind: "amount";
|
|
992
|
+
label: string;
|
|
993
|
+
selected: number;
|
|
994
|
+
stepId: string;
|
|
995
|
+
} | {
|
|
996
|
+
editable: boolean;
|
|
997
|
+
kind: "modes";
|
|
998
|
+
label: string;
|
|
999
|
+
selected: number[];
|
|
1000
|
+
stepId: string;
|
|
1001
|
+
} | {
|
|
1002
|
+
editable: boolean;
|
|
1003
|
+
kind: "cards";
|
|
1004
|
+
label: string;
|
|
1005
|
+
selected: number[];
|
|
1006
|
+
stepId: string;
|
|
1007
|
+
} | {
|
|
1008
|
+
editable: boolean;
|
|
1009
|
+
kind: "name";
|
|
1010
|
+
label: string;
|
|
1011
|
+
selected: string;
|
|
1012
|
+
stepId: string;
|
|
1013
|
+
} | {
|
|
1014
|
+
editable: boolean;
|
|
1015
|
+
kind: "aspect";
|
|
1016
|
+
label: string;
|
|
1017
|
+
selected: string;
|
|
1018
|
+
stepId: string;
|
|
1019
|
+
} | {
|
|
1020
|
+
attackerId: number;
|
|
1021
|
+
editable: boolean;
|
|
1022
|
+
kind: "attack";
|
|
1023
|
+
label: string;
|
|
1024
|
+
stepId: string;
|
|
1025
|
+
target: AttackTarget;
|
|
1026
|
+
} | {
|
|
1027
|
+
editable: boolean;
|
|
1028
|
+
kind: "distribution";
|
|
1029
|
+
label: string;
|
|
1030
|
+
selected: DistributionAssignment[];
|
|
1031
|
+
stepId: string;
|
|
1032
|
+
});
|
|
1033
|
+
/**
|
|
1034
|
+
* Engine-owned answers collected for one uncommitted semantic effect.
|
|
1035
|
+
*/
|
|
1036
|
+
export interface EffectResolutionDraftView {
|
|
1037
|
+
abilityId: number;
|
|
1038
|
+
canDecline: boolean;
|
|
1039
|
+
id: number;
|
|
1040
|
+
locked: boolean;
|
|
1041
|
+
/**
|
|
1042
|
+
* Printed label of originating effect, retained for descendants.
|
|
1043
|
+
*/
|
|
1044
|
+
originLabel: string;
|
|
1045
|
+
sourceCardId: number;
|
|
1046
|
+
steps: EffectResolutionDraftStepView[];
|
|
1047
|
+
}
|
|
979
1048
|
/**
|
|
980
1049
|
* Public restriction category. Raw runtime filters remain engine-private.
|
|
981
1050
|
*/
|
|
@@ -1345,6 +1414,11 @@ export type GameCommand = (("deployLeader" | "takeInitiative" | "pass" | "conced
|
|
|
1345
1414
|
declineAbility: {
|
|
1346
1415
|
abilityId: number;
|
|
1347
1416
|
};
|
|
1417
|
+
} | {
|
|
1418
|
+
rewindEffectResolution: {
|
|
1419
|
+
draftId: number;
|
|
1420
|
+
stepId: string;
|
|
1421
|
+
};
|
|
1348
1422
|
} | {
|
|
1349
1423
|
chooseAbilityModes: {
|
|
1350
1424
|
abilityId: number;
|
|
@@ -1799,6 +1873,10 @@ export interface GameState {
|
|
|
1799
1873
|
* Engine-authoritative outstanding public effects waiting on later timing.
|
|
1800
1874
|
*/
|
|
1801
1875
|
delayedEffects: DelayedEffectView[];
|
|
1876
|
+
/**
|
|
1877
|
+
* Viewer-owned effect inputs awaiting atomic commit.
|
|
1878
|
+
*/
|
|
1879
|
+
effectResolutionDraft?: (EffectResolutionDraftView | null);
|
|
1802
1880
|
eventsApplied: number;
|
|
1803
1881
|
/**
|
|
1804
1882
|
* Match format requested at creation time.
|
|
@@ -1914,6 +1992,10 @@ export interface GetMatchResponse {
|
|
|
1914
1992
|
snapshot: GameState;
|
|
1915
1993
|
}
|
|
1916
1994
|
export interface HealthResponse {
|
|
1995
|
+
/**
|
|
1996
|
+
* Exact source revision compiled into the running server.
|
|
1997
|
+
*/
|
|
1998
|
+
buildSha: string;
|
|
1917
1999
|
status: string;
|
|
1918
2000
|
}
|
|
1919
2001
|
export type HiddenCardChoiceMode = ("privateLook" | "publicReveal" | "discardSelection");
|
|
@@ -3443,12 +3525,20 @@ export interface PendingAbilityCardChoiceView {
|
|
|
3443
3525
|
* must declare its family here rather than silently collapsing into another.
|
|
3444
3526
|
*/
|
|
3445
3527
|
export type PendingAbilityFamily = (("Shielded" | "Ambush" | "Plot" | "EffectPlot" | "Restore" | "Saboteur" | "UniqueRule" | "SetAttackCombatOrder" | "ChooseBountyCollector" | "PilotUpgradeDefeatReplacement" | "LeaderDeployCost" | "TriggeredContinuation" | "Triggered" | "Pending" | "Resume") | "EndlessLegionsContinue" | "StolenLandspeeder6111Bounty" | "GarSaxon7888ReturnAttachedUpgrades");
|
|
3528
|
+
/**
|
|
3529
|
+
* Specialized input rendered for a mode-choice payload.
|
|
3530
|
+
*/
|
|
3531
|
+
export type PendingAbilityModeChoiceInputKind = "amount";
|
|
3446
3532
|
export interface PendingAbilityModeChoiceView {
|
|
3447
3533
|
abilityId: number;
|
|
3448
3534
|
/**
|
|
3449
3535
|
* Whether this active choice may be declined through `declineAbility`.
|
|
3450
3536
|
*/
|
|
3451
3537
|
canDecline?: (boolean | null);
|
|
3538
|
+
/**
|
|
3539
|
+
* Specialized renderer requested by the engine, absent for ordinary modes.
|
|
3540
|
+
*/
|
|
3541
|
+
inputKind?: (PendingAbilityModeChoiceInputKind | null);
|
|
3452
3542
|
label: string;
|
|
3453
3543
|
max: number;
|
|
3454
3544
|
min: number;
|
|
@@ -3507,6 +3597,10 @@ export interface PendingAbilityView {
|
|
|
3507
3597
|
* Whether an optional ability can be explicitly accepted without input.
|
|
3508
3598
|
*/
|
|
3509
3599
|
canAcceptWithoutInput: boolean;
|
|
3600
|
+
/**
|
|
3601
|
+
* Product-level cancellation policy, independent from rules optionality.
|
|
3602
|
+
*/
|
|
3603
|
+
canDecline?: (boolean | null);
|
|
3510
3604
|
captureOptions?: (CaptureOptionsView | null);
|
|
3511
3605
|
/**
|
|
3512
3606
|
* Grant clause that authored this ability, mirrored from the granting
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type { AbilityTarget, AbilityWindow, ActionAbilitySource, ActionAbilityView, ActiveEffectDescriptionView, ActiveEffectView, AttachmentMode, AttackChoiceView, AttackTarget, AvailableAttackView, CaptureOptionsView, CaptureSelection, CapturedUnitView, CardArena, CardChoiceResourcePaymentOptionView, CardInstanceView, ConstructedFormat, CurrentAttackStateView, CurrentAttackView, DeckInput, DeckRegistrationView, DelayedEffectDescriptionView, DelayedEffectTimingView, DelayedEffectView, DistributionAssignment, DistributionDamageKindView, DistributionItemView, DistributionTargetView, DistributionTokenKindView, DynamicPowerLimit, EffectCardScopeView, EffectDurationView, EffectRestrictionView, EffectSequenceOrder, EffectSequenceView, EffectSourceView, EffectTargetView, ExploitOptionsView, FormatEventResponse, FormatSeatView, GameState, GameTimerActiveClockView, GameTimerReserveView, GameTimerStateView, HiddenCardChoiceMode, HiddenZoneKind, InitiativeChoiceReason, InitiativeState, InstructedAttackView, LeaderActionView, LeaderDeployActionView, LeaderDeployCostView, LeaderDeployMode, LeaderDeployThresholdBonus, LeaderStateView, LimitedEventView, LimitedSideboardPoolView, MatchEndReason, MatchFormat, MatchPhase, MatchResult, MatchSeriesView, MatchStatus, ModeChoiceView, NamedCardEffectDescriptionView, NullableDistributionTokenKindView, NullableSeatView, PendingAbilityAspectChoiceView, PendingAbilityAttackChoiceView, PendingAbilityCardChoiceView, PendingAbilityFamily, PendingAbilityModeChoiceView, PendingAbilityNameChoiceView, PendingAbilityOrderAbilityView, PendingAbilityOrderChoiceView, PendingAbilityOrderGroupView, PendingAbilityView, PendingChoiceView, PendingDistributionView, PendingUndoRequest, PlayActionView, PlayCardSourceView, PlayCardZone, PlayerTargetPattern, PresenceFilter, PromptProvenanceView, PromptState, RejectedPlayView, RelationFilter, ResourceCardView, ResourcePaymentOptionView, Seat, SeatDirection, SeatOfferIntent, SeatState, SelectionScope, SeriesEndReason, SeriesGameRecord, SeriesResultView, SharedCounterState, SmuggleActionView, SmuggleKind, TargetGroupPurpose, TargetSelectionGroup, TargetSelectionPlanView, TriggerWindowView, TwinSunsCounter, TwinSunsCountersView, UndoRequestReason, UniquenessFilter, UnitAbilitySuppressionView, UnitExtremum, UnitFilter, UnitStateView, UpgradeStateView, } from './common.js';
|
|
1
|
+
export type { AbilityTarget, AbilityWindow, ActionAbilitySource, ActionAbilityView, ActiveEffectDescriptionView, ActiveEffectView, AttachmentMode, AttackChoiceView, AttackTarget, AvailableAttackView, CaptureOptionsView, CaptureSelection, CapturedUnitView, CardArena, CardChoiceResourcePaymentOptionView, CardInstanceView, ConstructedFormat, CurrentAttackStateView, CurrentAttackView, DeckInput, DeckRegistrationView, DelayedEffectDescriptionView, DelayedEffectTimingView, DelayedEffectView, DistributionAssignment, DistributionDamageKindView, DistributionItemView, DistributionTargetView, DistributionTokenKindView, DynamicPowerLimit, EffectCardScopeView, EffectDurationView, EffectResolutionDraftStepView, EffectResolutionDraftView, EffectRestrictionView, EffectSequenceOrder, EffectSequenceView, EffectSourceView, EffectTargetView, ExploitOptionsView, FormatEventResponse, FormatSeatView, GameState, GameTimerActiveClockView, GameTimerReserveView, GameTimerStateView, HiddenCardChoiceMode, HiddenZoneKind, InitiativeChoiceReason, InitiativeState, InstructedAttackView, LeaderActionView, LeaderDeployActionView, LeaderDeployCostView, LeaderDeployMode, LeaderDeployThresholdBonus, LeaderStateView, LimitedEventView, LimitedSideboardPoolView, MatchEndReason, MatchFormat, MatchPhase, MatchResult, MatchSeriesView, MatchStatus, ModeChoiceView, NamedCardEffectDescriptionView, NullableDistributionTokenKindView, NullableSeatView, PendingAbilityAspectChoiceView, PendingAbilityAttackChoiceView, PendingAbilityCardChoiceView, PendingAbilityFamily, PendingAbilityModeChoiceInputKind, PendingAbilityModeChoiceView, PendingAbilityNameChoiceView, PendingAbilityOrderAbilityView, PendingAbilityOrderChoiceView, PendingAbilityOrderGroupView, PendingAbilityView, PendingChoiceView, PendingDistributionView, PendingUndoRequest, PlayActionView, PlayCardSourceView, PlayCardZone, PlayerTargetPattern, PresenceFilter, PromptProvenanceView, PromptState, RejectedPlayView, RelationFilter, ResourceCardView, ResourcePaymentOptionView, Seat, SeatDirection, SeatOfferIntent, SeatState, SelectionScope, SeriesEndReason, SeriesGameRecord, SeriesResultView, SharedCounterState, SmuggleActionView, SmuggleKind, TargetGroupPurpose, TargetSelectionGroup, TargetSelectionPlanView, TriggerWindowView, TwinSunsCounter, TwinSunsCountersView, UndoRequestReason, UniquenessFilter, UnitAbilitySuppressionView, UnitExtremum, UnitFilter, UnitStateView, UpgradeStateView, } from './common.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type { AbilityTarget, AbilityWindow, ActionAbilitySource, ActionAbilityView, ActiveEffectDescriptionView, ActiveEffectView, AttachmentMode, AttackChoiceView, AttackTarget, AvailableAttackView, CaptureOptionsView, CaptureSelection, CapturedUnitView, CardArena, CardChoiceResourcePaymentOptionView, CardInstanceView, ConstructedFormat, CurrentAttackStateView, CurrentAttackView, DeckInput, DeckRegistrationView, DelayedEffectDescriptionView, DelayedEffectTimingView, DelayedEffectView, DistributionAssignment, DistributionDamageKindView, DistributionItemView, DistributionTargetView, DistributionTokenKindView, DynamicPowerLimit, EffectCardScopeView, EffectDurationView, EffectRestrictionView, EffectSequenceOrder, EffectSequenceView, EffectSourceView, EffectTargetView, ExploitOptionsView, FormatSeatView, GameState, GameTimerActiveClockView, GameTimerReserveView, GameTimerStateView, HiddenCardChoiceMode, HiddenZoneKind, InitiativeChoiceReason, InitiativeState, InstructedAttackView, LeaderActionView, LeaderDeployActionView, LeaderDeployCostView, LeaderDeployMode, LeaderDeployThresholdBonus, LeaderStateView, LimitedEventView, LimitedSideboardPoolView, MatchEndReason, MatchFormat, MatchPhase, MatchResult, MatchSeriesView, MatchStatus, ModeChoiceView, NamedCardEffectDescriptionView, NullableDistributionTokenKindView, NullableSeatView, PendingAbilityAspectChoiceView, PendingAbilityAttackChoiceView, PendingAbilityCardChoiceView, PendingAbilityFamily, PendingAbilityModeChoiceView, PendingAbilityNameChoiceView, PendingAbilityOrderAbilityView, PendingAbilityOrderChoiceView, PendingAbilityOrderGroupView, PendingAbilityView, PendingChoiceView, PendingDistributionView, PendingUndoRequest, PlayActionView, PlayCardSourceView, PlayCardZone, PlayerTargetPattern, PresenceFilter, PromptProvenanceView, PromptState, RejectedPlayView, RelationFilter, ResourceCardView, ResourcePaymentOptionView, Seat, SeatDirection, SeatOfferIntent, SeatState, SelectionScope, SeriesEndReason, SeriesGameRecord, SeriesResultView, SharedCounterState, SmuggleActionView, SmuggleKind, TargetGroupPurpose, TargetSelectionGroup, TargetSelectionPlanView, TriggerWindowView, TwinSunsCounter, TwinSunsCountersView, UndoRequestReason, UniquenessFilter, UnitAbilitySuppressionView, UnitExtremum, UnitFilter, UnitStateView, UpgradeStateView, } from './common.js';
|
|
1
|
+
export type { AbilityTarget, AbilityWindow, ActionAbilitySource, ActionAbilityView, ActiveEffectDescriptionView, ActiveEffectView, AttachmentMode, AttackChoiceView, AttackTarget, AvailableAttackView, CaptureOptionsView, CaptureSelection, CapturedUnitView, CardArena, CardChoiceResourcePaymentOptionView, CardInstanceView, ConstructedFormat, CurrentAttackStateView, CurrentAttackView, DeckInput, DeckRegistrationView, DelayedEffectDescriptionView, DelayedEffectTimingView, DelayedEffectView, DistributionAssignment, DistributionDamageKindView, DistributionItemView, DistributionTargetView, DistributionTokenKindView, DynamicPowerLimit, EffectCardScopeView, EffectDurationView, EffectResolutionDraftStepView, EffectResolutionDraftView, EffectRestrictionView, EffectSequenceOrder, EffectSequenceView, EffectSourceView, EffectTargetView, ExploitOptionsView, FormatSeatView, GameState, GameTimerActiveClockView, GameTimerReserveView, GameTimerStateView, HiddenCardChoiceMode, HiddenZoneKind, InitiativeChoiceReason, InitiativeState, InstructedAttackView, LeaderActionView, LeaderDeployActionView, LeaderDeployCostView, LeaderDeployMode, LeaderDeployThresholdBonus, LeaderStateView, LimitedEventView, LimitedSideboardPoolView, MatchEndReason, MatchFormat, MatchPhase, MatchResult, MatchSeriesView, MatchStatus, ModeChoiceView, NamedCardEffectDescriptionView, NullableDistributionTokenKindView, NullableSeatView, PendingAbilityAspectChoiceView, PendingAbilityAttackChoiceView, PendingAbilityCardChoiceView, PendingAbilityFamily, PendingAbilityModeChoiceInputKind, PendingAbilityModeChoiceView, PendingAbilityNameChoiceView, PendingAbilityOrderAbilityView, PendingAbilityOrderChoiceView, PendingAbilityOrderGroupView, PendingAbilityView, PendingChoiceView, PendingDistributionView, PendingUndoRequest, PlayActionView, PlayCardSourceView, PlayCardZone, PlayerTargetPattern, PresenceFilter, PromptProvenanceView, PromptState, RejectedPlayView, RelationFilter, ResourceCardView, ResourcePaymentOptionView, Seat, SeatDirection, SeatOfferIntent, SeatState, SelectionScope, SeriesEndReason, SeriesGameRecord, SeriesResultView, SharedCounterState, SmuggleActionView, SmuggleKind, TargetGroupPurpose, TargetSelectionGroup, TargetSelectionPlanView, TriggerWindowView, TwinSunsCounter, TwinSunsCountersView, UndoRequestReason, UniquenessFilter, UnitAbilitySuppressionView, UnitExtremum, UnitFilter, UnitStateView, UpgradeStateView, } from './common.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type { AbilityTarget, AbilityWindow, ActionAbilitySource, ActionAbilityView, ActiveEffectDescriptionView, ActiveEffectView, AttachmentMode, AttackChoiceView, AttackTarget, AvailableAttackView, CaptureOptionsView, CaptureSelection, CapturedUnitView, CardArena, CardChoiceResourcePaymentOptionView, CardInstanceView, ConstructedFormat, CurrentAttackStateView, CurrentAttackView, DeckInput, DeckRegistrationView, DelayedEffectDescriptionView, DelayedEffectTimingView, DelayedEffectView, DistributionAssignment, DistributionDamageKindView, DistributionItemView, DistributionTargetView, DistributionTokenKindView, DynamicPowerLimit, EffectCardScopeView, EffectDurationView, EffectRestrictionView, EffectSequenceOrder, EffectSequenceView, EffectSourceView, EffectTargetView, ExploitOptionsView, FormatSeatView, GameState, GameTimerActiveClockView, GameTimerReserveView, GameTimerStateView, GetMatchResponse, HiddenCardChoiceMode, HiddenZoneKind, InitiativeChoiceReason, InitiativeState, InstructedAttackView, LeaderActionView, LeaderDeployActionView, LeaderDeployCostView, LeaderDeployMode, LeaderDeployThresholdBonus, LeaderStateView, LimitedEventView, LimitedSideboardPoolView, MatchEndReason, MatchFormat, MatchPhase, MatchResult, MatchSeriesView, MatchStatus, ModeChoiceView, NamedCardEffectDescriptionView, NullableDistributionTokenKindView, NullableSeatView, PendingAbilityAspectChoiceView, PendingAbilityAttackChoiceView, PendingAbilityCardChoiceView, PendingAbilityFamily, PendingAbilityModeChoiceView, PendingAbilityNameChoiceView, PendingAbilityOrderAbilityView, PendingAbilityOrderChoiceView, PendingAbilityOrderGroupView, PendingAbilityView, PendingChoiceView, PendingDistributionView, PendingUndoRequest, PlayActionView, PlayCardSourceView, PlayCardZone, PlayerTargetPattern, PresenceFilter, PromptProvenanceView, PromptState, RejectedPlayView, RelationFilter, ResourceCardView, ResourcePaymentOptionView, Seat, SeatDirection, SeatOfferIntent, SeatState, SelectionScope, SeriesEndReason, SeriesGameRecord, SeriesResultView, SharedCounterState, SmuggleActionView, SmuggleKind, TargetGroupPurpose, TargetSelectionGroup, TargetSelectionPlanView, TriggerWindowView, TwinSunsCounter, TwinSunsCountersView, UndoRequestReason, UniquenessFilter, UnitAbilitySuppressionView, UnitExtremum, UnitFilter, UnitStateView, UpgradeStateView, } from './common.js';
|
|
1
|
+
export type { AbilityTarget, AbilityWindow, ActionAbilitySource, ActionAbilityView, ActiveEffectDescriptionView, ActiveEffectView, AttachmentMode, AttackChoiceView, AttackTarget, AvailableAttackView, CaptureOptionsView, CaptureSelection, CapturedUnitView, CardArena, CardChoiceResourcePaymentOptionView, CardInstanceView, ConstructedFormat, CurrentAttackStateView, CurrentAttackView, DeckInput, DeckRegistrationView, DelayedEffectDescriptionView, DelayedEffectTimingView, DelayedEffectView, DistributionAssignment, DistributionDamageKindView, DistributionItemView, DistributionTargetView, DistributionTokenKindView, DynamicPowerLimit, EffectCardScopeView, EffectDurationView, EffectResolutionDraftStepView, EffectResolutionDraftView, EffectRestrictionView, EffectSequenceOrder, EffectSequenceView, EffectSourceView, EffectTargetView, ExploitOptionsView, FormatSeatView, GameState, GameTimerActiveClockView, GameTimerReserveView, GameTimerStateView, GetMatchResponse, HiddenCardChoiceMode, HiddenZoneKind, InitiativeChoiceReason, InitiativeState, InstructedAttackView, LeaderActionView, LeaderDeployActionView, LeaderDeployCostView, LeaderDeployMode, LeaderDeployThresholdBonus, LeaderStateView, LimitedEventView, LimitedSideboardPoolView, MatchEndReason, MatchFormat, MatchPhase, MatchResult, MatchSeriesView, MatchStatus, ModeChoiceView, NamedCardEffectDescriptionView, NullableDistributionTokenKindView, NullableSeatView, PendingAbilityAspectChoiceView, PendingAbilityAttackChoiceView, PendingAbilityCardChoiceView, PendingAbilityFamily, PendingAbilityModeChoiceInputKind, PendingAbilityModeChoiceView, PendingAbilityNameChoiceView, PendingAbilityOrderAbilityView, PendingAbilityOrderChoiceView, PendingAbilityOrderGroupView, PendingAbilityView, PendingChoiceView, PendingDistributionView, PendingUndoRequest, PlayActionView, PlayCardSourceView, PlayCardZone, PlayerTargetPattern, PresenceFilter, PromptProvenanceView, PromptState, RejectedPlayView, RelationFilter, ResourceCardView, ResourcePaymentOptionView, Seat, SeatDirection, SeatOfferIntent, SeatState, SelectionScope, SeriesEndReason, SeriesGameRecord, SeriesResultView, SharedCounterState, SmuggleActionView, SmuggleKind, TargetGroupPurpose, TargetSelectionGroup, TargetSelectionPlanView, TriggerWindowView, TwinSunsCounter, TwinSunsCountersView, UndoRequestReason, UniquenessFilter, UnitAbilitySuppressionView, UnitExtremum, UnitFilter, UnitStateView, UpgradeStateView, } from './common.js';
|