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