tachyon-protocol 1.8.0 → 1.9.1

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.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { TachyonCommand } from './types.mjs';
2
2
 
3
3
  declare const tachyonMeta: {
4
- readonly version: "1.8.0";
4
+ readonly version: "1.9.1";
5
5
  readonly schema: {
6
6
  readonly actors: {
7
7
  readonly server: {
@@ -14,7 +14,7 @@ declare const tachyonMeta: {
14
14
  readonly receive: readonly ["autohost/addPlayer", "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/found", "matchmaking/foundUpdate", "matchmaking/lost", "matchmaking/queueUpdate", "matchmaking/readyUpdate", "user/updated"];
17
+ readonly send: readonly ["matchmaking/cancelled", "matchmaking/found", "matchmaking/foundUpdate", "matchmaking/lost", "matchmaking/queueUpdate", "user/updated"];
18
18
  readonly receive: readonly ["autohost/status", "autohost/update"];
19
19
  };
20
20
  };
@@ -29,7 +29,7 @@ declare const tachyonMeta: {
29
29
  };
30
30
  readonly event: {
31
31
  readonly send: readonly [];
32
- readonly receive: readonly ["matchmaking/found", "matchmaking/foundUpdate", "matchmaking/lost", "matchmaking/queueUpdate", "matchmaking/readyUpdate", "user/updated"];
32
+ readonly receive: readonly ["matchmaking/cancelled", "matchmaking/found", "matchmaking/foundUpdate", "matchmaking/lost", "matchmaking/queueUpdate", "user/updated"];
33
33
  };
34
34
  };
35
35
  readonly autohost: {
@@ -50,10 +50,28 @@ declare const tachyonMeta: {
50
50
  readonly serviceIds: {
51
51
  readonly autohost: readonly ["addPlayer", "kickPlayer", "kill", "mutePlayer", "sendCommand", "sendMessage", "specPlayers", "start", "status", "subscribeUpdates", "update"];
52
52
  readonly battle: readonly ["start"];
53
- readonly matchmaking: readonly ["cancel", "found", "foundUpdate", "list", "lost", "queue", "queueUpdate", "ready", "readyUpdate"];
53
+ readonly matchmaking: readonly ["cancel", "cancelled", "found", "foundUpdate", "list", "lost", "queue", "queueUpdate", "ready"];
54
54
  readonly system: readonly ["disconnect", "serverStats"];
55
55
  readonly user: readonly ["updated"];
56
56
  };
57
+ readonly failedReasons: {
58
+ readonly "autohost/addPlayer": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
59
+ readonly "autohost/kickPlayer": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
60
+ readonly "autohost/kill": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
61
+ readonly "autohost/mutePlayer": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
62
+ readonly "autohost/sendCommand": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
63
+ readonly "autohost/sendMessage": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
64
+ readonly "autohost/specPlayers": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
65
+ readonly "autohost/start": readonly ["battle_already_exists", "engine_version_not_available", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
66
+ readonly "autohost/subscribeUpdates": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
67
+ readonly "battle/start": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
68
+ readonly "matchmaking/cancel": readonly ["not_queued", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
69
+ readonly "matchmaking/list": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
70
+ readonly "matchmaking/queue": readonly ["invalid_queue_specified", "already_queued", "already_inbattle", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
71
+ readonly "matchmaking/ready": readonly ["no_match", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
72
+ readonly "system/disconnect": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
73
+ readonly "system/serverStats": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
74
+ };
57
75
  };
58
76
  };
59
77
 
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { TachyonCommand } from './types.js';
2
2
 
3
3
  declare const tachyonMeta: {
4
- readonly version: "1.8.0";
4
+ readonly version: "1.9.1";
5
5
  readonly schema: {
6
6
  readonly actors: {
7
7
  readonly server: {
@@ -14,7 +14,7 @@ declare const tachyonMeta: {
14
14
  readonly receive: readonly ["autohost/addPlayer", "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/found", "matchmaking/foundUpdate", "matchmaking/lost", "matchmaking/queueUpdate", "matchmaking/readyUpdate", "user/updated"];
17
+ readonly send: readonly ["matchmaking/cancelled", "matchmaking/found", "matchmaking/foundUpdate", "matchmaking/lost", "matchmaking/queueUpdate", "user/updated"];
18
18
  readonly receive: readonly ["autohost/status", "autohost/update"];
19
19
  };
20
20
  };
@@ -29,7 +29,7 @@ declare const tachyonMeta: {
29
29
  };
30
30
  readonly event: {
31
31
  readonly send: readonly [];
32
- readonly receive: readonly ["matchmaking/found", "matchmaking/foundUpdate", "matchmaking/lost", "matchmaking/queueUpdate", "matchmaking/readyUpdate", "user/updated"];
32
+ readonly receive: readonly ["matchmaking/cancelled", "matchmaking/found", "matchmaking/foundUpdate", "matchmaking/lost", "matchmaking/queueUpdate", "user/updated"];
33
33
  };
34
34
  };
35
35
  readonly autohost: {
@@ -50,10 +50,28 @@ declare const tachyonMeta: {
50
50
  readonly serviceIds: {
51
51
  readonly autohost: readonly ["addPlayer", "kickPlayer", "kill", "mutePlayer", "sendCommand", "sendMessage", "specPlayers", "start", "status", "subscribeUpdates", "update"];
52
52
  readonly battle: readonly ["start"];
53
- readonly matchmaking: readonly ["cancel", "found", "foundUpdate", "list", "lost", "queue", "queueUpdate", "ready", "readyUpdate"];
53
+ readonly matchmaking: readonly ["cancel", "cancelled", "found", "foundUpdate", "list", "lost", "queue", "queueUpdate", "ready"];
54
54
  readonly system: readonly ["disconnect", "serverStats"];
55
55
  readonly user: readonly ["updated"];
56
56
  };
57
+ readonly failedReasons: {
58
+ readonly "autohost/addPlayer": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
59
+ readonly "autohost/kickPlayer": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
60
+ readonly "autohost/kill": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
61
+ readonly "autohost/mutePlayer": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
62
+ readonly "autohost/sendCommand": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
63
+ readonly "autohost/sendMessage": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
64
+ readonly "autohost/specPlayers": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
65
+ readonly "autohost/start": readonly ["battle_already_exists", "engine_version_not_available", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
66
+ readonly "autohost/subscribeUpdates": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
67
+ readonly "battle/start": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
68
+ readonly "matchmaking/cancel": readonly ["not_queued", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
69
+ readonly "matchmaking/list": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
70
+ readonly "matchmaking/queue": readonly ["invalid_queue_specified", "already_queued", "already_inbattle", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
71
+ readonly "matchmaking/ready": readonly ["no_match", "internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
72
+ readonly "system/disconnect": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
73
+ readonly "system/serverStats": readonly ["internal_error", "unauthorized", "invalid_request", "command_unimplemented"];
74
+ };
57
75
  };
58
76
  };
59
77
 
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.8.0",
27
+ "version": "1.9.1",
28
28
  "schema": {
29
29
  "actors": {
30
30
  "server": {
@@ -74,11 +74,11 @@ var tachyonMeta = {
74
74
  },
75
75
  "event": {
76
76
  "send": [
77
+ "matchmaking/cancelled",
77
78
  "matchmaking/found",
78
79
  "matchmaking/foundUpdate",
79
80
  "matchmaking/lost",
80
81
  "matchmaking/queueUpdate",
81
- "matchmaking/readyUpdate",
82
82
  "user/updated"
83
83
  ],
84
84
  "receive": [
@@ -117,11 +117,11 @@ var tachyonMeta = {
117
117
  "event": {
118
118
  "send": [],
119
119
  "receive": [
120
+ "matchmaking/cancelled",
120
121
  "matchmaking/found",
121
122
  "matchmaking/foundUpdate",
122
123
  "matchmaking/lost",
123
124
  "matchmaking/queueUpdate",
124
- "matchmaking/readyUpdate",
125
125
  "user/updated"
126
126
  ]
127
127
  }
@@ -183,14 +183,14 @@ var tachyonMeta = {
183
183
  ],
184
184
  "matchmaking": [
185
185
  "cancel",
186
+ "cancelled",
186
187
  "found",
187
188
  "foundUpdate",
188
189
  "list",
189
190
  "lost",
190
191
  "queue",
191
192
  "queueUpdate",
192
- "ready",
193
- "readyUpdate"
193
+ "ready"
194
194
  ],
195
195
  "system": [
196
196
  "disconnect",
@@ -199,6 +199,111 @@ var tachyonMeta = {
199
199
  "user": [
200
200
  "updated"
201
201
  ]
202
+ },
203
+ "failedReasons": {
204
+ "autohost/addPlayer": [
205
+ "internal_error",
206
+ "unauthorized",
207
+ "invalid_request",
208
+ "command_unimplemented"
209
+ ],
210
+ "autohost/kickPlayer": [
211
+ "internal_error",
212
+ "unauthorized",
213
+ "invalid_request",
214
+ "command_unimplemented"
215
+ ],
216
+ "autohost/kill": [
217
+ "internal_error",
218
+ "unauthorized",
219
+ "invalid_request",
220
+ "command_unimplemented"
221
+ ],
222
+ "autohost/mutePlayer": [
223
+ "internal_error",
224
+ "unauthorized",
225
+ "invalid_request",
226
+ "command_unimplemented"
227
+ ],
228
+ "autohost/sendCommand": [
229
+ "internal_error",
230
+ "unauthorized",
231
+ "invalid_request",
232
+ "command_unimplemented"
233
+ ],
234
+ "autohost/sendMessage": [
235
+ "internal_error",
236
+ "unauthorized",
237
+ "invalid_request",
238
+ "command_unimplemented"
239
+ ],
240
+ "autohost/specPlayers": [
241
+ "internal_error",
242
+ "unauthorized",
243
+ "invalid_request",
244
+ "command_unimplemented"
245
+ ],
246
+ "autohost/start": [
247
+ "battle_already_exists",
248
+ "engine_version_not_available",
249
+ "internal_error",
250
+ "unauthorized",
251
+ "invalid_request",
252
+ "command_unimplemented"
253
+ ],
254
+ "autohost/subscribeUpdates": [
255
+ "internal_error",
256
+ "unauthorized",
257
+ "invalid_request",
258
+ "command_unimplemented"
259
+ ],
260
+ "battle/start": [
261
+ "internal_error",
262
+ "unauthorized",
263
+ "invalid_request",
264
+ "command_unimplemented"
265
+ ],
266
+ "matchmaking/cancel": [
267
+ "not_queued",
268
+ "internal_error",
269
+ "unauthorized",
270
+ "invalid_request",
271
+ "command_unimplemented"
272
+ ],
273
+ "matchmaking/list": [
274
+ "internal_error",
275
+ "unauthorized",
276
+ "invalid_request",
277
+ "command_unimplemented"
278
+ ],
279
+ "matchmaking/queue": [
280
+ "invalid_queue_specified",
281
+ "already_queued",
282
+ "already_inbattle",
283
+ "internal_error",
284
+ "unauthorized",
285
+ "invalid_request",
286
+ "command_unimplemented"
287
+ ],
288
+ "matchmaking/ready": [
289
+ "no_match",
290
+ "internal_error",
291
+ "unauthorized",
292
+ "invalid_request",
293
+ "command_unimplemented"
294
+ ],
295
+ "system/disconnect": [
296
+ "internal_error",
297
+ "unauthorized",
298
+ "invalid_request",
299
+ "command_unimplemented"
300
+ ],
301
+ "system/serverStats": [
302
+ "internal_error",
303
+ "unauthorized",
304
+ "invalid_request",
305
+ "command_unimplemented"
306
+ ]
202
307
  }
203
308
  }
204
309
  };
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  // dist/index.ts
2
2
  var tachyonMeta = {
3
- "version": "1.8.0",
3
+ "version": "1.9.1",
4
4
  "schema": {
5
5
  "actors": {
6
6
  "server": {
@@ -50,11 +50,11 @@ var tachyonMeta = {
50
50
  },
51
51
  "event": {
52
52
  "send": [
53
+ "matchmaking/cancelled",
53
54
  "matchmaking/found",
54
55
  "matchmaking/foundUpdate",
55
56
  "matchmaking/lost",
56
57
  "matchmaking/queueUpdate",
57
- "matchmaking/readyUpdate",
58
58
  "user/updated"
59
59
  ],
60
60
  "receive": [
@@ -93,11 +93,11 @@ var tachyonMeta = {
93
93
  "event": {
94
94
  "send": [],
95
95
  "receive": [
96
+ "matchmaking/cancelled",
96
97
  "matchmaking/found",
97
98
  "matchmaking/foundUpdate",
98
99
  "matchmaking/lost",
99
100
  "matchmaking/queueUpdate",
100
- "matchmaking/readyUpdate",
101
101
  "user/updated"
102
102
  ]
103
103
  }
@@ -159,14 +159,14 @@ var tachyonMeta = {
159
159
  ],
160
160
  "matchmaking": [
161
161
  "cancel",
162
+ "cancelled",
162
163
  "found",
163
164
  "foundUpdate",
164
165
  "list",
165
166
  "lost",
166
167
  "queue",
167
168
  "queueUpdate",
168
- "ready",
169
- "readyUpdate"
169
+ "ready"
170
170
  ],
171
171
  "system": [
172
172
  "disconnect",
@@ -175,6 +175,111 @@ var tachyonMeta = {
175
175
  "user": [
176
176
  "updated"
177
177
  ]
178
+ },
179
+ "failedReasons": {
180
+ "autohost/addPlayer": [
181
+ "internal_error",
182
+ "unauthorized",
183
+ "invalid_request",
184
+ "command_unimplemented"
185
+ ],
186
+ "autohost/kickPlayer": [
187
+ "internal_error",
188
+ "unauthorized",
189
+ "invalid_request",
190
+ "command_unimplemented"
191
+ ],
192
+ "autohost/kill": [
193
+ "internal_error",
194
+ "unauthorized",
195
+ "invalid_request",
196
+ "command_unimplemented"
197
+ ],
198
+ "autohost/mutePlayer": [
199
+ "internal_error",
200
+ "unauthorized",
201
+ "invalid_request",
202
+ "command_unimplemented"
203
+ ],
204
+ "autohost/sendCommand": [
205
+ "internal_error",
206
+ "unauthorized",
207
+ "invalid_request",
208
+ "command_unimplemented"
209
+ ],
210
+ "autohost/sendMessage": [
211
+ "internal_error",
212
+ "unauthorized",
213
+ "invalid_request",
214
+ "command_unimplemented"
215
+ ],
216
+ "autohost/specPlayers": [
217
+ "internal_error",
218
+ "unauthorized",
219
+ "invalid_request",
220
+ "command_unimplemented"
221
+ ],
222
+ "autohost/start": [
223
+ "battle_already_exists",
224
+ "engine_version_not_available",
225
+ "internal_error",
226
+ "unauthorized",
227
+ "invalid_request",
228
+ "command_unimplemented"
229
+ ],
230
+ "autohost/subscribeUpdates": [
231
+ "internal_error",
232
+ "unauthorized",
233
+ "invalid_request",
234
+ "command_unimplemented"
235
+ ],
236
+ "battle/start": [
237
+ "internal_error",
238
+ "unauthorized",
239
+ "invalid_request",
240
+ "command_unimplemented"
241
+ ],
242
+ "matchmaking/cancel": [
243
+ "not_queued",
244
+ "internal_error",
245
+ "unauthorized",
246
+ "invalid_request",
247
+ "command_unimplemented"
248
+ ],
249
+ "matchmaking/list": [
250
+ "internal_error",
251
+ "unauthorized",
252
+ "invalid_request",
253
+ "command_unimplemented"
254
+ ],
255
+ "matchmaking/queue": [
256
+ "invalid_queue_specified",
257
+ "already_queued",
258
+ "already_inbattle",
259
+ "internal_error",
260
+ "unauthorized",
261
+ "invalid_request",
262
+ "command_unimplemented"
263
+ ],
264
+ "matchmaking/ready": [
265
+ "no_match",
266
+ "internal_error",
267
+ "unauthorized",
268
+ "invalid_request",
269
+ "command_unimplemented"
270
+ ],
271
+ "system/disconnect": [
272
+ "internal_error",
273
+ "unauthorized",
274
+ "invalid_request",
275
+ "command_unimplemented"
276
+ ],
277
+ "system/serverStats": [
278
+ "internal_error",
279
+ "unauthorized",
280
+ "invalid_request",
281
+ "command_unimplemented"
282
+ ]
178
283
  }
179
284
  }
180
285
  };