tachyon-protocol 1.11.0 → 1.12.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/README.md +2 -0
- package/dist/index.d.mts +24 -9
- package/dist/index.d.ts +24 -9
- package/dist/index.js +189 -2
- package/dist/index.mjs +189 -2
- package/dist/types.d.mts +440 -6
- package/dist/types.d.ts +440 -6
- package/dist/validators.d.mts +116 -2
- package/dist/validators.d.ts +116 -2
- package/dist/validators.js +1 -1
- package/dist/validators.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -94,8 +94,10 @@ Every event command contains these additional properties:
|
|
|
94
94
|
<!-- COMMAND_SCHEMA_PLACEHOLDER_START_DO_NOT_REMOVE -->
|
|
95
95
|
- [autohost](docs/schema/autohost.md)
|
|
96
96
|
- [battle](docs/schema/battle.md)
|
|
97
|
+
- [friend](docs/schema/friend.md)
|
|
97
98
|
- [matchmaking](docs/schema/matchmaking.md)
|
|
98
99
|
- [messaging](docs/schema/messaging.md)
|
|
100
|
+
- [party](docs/schema/party.md)
|
|
99
101
|
- [system](docs/schema/system.md)
|
|
100
102
|
- [user](docs/schema/user.md)
|
|
101
103
|
<!-- COMMAND_SCHEMA_PLACEHOLDER_END_DO_NOT_REMOVE -->
|
package/dist/index.d.mts
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import { TachyonCommand } from './types.mjs';
|
|
2
2
|
|
|
3
3
|
declare const tachyonMeta: {
|
|
4
|
-
readonly version: "1.
|
|
4
|
+
readonly version: "1.12.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 ["matchmaking/cancel", "matchmaking/list", "matchmaking/queue", "matchmaking/ready", "messaging/send", "messaging/subscribeReceived", "system/disconnect", "system/serverStats", "user/info", "user/subscribeUpdates", "user/unsubscribeUpdates"];
|
|
10
|
+
readonly receive: readonly ["friend/acceptRequest", "friend/cancelRequest", "friend/list", "friend/rejectRequest", "friend/remove", "friend/sendRequest", "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"];
|
|
11
11
|
};
|
|
12
12
|
readonly response: {
|
|
13
|
-
readonly send: readonly ["matchmaking/cancel", "matchmaking/list", "matchmaking/queue", "matchmaking/ready", "messaging/send", "messaging/subscribeReceived", "system/disconnect", "system/serverStats", "user/info", "user/subscribeUpdates", "user/unsubscribeUpdates"];
|
|
13
|
+
readonly send: readonly ["friend/acceptRequest", "friend/cancelRequest", "friend/list", "friend/rejectRequest", "friend/remove", "friend/sendRequest", "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"];
|
|
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: {
|
|
17
|
-
readonly send: readonly ["matchmaking/cancelled", "matchmaking/found", "matchmaking/foundUpdate", "matchmaking/lost", "matchmaking/queueUpdate", "messaging/received", "user/self", "user/updated"];
|
|
17
|
+
readonly send: readonly ["friend/removed", "friend/requestAccepted", "friend/requestCancelled", "friend/requestReceived", "friend/requestRejected", "matchmaking/cancelled", "matchmaking/found", "matchmaking/foundUpdate", "matchmaking/lost", "matchmaking/queueUpdate", "matchmaking/queuesJoined", "messaging/received", "party/invited", "party/removed", "party/updated", "user/self", "user/updated"];
|
|
18
18
|
readonly receive: readonly ["autohost/status", "autohost/update"];
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
21
|
readonly user: {
|
|
22
22
|
readonly request: {
|
|
23
|
-
readonly send: readonly ["matchmaking/cancel", "matchmaking/list", "matchmaking/queue", "matchmaking/ready", "messaging/send", "messaging/subscribeReceived", "system/disconnect", "system/serverStats", "user/info", "user/subscribeUpdates", "user/unsubscribeUpdates"];
|
|
23
|
+
readonly send: readonly ["friend/acceptRequest", "friend/cancelRequest", "friend/list", "friend/rejectRequest", "friend/remove", "friend/sendRequest", "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"];
|
|
24
24
|
readonly receive: readonly ["battle/start"];
|
|
25
25
|
};
|
|
26
26
|
readonly response: {
|
|
27
27
|
readonly send: readonly ["battle/start"];
|
|
28
|
-
readonly receive: readonly ["matchmaking/cancel", "matchmaking/list", "matchmaking/queue", "matchmaking/ready", "messaging/send", "messaging/subscribeReceived", "system/disconnect", "system/serverStats", "user/info", "user/subscribeUpdates", "user/unsubscribeUpdates"];
|
|
28
|
+
readonly receive: readonly ["friend/acceptRequest", "friend/cancelRequest", "friend/list", "friend/rejectRequest", "friend/remove", "friend/sendRequest", "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"];
|
|
29
29
|
};
|
|
30
30
|
readonly event: {
|
|
31
31
|
readonly send: readonly [];
|
|
32
|
-
readonly receive: readonly ["matchmaking/cancelled", "matchmaking/found", "matchmaking/foundUpdate", "matchmaking/lost", "matchmaking/queueUpdate", "messaging/received", "user/self", "user/updated"];
|
|
32
|
+
readonly receive: readonly ["friend/removed", "friend/requestAccepted", "friend/requestCancelled", "friend/requestReceived", "friend/requestRejected", "matchmaking/cancelled", "matchmaking/found", "matchmaking/foundUpdate", "matchmaking/lost", "matchmaking/queueUpdate", "matchmaking/queuesJoined", "messaging/received", "party/invited", "party/removed", "party/updated", "user/self", "user/updated"];
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
35
|
readonly autohost: {
|
|
@@ -50,8 +50,10 @@ declare const tachyonMeta: {
|
|
|
50
50
|
readonly serviceIds: {
|
|
51
51
|
readonly autohost: readonly ["addPlayer", "installEngine", "kickPlayer", "kill", "mutePlayer", "sendCommand", "sendMessage", "specPlayers", "start", "status", "subscribeUpdates", "update"];
|
|
52
52
|
readonly battle: readonly ["start"];
|
|
53
|
-
readonly
|
|
53
|
+
readonly friend: readonly ["acceptRequest", "cancelRequest", "list", "rejectRequest", "remove", "removed", "requestAccepted", "requestCancelled", "requestReceived", "requestRejected", "sendRequest"];
|
|
54
|
+
readonly matchmaking: readonly ["cancel", "cancelled", "found", "foundUpdate", "list", "lost", "queue", "queueUpdate", "queuesJoined", "ready"];
|
|
54
55
|
readonly messaging: readonly ["received", "send", "subscribeReceived"];
|
|
56
|
+
readonly party: readonly ["acceptInvite", "cancelInvite", "create", "declineInvite", "invite", "invited", "kickMember", "leave", "removed", "updated"];
|
|
55
57
|
readonly system: readonly ["disconnect", "serverStats"];
|
|
56
58
|
readonly user: readonly ["info", "self", "subscribeUpdates", "unsubscribeUpdates", "updated"];
|
|
57
59
|
};
|
|
@@ -67,12 +69,25 @@ declare const tachyonMeta: {
|
|
|
67
69
|
readonly "autohost/start": readonly ["battle_already_exists", "engine_version_not_available", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
|
68
70
|
readonly "autohost/subscribeUpdates": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
|
69
71
|
readonly "battle/start": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
|
72
|
+
readonly "friend/acceptRequest": readonly ["invalid_user", "no_pending_request", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
|
73
|
+
readonly "friend/cancelRequest": readonly ["invalid_user", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
|
74
|
+
readonly "friend/list": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
|
75
|
+
readonly "friend/rejectRequest": readonly ["invalid_user", "no_pending_request", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
|
76
|
+
readonly "friend/remove": readonly ["invalid_user", "not_in_friendlist", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
|
77
|
+
readonly "friend/sendRequest": readonly ["invalid_user", "already_in_friendlist", "outgoing_capacity_reached", "incoming_capacity_reached", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
|
70
78
|
readonly "matchmaking/cancel": readonly ["not_queued", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
|
71
79
|
readonly "matchmaking/list": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
|
72
|
-
readonly "matchmaking/queue": readonly ["invalid_queue_specified", "already_queued", "
|
|
80
|
+
readonly "matchmaking/queue": readonly ["invalid_queue_specified", "already_queued", "already_in_battle", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
|
73
81
|
readonly "matchmaking/ready": readonly ["no_match", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
|
74
82
|
readonly "messaging/send": readonly ["message_too_long", "invalid_target", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
|
75
83
|
readonly "messaging/subscribeReceived": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
|
84
|
+
readonly "party/acceptInvite": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
|
85
|
+
readonly "party/cancelInvite": readonly ["not_in_party", "invalid_invite", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
|
86
|
+
readonly "party/create": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
|
87
|
+
readonly "party/declineInvite": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
|
88
|
+
readonly "party/invite": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
|
89
|
+
readonly "party/kickMember": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
|
90
|
+
readonly "party/leave": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
|
76
91
|
readonly "system/disconnect": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
|
77
92
|
readonly "system/serverStats": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
|
78
93
|
readonly "user/info": readonly ["unknown_user", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
package/dist/index.d.ts
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import { TachyonCommand } from './types.js';
|
|
2
2
|
|
|
3
3
|
declare const tachyonMeta: {
|
|
4
|
-
readonly version: "1.
|
|
4
|
+
readonly version: "1.12.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 ["matchmaking/cancel", "matchmaking/list", "matchmaking/queue", "matchmaking/ready", "messaging/send", "messaging/subscribeReceived", "system/disconnect", "system/serverStats", "user/info", "user/subscribeUpdates", "user/unsubscribeUpdates"];
|
|
10
|
+
readonly receive: readonly ["friend/acceptRequest", "friend/cancelRequest", "friend/list", "friend/rejectRequest", "friend/remove", "friend/sendRequest", "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"];
|
|
11
11
|
};
|
|
12
12
|
readonly response: {
|
|
13
|
-
readonly send: readonly ["matchmaking/cancel", "matchmaking/list", "matchmaking/queue", "matchmaking/ready", "messaging/send", "messaging/subscribeReceived", "system/disconnect", "system/serverStats", "user/info", "user/subscribeUpdates", "user/unsubscribeUpdates"];
|
|
13
|
+
readonly send: readonly ["friend/acceptRequest", "friend/cancelRequest", "friend/list", "friend/rejectRequest", "friend/remove", "friend/sendRequest", "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"];
|
|
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: {
|
|
17
|
-
readonly send: readonly ["matchmaking/cancelled", "matchmaking/found", "matchmaking/foundUpdate", "matchmaking/lost", "matchmaking/queueUpdate", "messaging/received", "user/self", "user/updated"];
|
|
17
|
+
readonly send: readonly ["friend/removed", "friend/requestAccepted", "friend/requestCancelled", "friend/requestReceived", "friend/requestRejected", "matchmaking/cancelled", "matchmaking/found", "matchmaking/foundUpdate", "matchmaking/lost", "matchmaking/queueUpdate", "matchmaking/queuesJoined", "messaging/received", "party/invited", "party/removed", "party/updated", "user/self", "user/updated"];
|
|
18
18
|
readonly receive: readonly ["autohost/status", "autohost/update"];
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
21
|
readonly user: {
|
|
22
22
|
readonly request: {
|
|
23
|
-
readonly send: readonly ["matchmaking/cancel", "matchmaking/list", "matchmaking/queue", "matchmaking/ready", "messaging/send", "messaging/subscribeReceived", "system/disconnect", "system/serverStats", "user/info", "user/subscribeUpdates", "user/unsubscribeUpdates"];
|
|
23
|
+
readonly send: readonly ["friend/acceptRequest", "friend/cancelRequest", "friend/list", "friend/rejectRequest", "friend/remove", "friend/sendRequest", "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"];
|
|
24
24
|
readonly receive: readonly ["battle/start"];
|
|
25
25
|
};
|
|
26
26
|
readonly response: {
|
|
27
27
|
readonly send: readonly ["battle/start"];
|
|
28
|
-
readonly receive: readonly ["matchmaking/cancel", "matchmaking/list", "matchmaking/queue", "matchmaking/ready", "messaging/send", "messaging/subscribeReceived", "system/disconnect", "system/serverStats", "user/info", "user/subscribeUpdates", "user/unsubscribeUpdates"];
|
|
28
|
+
readonly receive: readonly ["friend/acceptRequest", "friend/cancelRequest", "friend/list", "friend/rejectRequest", "friend/remove", "friend/sendRequest", "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"];
|
|
29
29
|
};
|
|
30
30
|
readonly event: {
|
|
31
31
|
readonly send: readonly [];
|
|
32
|
-
readonly receive: readonly ["matchmaking/cancelled", "matchmaking/found", "matchmaking/foundUpdate", "matchmaking/lost", "matchmaking/queueUpdate", "messaging/received", "user/self", "user/updated"];
|
|
32
|
+
readonly receive: readonly ["friend/removed", "friend/requestAccepted", "friend/requestCancelled", "friend/requestReceived", "friend/requestRejected", "matchmaking/cancelled", "matchmaking/found", "matchmaking/foundUpdate", "matchmaking/lost", "matchmaking/queueUpdate", "matchmaking/queuesJoined", "messaging/received", "party/invited", "party/removed", "party/updated", "user/self", "user/updated"];
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
35
|
readonly autohost: {
|
|
@@ -50,8 +50,10 @@ declare const tachyonMeta: {
|
|
|
50
50
|
readonly serviceIds: {
|
|
51
51
|
readonly autohost: readonly ["addPlayer", "installEngine", "kickPlayer", "kill", "mutePlayer", "sendCommand", "sendMessage", "specPlayers", "start", "status", "subscribeUpdates", "update"];
|
|
52
52
|
readonly battle: readonly ["start"];
|
|
53
|
-
readonly
|
|
53
|
+
readonly friend: readonly ["acceptRequest", "cancelRequest", "list", "rejectRequest", "remove", "removed", "requestAccepted", "requestCancelled", "requestReceived", "requestRejected", "sendRequest"];
|
|
54
|
+
readonly matchmaking: readonly ["cancel", "cancelled", "found", "foundUpdate", "list", "lost", "queue", "queueUpdate", "queuesJoined", "ready"];
|
|
54
55
|
readonly messaging: readonly ["received", "send", "subscribeReceived"];
|
|
56
|
+
readonly party: readonly ["acceptInvite", "cancelInvite", "create", "declineInvite", "invite", "invited", "kickMember", "leave", "removed", "updated"];
|
|
55
57
|
readonly system: readonly ["disconnect", "serverStats"];
|
|
56
58
|
readonly user: readonly ["info", "self", "subscribeUpdates", "unsubscribeUpdates", "updated"];
|
|
57
59
|
};
|
|
@@ -67,12 +69,25 @@ declare const tachyonMeta: {
|
|
|
67
69
|
readonly "autohost/start": readonly ["battle_already_exists", "engine_version_not_available", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
|
68
70
|
readonly "autohost/subscribeUpdates": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
|
69
71
|
readonly "battle/start": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
|
72
|
+
readonly "friend/acceptRequest": readonly ["invalid_user", "no_pending_request", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
|
73
|
+
readonly "friend/cancelRequest": readonly ["invalid_user", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
|
74
|
+
readonly "friend/list": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
|
75
|
+
readonly "friend/rejectRequest": readonly ["invalid_user", "no_pending_request", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
|
76
|
+
readonly "friend/remove": readonly ["invalid_user", "not_in_friendlist", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
|
77
|
+
readonly "friend/sendRequest": readonly ["invalid_user", "already_in_friendlist", "outgoing_capacity_reached", "incoming_capacity_reached", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
|
70
78
|
readonly "matchmaking/cancel": readonly ["not_queued", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
|
71
79
|
readonly "matchmaking/list": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
|
72
|
-
readonly "matchmaking/queue": readonly ["invalid_queue_specified", "already_queued", "
|
|
80
|
+
readonly "matchmaking/queue": readonly ["invalid_queue_specified", "already_queued", "already_in_battle", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
|
73
81
|
readonly "matchmaking/ready": readonly ["no_match", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
|
74
82
|
readonly "messaging/send": readonly ["message_too_long", "invalid_target", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
|
75
83
|
readonly "messaging/subscribeReceived": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
|
84
|
+
readonly "party/acceptInvite": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
|
85
|
+
readonly "party/cancelInvite": readonly ["not_in_party", "invalid_invite", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
|
86
|
+
readonly "party/create": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
|
87
|
+
readonly "party/declineInvite": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
|
88
|
+
readonly "party/invite": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
|
89
|
+
readonly "party/kickMember": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
|
90
|
+
readonly "party/leave": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
|
76
91
|
readonly "system/disconnect": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
|
77
92
|
readonly "system/serverStats": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
|
78
93
|
readonly "user/info": readonly ["unknown_user", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
|
package/dist/index.js
CHANGED
|
@@ -24,7 +24,7 @@ __export(dist_exports, {
|
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(dist_exports);
|
|
26
26
|
var tachyonMeta = {
|
|
27
|
-
"version": "1.
|
|
27
|
+
"version": "1.12.0",
|
|
28
28
|
"schema": {
|
|
29
29
|
"actors": {
|
|
30
30
|
"server": {
|
|
@@ -43,12 +43,25 @@ var tachyonMeta = {
|
|
|
43
43
|
"battle/start"
|
|
44
44
|
],
|
|
45
45
|
"receive": [
|
|
46
|
+
"friend/acceptRequest",
|
|
47
|
+
"friend/cancelRequest",
|
|
48
|
+
"friend/list",
|
|
49
|
+
"friend/rejectRequest",
|
|
50
|
+
"friend/remove",
|
|
51
|
+
"friend/sendRequest",
|
|
46
52
|
"matchmaking/cancel",
|
|
47
53
|
"matchmaking/list",
|
|
48
54
|
"matchmaking/queue",
|
|
49
55
|
"matchmaking/ready",
|
|
50
56
|
"messaging/send",
|
|
51
57
|
"messaging/subscribeReceived",
|
|
58
|
+
"party/acceptInvite",
|
|
59
|
+
"party/cancelInvite",
|
|
60
|
+
"party/create",
|
|
61
|
+
"party/declineInvite",
|
|
62
|
+
"party/invite",
|
|
63
|
+
"party/kickMember",
|
|
64
|
+
"party/leave",
|
|
52
65
|
"system/disconnect",
|
|
53
66
|
"system/serverStats",
|
|
54
67
|
"user/info",
|
|
@@ -58,12 +71,25 @@ var tachyonMeta = {
|
|
|
58
71
|
},
|
|
59
72
|
"response": {
|
|
60
73
|
"send": [
|
|
74
|
+
"friend/acceptRequest",
|
|
75
|
+
"friend/cancelRequest",
|
|
76
|
+
"friend/list",
|
|
77
|
+
"friend/rejectRequest",
|
|
78
|
+
"friend/remove",
|
|
79
|
+
"friend/sendRequest",
|
|
61
80
|
"matchmaking/cancel",
|
|
62
81
|
"matchmaking/list",
|
|
63
82
|
"matchmaking/queue",
|
|
64
83
|
"matchmaking/ready",
|
|
65
84
|
"messaging/send",
|
|
66
85
|
"messaging/subscribeReceived",
|
|
86
|
+
"party/acceptInvite",
|
|
87
|
+
"party/cancelInvite",
|
|
88
|
+
"party/create",
|
|
89
|
+
"party/declineInvite",
|
|
90
|
+
"party/invite",
|
|
91
|
+
"party/kickMember",
|
|
92
|
+
"party/leave",
|
|
67
93
|
"system/disconnect",
|
|
68
94
|
"system/serverStats",
|
|
69
95
|
"user/info",
|
|
@@ -86,12 +112,21 @@ var tachyonMeta = {
|
|
|
86
112
|
},
|
|
87
113
|
"event": {
|
|
88
114
|
"send": [
|
|
115
|
+
"friend/removed",
|
|
116
|
+
"friend/requestAccepted",
|
|
117
|
+
"friend/requestCancelled",
|
|
118
|
+
"friend/requestReceived",
|
|
119
|
+
"friend/requestRejected",
|
|
89
120
|
"matchmaking/cancelled",
|
|
90
121
|
"matchmaking/found",
|
|
91
122
|
"matchmaking/foundUpdate",
|
|
92
123
|
"matchmaking/lost",
|
|
93
124
|
"matchmaking/queueUpdate",
|
|
125
|
+
"matchmaking/queuesJoined",
|
|
94
126
|
"messaging/received",
|
|
127
|
+
"party/invited",
|
|
128
|
+
"party/removed",
|
|
129
|
+
"party/updated",
|
|
95
130
|
"user/self",
|
|
96
131
|
"user/updated"
|
|
97
132
|
],
|
|
@@ -104,12 +139,25 @@ var tachyonMeta = {
|
|
|
104
139
|
"user": {
|
|
105
140
|
"request": {
|
|
106
141
|
"send": [
|
|
142
|
+
"friend/acceptRequest",
|
|
143
|
+
"friend/cancelRequest",
|
|
144
|
+
"friend/list",
|
|
145
|
+
"friend/rejectRequest",
|
|
146
|
+
"friend/remove",
|
|
147
|
+
"friend/sendRequest",
|
|
107
148
|
"matchmaking/cancel",
|
|
108
149
|
"matchmaking/list",
|
|
109
150
|
"matchmaking/queue",
|
|
110
151
|
"matchmaking/ready",
|
|
111
152
|
"messaging/send",
|
|
112
153
|
"messaging/subscribeReceived",
|
|
154
|
+
"party/acceptInvite",
|
|
155
|
+
"party/cancelInvite",
|
|
156
|
+
"party/create",
|
|
157
|
+
"party/declineInvite",
|
|
158
|
+
"party/invite",
|
|
159
|
+
"party/kickMember",
|
|
160
|
+
"party/leave",
|
|
113
161
|
"system/disconnect",
|
|
114
162
|
"system/serverStats",
|
|
115
163
|
"user/info",
|
|
@@ -125,12 +173,25 @@ var tachyonMeta = {
|
|
|
125
173
|
"battle/start"
|
|
126
174
|
],
|
|
127
175
|
"receive": [
|
|
176
|
+
"friend/acceptRequest",
|
|
177
|
+
"friend/cancelRequest",
|
|
178
|
+
"friend/list",
|
|
179
|
+
"friend/rejectRequest",
|
|
180
|
+
"friend/remove",
|
|
181
|
+
"friend/sendRequest",
|
|
128
182
|
"matchmaking/cancel",
|
|
129
183
|
"matchmaking/list",
|
|
130
184
|
"matchmaking/queue",
|
|
131
185
|
"matchmaking/ready",
|
|
132
186
|
"messaging/send",
|
|
133
187
|
"messaging/subscribeReceived",
|
|
188
|
+
"party/acceptInvite",
|
|
189
|
+
"party/cancelInvite",
|
|
190
|
+
"party/create",
|
|
191
|
+
"party/declineInvite",
|
|
192
|
+
"party/invite",
|
|
193
|
+
"party/kickMember",
|
|
194
|
+
"party/leave",
|
|
134
195
|
"system/disconnect",
|
|
135
196
|
"system/serverStats",
|
|
136
197
|
"user/info",
|
|
@@ -141,12 +202,21 @@ var tachyonMeta = {
|
|
|
141
202
|
"event": {
|
|
142
203
|
"send": [],
|
|
143
204
|
"receive": [
|
|
205
|
+
"friend/removed",
|
|
206
|
+
"friend/requestAccepted",
|
|
207
|
+
"friend/requestCancelled",
|
|
208
|
+
"friend/requestReceived",
|
|
209
|
+
"friend/requestRejected",
|
|
144
210
|
"matchmaking/cancelled",
|
|
145
211
|
"matchmaking/found",
|
|
146
212
|
"matchmaking/foundUpdate",
|
|
147
213
|
"matchmaking/lost",
|
|
148
214
|
"matchmaking/queueUpdate",
|
|
215
|
+
"matchmaking/queuesJoined",
|
|
149
216
|
"messaging/received",
|
|
217
|
+
"party/invited",
|
|
218
|
+
"party/removed",
|
|
219
|
+
"party/updated",
|
|
150
220
|
"user/self",
|
|
151
221
|
"user/updated"
|
|
152
222
|
]
|
|
@@ -210,6 +280,19 @@ var tachyonMeta = {
|
|
|
210
280
|
"battle": [
|
|
211
281
|
"start"
|
|
212
282
|
],
|
|
283
|
+
"friend": [
|
|
284
|
+
"acceptRequest",
|
|
285
|
+
"cancelRequest",
|
|
286
|
+
"list",
|
|
287
|
+
"rejectRequest",
|
|
288
|
+
"remove",
|
|
289
|
+
"removed",
|
|
290
|
+
"requestAccepted",
|
|
291
|
+
"requestCancelled",
|
|
292
|
+
"requestReceived",
|
|
293
|
+
"requestRejected",
|
|
294
|
+
"sendRequest"
|
|
295
|
+
],
|
|
213
296
|
"matchmaking": [
|
|
214
297
|
"cancel",
|
|
215
298
|
"cancelled",
|
|
@@ -219,6 +302,7 @@ var tachyonMeta = {
|
|
|
219
302
|
"lost",
|
|
220
303
|
"queue",
|
|
221
304
|
"queueUpdate",
|
|
305
|
+
"queuesJoined",
|
|
222
306
|
"ready"
|
|
223
307
|
],
|
|
224
308
|
"messaging": [
|
|
@@ -226,6 +310,18 @@ var tachyonMeta = {
|
|
|
226
310
|
"send",
|
|
227
311
|
"subscribeReceived"
|
|
228
312
|
],
|
|
313
|
+
"party": [
|
|
314
|
+
"acceptInvite",
|
|
315
|
+
"cancelInvite",
|
|
316
|
+
"create",
|
|
317
|
+
"declineInvite",
|
|
318
|
+
"invite",
|
|
319
|
+
"invited",
|
|
320
|
+
"kickMember",
|
|
321
|
+
"leave",
|
|
322
|
+
"removed",
|
|
323
|
+
"updated"
|
|
324
|
+
],
|
|
229
325
|
"system": [
|
|
230
326
|
"disconnect",
|
|
231
327
|
"serverStats"
|
|
@@ -307,6 +403,53 @@ var tachyonMeta = {
|
|
|
307
403
|
"invalid_request",
|
|
308
404
|
"command_unimplemented"
|
|
309
405
|
],
|
|
406
|
+
"friend/acceptRequest": [
|
|
407
|
+
"invalid_user",
|
|
408
|
+
"no_pending_request",
|
|
409
|
+
"internal_error",
|
|
410
|
+
"unauthorized",
|
|
411
|
+
"invalid_request",
|
|
412
|
+
"command_unimplemented"
|
|
413
|
+
],
|
|
414
|
+
"friend/cancelRequest": [
|
|
415
|
+
"invalid_user",
|
|
416
|
+
"internal_error",
|
|
417
|
+
"unauthorized",
|
|
418
|
+
"invalid_request",
|
|
419
|
+
"command_unimplemented"
|
|
420
|
+
],
|
|
421
|
+
"friend/list": [
|
|
422
|
+
"internal_error",
|
|
423
|
+
"unauthorized",
|
|
424
|
+
"invalid_request",
|
|
425
|
+
"command_unimplemented"
|
|
426
|
+
],
|
|
427
|
+
"friend/rejectRequest": [
|
|
428
|
+
"invalid_user",
|
|
429
|
+
"no_pending_request",
|
|
430
|
+
"internal_error",
|
|
431
|
+
"unauthorized",
|
|
432
|
+
"invalid_request",
|
|
433
|
+
"command_unimplemented"
|
|
434
|
+
],
|
|
435
|
+
"friend/remove": [
|
|
436
|
+
"invalid_user",
|
|
437
|
+
"not_in_friendlist",
|
|
438
|
+
"internal_error",
|
|
439
|
+
"unauthorized",
|
|
440
|
+
"invalid_request",
|
|
441
|
+
"command_unimplemented"
|
|
442
|
+
],
|
|
443
|
+
"friend/sendRequest": [
|
|
444
|
+
"invalid_user",
|
|
445
|
+
"already_in_friendlist",
|
|
446
|
+
"outgoing_capacity_reached",
|
|
447
|
+
"incoming_capacity_reached",
|
|
448
|
+
"internal_error",
|
|
449
|
+
"unauthorized",
|
|
450
|
+
"invalid_request",
|
|
451
|
+
"command_unimplemented"
|
|
452
|
+
],
|
|
310
453
|
"matchmaking/cancel": [
|
|
311
454
|
"not_queued",
|
|
312
455
|
"internal_error",
|
|
@@ -323,7 +466,7 @@ var tachyonMeta = {
|
|
|
323
466
|
"matchmaking/queue": [
|
|
324
467
|
"invalid_queue_specified",
|
|
325
468
|
"already_queued",
|
|
326
|
-
"
|
|
469
|
+
"already_in_battle",
|
|
327
470
|
"internal_error",
|
|
328
471
|
"unauthorized",
|
|
329
472
|
"invalid_request",
|
|
@@ -350,6 +493,50 @@ var tachyonMeta = {
|
|
|
350
493
|
"invalid_request",
|
|
351
494
|
"command_unimplemented"
|
|
352
495
|
],
|
|
496
|
+
"party/acceptInvite": [
|
|
497
|
+
"internal_error",
|
|
498
|
+
"unauthorized",
|
|
499
|
+
"invalid_request",
|
|
500
|
+
"command_unimplemented"
|
|
501
|
+
],
|
|
502
|
+
"party/cancelInvite": [
|
|
503
|
+
"not_in_party",
|
|
504
|
+
"invalid_invite",
|
|
505
|
+
"internal_error",
|
|
506
|
+
"unauthorized",
|
|
507
|
+
"invalid_request",
|
|
508
|
+
"command_unimplemented"
|
|
509
|
+
],
|
|
510
|
+
"party/create": [
|
|
511
|
+
"internal_error",
|
|
512
|
+
"unauthorized",
|
|
513
|
+
"invalid_request",
|
|
514
|
+
"command_unimplemented"
|
|
515
|
+
],
|
|
516
|
+
"party/declineInvite": [
|
|
517
|
+
"internal_error",
|
|
518
|
+
"unauthorized",
|
|
519
|
+
"invalid_request",
|
|
520
|
+
"command_unimplemented"
|
|
521
|
+
],
|
|
522
|
+
"party/invite": [
|
|
523
|
+
"internal_error",
|
|
524
|
+
"unauthorized",
|
|
525
|
+
"invalid_request",
|
|
526
|
+
"command_unimplemented"
|
|
527
|
+
],
|
|
528
|
+
"party/kickMember": [
|
|
529
|
+
"internal_error",
|
|
530
|
+
"unauthorized",
|
|
531
|
+
"invalid_request",
|
|
532
|
+
"command_unimplemented"
|
|
533
|
+
],
|
|
534
|
+
"party/leave": [
|
|
535
|
+
"internal_error",
|
|
536
|
+
"unauthorized",
|
|
537
|
+
"invalid_request",
|
|
538
|
+
"command_unimplemented"
|
|
539
|
+
],
|
|
353
540
|
"system/disconnect": [
|
|
354
541
|
"internal_error",
|
|
355
542
|
"unauthorized",
|