@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
|
@@ -1750,7 +1750,7 @@
|
|
|
1750
1750
|
"const": "eternal"
|
|
1751
1751
|
},
|
|
1752
1752
|
{
|
|
1753
|
-
"description": "
|
|
1753
|
+
"description": "Eternal legality with unrestricted leader/base rarity and low-rarity cards elsewhere.",
|
|
1754
1754
|
"type": "string",
|
|
1755
1755
|
"const": "peasant"
|
|
1756
1756
|
},
|
|
@@ -2840,6 +2840,310 @@
|
|
|
2840
2840
|
"persistent"
|
|
2841
2841
|
]
|
|
2842
2842
|
},
|
|
2843
|
+
"EffectResolutionDraftStepView": {
|
|
2844
|
+
"description": "One selected draft answer. `step_id` remains stable across projection.",
|
|
2845
|
+
"oneOf": [
|
|
2846
|
+
{
|
|
2847
|
+
"type": "object",
|
|
2848
|
+
"properties": {
|
|
2849
|
+
"editable": {
|
|
2850
|
+
"type": "boolean"
|
|
2851
|
+
},
|
|
2852
|
+
"kind": {
|
|
2853
|
+
"type": "string",
|
|
2854
|
+
"const": "target"
|
|
2855
|
+
},
|
|
2856
|
+
"label": {
|
|
2857
|
+
"type": "string"
|
|
2858
|
+
},
|
|
2859
|
+
"purpose": {
|
|
2860
|
+
"$ref": "https://simulator-sdk.my-swu.com/schema/common.json#/$defs/TargetGroupPurpose"
|
|
2861
|
+
},
|
|
2862
|
+
"selected": {
|
|
2863
|
+
"type": "array",
|
|
2864
|
+
"items": {
|
|
2865
|
+
"$ref": "https://simulator-sdk.my-swu.com/schema/common.json#/$defs/AbilityTarget"
|
|
2866
|
+
}
|
|
2867
|
+
},
|
|
2868
|
+
"stepId": {
|
|
2869
|
+
"type": "string"
|
|
2870
|
+
}
|
|
2871
|
+
},
|
|
2872
|
+
"required": [
|
|
2873
|
+
"kind",
|
|
2874
|
+
"stepId",
|
|
2875
|
+
"label",
|
|
2876
|
+
"purpose",
|
|
2877
|
+
"selected",
|
|
2878
|
+
"editable"
|
|
2879
|
+
]
|
|
2880
|
+
},
|
|
2881
|
+
{
|
|
2882
|
+
"type": "object",
|
|
2883
|
+
"properties": {
|
|
2884
|
+
"editable": {
|
|
2885
|
+
"type": "boolean"
|
|
2886
|
+
},
|
|
2887
|
+
"kind": {
|
|
2888
|
+
"type": "string",
|
|
2889
|
+
"const": "amount"
|
|
2890
|
+
},
|
|
2891
|
+
"label": {
|
|
2892
|
+
"type": "string"
|
|
2893
|
+
},
|
|
2894
|
+
"selected": {
|
|
2895
|
+
"type": "integer",
|
|
2896
|
+
"format": "int16",
|
|
2897
|
+
"maximum": 32767,
|
|
2898
|
+
"minimum": -32768
|
|
2899
|
+
},
|
|
2900
|
+
"stepId": {
|
|
2901
|
+
"type": "string"
|
|
2902
|
+
}
|
|
2903
|
+
},
|
|
2904
|
+
"required": [
|
|
2905
|
+
"kind",
|
|
2906
|
+
"stepId",
|
|
2907
|
+
"label",
|
|
2908
|
+
"selected",
|
|
2909
|
+
"editable"
|
|
2910
|
+
]
|
|
2911
|
+
},
|
|
2912
|
+
{
|
|
2913
|
+
"type": "object",
|
|
2914
|
+
"properties": {
|
|
2915
|
+
"editable": {
|
|
2916
|
+
"type": "boolean"
|
|
2917
|
+
},
|
|
2918
|
+
"kind": {
|
|
2919
|
+
"type": "string",
|
|
2920
|
+
"const": "modes"
|
|
2921
|
+
},
|
|
2922
|
+
"label": {
|
|
2923
|
+
"type": "string"
|
|
2924
|
+
},
|
|
2925
|
+
"selected": {
|
|
2926
|
+
"type": "array",
|
|
2927
|
+
"items": {
|
|
2928
|
+
"type": "integer",
|
|
2929
|
+
"format": "uint",
|
|
2930
|
+
"minimum": 0
|
|
2931
|
+
}
|
|
2932
|
+
},
|
|
2933
|
+
"stepId": {
|
|
2934
|
+
"type": "string"
|
|
2935
|
+
}
|
|
2936
|
+
},
|
|
2937
|
+
"required": [
|
|
2938
|
+
"kind",
|
|
2939
|
+
"stepId",
|
|
2940
|
+
"label",
|
|
2941
|
+
"selected",
|
|
2942
|
+
"editable"
|
|
2943
|
+
]
|
|
2944
|
+
},
|
|
2945
|
+
{
|
|
2946
|
+
"type": "object",
|
|
2947
|
+
"properties": {
|
|
2948
|
+
"editable": {
|
|
2949
|
+
"type": "boolean"
|
|
2950
|
+
},
|
|
2951
|
+
"kind": {
|
|
2952
|
+
"type": "string",
|
|
2953
|
+
"const": "cards"
|
|
2954
|
+
},
|
|
2955
|
+
"label": {
|
|
2956
|
+
"type": "string"
|
|
2957
|
+
},
|
|
2958
|
+
"selected": {
|
|
2959
|
+
"type": "array",
|
|
2960
|
+
"items": {
|
|
2961
|
+
"type": "integer",
|
|
2962
|
+
"format": "uint32",
|
|
2963
|
+
"minimum": 0
|
|
2964
|
+
}
|
|
2965
|
+
},
|
|
2966
|
+
"stepId": {
|
|
2967
|
+
"type": "string"
|
|
2968
|
+
}
|
|
2969
|
+
},
|
|
2970
|
+
"required": [
|
|
2971
|
+
"kind",
|
|
2972
|
+
"stepId",
|
|
2973
|
+
"label",
|
|
2974
|
+
"selected",
|
|
2975
|
+
"editable"
|
|
2976
|
+
]
|
|
2977
|
+
},
|
|
2978
|
+
{
|
|
2979
|
+
"type": "object",
|
|
2980
|
+
"properties": {
|
|
2981
|
+
"editable": {
|
|
2982
|
+
"type": "boolean"
|
|
2983
|
+
},
|
|
2984
|
+
"kind": {
|
|
2985
|
+
"type": "string",
|
|
2986
|
+
"const": "name"
|
|
2987
|
+
},
|
|
2988
|
+
"label": {
|
|
2989
|
+
"type": "string"
|
|
2990
|
+
},
|
|
2991
|
+
"selected": {
|
|
2992
|
+
"type": "string"
|
|
2993
|
+
},
|
|
2994
|
+
"stepId": {
|
|
2995
|
+
"type": "string"
|
|
2996
|
+
}
|
|
2997
|
+
},
|
|
2998
|
+
"required": [
|
|
2999
|
+
"kind",
|
|
3000
|
+
"stepId",
|
|
3001
|
+
"label",
|
|
3002
|
+
"selected",
|
|
3003
|
+
"editable"
|
|
3004
|
+
]
|
|
3005
|
+
},
|
|
3006
|
+
{
|
|
3007
|
+
"type": "object",
|
|
3008
|
+
"properties": {
|
|
3009
|
+
"editable": {
|
|
3010
|
+
"type": "boolean"
|
|
3011
|
+
},
|
|
3012
|
+
"kind": {
|
|
3013
|
+
"type": "string",
|
|
3014
|
+
"const": "aspect"
|
|
3015
|
+
},
|
|
3016
|
+
"label": {
|
|
3017
|
+
"type": "string"
|
|
3018
|
+
},
|
|
3019
|
+
"selected": {
|
|
3020
|
+
"type": "string"
|
|
3021
|
+
},
|
|
3022
|
+
"stepId": {
|
|
3023
|
+
"type": "string"
|
|
3024
|
+
}
|
|
3025
|
+
},
|
|
3026
|
+
"required": [
|
|
3027
|
+
"kind",
|
|
3028
|
+
"stepId",
|
|
3029
|
+
"label",
|
|
3030
|
+
"selected",
|
|
3031
|
+
"editable"
|
|
3032
|
+
]
|
|
3033
|
+
},
|
|
3034
|
+
{
|
|
3035
|
+
"type": "object",
|
|
3036
|
+
"properties": {
|
|
3037
|
+
"attackerId": {
|
|
3038
|
+
"type": "integer",
|
|
3039
|
+
"format": "uint64",
|
|
3040
|
+
"minimum": 0
|
|
3041
|
+
},
|
|
3042
|
+
"editable": {
|
|
3043
|
+
"type": "boolean"
|
|
3044
|
+
},
|
|
3045
|
+
"kind": {
|
|
3046
|
+
"type": "string",
|
|
3047
|
+
"const": "attack"
|
|
3048
|
+
},
|
|
3049
|
+
"label": {
|
|
3050
|
+
"type": "string"
|
|
3051
|
+
},
|
|
3052
|
+
"stepId": {
|
|
3053
|
+
"type": "string"
|
|
3054
|
+
},
|
|
3055
|
+
"target": {
|
|
3056
|
+
"$ref": "https://simulator-sdk.my-swu.com/schema/common.json#/$defs/AttackTarget"
|
|
3057
|
+
}
|
|
3058
|
+
},
|
|
3059
|
+
"required": [
|
|
3060
|
+
"kind",
|
|
3061
|
+
"stepId",
|
|
3062
|
+
"label",
|
|
3063
|
+
"attackerId",
|
|
3064
|
+
"target",
|
|
3065
|
+
"editable"
|
|
3066
|
+
]
|
|
3067
|
+
},
|
|
3068
|
+
{
|
|
3069
|
+
"type": "object",
|
|
3070
|
+
"properties": {
|
|
3071
|
+
"editable": {
|
|
3072
|
+
"type": "boolean"
|
|
3073
|
+
},
|
|
3074
|
+
"kind": {
|
|
3075
|
+
"type": "string",
|
|
3076
|
+
"const": "distribution"
|
|
3077
|
+
},
|
|
3078
|
+
"label": {
|
|
3079
|
+
"type": "string"
|
|
3080
|
+
},
|
|
3081
|
+
"selected": {
|
|
3082
|
+
"type": "array",
|
|
3083
|
+
"items": {
|
|
3084
|
+
"$ref": "https://simulator-sdk.my-swu.com/schema/common.json#/$defs/DistributionAssignment"
|
|
3085
|
+
}
|
|
3086
|
+
},
|
|
3087
|
+
"stepId": {
|
|
3088
|
+
"type": "string"
|
|
3089
|
+
}
|
|
3090
|
+
},
|
|
3091
|
+
"required": [
|
|
3092
|
+
"kind",
|
|
3093
|
+
"stepId",
|
|
3094
|
+
"label",
|
|
3095
|
+
"selected",
|
|
3096
|
+
"editable"
|
|
3097
|
+
]
|
|
3098
|
+
}
|
|
3099
|
+
]
|
|
3100
|
+
},
|
|
3101
|
+
"EffectResolutionDraftView": {
|
|
3102
|
+
"description": "Engine-owned answers collected for one uncommitted semantic effect.",
|
|
3103
|
+
"type": "object",
|
|
3104
|
+
"properties": {
|
|
3105
|
+
"abilityId": {
|
|
3106
|
+
"type": "integer",
|
|
3107
|
+
"format": "uint64",
|
|
3108
|
+
"minimum": 0
|
|
3109
|
+
},
|
|
3110
|
+
"canDecline": {
|
|
3111
|
+
"type": "boolean"
|
|
3112
|
+
},
|
|
3113
|
+
"id": {
|
|
3114
|
+
"type": "integer",
|
|
3115
|
+
"format": "uint64",
|
|
3116
|
+
"minimum": 0
|
|
3117
|
+
},
|
|
3118
|
+
"locked": {
|
|
3119
|
+
"type": "boolean"
|
|
3120
|
+
},
|
|
3121
|
+
"originLabel": {
|
|
3122
|
+
"description": "Printed label of originating effect, retained for descendants.",
|
|
3123
|
+
"type": "string"
|
|
3124
|
+
},
|
|
3125
|
+
"sourceCardId": {
|
|
3126
|
+
"type": "integer",
|
|
3127
|
+
"format": "uint32",
|
|
3128
|
+
"minimum": 0
|
|
3129
|
+
},
|
|
3130
|
+
"steps": {
|
|
3131
|
+
"type": "array",
|
|
3132
|
+
"items": {
|
|
3133
|
+
"$ref": "https://simulator-sdk.my-swu.com/schema/common.json#/$defs/EffectResolutionDraftStepView"
|
|
3134
|
+
}
|
|
3135
|
+
}
|
|
3136
|
+
},
|
|
3137
|
+
"required": [
|
|
3138
|
+
"id",
|
|
3139
|
+
"abilityId",
|
|
3140
|
+
"sourceCardId",
|
|
3141
|
+
"originLabel",
|
|
3142
|
+
"canDecline",
|
|
3143
|
+
"locked",
|
|
3144
|
+
"steps"
|
|
3145
|
+
]
|
|
3146
|
+
},
|
|
2843
3147
|
"EffectRestrictionView": {
|
|
2844
3148
|
"description": "Public restriction category. Raw runtime filters remain engine-private.",
|
|
2845
3149
|
"type": "string",
|
|
@@ -4112,6 +4416,32 @@
|
|
|
4112
4416
|
"declineAbility"
|
|
4113
4417
|
]
|
|
4114
4418
|
},
|
|
4419
|
+
{
|
|
4420
|
+
"type": "object",
|
|
4421
|
+
"properties": {
|
|
4422
|
+
"rewindEffectResolution": {
|
|
4423
|
+
"type": "object",
|
|
4424
|
+
"properties": {
|
|
4425
|
+
"draftId": {
|
|
4426
|
+
"type": "integer",
|
|
4427
|
+
"format": "uint64",
|
|
4428
|
+
"minimum": 0
|
|
4429
|
+
},
|
|
4430
|
+
"stepId": {
|
|
4431
|
+
"type": "string"
|
|
4432
|
+
}
|
|
4433
|
+
},
|
|
4434
|
+
"required": [
|
|
4435
|
+
"draftId",
|
|
4436
|
+
"stepId"
|
|
4437
|
+
]
|
|
4438
|
+
}
|
|
4439
|
+
},
|
|
4440
|
+
"additionalProperties": false,
|
|
4441
|
+
"required": [
|
|
4442
|
+
"rewindEffectResolution"
|
|
4443
|
+
]
|
|
4444
|
+
},
|
|
4115
4445
|
{
|
|
4116
4446
|
"type": "object",
|
|
4117
4447
|
"properties": {
|
|
@@ -6458,6 +6788,17 @@
|
|
|
6458
6788
|
"$ref": "https://simulator-sdk.my-swu.com/schema/common.json#/$defs/DelayedEffectView"
|
|
6459
6789
|
}
|
|
6460
6790
|
},
|
|
6791
|
+
"effectResolutionDraft": {
|
|
6792
|
+
"description": "Viewer-owned effect inputs awaiting atomic commit.",
|
|
6793
|
+
"anyOf": [
|
|
6794
|
+
{
|
|
6795
|
+
"$ref": "https://simulator-sdk.my-swu.com/schema/common.json#/$defs/EffectResolutionDraftView"
|
|
6796
|
+
},
|
|
6797
|
+
{
|
|
6798
|
+
"type": "null"
|
|
6799
|
+
}
|
|
6800
|
+
]
|
|
6801
|
+
},
|
|
6461
6802
|
"eventsApplied": {
|
|
6462
6803
|
"type": "integer",
|
|
6463
6804
|
"format": "uint64",
|
|
@@ -8796,7 +9137,7 @@
|
|
|
8796
9137
|
"const": "eternal"
|
|
8797
9138
|
},
|
|
8798
9139
|
{
|
|
8799
|
-
"description": "Peasant
|
|
9140
|
+
"description": "Peasant uses Eternal releases, setup rarity exemption, and no suspensions.",
|
|
8800
9141
|
"type": "string",
|
|
8801
9142
|
"const": "peasant"
|
|
8802
9143
|
},
|
|
@@ -9953,6 +10294,16 @@
|
|
|
9953
10294
|
}
|
|
9954
10295
|
]
|
|
9955
10296
|
},
|
|
10297
|
+
"PendingAbilityModeChoiceInputKind": {
|
|
10298
|
+
"description": "Specialized input rendered for a mode-choice payload.",
|
|
10299
|
+
"oneOf": [
|
|
10300
|
+
{
|
|
10301
|
+
"description": "Select one exact numeric effect magnitude.",
|
|
10302
|
+
"type": "string",
|
|
10303
|
+
"const": "amount"
|
|
10304
|
+
}
|
|
10305
|
+
]
|
|
10306
|
+
},
|
|
9956
10307
|
"PendingAbilityModeChoiceView": {
|
|
9957
10308
|
"type": "object",
|
|
9958
10309
|
"properties": {
|
|
@@ -9968,6 +10319,17 @@
|
|
|
9968
10319
|
"null"
|
|
9969
10320
|
]
|
|
9970
10321
|
},
|
|
10322
|
+
"inputKind": {
|
|
10323
|
+
"description": "Specialized renderer requested by the engine, absent for ordinary modes.",
|
|
10324
|
+
"anyOf": [
|
|
10325
|
+
{
|
|
10326
|
+
"$ref": "https://simulator-sdk.my-swu.com/schema/common.json#/$defs/PendingAbilityModeChoiceInputKind"
|
|
10327
|
+
},
|
|
10328
|
+
{
|
|
10329
|
+
"type": "null"
|
|
10330
|
+
}
|
|
10331
|
+
]
|
|
10332
|
+
},
|
|
9971
10333
|
"label": {
|
|
9972
10334
|
"type": "string"
|
|
9973
10335
|
},
|
|
@@ -10132,6 +10494,13 @@
|
|
|
10132
10494
|
"description": "Whether an optional ability can be explicitly accepted without input.",
|
|
10133
10495
|
"type": "boolean"
|
|
10134
10496
|
},
|
|
10497
|
+
"canDecline": {
|
|
10498
|
+
"description": "Product-level cancellation policy, independent from rules optionality.",
|
|
10499
|
+
"type": [
|
|
10500
|
+
"boolean",
|
|
10501
|
+
"null"
|
|
10502
|
+
]
|
|
10503
|
+
},
|
|
10135
10504
|
"captureOptions": {
|
|
10136
10505
|
"anyOf": [
|
|
10137
10506
|
{
|
|
@@ -498,6 +498,32 @@
|
|
|
498
498
|
"declineAbility"
|
|
499
499
|
]
|
|
500
500
|
},
|
|
501
|
+
{
|
|
502
|
+
"type": "object",
|
|
503
|
+
"properties": {
|
|
504
|
+
"rewindEffectResolution": {
|
|
505
|
+
"type": "object",
|
|
506
|
+
"properties": {
|
|
507
|
+
"draftId": {
|
|
508
|
+
"type": "integer",
|
|
509
|
+
"format": "uint64",
|
|
510
|
+
"minimum": 0
|
|
511
|
+
},
|
|
512
|
+
"stepId": {
|
|
513
|
+
"type": "string"
|
|
514
|
+
}
|
|
515
|
+
},
|
|
516
|
+
"required": [
|
|
517
|
+
"draftId",
|
|
518
|
+
"stepId"
|
|
519
|
+
]
|
|
520
|
+
}
|
|
521
|
+
},
|
|
522
|
+
"additionalProperties": false,
|
|
523
|
+
"required": [
|
|
524
|
+
"rewindEffectResolution"
|
|
525
|
+
]
|
|
526
|
+
},
|
|
501
527
|
{
|
|
502
528
|
"type": "object",
|
|
503
529
|
"properties": {
|
|
@@ -61,6 +61,17 @@
|
|
|
61
61
|
"$ref": "https://simulator-sdk.my-swu.com/schema/common.json#/$defs/DelayedEffectView"
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
|
+
"effectResolutionDraft": {
|
|
65
|
+
"description": "Viewer-owned effect inputs awaiting atomic commit.",
|
|
66
|
+
"anyOf": [
|
|
67
|
+
{
|
|
68
|
+
"$ref": "https://simulator-sdk.my-swu.com/schema/common.json#/$defs/EffectResolutionDraftView"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"type": "null"
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
},
|
|
64
75
|
"eventsApplied": {
|
|
65
76
|
"type": "integer",
|
|
66
77
|
"format": "uint64",
|
|
@@ -3,11 +3,16 @@
|
|
|
3
3
|
"title": "HealthResponse",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"properties": {
|
|
6
|
+
"buildSha": {
|
|
7
|
+
"description": "Exact source revision compiled into the running server.",
|
|
8
|
+
"type": "string"
|
|
9
|
+
},
|
|
6
10
|
"status": {
|
|
7
11
|
"type": "string"
|
|
8
12
|
}
|
|
9
13
|
},
|
|
10
14
|
"required": [
|
|
11
|
-
"status"
|
|
15
|
+
"status",
|
|
16
|
+
"buildSha"
|
|
12
17
|
]
|
|
13
18
|
}
|
package/schema/manifest.json
CHANGED