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