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