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