tachyon-protocol 1.19.0 → 1.21.0

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.
package/dist/index.cjs CHANGED
@@ -24,7 +24,7 @@ __export(dist_exports, {
24
24
  });
25
25
  module.exports = __toCommonJS(dist_exports);
26
26
  var tachyonMeta = {
27
- "version": "1.19.0",
27
+ "version": "1.21.0",
28
28
  "schema": {
29
29
  "actors": {
30
30
  "server": {
@@ -62,15 +62,19 @@ var tachyonMeta = {
62
62
  "friend/remove",
63
63
  "friend/sendRequest",
64
64
  "lobby/addBot",
65
+ "lobby/appointBoss",
65
66
  "lobby/create",
66
67
  "lobby/join",
67
68
  "lobby/joinAllyTeam",
69
+ "lobby/joinBattle",
68
70
  "lobby/joinQueue",
71
+ "lobby/kickban",
69
72
  "lobby/leave",
70
73
  "lobby/removeBot",
71
74
  "lobby/spectate",
72
75
  "lobby/startBattle",
73
76
  "lobby/subscribeList",
77
+ "lobby/unboss",
74
78
  "lobby/unsubscribeList",
75
79
  "lobby/update",
76
80
  "lobby/updateBot",
@@ -92,6 +96,7 @@ var tachyonMeta = {
92
96
  "system/disconnect",
93
97
  "system/serverStats",
94
98
  "user/info",
99
+ "user/report",
95
100
  "user/subscribeUpdates",
96
101
  "user/unsubscribeUpdates"
97
102
  ]
@@ -117,15 +122,19 @@ var tachyonMeta = {
117
122
  "friend/remove",
118
123
  "friend/sendRequest",
119
124
  "lobby/addBot",
125
+ "lobby/appointBoss",
120
126
  "lobby/create",
121
127
  "lobby/join",
122
128
  "lobby/joinAllyTeam",
129
+ "lobby/joinBattle",
123
130
  "lobby/joinQueue",
131
+ "lobby/kickban",
124
132
  "lobby/leave",
125
133
  "lobby/removeBot",
126
134
  "lobby/spectate",
127
135
  "lobby/startBattle",
128
136
  "lobby/subscribeList",
137
+ "lobby/unboss",
129
138
  "lobby/unsubscribeList",
130
139
  "lobby/update",
131
140
  "lobby/updateBot",
@@ -147,6 +156,7 @@ var tachyonMeta = {
147
156
  "system/disconnect",
148
157
  "system/serverStats",
149
158
  "user/info",
159
+ "user/report",
150
160
  "user/subscribeUpdates",
151
161
  "user/unsubscribeUpdates"
152
162
  ],
@@ -222,15 +232,19 @@ var tachyonMeta = {
222
232
  "friend/remove",
223
233
  "friend/sendRequest",
224
234
  "lobby/addBot",
235
+ "lobby/appointBoss",
225
236
  "lobby/create",
226
237
  "lobby/join",
227
238
  "lobby/joinAllyTeam",
239
+ "lobby/joinBattle",
228
240
  "lobby/joinQueue",
241
+ "lobby/kickban",
229
242
  "lobby/leave",
230
243
  "lobby/removeBot",
231
244
  "lobby/spectate",
232
245
  "lobby/startBattle",
233
246
  "lobby/subscribeList",
247
+ "lobby/unboss",
234
248
  "lobby/unsubscribeList",
235
249
  "lobby/update",
236
250
  "lobby/updateBot",
@@ -252,6 +266,7 @@ var tachyonMeta = {
252
266
  "system/disconnect",
253
267
  "system/serverStats",
254
268
  "user/info",
269
+ "user/report",
255
270
  "user/subscribeUpdates",
256
271
  "user/unsubscribeUpdates"
257
272
  ],
@@ -283,15 +298,19 @@ var tachyonMeta = {
283
298
  "friend/remove",
284
299
  "friend/sendRequest",
285
300
  "lobby/addBot",
301
+ "lobby/appointBoss",
286
302
  "lobby/create",
287
303
  "lobby/join",
288
304
  "lobby/joinAllyTeam",
305
+ "lobby/joinBattle",
289
306
  "lobby/joinQueue",
307
+ "lobby/kickban",
290
308
  "lobby/leave",
291
309
  "lobby/removeBot",
292
310
  "lobby/spectate",
293
311
  "lobby/startBattle",
294
312
  "lobby/subscribeList",
313
+ "lobby/unboss",
295
314
  "lobby/unsubscribeList",
296
315
  "lobby/update",
297
316
  "lobby/updateBot",
@@ -313,6 +332,7 @@ var tachyonMeta = {
313
332
  "system/disconnect",
314
333
  "system/serverStats",
315
334
  "user/info",
335
+ "user/report",
316
336
  "user/subscribeUpdates",
317
337
  "user/unsubscribeUpdates"
318
338
  ]
@@ -442,10 +462,13 @@ var tachyonMeta = {
442
462
  ],
443
463
  "lobby": [
444
464
  "addBot",
465
+ "appointBoss",
445
466
  "create",
446
467
  "join",
447
468
  "joinAllyTeam",
469
+ "joinBattle",
448
470
  "joinQueue",
471
+ "kickban",
449
472
  "leave",
450
473
  "left",
451
474
  "listReset",
@@ -454,6 +477,7 @@ var tachyonMeta = {
454
477
  "spectate",
455
478
  "startBattle",
456
479
  "subscribeList",
480
+ "unboss",
457
481
  "unsubscribeList",
458
482
  "update",
459
483
  "updateBot",
@@ -497,6 +521,7 @@ var tachyonMeta = {
497
521
  ],
498
522
  "user": [
499
523
  "info",
524
+ "report",
500
525
  "self",
501
526
  "subscribeUpdates",
502
527
  "unsubscribeUpdates",
@@ -699,6 +724,13 @@ var tachyonMeta = {
699
724
  "invalid_request",
700
725
  "command_unimplemented"
701
726
  ],
727
+ "lobby/appointBoss": [
728
+ "bosses_not_allowed",
729
+ "internal_error",
730
+ "unauthorized",
731
+ "invalid_request",
732
+ "command_unimplemented"
733
+ ],
702
734
  "lobby/create": [
703
735
  "internal_error",
704
736
  "unauthorized",
@@ -707,6 +739,7 @@ var tachyonMeta = {
707
739
  ],
708
740
  "lobby/join": [
709
741
  "lobby_full",
742
+ "banned",
710
743
  "internal_error",
711
744
  "unauthorized",
712
745
  "invalid_request",
@@ -720,6 +753,15 @@ var tachyonMeta = {
720
753
  "invalid_request",
721
754
  "command_unimplemented"
722
755
  ],
756
+ "lobby/joinBattle": [
757
+ "not_in_lobby",
758
+ "no_battle",
759
+ "battle_full",
760
+ "internal_error",
761
+ "unauthorized",
762
+ "invalid_request",
763
+ "command_unimplemented"
764
+ ],
723
765
  "lobby/joinQueue": [
724
766
  "not_in_lobby",
725
767
  "internal_error",
@@ -727,6 +769,12 @@ var tachyonMeta = {
727
769
  "invalid_request",
728
770
  "command_unimplemented"
729
771
  ],
772
+ "lobby/kickban": [
773
+ "internal_error",
774
+ "unauthorized",
775
+ "invalid_request",
776
+ "command_unimplemented"
777
+ ],
730
778
  "lobby/leave": [
731
779
  "internal_error",
732
780
  "unauthorized",
@@ -760,6 +808,13 @@ var tachyonMeta = {
760
808
  "invalid_request",
761
809
  "command_unimplemented"
762
810
  ],
811
+ "lobby/unboss": [
812
+ "not_a_boss",
813
+ "internal_error",
814
+ "unauthorized",
815
+ "invalid_request",
816
+ "command_unimplemented"
817
+ ],
763
818
  "lobby/unsubscribeList": [
764
819
  "internal_error",
765
820
  "unauthorized",
@@ -901,6 +956,13 @@ var tachyonMeta = {
901
956
  "invalid_request",
902
957
  "command_unimplemented"
903
958
  ],
959
+ "user/report": [
960
+ "unknown_user",
961
+ "internal_error",
962
+ "unauthorized",
963
+ "invalid_request",
964
+ "command_unimplemented"
965
+ ],
904
966
  "user/subscribeUpdates": [
905
967
  "subscription_limit_reached",
906
968
  "internal_error",
package/dist/index.d.cts CHANGED
@@ -1,16 +1,16 @@
1
1
  import { TachyonCommand } from './types.cjs';
2
2
 
3
3
  declare const tachyonMeta: {
4
- readonly version: "1.19.0";
4
+ readonly version: "1.21.0";
5
5
  readonly schema: {
6
6
  readonly actors: {
7
7
  readonly server: {
8
8
  readonly request: {
9
9
  readonly send: readonly ["autohost/addPlayer", "autohost/installEngine", "autohost/kickPlayer", "autohost/kill", "autohost/mutePlayer", "autohost/sendCommand", "autohost/sendMessage", "autohost/specPlayers", "autohost/start", "autohost/subscribeUpdates", "battle/start"];
10
- readonly receive: readonly ["clan/accept", "clan/cancel", "clan/create", "clan/decline", "clan/delete", "clan/invite", "clan/kick", "clan/leave", "clan/setRole", "clan/update", "clan/view", "clan/viewList", "friend/acceptRequest", "friend/cancelRequest", "friend/list", "friend/rejectRequest", "friend/remove", "friend/sendRequest", "lobby/addBot", "lobby/create", "lobby/join", "lobby/joinAllyTeam", "lobby/joinQueue", "lobby/leave", "lobby/removeBot", "lobby/spectate", "lobby/startBattle", "lobby/subscribeList", "lobby/unsubscribeList", "lobby/update", "lobby/updateBot", "lobby/updateClientStatus", "lobby/voteSubmit", "matchmaking/cancel", "matchmaking/list", "matchmaking/queue", "matchmaking/ready", "messaging/send", "messaging/subscribeReceived", "party/acceptInvite", "party/cancelInvite", "party/create", "party/declineInvite", "party/invite", "party/kickMember", "party/leave", "system/disconnect", "system/serverStats", "user/info", "user/subscribeUpdates", "user/unsubscribeUpdates"];
10
+ readonly receive: readonly ["clan/accept", "clan/cancel", "clan/create", "clan/decline", "clan/delete", "clan/invite", "clan/kick", "clan/leave", "clan/setRole", "clan/update", "clan/view", "clan/viewList", "friend/acceptRequest", "friend/cancelRequest", "friend/list", "friend/rejectRequest", "friend/remove", "friend/sendRequest", "lobby/addBot", "lobby/appointBoss", "lobby/create", "lobby/join", "lobby/joinAllyTeam", "lobby/joinBattle", "lobby/joinQueue", "lobby/kickban", "lobby/leave", "lobby/removeBot", "lobby/spectate", "lobby/startBattle", "lobby/subscribeList", "lobby/unboss", "lobby/unsubscribeList", "lobby/update", "lobby/updateBot", "lobby/updateClientStatus", "lobby/voteSubmit", "matchmaking/cancel", "matchmaking/list", "matchmaking/queue", "matchmaking/ready", "messaging/send", "messaging/subscribeReceived", "party/acceptInvite", "party/cancelInvite", "party/create", "party/declineInvite", "party/invite", "party/kickMember", "party/leave", "system/disconnect", "system/serverStats", "user/info", "user/report", "user/subscribeUpdates", "user/unsubscribeUpdates"];
11
11
  };
12
12
  readonly response: {
13
- readonly send: readonly ["clan/accept", "clan/cancel", "clan/create", "clan/decline", "clan/delete", "clan/invite", "clan/kick", "clan/leave", "clan/setRole", "clan/update", "clan/view", "clan/viewList", "friend/acceptRequest", "friend/cancelRequest", "friend/list", "friend/rejectRequest", "friend/remove", "friend/sendRequest", "lobby/addBot", "lobby/create", "lobby/join", "lobby/joinAllyTeam", "lobby/joinQueue", "lobby/leave", "lobby/removeBot", "lobby/spectate", "lobby/startBattle", "lobby/subscribeList", "lobby/unsubscribeList", "lobby/update", "lobby/updateBot", "lobby/updateClientStatus", "lobby/voteSubmit", "matchmaking/cancel", "matchmaking/list", "matchmaking/queue", "matchmaking/ready", "messaging/send", "messaging/subscribeReceived", "party/acceptInvite", "party/cancelInvite", "party/create", "party/declineInvite", "party/invite", "party/kickMember", "party/leave", "system/disconnect", "system/serverStats", "user/info", "user/subscribeUpdates", "user/unsubscribeUpdates"];
13
+ readonly send: readonly ["clan/accept", "clan/cancel", "clan/create", "clan/decline", "clan/delete", "clan/invite", "clan/kick", "clan/leave", "clan/setRole", "clan/update", "clan/view", "clan/viewList", "friend/acceptRequest", "friend/cancelRequest", "friend/list", "friend/rejectRequest", "friend/remove", "friend/sendRequest", "lobby/addBot", "lobby/appointBoss", "lobby/create", "lobby/join", "lobby/joinAllyTeam", "lobby/joinBattle", "lobby/joinQueue", "lobby/kickban", "lobby/leave", "lobby/removeBot", "lobby/spectate", "lobby/startBattle", "lobby/subscribeList", "lobby/unboss", "lobby/unsubscribeList", "lobby/update", "lobby/updateBot", "lobby/updateClientStatus", "lobby/voteSubmit", "matchmaking/cancel", "matchmaking/list", "matchmaking/queue", "matchmaking/ready", "messaging/send", "messaging/subscribeReceived", "party/acceptInvite", "party/cancelInvite", "party/create", "party/declineInvite", "party/invite", "party/kickMember", "party/leave", "system/disconnect", "system/serverStats", "user/info", "user/report", "user/subscribeUpdates", "user/unsubscribeUpdates"];
14
14
  readonly receive: readonly ["autohost/addPlayer", "autohost/installEngine", "autohost/kickPlayer", "autohost/kill", "autohost/mutePlayer", "autohost/sendCommand", "autohost/sendMessage", "autohost/specPlayers", "autohost/start", "autohost/subscribeUpdates", "battle/start"];
15
15
  };
16
16
  readonly event: {
@@ -20,12 +20,12 @@ declare const tachyonMeta: {
20
20
  };
21
21
  readonly user: {
22
22
  readonly request: {
23
- readonly send: readonly ["clan/accept", "clan/cancel", "clan/create", "clan/decline", "clan/delete", "clan/invite", "clan/kick", "clan/leave", "clan/setRole", "clan/update", "clan/view", "clan/viewList", "friend/acceptRequest", "friend/cancelRequest", "friend/list", "friend/rejectRequest", "friend/remove", "friend/sendRequest", "lobby/addBot", "lobby/create", "lobby/join", "lobby/joinAllyTeam", "lobby/joinQueue", "lobby/leave", "lobby/removeBot", "lobby/spectate", "lobby/startBattle", "lobby/subscribeList", "lobby/unsubscribeList", "lobby/update", "lobby/updateBot", "lobby/updateClientStatus", "lobby/voteSubmit", "matchmaking/cancel", "matchmaking/list", "matchmaking/queue", "matchmaking/ready", "messaging/send", "messaging/subscribeReceived", "party/acceptInvite", "party/cancelInvite", "party/create", "party/declineInvite", "party/invite", "party/kickMember", "party/leave", "system/disconnect", "system/serverStats", "user/info", "user/subscribeUpdates", "user/unsubscribeUpdates"];
23
+ readonly send: readonly ["clan/accept", "clan/cancel", "clan/create", "clan/decline", "clan/delete", "clan/invite", "clan/kick", "clan/leave", "clan/setRole", "clan/update", "clan/view", "clan/viewList", "friend/acceptRequest", "friend/cancelRequest", "friend/list", "friend/rejectRequest", "friend/remove", "friend/sendRequest", "lobby/addBot", "lobby/appointBoss", "lobby/create", "lobby/join", "lobby/joinAllyTeam", "lobby/joinBattle", "lobby/joinQueue", "lobby/kickban", "lobby/leave", "lobby/removeBot", "lobby/spectate", "lobby/startBattle", "lobby/subscribeList", "lobby/unboss", "lobby/unsubscribeList", "lobby/update", "lobby/updateBot", "lobby/updateClientStatus", "lobby/voteSubmit", "matchmaking/cancel", "matchmaking/list", "matchmaking/queue", "matchmaking/ready", "messaging/send", "messaging/subscribeReceived", "party/acceptInvite", "party/cancelInvite", "party/create", "party/declineInvite", "party/invite", "party/kickMember", "party/leave", "system/disconnect", "system/serverStats", "user/info", "user/report", "user/subscribeUpdates", "user/unsubscribeUpdates"];
24
24
  readonly receive: readonly ["battle/start"];
25
25
  };
26
26
  readonly response: {
27
27
  readonly send: readonly ["battle/start"];
28
- readonly receive: readonly ["clan/accept", "clan/cancel", "clan/create", "clan/decline", "clan/delete", "clan/invite", "clan/kick", "clan/leave", "clan/setRole", "clan/update", "clan/view", "clan/viewList", "friend/acceptRequest", "friend/cancelRequest", "friend/list", "friend/rejectRequest", "friend/remove", "friend/sendRequest", "lobby/addBot", "lobby/create", "lobby/join", "lobby/joinAllyTeam", "lobby/joinQueue", "lobby/leave", "lobby/removeBot", "lobby/spectate", "lobby/startBattle", "lobby/subscribeList", "lobby/unsubscribeList", "lobby/update", "lobby/updateBot", "lobby/updateClientStatus", "lobby/voteSubmit", "matchmaking/cancel", "matchmaking/list", "matchmaking/queue", "matchmaking/ready", "messaging/send", "messaging/subscribeReceived", "party/acceptInvite", "party/cancelInvite", "party/create", "party/declineInvite", "party/invite", "party/kickMember", "party/leave", "system/disconnect", "system/serverStats", "user/info", "user/subscribeUpdates", "user/unsubscribeUpdates"];
28
+ readonly receive: readonly ["clan/accept", "clan/cancel", "clan/create", "clan/decline", "clan/delete", "clan/invite", "clan/kick", "clan/leave", "clan/setRole", "clan/update", "clan/view", "clan/viewList", "friend/acceptRequest", "friend/cancelRequest", "friend/list", "friend/rejectRequest", "friend/remove", "friend/sendRequest", "lobby/addBot", "lobby/appointBoss", "lobby/create", "lobby/join", "lobby/joinAllyTeam", "lobby/joinBattle", "lobby/joinQueue", "lobby/kickban", "lobby/leave", "lobby/removeBot", "lobby/spectate", "lobby/startBattle", "lobby/subscribeList", "lobby/unboss", "lobby/unsubscribeList", "lobby/update", "lobby/updateBot", "lobby/updateClientStatus", "lobby/voteSubmit", "matchmaking/cancel", "matchmaking/list", "matchmaking/queue", "matchmaking/ready", "messaging/send", "messaging/subscribeReceived", "party/acceptInvite", "party/cancelInvite", "party/create", "party/declineInvite", "party/invite", "party/kickMember", "party/leave", "system/disconnect", "system/serverStats", "user/info", "user/report", "user/subscribeUpdates", "user/unsubscribeUpdates"];
29
29
  };
30
30
  readonly event: {
31
31
  readonly send: readonly [];
@@ -52,12 +52,12 @@ declare const tachyonMeta: {
52
52
  readonly battle: readonly ["start"];
53
53
  readonly clan: readonly ["accept", "cancel", "create", "decline", "delete", "deleted", "invite", "invited", "kick", "kicked", "leave", "roleChanged", "setRole", "update", "updated", "view", "viewList"];
54
54
  readonly friend: readonly ["acceptRequest", "cancelRequest", "list", "rejectRequest", "remove", "removed", "requestAccepted", "requestCancelled", "requestReceived", "requestRejected", "sendRequest"];
55
- readonly lobby: readonly ["addBot", "create", "join", "joinAllyTeam", "joinQueue", "leave", "left", "listReset", "listUpdated", "removeBot", "spectate", "startBattle", "subscribeList", "unsubscribeList", "update", "updateBot", "updateClientStatus", "updated", "voteEnded", "voteSubmit"];
55
+ readonly lobby: readonly ["addBot", "appointBoss", "create", "join", "joinAllyTeam", "joinBattle", "joinQueue", "kickban", "leave", "left", "listReset", "listUpdated", "removeBot", "spectate", "startBattle", "subscribeList", "unboss", "unsubscribeList", "update", "updateBot", "updateClientStatus", "updated", "voteEnded", "voteSubmit"];
56
56
  readonly matchmaking: readonly ["cancel", "cancelled", "found", "foundUpdate", "list", "lost", "queue", "queueUpdate", "queuesJoined", "ready"];
57
57
  readonly messaging: readonly ["received", "send", "subscribeReceived"];
58
58
  readonly party: readonly ["acceptInvite", "cancelInvite", "create", "declineInvite", "invite", "invited", "kickMember", "leave", "removed", "updated"];
59
59
  readonly system: readonly ["disconnect", "serverStats"];
60
- readonly user: readonly ["info", "self", "subscribeUpdates", "unsubscribeUpdates", "updated"];
60
+ readonly user: readonly ["info", "report", "self", "subscribeUpdates", "unsubscribeUpdates", "updated"];
61
61
  };
62
62
  readonly failedReasons: {
63
63
  readonly "autohost/addPlayer": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
@@ -90,15 +90,19 @@ declare const tachyonMeta: {
90
90
  readonly "friend/remove": readonly ["invalid_user", "not_in_friendlist", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
91
91
  readonly "friend/sendRequest": readonly ["invalid_user", "already_in_friendlist", "outgoing_capacity_reached", "incoming_capacity_reached", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
92
92
  readonly "lobby/addBot": readonly ["not_in_lobby", "ally_team_full", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
93
+ readonly "lobby/appointBoss": readonly ["bosses_not_allowed", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
93
94
  readonly "lobby/create": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
94
- readonly "lobby/join": readonly ["lobby_full", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
95
+ readonly "lobby/join": readonly ["lobby_full", "banned", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
95
96
  readonly "lobby/joinAllyTeam": readonly ["not_in_lobby", "ally_team_full", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
97
+ readonly "lobby/joinBattle": readonly ["not_in_lobby", "no_battle", "battle_full", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
96
98
  readonly "lobby/joinQueue": readonly ["not_in_lobby", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
99
+ readonly "lobby/kickban": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
97
100
  readonly "lobby/leave": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
98
101
  readonly "lobby/removeBot": readonly ["not_in_lobby", "invalid_bot", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
99
102
  readonly "lobby/spectate": readonly ["not_in_lobby", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
100
103
  readonly "lobby/startBattle": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
101
104
  readonly "lobby/subscribeList": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
105
+ readonly "lobby/unboss": readonly ["not_a_boss", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
102
106
  readonly "lobby/unsubscribeList": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
103
107
  readonly "lobby/update": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
104
108
  readonly "lobby/updateBot": readonly ["not_in_lobby", "invalid_bot", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
@@ -120,6 +124,7 @@ declare const tachyonMeta: {
120
124
  readonly "system/disconnect": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
121
125
  readonly "system/serverStats": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
122
126
  readonly "user/info": readonly ["unknown_user", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
127
+ readonly "user/report": readonly ["unknown_user", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
123
128
  readonly "user/subscribeUpdates": readonly ["subscription_limit_reached", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
124
129
  readonly "user/unsubscribeUpdates": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
125
130
  };
package/dist/index.d.ts CHANGED
@@ -1,16 +1,16 @@
1
1
  import { TachyonCommand } from './types.js';
2
2
 
3
3
  declare const tachyonMeta: {
4
- readonly version: "1.19.0";
4
+ readonly version: "1.21.0";
5
5
  readonly schema: {
6
6
  readonly actors: {
7
7
  readonly server: {
8
8
  readonly request: {
9
9
  readonly send: readonly ["autohost/addPlayer", "autohost/installEngine", "autohost/kickPlayer", "autohost/kill", "autohost/mutePlayer", "autohost/sendCommand", "autohost/sendMessage", "autohost/specPlayers", "autohost/start", "autohost/subscribeUpdates", "battle/start"];
10
- readonly receive: readonly ["clan/accept", "clan/cancel", "clan/create", "clan/decline", "clan/delete", "clan/invite", "clan/kick", "clan/leave", "clan/setRole", "clan/update", "clan/view", "clan/viewList", "friend/acceptRequest", "friend/cancelRequest", "friend/list", "friend/rejectRequest", "friend/remove", "friend/sendRequest", "lobby/addBot", "lobby/create", "lobby/join", "lobby/joinAllyTeam", "lobby/joinQueue", "lobby/leave", "lobby/removeBot", "lobby/spectate", "lobby/startBattle", "lobby/subscribeList", "lobby/unsubscribeList", "lobby/update", "lobby/updateBot", "lobby/updateClientStatus", "lobby/voteSubmit", "matchmaking/cancel", "matchmaking/list", "matchmaking/queue", "matchmaking/ready", "messaging/send", "messaging/subscribeReceived", "party/acceptInvite", "party/cancelInvite", "party/create", "party/declineInvite", "party/invite", "party/kickMember", "party/leave", "system/disconnect", "system/serverStats", "user/info", "user/subscribeUpdates", "user/unsubscribeUpdates"];
10
+ readonly receive: readonly ["clan/accept", "clan/cancel", "clan/create", "clan/decline", "clan/delete", "clan/invite", "clan/kick", "clan/leave", "clan/setRole", "clan/update", "clan/view", "clan/viewList", "friend/acceptRequest", "friend/cancelRequest", "friend/list", "friend/rejectRequest", "friend/remove", "friend/sendRequest", "lobby/addBot", "lobby/appointBoss", "lobby/create", "lobby/join", "lobby/joinAllyTeam", "lobby/joinBattle", "lobby/joinQueue", "lobby/kickban", "lobby/leave", "lobby/removeBot", "lobby/spectate", "lobby/startBattle", "lobby/subscribeList", "lobby/unboss", "lobby/unsubscribeList", "lobby/update", "lobby/updateBot", "lobby/updateClientStatus", "lobby/voteSubmit", "matchmaking/cancel", "matchmaking/list", "matchmaking/queue", "matchmaking/ready", "messaging/send", "messaging/subscribeReceived", "party/acceptInvite", "party/cancelInvite", "party/create", "party/declineInvite", "party/invite", "party/kickMember", "party/leave", "system/disconnect", "system/serverStats", "user/info", "user/report", "user/subscribeUpdates", "user/unsubscribeUpdates"];
11
11
  };
12
12
  readonly response: {
13
- readonly send: readonly ["clan/accept", "clan/cancel", "clan/create", "clan/decline", "clan/delete", "clan/invite", "clan/kick", "clan/leave", "clan/setRole", "clan/update", "clan/view", "clan/viewList", "friend/acceptRequest", "friend/cancelRequest", "friend/list", "friend/rejectRequest", "friend/remove", "friend/sendRequest", "lobby/addBot", "lobby/create", "lobby/join", "lobby/joinAllyTeam", "lobby/joinQueue", "lobby/leave", "lobby/removeBot", "lobby/spectate", "lobby/startBattle", "lobby/subscribeList", "lobby/unsubscribeList", "lobby/update", "lobby/updateBot", "lobby/updateClientStatus", "lobby/voteSubmit", "matchmaking/cancel", "matchmaking/list", "matchmaking/queue", "matchmaking/ready", "messaging/send", "messaging/subscribeReceived", "party/acceptInvite", "party/cancelInvite", "party/create", "party/declineInvite", "party/invite", "party/kickMember", "party/leave", "system/disconnect", "system/serverStats", "user/info", "user/subscribeUpdates", "user/unsubscribeUpdates"];
13
+ readonly send: readonly ["clan/accept", "clan/cancel", "clan/create", "clan/decline", "clan/delete", "clan/invite", "clan/kick", "clan/leave", "clan/setRole", "clan/update", "clan/view", "clan/viewList", "friend/acceptRequest", "friend/cancelRequest", "friend/list", "friend/rejectRequest", "friend/remove", "friend/sendRequest", "lobby/addBot", "lobby/appointBoss", "lobby/create", "lobby/join", "lobby/joinAllyTeam", "lobby/joinBattle", "lobby/joinQueue", "lobby/kickban", "lobby/leave", "lobby/removeBot", "lobby/spectate", "lobby/startBattle", "lobby/subscribeList", "lobby/unboss", "lobby/unsubscribeList", "lobby/update", "lobby/updateBot", "lobby/updateClientStatus", "lobby/voteSubmit", "matchmaking/cancel", "matchmaking/list", "matchmaking/queue", "matchmaking/ready", "messaging/send", "messaging/subscribeReceived", "party/acceptInvite", "party/cancelInvite", "party/create", "party/declineInvite", "party/invite", "party/kickMember", "party/leave", "system/disconnect", "system/serverStats", "user/info", "user/report", "user/subscribeUpdates", "user/unsubscribeUpdates"];
14
14
  readonly receive: readonly ["autohost/addPlayer", "autohost/installEngine", "autohost/kickPlayer", "autohost/kill", "autohost/mutePlayer", "autohost/sendCommand", "autohost/sendMessage", "autohost/specPlayers", "autohost/start", "autohost/subscribeUpdates", "battle/start"];
15
15
  };
16
16
  readonly event: {
@@ -20,12 +20,12 @@ declare const tachyonMeta: {
20
20
  };
21
21
  readonly user: {
22
22
  readonly request: {
23
- readonly send: readonly ["clan/accept", "clan/cancel", "clan/create", "clan/decline", "clan/delete", "clan/invite", "clan/kick", "clan/leave", "clan/setRole", "clan/update", "clan/view", "clan/viewList", "friend/acceptRequest", "friend/cancelRequest", "friend/list", "friend/rejectRequest", "friend/remove", "friend/sendRequest", "lobby/addBot", "lobby/create", "lobby/join", "lobby/joinAllyTeam", "lobby/joinQueue", "lobby/leave", "lobby/removeBot", "lobby/spectate", "lobby/startBattle", "lobby/subscribeList", "lobby/unsubscribeList", "lobby/update", "lobby/updateBot", "lobby/updateClientStatus", "lobby/voteSubmit", "matchmaking/cancel", "matchmaking/list", "matchmaking/queue", "matchmaking/ready", "messaging/send", "messaging/subscribeReceived", "party/acceptInvite", "party/cancelInvite", "party/create", "party/declineInvite", "party/invite", "party/kickMember", "party/leave", "system/disconnect", "system/serverStats", "user/info", "user/subscribeUpdates", "user/unsubscribeUpdates"];
23
+ readonly send: readonly ["clan/accept", "clan/cancel", "clan/create", "clan/decline", "clan/delete", "clan/invite", "clan/kick", "clan/leave", "clan/setRole", "clan/update", "clan/view", "clan/viewList", "friend/acceptRequest", "friend/cancelRequest", "friend/list", "friend/rejectRequest", "friend/remove", "friend/sendRequest", "lobby/addBot", "lobby/appointBoss", "lobby/create", "lobby/join", "lobby/joinAllyTeam", "lobby/joinBattle", "lobby/joinQueue", "lobby/kickban", "lobby/leave", "lobby/removeBot", "lobby/spectate", "lobby/startBattle", "lobby/subscribeList", "lobby/unboss", "lobby/unsubscribeList", "lobby/update", "lobby/updateBot", "lobby/updateClientStatus", "lobby/voteSubmit", "matchmaking/cancel", "matchmaking/list", "matchmaking/queue", "matchmaking/ready", "messaging/send", "messaging/subscribeReceived", "party/acceptInvite", "party/cancelInvite", "party/create", "party/declineInvite", "party/invite", "party/kickMember", "party/leave", "system/disconnect", "system/serverStats", "user/info", "user/report", "user/subscribeUpdates", "user/unsubscribeUpdates"];
24
24
  readonly receive: readonly ["battle/start"];
25
25
  };
26
26
  readonly response: {
27
27
  readonly send: readonly ["battle/start"];
28
- readonly receive: readonly ["clan/accept", "clan/cancel", "clan/create", "clan/decline", "clan/delete", "clan/invite", "clan/kick", "clan/leave", "clan/setRole", "clan/update", "clan/view", "clan/viewList", "friend/acceptRequest", "friend/cancelRequest", "friend/list", "friend/rejectRequest", "friend/remove", "friend/sendRequest", "lobby/addBot", "lobby/create", "lobby/join", "lobby/joinAllyTeam", "lobby/joinQueue", "lobby/leave", "lobby/removeBot", "lobby/spectate", "lobby/startBattle", "lobby/subscribeList", "lobby/unsubscribeList", "lobby/update", "lobby/updateBot", "lobby/updateClientStatus", "lobby/voteSubmit", "matchmaking/cancel", "matchmaking/list", "matchmaking/queue", "matchmaking/ready", "messaging/send", "messaging/subscribeReceived", "party/acceptInvite", "party/cancelInvite", "party/create", "party/declineInvite", "party/invite", "party/kickMember", "party/leave", "system/disconnect", "system/serverStats", "user/info", "user/subscribeUpdates", "user/unsubscribeUpdates"];
28
+ readonly receive: readonly ["clan/accept", "clan/cancel", "clan/create", "clan/decline", "clan/delete", "clan/invite", "clan/kick", "clan/leave", "clan/setRole", "clan/update", "clan/view", "clan/viewList", "friend/acceptRequest", "friend/cancelRequest", "friend/list", "friend/rejectRequest", "friend/remove", "friend/sendRequest", "lobby/addBot", "lobby/appointBoss", "lobby/create", "lobby/join", "lobby/joinAllyTeam", "lobby/joinBattle", "lobby/joinQueue", "lobby/kickban", "lobby/leave", "lobby/removeBot", "lobby/spectate", "lobby/startBattle", "lobby/subscribeList", "lobby/unboss", "lobby/unsubscribeList", "lobby/update", "lobby/updateBot", "lobby/updateClientStatus", "lobby/voteSubmit", "matchmaking/cancel", "matchmaking/list", "matchmaking/queue", "matchmaking/ready", "messaging/send", "messaging/subscribeReceived", "party/acceptInvite", "party/cancelInvite", "party/create", "party/declineInvite", "party/invite", "party/kickMember", "party/leave", "system/disconnect", "system/serverStats", "user/info", "user/report", "user/subscribeUpdates", "user/unsubscribeUpdates"];
29
29
  };
30
30
  readonly event: {
31
31
  readonly send: readonly [];
@@ -52,12 +52,12 @@ declare const tachyonMeta: {
52
52
  readonly battle: readonly ["start"];
53
53
  readonly clan: readonly ["accept", "cancel", "create", "decline", "delete", "deleted", "invite", "invited", "kick", "kicked", "leave", "roleChanged", "setRole", "update", "updated", "view", "viewList"];
54
54
  readonly friend: readonly ["acceptRequest", "cancelRequest", "list", "rejectRequest", "remove", "removed", "requestAccepted", "requestCancelled", "requestReceived", "requestRejected", "sendRequest"];
55
- readonly lobby: readonly ["addBot", "create", "join", "joinAllyTeam", "joinQueue", "leave", "left", "listReset", "listUpdated", "removeBot", "spectate", "startBattle", "subscribeList", "unsubscribeList", "update", "updateBot", "updateClientStatus", "updated", "voteEnded", "voteSubmit"];
55
+ readonly lobby: readonly ["addBot", "appointBoss", "create", "join", "joinAllyTeam", "joinBattle", "joinQueue", "kickban", "leave", "left", "listReset", "listUpdated", "removeBot", "spectate", "startBattle", "subscribeList", "unboss", "unsubscribeList", "update", "updateBot", "updateClientStatus", "updated", "voteEnded", "voteSubmit"];
56
56
  readonly matchmaking: readonly ["cancel", "cancelled", "found", "foundUpdate", "list", "lost", "queue", "queueUpdate", "queuesJoined", "ready"];
57
57
  readonly messaging: readonly ["received", "send", "subscribeReceived"];
58
58
  readonly party: readonly ["acceptInvite", "cancelInvite", "create", "declineInvite", "invite", "invited", "kickMember", "leave", "removed", "updated"];
59
59
  readonly system: readonly ["disconnect", "serverStats"];
60
- readonly user: readonly ["info", "self", "subscribeUpdates", "unsubscribeUpdates", "updated"];
60
+ readonly user: readonly ["info", "report", "self", "subscribeUpdates", "unsubscribeUpdates", "updated"];
61
61
  };
62
62
  readonly failedReasons: {
63
63
  readonly "autohost/addPlayer": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
@@ -90,15 +90,19 @@ declare const tachyonMeta: {
90
90
  readonly "friend/remove": readonly ["invalid_user", "not_in_friendlist", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
91
91
  readonly "friend/sendRequest": readonly ["invalid_user", "already_in_friendlist", "outgoing_capacity_reached", "incoming_capacity_reached", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
92
92
  readonly "lobby/addBot": readonly ["not_in_lobby", "ally_team_full", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
93
+ readonly "lobby/appointBoss": readonly ["bosses_not_allowed", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
93
94
  readonly "lobby/create": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
94
- readonly "lobby/join": readonly ["lobby_full", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
95
+ readonly "lobby/join": readonly ["lobby_full", "banned", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
95
96
  readonly "lobby/joinAllyTeam": readonly ["not_in_lobby", "ally_team_full", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
97
+ readonly "lobby/joinBattle": readonly ["not_in_lobby", "no_battle", "battle_full", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
96
98
  readonly "lobby/joinQueue": readonly ["not_in_lobby", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
99
+ readonly "lobby/kickban": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
97
100
  readonly "lobby/leave": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
98
101
  readonly "lobby/removeBot": readonly ["not_in_lobby", "invalid_bot", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
99
102
  readonly "lobby/spectate": readonly ["not_in_lobby", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
100
103
  readonly "lobby/startBattle": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
101
104
  readonly "lobby/subscribeList": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
105
+ readonly "lobby/unboss": readonly ["not_a_boss", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
102
106
  readonly "lobby/unsubscribeList": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
103
107
  readonly "lobby/update": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
104
108
  readonly "lobby/updateBot": readonly ["not_in_lobby", "invalid_bot", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
@@ -120,6 +124,7 @@ declare const tachyonMeta: {
120
124
  readonly "system/disconnect": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
121
125
  readonly "system/serverStats": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
122
126
  readonly "user/info": readonly ["unknown_user", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
127
+ readonly "user/report": readonly ["unknown_user", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
123
128
  readonly "user/subscribeUpdates": readonly ["subscription_limit_reached", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
124
129
  readonly "user/unsubscribeUpdates": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
125
130
  };