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,548 +0,0 @@
1
- {
2
- "$id": "lobby/joined/response",
3
- "roles": [],
4
- "anyOf": [
5
- {
6
- "type": "object",
7
- "properties": {
8
- "messageId": {
9
- "type": "string"
10
- },
11
- "commandId": {
12
- "const": "lobby/joined/response",
13
- "type": "string"
14
- },
15
- "status": {
16
- "const": "success",
17
- "type": "string"
18
- },
19
- "data": {
20
- "examples": [
21
- {
22
- "battleId": 27,
23
- "hostId": 822,
24
- "engine": "105.1.1-1821-gaca6f20 BAR105",
25
- "game": "Beyond All Reason test-23561-0abff7c",
26
- "map": "Red Comet Remake 1.8",
27
- "startPosType": 2,
28
- "startAreas": {
29
- "0": {
30
- "x": 0,
31
- "y": 0,
32
- "width": 1,
33
- "height": 0.3
34
- },
35
- "1": {
36
- "x": 0,
37
- "y": 0.7,
38
- "width": 1,
39
- "height": 0.3
40
- }
41
- },
42
- "startTime": 1705432698,
43
- "ip": "121.32.201.76",
44
- "port": 41403,
45
- "scriptPassword": "10sdfi90sid0sjkdf",
46
- "modOptions": {
47
- "emprework": 0
48
- },
49
- "bots": [],
50
- "users": []
51
- }
52
- ],
53
- "type": "object",
54
- "properties": {
55
- "battleId": {
56
- "type": "string"
57
- },
58
- "hostId": {
59
- "type": "string"
60
- },
61
- "engine": {
62
- "type": "string"
63
- },
64
- "game": {
65
- "type": "string"
66
- },
67
- "map": {
68
- "type": "string"
69
- },
70
- "startPosType": {
71
- "anyOf": [
72
- {
73
- "description": "Fixed",
74
- "const": 0,
75
- "type": "number"
76
- },
77
- {
78
- "description": "Random",
79
- "const": 1,
80
- "type": "number"
81
- },
82
- {
83
- "description": "Boxes",
84
- "const": 2,
85
- "type": "number"
86
- }
87
- ]
88
- },
89
- "startAreas": {
90
- "type": "object",
91
- "patternProperties": {
92
- "^(0|[1-9][0-9]*)$": {
93
- "examples": [
94
- {
95
- "x": 0,
96
- "y": 0,
97
- "width": 1,
98
- "height": 0.3
99
- }
100
- ],
101
- "type": "object",
102
- "properties": {
103
- "x": {
104
- "type": "number"
105
- },
106
- "y": {
107
- "type": "number"
108
- },
109
- "width": {
110
- "type": "number"
111
- },
112
- "height": {
113
- "type": "number"
114
- }
115
- },
116
- "required": [
117
- "x",
118
- "y",
119
- "width",
120
- "height"
121
- ]
122
- }
123
- }
124
- },
125
- "startTime": {
126
- "anyOf": [
127
- {
128
- "description": "Unix time",
129
- "examples": [
130
- 1705432698,
131
- null
132
- ],
133
- "type": "integer"
134
- },
135
- {
136
- "type": "null"
137
- }
138
- ]
139
- },
140
- "ip": {
141
- "anyOf": [
142
- {
143
- "type": "string"
144
- },
145
- {
146
- "type": "null"
147
- }
148
- ]
149
- },
150
- "port": {
151
- "anyOf": [
152
- {
153
- "type": "integer"
154
- },
155
- {
156
- "type": "null"
157
- }
158
- ]
159
- },
160
- "scriptPassword": {
161
- "anyOf": [
162
- {
163
- "type": "string"
164
- },
165
- {
166
- "type": "null"
167
- }
168
- ]
169
- },
170
- "modOptions": {
171
- "type": "object",
172
- "patternProperties": {
173
- "^(.*)$": {}
174
- }
175
- },
176
- "bots": {
177
- "type": "array",
178
- "items": {
179
- "type": "object",
180
- "properties": {
181
- "playerId": {
182
- "type": "integer"
183
- },
184
- "teamId": {
185
- "type": "integer"
186
- },
187
- "color": {
188
- "type": "string"
189
- },
190
- "bonus": {
191
- "type": "number"
192
- },
193
- "inGame": {
194
- "type": "boolean"
195
- },
196
- "isSpectator": {
197
- "const": false,
198
- "type": "boolean"
199
- },
200
- "isBot": {
201
- "const": true,
202
- "type": "boolean"
203
- },
204
- "ownerId": {
205
- "type": "string"
206
- },
207
- "aiShortName": {
208
- "type": "string"
209
- },
210
- "name": {
211
- "type": "string"
212
- },
213
- "aiOptions": {
214
- "type": "object",
215
- "patternProperties": {
216
- "^(.*)$": {}
217
- }
218
- },
219
- "faction": {
220
- "type": "string"
221
- }
222
- },
223
- "required": [
224
- "playerId",
225
- "teamId",
226
- "color",
227
- "bonus",
228
- "inGame",
229
- "isSpectator",
230
- "isBot",
231
- "ownerId",
232
- "aiShortName",
233
- "name",
234
- "aiOptions",
235
- "faction"
236
- ]
237
- }
238
- },
239
- "users": {
240
- "type": "array",
241
- "items": {
242
- "type": "object",
243
- "properties": {
244
- "userId": {
245
- "type": "string"
246
- },
247
- "username": {
248
- "type": "string"
249
- },
250
- "displayName": {
251
- "type": "string"
252
- },
253
- "avatarUrl": {
254
- "anyOf": [
255
- {
256
- "format": "uri",
257
- "type": "string"
258
- },
259
- {
260
- "type": "null"
261
- }
262
- ]
263
- },
264
- "clanId": {
265
- "anyOf": [
266
- {
267
- "type": "string"
268
- },
269
- {
270
- "type": "null"
271
- }
272
- ]
273
- },
274
- "partyId": {
275
- "anyOf": [
276
- {
277
- "type": "string"
278
- },
279
- {
280
- "type": "null"
281
- }
282
- ]
283
- },
284
- "roles": {
285
- "type": "array",
286
- "items": {
287
- "type": "string"
288
- }
289
- },
290
- "countryCode": {
291
- "type": "string"
292
- },
293
- "status": {
294
- "anyOf": [
295
- {
296
- "const": "offline",
297
- "type": "string"
298
- },
299
- {
300
- "const": "menu",
301
- "type": "string"
302
- },
303
- {
304
- "const": "playing",
305
- "type": "string"
306
- },
307
- {
308
- "const": "lobby",
309
- "type": "string"
310
- }
311
- ]
312
- },
313
- "battleStatus": {
314
- "anyOf": [
315
- {
316
- "allOf": [
317
- {
318
- "type": "object",
319
- "properties": {
320
- "battleId": {
321
- "type": "string"
322
- }
323
- },
324
- "required": [
325
- "battleId"
326
- ]
327
- },
328
- {
329
- "anyOf": [
330
- {
331
- "type": "object",
332
- "allOf": [
333
- {
334
- "type": "object",
335
- "properties": {
336
- "playerId": {
337
- "type": "integer"
338
- },
339
- "teamId": {
340
- "type": "integer"
341
- },
342
- "color": {
343
- "type": "string"
344
- },
345
- "bonus": {
346
- "type": "number"
347
- },
348
- "inGame": {
349
- "type": "boolean"
350
- }
351
- },
352
- "required": [
353
- "playerId",
354
- "teamId",
355
- "color",
356
- "bonus",
357
- "inGame"
358
- ]
359
- },
360
- {
361
- "type": "object",
362
- "properties": {
363
- "isSpectator": {
364
- "const": false,
365
- "type": "boolean"
366
- },
367
- "isBot": {
368
- "const": false,
369
- "type": "boolean"
370
- },
371
- "ready": {
372
- "type": "boolean"
373
- },
374
- "sync": {
375
- "type": "object",
376
- "properties": {
377
- "engine": {
378
- "type": "number"
379
- },
380
- "game": {
381
- "type": "number"
382
- },
383
- "map": {
384
- "type": "number"
385
- }
386
- },
387
- "required": [
388
- "engine",
389
- "game",
390
- "map"
391
- ]
392
- }
393
- },
394
- "required": [
395
- "isSpectator",
396
- "isBot",
397
- "ready",
398
- "sync"
399
- ]
400
- }
401
- ]
402
- },
403
- {
404
- "type": "object",
405
- "properties": {
406
- "isSpectator": {
407
- "const": true,
408
- "type": "boolean"
409
- },
410
- "isBot": {
411
- "const": false,
412
- "type": "boolean"
413
- }
414
- },
415
- "required": [
416
- "isSpectator",
417
- "isBot"
418
- ]
419
- }
420
- ]
421
- }
422
- ]
423
- },
424
- {
425
- "type": "null"
426
- }
427
- ]
428
- }
429
- },
430
- "required": [
431
- "userId",
432
- "username",
433
- "displayName",
434
- "avatarUrl",
435
- "clanId",
436
- "partyId",
437
- "roles",
438
- "status",
439
- "battleStatus"
440
- ]
441
- }
442
- }
443
- },
444
- "required": [
445
- "battleId",
446
- "hostId",
447
- "engine",
448
- "game",
449
- "map",
450
- "startPosType",
451
- "startAreas",
452
- "startTime",
453
- "ip",
454
- "port",
455
- "scriptPassword",
456
- "modOptions",
457
- "bots",
458
- "users"
459
- ]
460
- }
461
- },
462
- "required": [
463
- "messageId",
464
- "commandId",
465
- "status",
466
- "data"
467
- ]
468
- },
469
- {
470
- "type": "object",
471
- "properties": {
472
- "messageId": {
473
- "type": "string"
474
- },
475
- "commandId": {
476
- "const": "lobby/joined/response",
477
- "type": "string"
478
- },
479
- "status": {
480
- "const": "failed",
481
- "type": "string"
482
- },
483
- "reason": {
484
- "const": "internal_error",
485
- "type": "string"
486
- }
487
- },
488
- "required": [
489
- "messageId",
490
- "commandId",
491
- "status",
492
- "reason"
493
- ]
494
- },
495
- {
496
- "type": "object",
497
- "properties": {
498
- "messageId": {
499
- "type": "string"
500
- },
501
- "commandId": {
502
- "const": "lobby/joined/response",
503
- "type": "string"
504
- },
505
- "status": {
506
- "const": "failed",
507
- "type": "string"
508
- },
509
- "reason": {
510
- "const": "unauthorized",
511
- "type": "string"
512
- }
513
- },
514
- "required": [
515
- "messageId",
516
- "commandId",
517
- "status",
518
- "reason"
519
- ]
520
- },
521
- {
522
- "type": "object",
523
- "properties": {
524
- "messageId": {
525
- "type": "string"
526
- },
527
- "commandId": {
528
- "const": "lobby/joined/response",
529
- "type": "string"
530
- },
531
- "status": {
532
- "const": "failed",
533
- "type": "string"
534
- },
535
- "reason": {
536
- "const": "invalid_command",
537
- "type": "string"
538
- }
539
- },
540
- "required": [
541
- "messageId",
542
- "commandId",
543
- "status",
544
- "reason"
545
- ]
546
- }
547
- ]
548
- }
@@ -1,18 +0,0 @@
1
- {
2
- "$id": "lobby/leave/request",
3
- "roles": [],
4
- "type": "object",
5
- "properties": {
6
- "messageId": {
7
- "type": "string"
8
- },
9
- "commandId": {
10
- "const": "lobby/leave/request",
11
- "type": "string"
12
- }
13
- },
14
- "required": [
15
- "messageId",
16
- "commandId"
17
- ]
18
- }