tachyon-protocol 0.3.0 → 0.3.2
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 +33 -111
- package/dist/{bot → autohost}/slave/request.json +5 -4
- package/dist/{bot/unslave → autohost/slave}/response.json +8 -7
- package/dist/{bot → autohost}/unslave/request.json +5 -4
- package/dist/autohost/unslave/response.json +107 -0
- package/dist/game/launch/response.json +1 -1
- package/dist/index.d.ts +1054 -179
- package/dist/index.js +147 -25
- package/dist/lobby/close/request.json +1 -1
- package/dist/lobby/close/response.json +1 -1
- package/dist/lobby/create/request.json +1 -1
- package/dist/lobby/create/response.json +1 -1
- package/dist/lobby/join/request.json +1 -1
- package/dist/lobby/join/response.json +1 -1
- package/dist/lobby/joined/response.json +327 -110
- package/dist/lobby/leave/request.json +1 -1
- package/dist/lobby/leave/response.json +1 -1
- package/dist/lobby/left/response.json +1 -1
- package/dist/lobby/list/request.json +1 -1
- package/dist/lobby/list/response.json +475 -119
- package/dist/lobby/receiveMessage/response.json +1 -1
- package/dist/lobby/sendMessage/request.json +1 -1
- package/dist/lobby/sendMessage/response.json +1 -1
- package/dist/lobby/subscribe/request.json +33 -0
- package/dist/{bot/slave → lobby/subscribe}/response.json +6 -7
- package/dist/lobby/unsubscribe/request.json +30 -0
- package/dist/lobby/unsubscribe/response.json +131 -0
- package/dist/lobby/updated/response.json +459 -143
- package/dist/matchmaking/cancel/request.json +1 -1
- package/dist/matchmaking/cancel/response.json +1 -1
- package/dist/matchmaking/found/response.json +1 -1
- package/dist/matchmaking/list/request.json +1 -1
- package/dist/matchmaking/list/response.json +13 -7
- package/dist/matchmaking/lost/response.json +1 -1
- package/dist/matchmaking/queue/request.json +1 -1
- package/dist/matchmaking/queue/response.json +1 -1
- package/dist/matchmaking/queueUpdate/response.json +1 -1
- package/dist/matchmaking/ready/request.json +1 -1
- package/dist/matchmaking/ready/response.json +1 -1
- package/dist/matchmaking/readyUpdate/response.json +1 -1
- package/dist/system/connected/response.json +183 -4
- package/dist/system/disconnect/request.json +12 -1
- package/dist/system/disconnect/response.json +105 -0
- package/dist/system/serverStats/request.json +18 -0
- package/dist/system/serverStats/response.json +117 -0
- package/dist/user/subscribe/request.json +33 -0
- package/dist/user/subscribe/response.json +290 -0
- package/dist/user/unsubscribe/request.json +33 -0
- package/dist/user/unsubscribe/response.json +131 -0
- package/dist/user/updated/response.json +304 -0
- package/package.json +18 -6
- package/dist/meta.json +0 -96
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "user/subscribe/response",
|
|
3
|
+
"roles": [],
|
|
4
|
+
"anyOf": [
|
|
5
|
+
{
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"messageId": {
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
11
|
+
"commandId": {
|
|
12
|
+
"const": "user/subscribe/response",
|
|
13
|
+
"type": "string"
|
|
14
|
+
},
|
|
15
|
+
"status": {
|
|
16
|
+
"const": "success",
|
|
17
|
+
"type": "string"
|
|
18
|
+
},
|
|
19
|
+
"data": {
|
|
20
|
+
"type": "object",
|
|
21
|
+
"properties": {
|
|
22
|
+
"users": {
|
|
23
|
+
"type": "array",
|
|
24
|
+
"items": {
|
|
25
|
+
"type": "object",
|
|
26
|
+
"properties": {
|
|
27
|
+
"userId": {
|
|
28
|
+
"type": "integer"
|
|
29
|
+
},
|
|
30
|
+
"username": {
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
"displayName": {
|
|
34
|
+
"type": "string"
|
|
35
|
+
},
|
|
36
|
+
"avatarUrl": {
|
|
37
|
+
"format": "uri",
|
|
38
|
+
"type": "string"
|
|
39
|
+
},
|
|
40
|
+
"clanId": {
|
|
41
|
+
"anyOf": [
|
|
42
|
+
{
|
|
43
|
+
"type": "integer"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"type": "null"
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
"partyId": {
|
|
51
|
+
"anyOf": [
|
|
52
|
+
{
|
|
53
|
+
"type": "integer"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"type": "null"
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
"roles": {
|
|
61
|
+
"type": "array",
|
|
62
|
+
"items": {
|
|
63
|
+
"type": "string"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"countryCode": {
|
|
67
|
+
"type": "string"
|
|
68
|
+
},
|
|
69
|
+
"battleStatus": {
|
|
70
|
+
"anyOf": [
|
|
71
|
+
{
|
|
72
|
+
"allOf": [
|
|
73
|
+
{
|
|
74
|
+
"type": "object",
|
|
75
|
+
"properties": {
|
|
76
|
+
"battleId": {
|
|
77
|
+
"type": "integer"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"required": [
|
|
81
|
+
"battleId"
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"anyOf": [
|
|
86
|
+
{
|
|
87
|
+
"type": "object",
|
|
88
|
+
"allOf": [
|
|
89
|
+
{
|
|
90
|
+
"type": "object",
|
|
91
|
+
"properties": {
|
|
92
|
+
"playerId": {
|
|
93
|
+
"type": "integer"
|
|
94
|
+
},
|
|
95
|
+
"teamId": {
|
|
96
|
+
"type": "integer"
|
|
97
|
+
},
|
|
98
|
+
"color": {
|
|
99
|
+
"type": "string"
|
|
100
|
+
},
|
|
101
|
+
"bonus": {
|
|
102
|
+
"type": "number"
|
|
103
|
+
},
|
|
104
|
+
"inGame": {
|
|
105
|
+
"type": "boolean"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"required": [
|
|
109
|
+
"playerId",
|
|
110
|
+
"teamId",
|
|
111
|
+
"color",
|
|
112
|
+
"bonus",
|
|
113
|
+
"inGame"
|
|
114
|
+
]
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"type": "object",
|
|
118
|
+
"properties": {
|
|
119
|
+
"isSpectator": {
|
|
120
|
+
"const": false,
|
|
121
|
+
"type": "boolean"
|
|
122
|
+
},
|
|
123
|
+
"isBot": {
|
|
124
|
+
"const": false,
|
|
125
|
+
"type": "boolean"
|
|
126
|
+
},
|
|
127
|
+
"ready": {
|
|
128
|
+
"type": "boolean"
|
|
129
|
+
},
|
|
130
|
+
"sync": {
|
|
131
|
+
"type": "object",
|
|
132
|
+
"properties": {
|
|
133
|
+
"engine": {
|
|
134
|
+
"type": "number"
|
|
135
|
+
},
|
|
136
|
+
"game": {
|
|
137
|
+
"type": "number"
|
|
138
|
+
},
|
|
139
|
+
"map": {
|
|
140
|
+
"type": "number"
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"required": [
|
|
144
|
+
"engine",
|
|
145
|
+
"game",
|
|
146
|
+
"map"
|
|
147
|
+
]
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"required": [
|
|
151
|
+
"isSpectator",
|
|
152
|
+
"isBot",
|
|
153
|
+
"ready",
|
|
154
|
+
"sync"
|
|
155
|
+
]
|
|
156
|
+
}
|
|
157
|
+
]
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"type": "object",
|
|
161
|
+
"properties": {
|
|
162
|
+
"isSpectator": {
|
|
163
|
+
"const": true,
|
|
164
|
+
"type": "boolean"
|
|
165
|
+
},
|
|
166
|
+
"isBot": {
|
|
167
|
+
"const": false,
|
|
168
|
+
"type": "boolean"
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
"required": [
|
|
172
|
+
"isSpectator",
|
|
173
|
+
"isBot"
|
|
174
|
+
]
|
|
175
|
+
}
|
|
176
|
+
]
|
|
177
|
+
}
|
|
178
|
+
]
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"type": "null"
|
|
182
|
+
}
|
|
183
|
+
]
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"required": [
|
|
187
|
+
"userId",
|
|
188
|
+
"username",
|
|
189
|
+
"displayName",
|
|
190
|
+
"avatarUrl",
|
|
191
|
+
"clanId",
|
|
192
|
+
"partyId",
|
|
193
|
+
"roles",
|
|
194
|
+
"battleStatus"
|
|
195
|
+
]
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
"required": [
|
|
200
|
+
"users"
|
|
201
|
+
]
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
"required": [
|
|
205
|
+
"messageId",
|
|
206
|
+
"commandId",
|
|
207
|
+
"status",
|
|
208
|
+
"data"
|
|
209
|
+
]
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"type": "object",
|
|
213
|
+
"properties": {
|
|
214
|
+
"messageId": {
|
|
215
|
+
"type": "string"
|
|
216
|
+
},
|
|
217
|
+
"commandId": {
|
|
218
|
+
"const": "user/subscribe/response",
|
|
219
|
+
"type": "string"
|
|
220
|
+
},
|
|
221
|
+
"status": {
|
|
222
|
+
"const": "failed",
|
|
223
|
+
"type": "string"
|
|
224
|
+
},
|
|
225
|
+
"reason": {
|
|
226
|
+
"const": "internal_error",
|
|
227
|
+
"type": "string"
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
"required": [
|
|
231
|
+
"messageId",
|
|
232
|
+
"commandId",
|
|
233
|
+
"status",
|
|
234
|
+
"reason"
|
|
235
|
+
]
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"type": "object",
|
|
239
|
+
"properties": {
|
|
240
|
+
"messageId": {
|
|
241
|
+
"type": "string"
|
|
242
|
+
},
|
|
243
|
+
"commandId": {
|
|
244
|
+
"const": "user/subscribe/response",
|
|
245
|
+
"type": "string"
|
|
246
|
+
},
|
|
247
|
+
"status": {
|
|
248
|
+
"const": "failed",
|
|
249
|
+
"type": "string"
|
|
250
|
+
},
|
|
251
|
+
"reason": {
|
|
252
|
+
"const": "unauthorized",
|
|
253
|
+
"type": "string"
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
"required": [
|
|
257
|
+
"messageId",
|
|
258
|
+
"commandId",
|
|
259
|
+
"status",
|
|
260
|
+
"reason"
|
|
261
|
+
]
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"type": "object",
|
|
265
|
+
"properties": {
|
|
266
|
+
"messageId": {
|
|
267
|
+
"type": "string"
|
|
268
|
+
},
|
|
269
|
+
"commandId": {
|
|
270
|
+
"const": "user/subscribe/response",
|
|
271
|
+
"type": "string"
|
|
272
|
+
},
|
|
273
|
+
"status": {
|
|
274
|
+
"const": "failed",
|
|
275
|
+
"type": "string"
|
|
276
|
+
},
|
|
277
|
+
"reason": {
|
|
278
|
+
"const": "invalid_command",
|
|
279
|
+
"type": "string"
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
"required": [
|
|
283
|
+
"messageId",
|
|
284
|
+
"commandId",
|
|
285
|
+
"status",
|
|
286
|
+
"reason"
|
|
287
|
+
]
|
|
288
|
+
}
|
|
289
|
+
]
|
|
290
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "user/unsubscribe/request",
|
|
3
|
+
"roles": [],
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"messageId": {
|
|
7
|
+
"type": "string"
|
|
8
|
+
},
|
|
9
|
+
"commandId": {
|
|
10
|
+
"const": "user/unsubscribe/request",
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
"data": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"properties": {
|
|
16
|
+
"userIds": {
|
|
17
|
+
"type": "array",
|
|
18
|
+
"items": {
|
|
19
|
+
"type": "integer"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"required": [
|
|
24
|
+
"userIds"
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"required": [
|
|
29
|
+
"messageId",
|
|
30
|
+
"commandId",
|
|
31
|
+
"data"
|
|
32
|
+
]
|
|
33
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "user/unsubscribe/response",
|
|
3
|
+
"roles": [],
|
|
4
|
+
"anyOf": [
|
|
5
|
+
{
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"messageId": {
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
11
|
+
"commandId": {
|
|
12
|
+
"const": "user/unsubscribe/response",
|
|
13
|
+
"type": "string"
|
|
14
|
+
},
|
|
15
|
+
"status": {
|
|
16
|
+
"const": "success",
|
|
17
|
+
"type": "string"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"required": [
|
|
21
|
+
"messageId",
|
|
22
|
+
"commandId",
|
|
23
|
+
"status"
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"type": "object",
|
|
28
|
+
"properties": {
|
|
29
|
+
"messageId": {
|
|
30
|
+
"type": "string"
|
|
31
|
+
},
|
|
32
|
+
"commandId": {
|
|
33
|
+
"const": "user/unsubscribe/response",
|
|
34
|
+
"type": "string"
|
|
35
|
+
},
|
|
36
|
+
"status": {
|
|
37
|
+
"const": "failed",
|
|
38
|
+
"type": "string"
|
|
39
|
+
},
|
|
40
|
+
"reason": {
|
|
41
|
+
"const": "cannot_unsub_own_user",
|
|
42
|
+
"type": "string"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"required": [
|
|
46
|
+
"messageId",
|
|
47
|
+
"commandId",
|
|
48
|
+
"status",
|
|
49
|
+
"reason"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"type": "object",
|
|
54
|
+
"properties": {
|
|
55
|
+
"messageId": {
|
|
56
|
+
"type": "string"
|
|
57
|
+
},
|
|
58
|
+
"commandId": {
|
|
59
|
+
"const": "user/unsubscribe/response",
|
|
60
|
+
"type": "string"
|
|
61
|
+
},
|
|
62
|
+
"status": {
|
|
63
|
+
"const": "failed",
|
|
64
|
+
"type": "string"
|
|
65
|
+
},
|
|
66
|
+
"reason": {
|
|
67
|
+
"const": "internal_error",
|
|
68
|
+
"type": "string"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"required": [
|
|
72
|
+
"messageId",
|
|
73
|
+
"commandId",
|
|
74
|
+
"status",
|
|
75
|
+
"reason"
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"type": "object",
|
|
80
|
+
"properties": {
|
|
81
|
+
"messageId": {
|
|
82
|
+
"type": "string"
|
|
83
|
+
},
|
|
84
|
+
"commandId": {
|
|
85
|
+
"const": "user/unsubscribe/response",
|
|
86
|
+
"type": "string"
|
|
87
|
+
},
|
|
88
|
+
"status": {
|
|
89
|
+
"const": "failed",
|
|
90
|
+
"type": "string"
|
|
91
|
+
},
|
|
92
|
+
"reason": {
|
|
93
|
+
"const": "unauthorized",
|
|
94
|
+
"type": "string"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"required": [
|
|
98
|
+
"messageId",
|
|
99
|
+
"commandId",
|
|
100
|
+
"status",
|
|
101
|
+
"reason"
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"type": "object",
|
|
106
|
+
"properties": {
|
|
107
|
+
"messageId": {
|
|
108
|
+
"type": "string"
|
|
109
|
+
},
|
|
110
|
+
"commandId": {
|
|
111
|
+
"const": "user/unsubscribe/response",
|
|
112
|
+
"type": "string"
|
|
113
|
+
},
|
|
114
|
+
"status": {
|
|
115
|
+
"const": "failed",
|
|
116
|
+
"type": "string"
|
|
117
|
+
},
|
|
118
|
+
"reason": {
|
|
119
|
+
"const": "invalid_command",
|
|
120
|
+
"type": "string"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"required": [
|
|
124
|
+
"messageId",
|
|
125
|
+
"commandId",
|
|
126
|
+
"status",
|
|
127
|
+
"reason"
|
|
128
|
+
]
|
|
129
|
+
}
|
|
130
|
+
]
|
|
131
|
+
}
|