tachyon-protocol 1.5.4 → 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 +50 -47
  6. package/dist/validators.d.ts +50 -47
  7. package/dist/validators.js +1 -1
  8. package/dist/validators.mjs +3 -6
  9. package/package.json +10 -3
  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,318 +0,0 @@
1
- {
2
- "$id": "user/subscribe/response",
3
- "roles": [],
4
- "anyOf": [
5
- {
6
- "type": "object",
7
- "properties": {
8
- "messageId": {
9
- "type": "string"
10
- },
11
- "commandId": {
12
- "const": "user/subscribe/response",
13
- "type": "string"
14
- },
15
- "status": {
16
- "const": "success",
17
- "type": "string"
18
- },
19
- "data": {
20
- "type": "object",
21
- "properties": {
22
- "users": {
23
- "type": "array",
24
- "items": {
25
- "type": "object",
26
- "properties": {
27
- "userId": {
28
- "type": "string"
29
- },
30
- "username": {
31
- "type": "string"
32
- },
33
- "displayName": {
34
- "type": "string"
35
- },
36
- "avatarUrl": {
37
- "anyOf": [
38
- {
39
- "format": "uri",
40
- "type": "string"
41
- },
42
- {
43
- "type": "null"
44
- }
45
- ]
46
- },
47
- "clanId": {
48
- "anyOf": [
49
- {
50
- "type": "string"
51
- },
52
- {
53
- "type": "null"
54
- }
55
- ]
56
- },
57
- "partyId": {
58
- "anyOf": [
59
- {
60
- "type": "string"
61
- },
62
- {
63
- "type": "null"
64
- }
65
- ]
66
- },
67
- "roles": {
68
- "type": "array",
69
- "items": {
70
- "type": "string"
71
- }
72
- },
73
- "countryCode": {
74
- "type": "string"
75
- },
76
- "status": {
77
- "anyOf": [
78
- {
79
- "const": "offline",
80
- "type": "string"
81
- },
82
- {
83
- "const": "menu",
84
- "type": "string"
85
- },
86
- {
87
- "const": "playing",
88
- "type": "string"
89
- },
90
- {
91
- "const": "lobby",
92
- "type": "string"
93
- }
94
- ]
95
- },
96
- "battleStatus": {
97
- "anyOf": [
98
- {
99
- "allOf": [
100
- {
101
- "type": "object",
102
- "properties": {
103
- "battleId": {
104
- "type": "string"
105
- }
106
- },
107
- "required": [
108
- "battleId"
109
- ]
110
- },
111
- {
112
- "anyOf": [
113
- {
114
- "type": "object",
115
- "allOf": [
116
- {
117
- "type": "object",
118
- "properties": {
119
- "playerId": {
120
- "type": "integer"
121
- },
122
- "teamId": {
123
- "type": "integer"
124
- },
125
- "color": {
126
- "type": "string"
127
- },
128
- "bonus": {
129
- "type": "number"
130
- },
131
- "inGame": {
132
- "type": "boolean"
133
- }
134
- },
135
- "required": [
136
- "playerId",
137
- "teamId",
138
- "color",
139
- "bonus",
140
- "inGame"
141
- ]
142
- },
143
- {
144
- "type": "object",
145
- "properties": {
146
- "isSpectator": {
147
- "const": false,
148
- "type": "boolean"
149
- },
150
- "isBot": {
151
- "const": false,
152
- "type": "boolean"
153
- },
154
- "ready": {
155
- "type": "boolean"
156
- },
157
- "sync": {
158
- "type": "object",
159
- "properties": {
160
- "engine": {
161
- "type": "number"
162
- },
163
- "game": {
164
- "type": "number"
165
- },
166
- "map": {
167
- "type": "number"
168
- }
169
- },
170
- "required": [
171
- "engine",
172
- "game",
173
- "map"
174
- ]
175
- }
176
- },
177
- "required": [
178
- "isSpectator",
179
- "isBot",
180
- "ready",
181
- "sync"
182
- ]
183
- }
184
- ]
185
- },
186
- {
187
- "type": "object",
188
- "properties": {
189
- "isSpectator": {
190
- "const": true,
191
- "type": "boolean"
192
- },
193
- "isBot": {
194
- "const": false,
195
- "type": "boolean"
196
- }
197
- },
198
- "required": [
199
- "isSpectator",
200
- "isBot"
201
- ]
202
- }
203
- ]
204
- }
205
- ]
206
- },
207
- {
208
- "type": "null"
209
- }
210
- ]
211
- }
212
- },
213
- "required": [
214
- "userId",
215
- "username",
216
- "displayName",
217
- "avatarUrl",
218
- "clanId",
219
- "partyId",
220
- "roles",
221
- "status",
222
- "battleStatus"
223
- ]
224
- }
225
- }
226
- },
227
- "required": [
228
- "users"
229
- ]
230
- }
231
- },
232
- "required": [
233
- "messageId",
234
- "commandId",
235
- "status",
236
- "data"
237
- ]
238
- },
239
- {
240
- "type": "object",
241
- "properties": {
242
- "messageId": {
243
- "type": "string"
244
- },
245
- "commandId": {
246
- "const": "user/subscribe/response",
247
- "type": "string"
248
- },
249
- "status": {
250
- "const": "failed",
251
- "type": "string"
252
- },
253
- "reason": {
254
- "const": "internal_error",
255
- "type": "string"
256
- }
257
- },
258
- "required": [
259
- "messageId",
260
- "commandId",
261
- "status",
262
- "reason"
263
- ]
264
- },
265
- {
266
- "type": "object",
267
- "properties": {
268
- "messageId": {
269
- "type": "string"
270
- },
271
- "commandId": {
272
- "const": "user/subscribe/response",
273
- "type": "string"
274
- },
275
- "status": {
276
- "const": "failed",
277
- "type": "string"
278
- },
279
- "reason": {
280
- "const": "unauthorized",
281
- "type": "string"
282
- }
283
- },
284
- "required": [
285
- "messageId",
286
- "commandId",
287
- "status",
288
- "reason"
289
- ]
290
- },
291
- {
292
- "type": "object",
293
- "properties": {
294
- "messageId": {
295
- "type": "string"
296
- },
297
- "commandId": {
298
- "const": "user/subscribe/response",
299
- "type": "string"
300
- },
301
- "status": {
302
- "const": "failed",
303
- "type": "string"
304
- },
305
- "reason": {
306
- "const": "invalid_command",
307
- "type": "string"
308
- }
309
- },
310
- "required": [
311
- "messageId",
312
- "commandId",
313
- "status",
314
- "reason"
315
- ]
316
- }
317
- ]
318
- }
@@ -1,33 +0,0 @@
1
- {
2
- "$id": "user/unsubscribe/request",
3
- "roles": [],
4
- "type": "object",
5
- "properties": {
6
- "messageId": {
7
- "type": "string"
8
- },
9
- "commandId": {
10
- "const": "user/unsubscribe/request",
11
- "type": "string"
12
- },
13
- "data": {
14
- "type": "object",
15
- "properties": {
16
- "userIds": {
17
- "type": "array",
18
- "items": {
19
- "type": "string"
20
- }
21
- }
22
- },
23
- "required": [
24
- "userIds"
25
- ]
26
- }
27
- },
28
- "required": [
29
- "messageId",
30
- "commandId",
31
- "data"
32
- ]
33
- }
@@ -1,131 +0,0 @@
1
- {
2
- "$id": "user/unsubscribe/response",
3
- "roles": [],
4
- "anyOf": [
5
- {
6
- "type": "object",
7
- "properties": {
8
- "messageId": {
9
- "type": "string"
10
- },
11
- "commandId": {
12
- "const": "user/unsubscribe/response",
13
- "type": "string"
14
- },
15
- "status": {
16
- "const": "success",
17
- "type": "string"
18
- }
19
- },
20
- "required": [
21
- "messageId",
22
- "commandId",
23
- "status"
24
- ]
25
- },
26
- {
27
- "type": "object",
28
- "properties": {
29
- "messageId": {
30
- "type": "string"
31
- },
32
- "commandId": {
33
- "const": "user/unsubscribe/response",
34
- "type": "string"
35
- },
36
- "status": {
37
- "const": "failed",
38
- "type": "string"
39
- },
40
- "reason": {
41
- "const": "cannot_unsub_own_user",
42
- "type": "string"
43
- }
44
- },
45
- "required": [
46
- "messageId",
47
- "commandId",
48
- "status",
49
- "reason"
50
- ]
51
- },
52
- {
53
- "type": "object",
54
- "properties": {
55
- "messageId": {
56
- "type": "string"
57
- },
58
- "commandId": {
59
- "const": "user/unsubscribe/response",
60
- "type": "string"
61
- },
62
- "status": {
63
- "const": "failed",
64
- "type": "string"
65
- },
66
- "reason": {
67
- "const": "internal_error",
68
- "type": "string"
69
- }
70
- },
71
- "required": [
72
- "messageId",
73
- "commandId",
74
- "status",
75
- "reason"
76
- ]
77
- },
78
- {
79
- "type": "object",
80
- "properties": {
81
- "messageId": {
82
- "type": "string"
83
- },
84
- "commandId": {
85
- "const": "user/unsubscribe/response",
86
- "type": "string"
87
- },
88
- "status": {
89
- "const": "failed",
90
- "type": "string"
91
- },
92
- "reason": {
93
- "const": "unauthorized",
94
- "type": "string"
95
- }
96
- },
97
- "required": [
98
- "messageId",
99
- "commandId",
100
- "status",
101
- "reason"
102
- ]
103
- },
104
- {
105
- "type": "object",
106
- "properties": {
107
- "messageId": {
108
- "type": "string"
109
- },
110
- "commandId": {
111
- "const": "user/unsubscribe/response",
112
- "type": "string"
113
- },
114
- "status": {
115
- "const": "failed",
116
- "type": "string"
117
- },
118
- "reason": {
119
- "const": "invalid_command",
120
- "type": "string"
121
- }
122
- },
123
- "required": [
124
- "messageId",
125
- "commandId",
126
- "status",
127
- "reason"
128
- ]
129
- }
130
- ]
131
- }