@my-swu/simulator-client 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/connection.js +2 -3
- package/dist/generated/index.d.ts +10 -0
- package/dist/generated/schemas.d.ts +1 -1
- package/dist/generated/schemas.js +466 -59
- package/dist/generated/types/admin-match-debug-bundle.d.ts +1 -0
- package/dist/generated/types/admin-match-debug-bundle.js +2 -0
- package/dist/generated/types/admin-match-list-response.d.ts +1 -0
- package/dist/generated/types/admin-match-list-response.js +2 -0
- package/dist/generated/types/admin-match-replay-response.d.ts +1 -0
- package/dist/generated/types/admin-match-replay-response.js +2 -0
- package/dist/generated/types/common.d.ts +143 -15
- package/dist/generated/types/create-match-history-replay-share-request.d.ts +1 -0
- package/dist/generated/types/create-match-history-replay-share-request.js +2 -0
- package/dist/generated/types/create-match-history-replay-share-response.d.ts +1 -0
- package/dist/generated/types/create-match-history-replay-share-response.js +2 -0
- package/dist/generated/types/inactive-match-recovery-request.d.ts +1 -0
- package/dist/generated/types/inactive-match-recovery-request.js +2 -0
- package/dist/generated/types/inactive-match-recovery-response.d.ts +1 -0
- package/dist/generated/types/inactive-match-recovery-response.js +2 -0
- package/dist/generated/types/match-access-recovery-request.d.ts +1 -0
- package/dist/generated/types/match-access-recovery-request.js +2 -0
- package/dist/generated/types/match-access-recovery-response.d.ts +1 -0
- package/dist/generated/types/match-access-recovery-response.js +2 -0
- package/dist/generated/types/match-recovery-request.d.ts +1 -0
- package/dist/generated/types/match-recovery-request.js +2 -0
- package/dist/generated/types/match-recovery-response.d.ts +1 -0
- package/dist/generated/types/match-recovery-response.js +2 -0
- package/dist/generated/types/shared-match-history-replay-response.d.ts +1 -0
- package/dist/generated/types/shared-match-history-replay-response.js +2 -0
- package/dist/generated/version.d.ts +1 -1
- package/dist/generated/version.js +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/internal/match-history.d.ts +5 -0
- package/dist/internal/match-history.js +8 -0
- package/dist/local/engine.d.ts +2 -0
- package/dist/local/server/http-router.js +10 -0
- package/dist/local/wasm-engine.d.ts +1 -0
- package/dist/local/wasm-engine.js +1 -0
- package/dist/match-session/controller.d.ts +2 -0
- package/dist/match-session/controller.js +59 -17
- package/dist/match-session/methods.d.ts +8 -0
- package/dist/match-session/session-state.d.ts +5 -1
- package/dist/match-session/types.d.ts +3 -1
- package/dist/match-session.d.ts +1 -1
- package/dist/resources/admin.d.ts +14 -1
- package/dist/resources/admin.js +21 -0
- package/dist/resources/lobby-types.d.ts +4 -4
- package/dist/resources/match-history.d.ts +14 -1
- package/dist/resources/match-history.js +16 -0
- package/dist/resources/match-types.d.ts +11 -2
- package/dist/resources/matches.js +10 -0
- package/dist/validators.d.ts +11 -1
- package/package.json +1 -1
- package/schema/add-lobby-ai-player-request.schema.json +7 -0
- package/schema/admin-match-debug-bundle.schema.json +48 -0
- package/schema/admin-match-list-response.schema.json +23 -0
- package/schema/admin-match-replay-response.schema.json +14 -0
- package/schema/common.schema.json +176 -27
- package/schema/create-limited-event-request.schema.json +2 -4
- package/schema/create-lobby-request.schema.json +4 -8
- package/schema/create-match-history-replay-share-request.schema.json +22 -0
- package/schema/create-match-history-replay-share-response.schema.json +15 -0
- package/schema/create-match-request.schema.json +2 -3
- package/schema/create-tournament-room-request.schema.json +4 -8
- package/schema/limited-event-preflight-response.schema.json +1 -3
- package/schema/manifest.json +11 -1
- package/schema/match-access-recovery-request.schema.json +17 -0
- package/schema/match-access-recovery-response.schema.json +36 -0
- package/schema/match-access-response.schema.json +1 -3
- package/schema/match-history-entry.schema.json +1 -3
- package/schema/match-recovery-request.schema.json +33 -0
- package/schema/match-recovery-response.schema.json +36 -0
- package/schema/route-manifest.json +92 -0
- package/schema/shared-match-history-replay-response.schema.json +14 -0
|
@@ -8,6 +8,9 @@ export { schemaVersion } from './version.js';
|
|
|
8
8
|
* map in the emitted declaration file, overflowing its serializer.
|
|
9
9
|
*/
|
|
10
10
|
export const schemaNames = [
|
|
11
|
+
'admin-match-list-response',
|
|
12
|
+
'admin-match-debug-bundle',
|
|
13
|
+
'admin-match-replay-response',
|
|
11
14
|
'simulator-report-list-response',
|
|
12
15
|
'simulator-report-response',
|
|
13
16
|
'health-response',
|
|
@@ -108,9 +111,16 @@ export const schemaNames = [
|
|
|
108
111
|
'match-history-entry',
|
|
109
112
|
'match-history-replay-request',
|
|
110
113
|
'match-history-replay-response',
|
|
114
|
+
'create-match-history-replay-share-request',
|
|
115
|
+
'create-match-history-replay-share-response',
|
|
116
|
+
'shared-match-history-replay-response',
|
|
111
117
|
'match-chat-lookup-response',
|
|
112
118
|
'match-history-restore-request',
|
|
113
119
|
'restore-history-response',
|
|
120
|
+
'match-recovery-request',
|
|
121
|
+
'match-recovery-response',
|
|
122
|
+
'match-access-recovery-request',
|
|
123
|
+
'match-access-recovery-response',
|
|
114
124
|
'cards-response',
|
|
115
125
|
'resolve-card-ids-request',
|
|
116
126
|
'resolve-card-ids-response',
|
|
@@ -1134,6 +1144,70 @@ export const sdkSchemaCommon = {
|
|
|
1134
1144
|
"description"
|
|
1135
1145
|
]
|
|
1136
1146
|
},
|
|
1147
|
+
"AdminMatchSummary": {
|
|
1148
|
+
"description": "Compact durable match data safe for an administrator list view.",
|
|
1149
|
+
"type": "object",
|
|
1150
|
+
"properties": {
|
|
1151
|
+
"completedAtMs": {
|
|
1152
|
+
"type": [
|
|
1153
|
+
"integer",
|
|
1154
|
+
"null"
|
|
1155
|
+
],
|
|
1156
|
+
"format": "uint64",
|
|
1157
|
+
"minimum": 0
|
|
1158
|
+
},
|
|
1159
|
+
"createdAtMs": {
|
|
1160
|
+
"type": "integer",
|
|
1161
|
+
"format": "uint64",
|
|
1162
|
+
"minimum": 0
|
|
1163
|
+
},
|
|
1164
|
+
"format": {
|
|
1165
|
+
"$ref": "https://simulator-sdk.my-swu.com/schema/common.json#/$defs/MatchFormat"
|
|
1166
|
+
},
|
|
1167
|
+
"historyId": {
|
|
1168
|
+
"type": "string",
|
|
1169
|
+
"format": "uuid"
|
|
1170
|
+
},
|
|
1171
|
+
"players": {
|
|
1172
|
+
"type": "array",
|
|
1173
|
+
"items": {
|
|
1174
|
+
"$ref": "https://simulator-sdk.my-swu.com/schema/common.json#/$defs/MatchHistoryPlayerSummary"
|
|
1175
|
+
}
|
|
1176
|
+
},
|
|
1177
|
+
"replayAvailable": {
|
|
1178
|
+
"type": "boolean"
|
|
1179
|
+
},
|
|
1180
|
+
"result": true,
|
|
1181
|
+
"section": {
|
|
1182
|
+
"$ref": "https://simulator-sdk.my-swu.com/schema/common.json#/$defs/HistorySection"
|
|
1183
|
+
},
|
|
1184
|
+
"series": true,
|
|
1185
|
+
"sourceMatchId": {
|
|
1186
|
+
"type": "string",
|
|
1187
|
+
"format": "uuid"
|
|
1188
|
+
},
|
|
1189
|
+
"status": {
|
|
1190
|
+
"$ref": "https://simulator-sdk.my-swu.com/schema/common.json#/$defs/HistoryStatus"
|
|
1191
|
+
},
|
|
1192
|
+
"updatedAtMs": {
|
|
1193
|
+
"type": "integer",
|
|
1194
|
+
"format": "uint64",
|
|
1195
|
+
"minimum": 0
|
|
1196
|
+
}
|
|
1197
|
+
},
|
|
1198
|
+
"required": [
|
|
1199
|
+
"historyId",
|
|
1200
|
+
"sourceMatchId",
|
|
1201
|
+
"section",
|
|
1202
|
+
"status",
|
|
1203
|
+
"format",
|
|
1204
|
+
"players",
|
|
1205
|
+
"series",
|
|
1206
|
+
"createdAtMs",
|
|
1207
|
+
"updatedAtMs",
|
|
1208
|
+
"replayAvailable"
|
|
1209
|
+
]
|
|
1210
|
+
},
|
|
1137
1211
|
"AiDifficulty": {
|
|
1138
1212
|
"description": "Public difficulty presets. Internal tuning (iteration counts, time\nbudgets) lives in `crate::r#match::registry::ai_factory` so it can be\nadjusted without changing the SDK surface.",
|
|
1139
1213
|
"oneOf": [
|
|
@@ -7473,6 +7547,7 @@ export const sdkSchemaCommon = {
|
|
|
7473
7547
|
"type": "string",
|
|
7474
7548
|
"enum": [
|
|
7475
7549
|
"completedSeries",
|
|
7550
|
+
"abandoned",
|
|
7476
7551
|
"unsupportedSection",
|
|
7477
7552
|
"learnScenario",
|
|
7478
7553
|
"invalidAiTopology",
|
|
@@ -7490,11 +7565,23 @@ export const sdkSchemaCommon = {
|
|
|
7490
7565
|
]
|
|
7491
7566
|
},
|
|
7492
7567
|
"HistoryStatus": {
|
|
7493
|
-
"description": "Durable history entry status.",
|
|
7494
|
-
"
|
|
7495
|
-
|
|
7496
|
-
|
|
7497
|
-
|
|
7568
|
+
"description": "Durable history entry status.\n\nLives here rather than the `server-protocol`-gated history module because\n`MatchRuntimeRecord` embeds it in every build, including wasm and bench.",
|
|
7569
|
+
"oneOf": [
|
|
7570
|
+
{
|
|
7571
|
+
"description": "Live checkpoint that can still be resumed when policy allows.",
|
|
7572
|
+
"type": "string",
|
|
7573
|
+
"const": "saved"
|
|
7574
|
+
},
|
|
7575
|
+
{
|
|
7576
|
+
"description": "Game or series reached its ordinary terminal result.",
|
|
7577
|
+
"type": "string",
|
|
7578
|
+
"const": "result"
|
|
7579
|
+
},
|
|
7580
|
+
{
|
|
7581
|
+
"description": "Host intentionally retired an unfinished Solo-versus-AI runtime.",
|
|
7582
|
+
"type": "string",
|
|
7583
|
+
"const": "abandoned"
|
|
7584
|
+
}
|
|
7498
7585
|
]
|
|
7499
7586
|
},
|
|
7500
7587
|
"InitiativeChoiceReason": {
|
|
@@ -9027,11 +9114,9 @@ export const sdkSchemaCommon = {
|
|
|
9027
9114
|
"matchSeed": {
|
|
9028
9115
|
"description": "Fixed match seed when configured.",
|
|
9029
9116
|
"type": [
|
|
9030
|
-
"
|
|
9117
|
+
"string",
|
|
9031
9118
|
"null"
|
|
9032
|
-
]
|
|
9033
|
-
"format": "uint64",
|
|
9034
|
-
"minimum": 0
|
|
9119
|
+
]
|
|
9035
9120
|
},
|
|
9036
9121
|
"matchmaking": {
|
|
9037
9122
|
"anyOf": [
|
|
@@ -9046,11 +9131,9 @@ export const sdkSchemaCommon = {
|
|
|
9046
9131
|
"packSeed": {
|
|
9047
9132
|
"description": "Fixed limited pack/leader seed when configured.",
|
|
9048
9133
|
"type": [
|
|
9049
|
-
"
|
|
9134
|
+
"string",
|
|
9050
9135
|
"null"
|
|
9051
|
-
]
|
|
9052
|
-
"format": "uint64",
|
|
9053
|
-
"minimum": 0
|
|
9136
|
+
]
|
|
9054
9137
|
},
|
|
9055
9138
|
"players": {
|
|
9056
9139
|
"type": "array",
|
|
@@ -9256,9 +9339,7 @@ export const sdkSchemaCommon = {
|
|
|
9256
9339
|
},
|
|
9257
9340
|
"replaySeed": {
|
|
9258
9341
|
"description": "Resolved seed for a private solo-vs-AI match. Never projected in live state.",
|
|
9259
|
-
"type": "
|
|
9260
|
-
"format": "uint64",
|
|
9261
|
-
"minimum": 0
|
|
9342
|
+
"type": "string"
|
|
9262
9343
|
},
|
|
9263
9344
|
"seat": {
|
|
9264
9345
|
"$ref": "https://simulator-sdk.my-swu.com/schema/common.json#/$defs/Seat"
|
|
@@ -9475,9 +9556,7 @@ export const sdkSchemaCommon = {
|
|
|
9475
9556
|
"$ref": "https://simulator-sdk.my-swu.com/schema/common.json#/$defs/HistorySection"
|
|
9476
9557
|
},
|
|
9477
9558
|
"seed": {
|
|
9478
|
-
"type": "
|
|
9479
|
-
"format": "uint64",
|
|
9480
|
-
"minimum": 0
|
|
9559
|
+
"type": "string"
|
|
9481
9560
|
},
|
|
9482
9561
|
"series": true,
|
|
9483
9562
|
"sourceMatchId": {
|
|
@@ -10349,6 +10428,15 @@ export const sdkSchemaCommon = {
|
|
|
10349
10428
|
}
|
|
10350
10429
|
]
|
|
10351
10430
|
},
|
|
10431
|
+
"revealedCardIds": {
|
|
10432
|
+
"description": "Publicly revealed cards which caused this instructed attack. Omitted\nfor ordinary attacks and intentionally projected only to chooser.",
|
|
10433
|
+
"type": "array",
|
|
10434
|
+
"items": {
|
|
10435
|
+
"type": "integer",
|
|
10436
|
+
"format": "uint32",
|
|
10437
|
+
"minimum": 0
|
|
10438
|
+
}
|
|
10439
|
+
},
|
|
10352
10440
|
"sourceCardId": {
|
|
10353
10441
|
"type": "integer",
|
|
10354
10442
|
"format": "uint32",
|
|
@@ -12624,6 +12712,81 @@ export const sdkSchemaCommon = {
|
|
|
12624
12712
|
"available"
|
|
12625
12713
|
]
|
|
12626
12714
|
},
|
|
12715
|
+
"SimulatorReportResponse": {
|
|
12716
|
+
"description": "Full sanitized support bundle returned only by the simulator admin API.",
|
|
12717
|
+
"type": "object",
|
|
12718
|
+
"properties": {
|
|
12719
|
+
"bundle": true,
|
|
12720
|
+
"bundleAvailable": {
|
|
12721
|
+
"type": "boolean"
|
|
12722
|
+
},
|
|
12723
|
+
"failureKind": {
|
|
12724
|
+
"type": "string"
|
|
12725
|
+
},
|
|
12726
|
+
"firstOccurredAtMs": {
|
|
12727
|
+
"type": "integer",
|
|
12728
|
+
"format": "uint64",
|
|
12729
|
+
"minimum": 0
|
|
12730
|
+
},
|
|
12731
|
+
"matchId": {
|
|
12732
|
+
"type": "string",
|
|
12733
|
+
"format": "uuid"
|
|
12734
|
+
},
|
|
12735
|
+
"message": {
|
|
12736
|
+
"type": "string"
|
|
12737
|
+
},
|
|
12738
|
+
"occurredAtMs": {
|
|
12739
|
+
"type": "integer",
|
|
12740
|
+
"format": "uint64",
|
|
12741
|
+
"minimum": 0
|
|
12742
|
+
},
|
|
12743
|
+
"occurrenceCount": {
|
|
12744
|
+
"type": "integer",
|
|
12745
|
+
"format": "uint32",
|
|
12746
|
+
"minimum": 0
|
|
12747
|
+
},
|
|
12748
|
+
"operation": {
|
|
12749
|
+
"type": "string"
|
|
12750
|
+
},
|
|
12751
|
+
"reportId": {
|
|
12752
|
+
"type": "string",
|
|
12753
|
+
"format": "uuid"
|
|
12754
|
+
},
|
|
12755
|
+
"seat": {
|
|
12756
|
+
"anyOf": [
|
|
12757
|
+
{
|
|
12758
|
+
"$ref": "https://simulator-sdk.my-swu.com/schema/common.json#/$defs/Seat"
|
|
12759
|
+
},
|
|
12760
|
+
{
|
|
12761
|
+
"type": "null"
|
|
12762
|
+
}
|
|
12763
|
+
]
|
|
12764
|
+
},
|
|
12765
|
+
"snapshotRevision": {
|
|
12766
|
+
"type": [
|
|
12767
|
+
"integer",
|
|
12768
|
+
"null"
|
|
12769
|
+
],
|
|
12770
|
+
"format": "uint64",
|
|
12771
|
+
"minimum": 0
|
|
12772
|
+
},
|
|
12773
|
+
"source": {
|
|
12774
|
+
"type": "string"
|
|
12775
|
+
}
|
|
12776
|
+
},
|
|
12777
|
+
"required": [
|
|
12778
|
+
"reportId",
|
|
12779
|
+
"firstOccurredAtMs",
|
|
12780
|
+
"occurredAtMs",
|
|
12781
|
+
"occurrenceCount",
|
|
12782
|
+
"matchId",
|
|
12783
|
+
"source",
|
|
12784
|
+
"operation",
|
|
12785
|
+
"failureKind",
|
|
12786
|
+
"bundleAvailable",
|
|
12787
|
+
"message"
|
|
12788
|
+
]
|
|
12789
|
+
},
|
|
12627
12790
|
"SimulatorReportSummary": {
|
|
12628
12791
|
"description": "Metadata safe to return in administrator report lists.",
|
|
12629
12792
|
"type": "object",
|
|
@@ -13617,20 +13780,16 @@ export const sdkSchemaCommon = {
|
|
|
13617
13780
|
"matchSeed": {
|
|
13618
13781
|
"description": "Fixed duel match seed when configured.",
|
|
13619
13782
|
"type": [
|
|
13620
|
-
"
|
|
13783
|
+
"string",
|
|
13621
13784
|
"null"
|
|
13622
|
-
]
|
|
13623
|
-
"format": "uint64",
|
|
13624
|
-
"minimum": 0
|
|
13785
|
+
]
|
|
13625
13786
|
},
|
|
13626
13787
|
"packSeed": {
|
|
13627
13788
|
"description": "Fixed limited pack/leader seed when configured.",
|
|
13628
13789
|
"type": [
|
|
13629
|
-
"
|
|
13790
|
+
"string",
|
|
13630
13791
|
"null"
|
|
13631
|
-
]
|
|
13632
|
-
"format": "uint64",
|
|
13633
|
-
"minimum": 0
|
|
13792
|
+
]
|
|
13634
13793
|
},
|
|
13635
13794
|
"players": {
|
|
13636
13795
|
"type": "array",
|
|
@@ -14759,6 +14918,91 @@ export const sdkSchemaCommon = {
|
|
|
14759
14918
|
* only validates once that document is registered alongside it.
|
|
14760
14919
|
*/
|
|
14761
14920
|
export const sdkSchemas = {
|
|
14921
|
+
'admin-match-list-response': {
|
|
14922
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
14923
|
+
"title": "AdminMatchListResponse",
|
|
14924
|
+
"description": "Cursor-paginated durable match list for simulator administrators.",
|
|
14925
|
+
"type": "object",
|
|
14926
|
+
"properties": {
|
|
14927
|
+
"games": {
|
|
14928
|
+
"type": "array",
|
|
14929
|
+
"items": {
|
|
14930
|
+
"$ref": "https://simulator-sdk.my-swu.com/schema/common.json#/$defs/AdminMatchSummary"
|
|
14931
|
+
}
|
|
14932
|
+
},
|
|
14933
|
+
"nextCursor": {
|
|
14934
|
+
"type": [
|
|
14935
|
+
"string",
|
|
14936
|
+
"null"
|
|
14937
|
+
]
|
|
14938
|
+
}
|
|
14939
|
+
},
|
|
14940
|
+
"required": [
|
|
14941
|
+
"games"
|
|
14942
|
+
]
|
|
14943
|
+
},
|
|
14944
|
+
'admin-match-debug-bundle': {
|
|
14945
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
14946
|
+
"title": "AdminMatchDebugBundle",
|
|
14947
|
+
"description": "Complete durable diagnostics for one match, excluding restore credentials.",
|
|
14948
|
+
"type": "object",
|
|
14949
|
+
"properties": {
|
|
14950
|
+
"exportVersion": {
|
|
14951
|
+
"type": "integer",
|
|
14952
|
+
"format": "uint8",
|
|
14953
|
+
"maximum": 255,
|
|
14954
|
+
"minimum": 0
|
|
14955
|
+
},
|
|
14956
|
+
"exportedAtMs": {
|
|
14957
|
+
"type": "integer",
|
|
14958
|
+
"format": "uint64",
|
|
14959
|
+
"minimum": 0
|
|
14960
|
+
},
|
|
14961
|
+
"game": {
|
|
14962
|
+
"$ref": "https://simulator-sdk.my-swu.com/schema/common.json#/$defs/AdminMatchSummary"
|
|
14963
|
+
},
|
|
14964
|
+
"replay": {
|
|
14965
|
+
"anyOf": [
|
|
14966
|
+
{
|
|
14967
|
+
"$ref": "https://simulator-sdk.my-swu.com/schema/common.json#/$defs/MatchHistoryReplayArchive"
|
|
14968
|
+
},
|
|
14969
|
+
{
|
|
14970
|
+
"type": "null"
|
|
14971
|
+
}
|
|
14972
|
+
]
|
|
14973
|
+
},
|
|
14974
|
+
"reports": {
|
|
14975
|
+
"type": "array",
|
|
14976
|
+
"items": {
|
|
14977
|
+
"$ref": "https://simulator-sdk.my-swu.com/schema/common.json#/$defs/SimulatorReportResponse"
|
|
14978
|
+
}
|
|
14979
|
+
},
|
|
14980
|
+
"save": {
|
|
14981
|
+
"$ref": "https://simulator-sdk.my-swu.com/schema/common.json#/$defs/MatchSavePayload"
|
|
14982
|
+
}
|
|
14983
|
+
},
|
|
14984
|
+
"required": [
|
|
14985
|
+
"exportVersion",
|
|
14986
|
+
"exportedAtMs",
|
|
14987
|
+
"game",
|
|
14988
|
+
"save",
|
|
14989
|
+
"reports"
|
|
14990
|
+
]
|
|
14991
|
+
},
|
|
14992
|
+
'admin-match-replay-response': {
|
|
14993
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
14994
|
+
"title": "AdminMatchReplayResponse",
|
|
14995
|
+
"description": "Completed replay archive returned to an authenticated simulator administrator.",
|
|
14996
|
+
"type": "object",
|
|
14997
|
+
"properties": {
|
|
14998
|
+
"archive": {
|
|
14999
|
+
"$ref": "https://simulator-sdk.my-swu.com/schema/common.json#/$defs/MatchHistoryReplayArchive"
|
|
15000
|
+
}
|
|
15001
|
+
},
|
|
15002
|
+
"required": [
|
|
15003
|
+
"archive"
|
|
15004
|
+
]
|
|
15005
|
+
},
|
|
14762
15006
|
'simulator-report-list-response': {
|
|
14763
15007
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
14764
15008
|
"title": "SimulatorReportListResponse",
|
|
@@ -15482,11 +15726,10 @@ export const sdkSchemas = {
|
|
|
15482
15726
|
"seed": {
|
|
15483
15727
|
"description": "Optional deterministic match seed.",
|
|
15484
15728
|
"type": [
|
|
15485
|
-
"
|
|
15729
|
+
"string",
|
|
15486
15730
|
"null"
|
|
15487
15731
|
],
|
|
15488
|
-
"
|
|
15489
|
-
"minimum": 0
|
|
15732
|
+
"default": null
|
|
15490
15733
|
}
|
|
15491
15734
|
},
|
|
15492
15735
|
"additionalProperties": false,
|
|
@@ -15539,20 +15782,16 @@ export const sdkSchemas = {
|
|
|
15539
15782
|
"matchSeed": {
|
|
15540
15783
|
"description": "Optional deterministic seed reused for limited duel matches.",
|
|
15541
15784
|
"type": [
|
|
15542
|
-
"
|
|
15785
|
+
"string",
|
|
15543
15786
|
"null"
|
|
15544
|
-
]
|
|
15545
|
-
"format": "uint64",
|
|
15546
|
-
"minimum": 0
|
|
15787
|
+
]
|
|
15547
15788
|
},
|
|
15548
15789
|
"packSeed": {
|
|
15549
15790
|
"description": "Optional deterministic seed for limited pack/leader generation.",
|
|
15550
15791
|
"type": [
|
|
15551
|
-
"
|
|
15792
|
+
"string",
|
|
15552
15793
|
"null"
|
|
15553
|
-
]
|
|
15554
|
-
"format": "uint64",
|
|
15555
|
-
"minimum": 0
|
|
15794
|
+
]
|
|
15556
15795
|
},
|
|
15557
15796
|
"visibility": {
|
|
15558
15797
|
"description": "Whether the lobby should appear in public browsing surfaces.",
|
|
@@ -15896,6 +16135,13 @@ export const sdkSchemas = {
|
|
|
15896
16135
|
"title": "AddLobbyAiPlayerRequest",
|
|
15897
16136
|
"type": "object",
|
|
15898
16137
|
"properties": {
|
|
16138
|
+
"accountToken": {
|
|
16139
|
+
"description": "Signed app account proof required to create a server-controlled AI.",
|
|
16140
|
+
"type": [
|
|
16141
|
+
"string",
|
|
16142
|
+
"null"
|
|
16143
|
+
]
|
|
16144
|
+
},
|
|
15899
16145
|
"deck": {
|
|
15900
16146
|
"$ref": "https://simulator-sdk.my-swu.com/schema/common.json#/$defs/DeckInput"
|
|
15901
16147
|
},
|
|
@@ -16488,20 +16734,16 @@ export const sdkSchemas = {
|
|
|
16488
16734
|
"matchSeed": {
|
|
16489
16735
|
"description": "Optional deterministic seed reused for every duel table match.",
|
|
16490
16736
|
"type": [
|
|
16491
|
-
"
|
|
16737
|
+
"string",
|
|
16492
16738
|
"null"
|
|
16493
|
-
]
|
|
16494
|
-
"format": "uint64",
|
|
16495
|
-
"minimum": 0
|
|
16739
|
+
]
|
|
16496
16740
|
},
|
|
16497
16741
|
"packSeed": {
|
|
16498
16742
|
"description": "Optional deterministic seed for limited pack/leader generation.",
|
|
16499
16743
|
"type": [
|
|
16500
|
-
"
|
|
16744
|
+
"string",
|
|
16501
16745
|
"null"
|
|
16502
|
-
]
|
|
16503
|
-
"format": "uint64",
|
|
16504
|
-
"minimum": 0
|
|
16746
|
+
]
|
|
16505
16747
|
},
|
|
16506
16748
|
"pickTimerEnabled": {
|
|
16507
16749
|
"description": "Enables the per-pick countdown with auto-pick on timeout (draft only).",
|
|
@@ -17080,11 +17322,9 @@ export const sdkSchemas = {
|
|
|
17080
17322
|
"seed": {
|
|
17081
17323
|
"description": "Optional deterministic seed for generated boosters and draft leaders.",
|
|
17082
17324
|
"type": [
|
|
17083
|
-
"
|
|
17325
|
+
"string",
|
|
17084
17326
|
"null"
|
|
17085
|
-
]
|
|
17086
|
-
"format": "uint64",
|
|
17087
|
-
"minimum": 0
|
|
17327
|
+
]
|
|
17088
17328
|
},
|
|
17089
17329
|
"setCode": {
|
|
17090
17330
|
"description": "Set code used for booster generation.",
|
|
@@ -17148,9 +17388,7 @@ export const sdkSchemas = {
|
|
|
17148
17388
|
},
|
|
17149
17389
|
"seed": {
|
|
17150
17390
|
"description": "Deterministic seed used by successful creation after this check.",
|
|
17151
|
-
"type": "
|
|
17152
|
-
"format": "uint64",
|
|
17153
|
-
"minimum": 0
|
|
17391
|
+
"type": "string"
|
|
17154
17392
|
}
|
|
17155
17393
|
},
|
|
17156
17394
|
"required": [
|
|
@@ -17210,9 +17448,7 @@ export const sdkSchemas = {
|
|
|
17210
17448
|
},
|
|
17211
17449
|
"replaySeed": {
|
|
17212
17450
|
"description": "Resolved seed for a private solo-vs-AI match. Never projected in live state.",
|
|
17213
|
-
"type": "
|
|
17214
|
-
"format": "uint64",
|
|
17215
|
-
"minimum": 0
|
|
17451
|
+
"type": "string"
|
|
17216
17452
|
},
|
|
17217
17453
|
"seat": {
|
|
17218
17454
|
"$ref": "https://simulator-sdk.my-swu.com/schema/common.json#/$defs/Seat"
|
|
@@ -17897,9 +18133,7 @@ export const sdkSchemas = {
|
|
|
17897
18133
|
"$ref": "https://simulator-sdk.my-swu.com/schema/common.json#/$defs/HistorySection"
|
|
17898
18134
|
},
|
|
17899
18135
|
"seed": {
|
|
17900
|
-
"type": "
|
|
17901
|
-
"format": "uint64",
|
|
17902
|
-
"minimum": 0
|
|
18136
|
+
"type": "string"
|
|
17903
18137
|
},
|
|
17904
18138
|
"series": true,
|
|
17905
18139
|
"sourceMatchId": {
|
|
@@ -17961,6 +18195,57 @@ export const sdkSchemas = {
|
|
|
17961
18195
|
"archive"
|
|
17962
18196
|
]
|
|
17963
18197
|
},
|
|
18198
|
+
'create-match-history-replay-share-request': {
|
|
18199
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
18200
|
+
"title": "CreateMatchHistoryReplayShareRequest",
|
|
18201
|
+
"description": "Participant-authorized request to create one permanent replay-share link.",
|
|
18202
|
+
"type": "object",
|
|
18203
|
+
"properties": {
|
|
18204
|
+
"identities": {
|
|
18205
|
+
"type": "array",
|
|
18206
|
+
"items": {
|
|
18207
|
+
"$ref": "https://simulator-sdk.my-swu.com/schema/common.json#/$defs/HistoryIdentityInput"
|
|
18208
|
+
}
|
|
18209
|
+
},
|
|
18210
|
+
"includeHiddenInformation": {
|
|
18211
|
+
"description": "Whether this capability may retrieve post-match private-zone views.",
|
|
18212
|
+
"type": "boolean"
|
|
18213
|
+
}
|
|
18214
|
+
},
|
|
18215
|
+
"required": [
|
|
18216
|
+
"identities",
|
|
18217
|
+
"includeHiddenInformation"
|
|
18218
|
+
]
|
|
18219
|
+
},
|
|
18220
|
+
'create-match-history-replay-share-response': {
|
|
18221
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
18222
|
+
"title": "CreateMatchHistoryReplayShareResponse",
|
|
18223
|
+
"description": "Opaque capability returned after a participant creates a replay share.",
|
|
18224
|
+
"type": "object",
|
|
18225
|
+
"properties": {
|
|
18226
|
+
"shareToken": {
|
|
18227
|
+
"type": "string",
|
|
18228
|
+
"format": "uuid"
|
|
18229
|
+
}
|
|
18230
|
+
},
|
|
18231
|
+
"required": [
|
|
18232
|
+
"shareToken"
|
|
18233
|
+
]
|
|
18234
|
+
},
|
|
18235
|
+
'shared-match-history-replay-response': {
|
|
18236
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
18237
|
+
"title": "SharedMatchHistoryReplayResponse",
|
|
18238
|
+
"description": "Replay archive resolved from an opaque, publicly usable share capability.",
|
|
18239
|
+
"type": "object",
|
|
18240
|
+
"properties": {
|
|
18241
|
+
"archive": {
|
|
18242
|
+
"$ref": "https://simulator-sdk.my-swu.com/schema/common.json#/$defs/MatchHistoryReplayArchive"
|
|
18243
|
+
}
|
|
18244
|
+
},
|
|
18245
|
+
"required": [
|
|
18246
|
+
"archive"
|
|
18247
|
+
]
|
|
18248
|
+
},
|
|
17964
18249
|
'match-chat-lookup-response': {
|
|
17965
18250
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
17966
18251
|
"title": "MatchChatLookupResponse",
|
|
@@ -18033,6 +18318,128 @@ export const sdkSchemas = {
|
|
|
18033
18318
|
"access"
|
|
18034
18319
|
]
|
|
18035
18320
|
},
|
|
18321
|
+
'match-recovery-request': {
|
|
18322
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
18323
|
+
"title": "MatchRecoveryRequest",
|
|
18324
|
+
"description": "Request to restore an unfinished Solo-versus-AI match whose original live\nruntime is no longer available.",
|
|
18325
|
+
"type": "object",
|
|
18326
|
+
"properties": {
|
|
18327
|
+
"identities": {
|
|
18328
|
+
"type": "array",
|
|
18329
|
+
"items": {
|
|
18330
|
+
"$ref": "https://simulator-sdk.my-swu.com/schema/common.json#/$defs/HistoryIdentityInput"
|
|
18331
|
+
}
|
|
18332
|
+
},
|
|
18333
|
+
"restoreRequestId": {
|
|
18334
|
+
"description": "Stable browser-generated id that makes recovery retries idempotent.",
|
|
18335
|
+
"type": "string",
|
|
18336
|
+
"format": "uuid"
|
|
18337
|
+
},
|
|
18338
|
+
"section": {
|
|
18339
|
+
"$ref": "https://simulator-sdk.my-swu.com/schema/common.json#/$defs/HistorySection"
|
|
18340
|
+
},
|
|
18341
|
+
"sourceMatchId": {
|
|
18342
|
+
"description": "Id of the original runtime, never a public history id.",
|
|
18343
|
+
"type": "string",
|
|
18344
|
+
"format": "uuid"
|
|
18345
|
+
}
|
|
18346
|
+
},
|
|
18347
|
+
"required": [
|
|
18348
|
+
"sourceMatchId",
|
|
18349
|
+
"section",
|
|
18350
|
+
"identities",
|
|
18351
|
+
"restoreRequestId"
|
|
18352
|
+
]
|
|
18353
|
+
},
|
|
18354
|
+
'match-recovery-response': {
|
|
18355
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
18356
|
+
"title": "MatchRecoveryResponse",
|
|
18357
|
+
"description": "Result of looking up a lost-runtime recovery source.\n\n`Unavailable` intentionally combines unknown, unauthorized, live, and\nineligible sources so callers cannot probe match lifecycle metadata.",
|
|
18358
|
+
"oneOf": [
|
|
18359
|
+
{
|
|
18360
|
+
"type": "object",
|
|
18361
|
+
"properties": {
|
|
18362
|
+
"access": {
|
|
18363
|
+
"description": "Fresh host capability for the restored runtime.",
|
|
18364
|
+
"$ref": "https://simulator-sdk.my-swu.com/schema/common.json#/$defs/MatchAccessResponse"
|
|
18365
|
+
},
|
|
18366
|
+
"kind": {
|
|
18367
|
+
"type": "string",
|
|
18368
|
+
"const": "restored"
|
|
18369
|
+
}
|
|
18370
|
+
},
|
|
18371
|
+
"required": [
|
|
18372
|
+
"kind",
|
|
18373
|
+
"access"
|
|
18374
|
+
]
|
|
18375
|
+
},
|
|
18376
|
+
{
|
|
18377
|
+
"type": "object",
|
|
18378
|
+
"properties": {
|
|
18379
|
+
"kind": {
|
|
18380
|
+
"type": "string",
|
|
18381
|
+
"const": "unavailable"
|
|
18382
|
+
}
|
|
18383
|
+
},
|
|
18384
|
+
"required": [
|
|
18385
|
+
"kind"
|
|
18386
|
+
]
|
|
18387
|
+
}
|
|
18388
|
+
]
|
|
18389
|
+
},
|
|
18390
|
+
'match-access-recovery-request': {
|
|
18391
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
18392
|
+
"title": "MatchAccessRecoveryRequest",
|
|
18393
|
+
"description": "Ownership proof used to recover current access for one live Solo-versus-AI\nmatch when browser-stored seat credentials are stale.",
|
|
18394
|
+
"type": "object",
|
|
18395
|
+
"properties": {
|
|
18396
|
+
"identities": {
|
|
18397
|
+
"type": "array",
|
|
18398
|
+
"items": {
|
|
18399
|
+
"$ref": "https://simulator-sdk.my-swu.com/schema/common.json#/$defs/HistoryIdentityInput"
|
|
18400
|
+
}
|
|
18401
|
+
}
|
|
18402
|
+
},
|
|
18403
|
+
"required": [
|
|
18404
|
+
"identities"
|
|
18405
|
+
]
|
|
18406
|
+
},
|
|
18407
|
+
'match-access-recovery-response': {
|
|
18408
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
18409
|
+
"title": "MatchAccessRecoveryResponse",
|
|
18410
|
+
"description": "Result of recovering current private access for a live Solo-versus-AI match.\n\n`Unavailable` deliberately combines unknown, unauthorized, inactive, and\nineligible matches so this endpoint cannot be used to probe match state.",
|
|
18411
|
+
"oneOf": [
|
|
18412
|
+
{
|
|
18413
|
+
"type": "object",
|
|
18414
|
+
"properties": {
|
|
18415
|
+
"access": {
|
|
18416
|
+
"description": "Current private host capability for the existing live runtime.",
|
|
18417
|
+
"$ref": "https://simulator-sdk.my-swu.com/schema/common.json#/$defs/MatchAccessResponse"
|
|
18418
|
+
},
|
|
18419
|
+
"kind": {
|
|
18420
|
+
"type": "string",
|
|
18421
|
+
"const": "recovered"
|
|
18422
|
+
}
|
|
18423
|
+
},
|
|
18424
|
+
"required": [
|
|
18425
|
+
"kind",
|
|
18426
|
+
"access"
|
|
18427
|
+
]
|
|
18428
|
+
},
|
|
18429
|
+
{
|
|
18430
|
+
"type": "object",
|
|
18431
|
+
"properties": {
|
|
18432
|
+
"kind": {
|
|
18433
|
+
"type": "string",
|
|
18434
|
+
"const": "unavailable"
|
|
18435
|
+
}
|
|
18436
|
+
},
|
|
18437
|
+
"required": [
|
|
18438
|
+
"kind"
|
|
18439
|
+
]
|
|
18440
|
+
}
|
|
18441
|
+
]
|
|
18442
|
+
},
|
|
18036
18443
|
'cards-response': {
|
|
18037
18444
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
18038
18445
|
"title": "CardsResponse",
|