tachyon-protocol 0.1.11 → 0.2.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.
Files changed (50) hide show
  1. package/README.md +62 -38
  2. package/dist/bot/slave/request.json +7 -3
  3. package/dist/bot/slave/response.json +67 -19
  4. package/dist/bot/unslave/request.json +7 -3
  5. package/dist/bot/unslave/response.json +67 -19
  6. package/dist/game/launch/response.json +66 -19
  7. package/dist/index.d.ts +505 -271
  8. package/dist/lobby/close/request.json +6 -3
  9. package/dist/lobby/close/response.json +66 -19
  10. package/dist/lobby/create/request.json +6 -3
  11. package/dist/lobby/create/response.json +118 -27
  12. package/dist/lobby/join/request.json +6 -3
  13. package/dist/lobby/join/response.json +248 -47
  14. package/dist/lobby/joined/response.json +66 -19
  15. package/dist/lobby/leave/request.json +6 -3
  16. package/dist/lobby/leave/response.json +92 -23
  17. package/dist/lobby/left/response.json +66 -19
  18. package/dist/lobby/list/request.json +6 -3
  19. package/dist/lobby/list/response.json +66 -19
  20. package/dist/lobby/receiveMessage/response.json +66 -19
  21. package/dist/lobby/sendMessage/request.json +6 -3
  22. package/dist/lobby/sendMessage/response.json +118 -27
  23. package/dist/lobby/updated/response.json +66 -19
  24. package/dist/matchmaking/cancel/request.json +6 -3
  25. package/dist/matchmaking/cancel/response.json +92 -23
  26. package/dist/matchmaking/found/response.json +66 -19
  27. package/dist/matchmaking/list/request.json +6 -3
  28. package/dist/matchmaking/list/response.json +66 -19
  29. package/dist/matchmaking/lost/response.json +66 -19
  30. package/dist/matchmaking/queue/request.json +6 -3
  31. package/dist/matchmaking/queue/response.json +118 -27
  32. package/dist/matchmaking/queueUpdate/response.json +66 -19
  33. package/dist/matchmaking/ready/request.json +6 -3
  34. package/dist/matchmaking/ready/response.json +92 -23
  35. package/dist/matchmaking/readyUpdate/response.json +66 -19
  36. package/dist/meta.json +1 -23
  37. package/dist/system/disconnect/request.json +6 -3
  38. package/dist/system/disconnected/response.json +66 -19
  39. package/dist/system/version/response.json +67 -20
  40. package/package.json +1 -1
  41. package/dist/account/getToken/request.json +0 -74
  42. package/dist/account/getToken/response.json +0 -91
  43. package/dist/account/login/request.json +0 -32
  44. package/dist/account/login/response.json +0 -300
  45. package/dist/account/recover/request.json +0 -15
  46. package/dist/account/recover/response.json +0 -58
  47. package/dist/account/register/request.json +0 -53
  48. package/dist/account/register/response.json +0 -78
  49. package/dist/account/rename/request.json +0 -33
  50. package/dist/account/rename/response.json +0 -66
@@ -1,300 +0,0 @@
1
- {
2
- "$id": "account/login/response",
3
- "requiresLogin": false,
4
- "requiresRole": false,
5
- "anyOf": [
6
- {
7
- "type": "object",
8
- "properties": {
9
- "command": {
10
- "const": "account/login/response",
11
- "type": "string"
12
- },
13
- "status": {
14
- "const": "success",
15
- "type": "string"
16
- },
17
- "data": {
18
- "examples": [
19
- {
20
- "user": {
21
- "battleStatus": null,
22
- "userId": 123,
23
- "email": "bob@test.com",
24
- "username": "bob",
25
- "clanId": null,
26
- "friends": [
27
- 12,
28
- 34
29
- ],
30
- "friendRequests": [
31
- 477
32
- ],
33
- "icons": {
34
- "rank": "silver-5"
35
- },
36
- "ignores": [],
37
- "roles": [
38
- "mentor"
39
- ]
40
- }
41
- }
42
- ],
43
- "type": "object",
44
- "properties": {
45
- "user": {
46
- "type": "object",
47
- "properties": {
48
- "userId": {
49
- "type": "integer"
50
- },
51
- "username": {
52
- "type": "string"
53
- },
54
- "clanId": {
55
- "anyOf": [
56
- {
57
- "type": "integer"
58
- },
59
- {
60
- "type": "null"
61
- }
62
- ]
63
- },
64
- "icons": {
65
- "type": "object",
66
- "patternProperties": {
67
- "^(.*)$": {
68
- "type": "string"
69
- }
70
- }
71
- },
72
- "roles": {
73
- "type": "array",
74
- "items": {
75
- "anyOf": [
76
- {
77
- "const": "admin",
78
- "type": "string"
79
- },
80
- {
81
- "const": "moderator",
82
- "type": "string"
83
- },
84
- {
85
- "const": "autohost",
86
- "type": "string"
87
- },
88
- {
89
- "const": "mentor",
90
- "type": "string"
91
- },
92
- {
93
- "const": "caster",
94
- "type": "string"
95
- },
96
- {
97
- "const": "tourney",
98
- "type": "string"
99
- }
100
- ]
101
- }
102
- },
103
- "battleStatus": {
104
- "anyOf": [
105
- {
106
- "type": "object",
107
- "properties": {
108
- "lobbyId": {
109
- "anyOf": [
110
- {
111
- "type": "integer"
112
- },
113
- {
114
- "type": "null"
115
- }
116
- ]
117
- },
118
- "inGame": {
119
- "type": "boolean"
120
- },
121
- "away": {
122
- "type": "boolean"
123
- },
124
- "ready": {
125
- "type": "boolean"
126
- },
127
- "playerNumber": {
128
- "anyOf": [
129
- {
130
- "type": "integer"
131
- },
132
- {
133
- "type": "null"
134
- }
135
- ]
136
- },
137
- "teamColour": {
138
- "anyOf": [
139
- {
140
- "type": "string"
141
- },
142
- {
143
- "type": "null"
144
- }
145
- ]
146
- },
147
- "isPlayer": {
148
- "type": "boolean"
149
- },
150
- "bonus": {
151
- "type": "number"
152
- },
153
- "sync": {
154
- "type": "object",
155
- "properties": {
156
- "engine": {
157
- "type": "number"
158
- },
159
- "game": {
160
- "type": "number"
161
- },
162
- "map": {
163
- "type": "number"
164
- }
165
- },
166
- "required": [
167
- "engine",
168
- "game",
169
- "map"
170
- ]
171
- },
172
- "partyId": {
173
- "anyOf": [
174
- {
175
- "type": "integer"
176
- },
177
- {
178
- "type": "null"
179
- }
180
- ]
181
- },
182
- "muted": {
183
- "type": "boolean"
184
- }
185
- },
186
- "required": [
187
- "lobbyId",
188
- "inGame",
189
- "away",
190
- "ready",
191
- "playerNumber",
192
- "teamColour",
193
- "isPlayer",
194
- "bonus",
195
- "sync",
196
- "partyId",
197
- "muted"
198
- ]
199
- },
200
- {
201
- "type": "null"
202
- }
203
- ]
204
- },
205
- "email": {
206
- "format": "email",
207
- "type": "string"
208
- },
209
- "friends": {
210
- "type": "array",
211
- "items": {
212
- "type": "integer"
213
- }
214
- },
215
- "friendRequests": {
216
- "type": "array",
217
- "items": {
218
- "type": "integer"
219
- }
220
- },
221
- "ignores": {
222
- "type": "array",
223
- "items": {
224
- "type": "integer"
225
- }
226
- }
227
- },
228
- "required": [
229
- "userId",
230
- "username",
231
- "clanId",
232
- "icons",
233
- "roles",
234
- "battleStatus",
235
- "email",
236
- "friends",
237
- "friendRequests",
238
- "ignores"
239
- ]
240
- }
241
- },
242
- "required": [
243
- "user"
244
- ]
245
- }
246
- },
247
- "required": [
248
- "command",
249
- "status",
250
- "data"
251
- ]
252
- },
253
- {
254
- "type": "object",
255
- "properties": {
256
- "command": {
257
- "const": "account/login/response",
258
- "type": "string"
259
- },
260
- "status": {
261
- "const": "failed",
262
- "type": "string"
263
- },
264
- "reason": {
265
- "anyOf": [
266
- {
267
- "const": "invalid_token",
268
- "type": "string"
269
- },
270
- {
271
- "const": "expired_token",
272
- "type": "string"
273
- },
274
- {
275
- "const": "banned",
276
- "type": "string"
277
- },
278
- {
279
- "const": "internal_error",
280
- "type": "string"
281
- },
282
- {
283
- "const": "unauthorized",
284
- "type": "string"
285
- },
286
- {
287
- "const": "invalid_command",
288
- "type": "string"
289
- }
290
- ]
291
- }
292
- },
293
- "required": [
294
- "command",
295
- "status",
296
- "reason"
297
- ]
298
- }
299
- ]
300
- }
@@ -1,15 +0,0 @@
1
- {
2
- "$id": "account/recover/request",
3
- "requiresLogin": false,
4
- "requiresRole": false,
5
- "type": "object",
6
- "properties": {
7
- "command": {
8
- "const": "account/recover/request",
9
- "type": "string"
10
- }
11
- },
12
- "required": [
13
- "command"
14
- ]
15
- }
@@ -1,58 +0,0 @@
1
- {
2
- "$id": "account/recover/response",
3
- "requiresLogin": false,
4
- "requiresRole": false,
5
- "anyOf": [
6
- {
7
- "type": "object",
8
- "properties": {
9
- "command": {
10
- "const": "account/recover/response",
11
- "type": "string"
12
- },
13
- "status": {
14
- "const": "success",
15
- "type": "string"
16
- }
17
- },
18
- "required": [
19
- "command",
20
- "status"
21
- ]
22
- },
23
- {
24
- "type": "object",
25
- "properties": {
26
- "command": {
27
- "const": "account/recover/response",
28
- "type": "string"
29
- },
30
- "status": {
31
- "const": "failed",
32
- "type": "string"
33
- },
34
- "reason": {
35
- "anyOf": [
36
- {
37
- "const": "internal_error",
38
- "type": "string"
39
- },
40
- {
41
- "const": "unauthorized",
42
- "type": "string"
43
- },
44
- {
45
- "const": "invalid_command",
46
- "type": "string"
47
- }
48
- ]
49
- }
50
- },
51
- "required": [
52
- "command",
53
- "status",
54
- "reason"
55
- ]
56
- }
57
- ]
58
- }
@@ -1,53 +0,0 @@
1
- {
2
- "$id": "account/register/request",
3
- "requiresLogin": false,
4
- "requiresRole": false,
5
- "type": "object",
6
- "properties": {
7
- "command": {
8
- "const": "account/register/request",
9
- "type": "string"
10
- },
11
- "data": {
12
- "examples": [
13
- {
14
- "email": "bob@test.com",
15
- "username": "bob",
16
- "hashedPassword": "1b311ff1a6af12fba8720bd2ce02c960"
17
- }
18
- ],
19
- "type": "object",
20
- "properties": {
21
- "email": {
22
- "format": "email",
23
- "examples": [
24
- "bob@test.com"
25
- ],
26
- "type": "string"
27
- },
28
- "username": {
29
- "minLength": 3,
30
- "maxLength": 20,
31
- "pattern": "^[A-Za-z0-9_-]+$",
32
- "examples": [
33
- "Bob"
34
- ],
35
- "type": "string"
36
- },
37
- "hashedPassword": {
38
- "description": "md5 hash of the user's password input",
39
- "type": "string"
40
- }
41
- },
42
- "required": [
43
- "email",
44
- "username",
45
- "hashedPassword"
46
- ]
47
- }
48
- },
49
- "required": [
50
- "command",
51
- "data"
52
- ]
53
- }
@@ -1,78 +0,0 @@
1
- {
2
- "$id": "account/register/response",
3
- "requiresLogin": false,
4
- "requiresRole": false,
5
- "anyOf": [
6
- {
7
- "type": "object",
8
- "properties": {
9
- "command": {
10
- "const": "account/register/response",
11
- "type": "string"
12
- },
13
- "status": {
14
- "const": "success",
15
- "type": "string"
16
- }
17
- },
18
- "required": [
19
- "command",
20
- "status"
21
- ]
22
- },
23
- {
24
- "type": "object",
25
- "properties": {
26
- "command": {
27
- "const": "account/register/response",
28
- "type": "string"
29
- },
30
- "status": {
31
- "const": "failed",
32
- "type": "string"
33
- },
34
- "reason": {
35
- "anyOf": [
36
- {
37
- "const": "email_taken",
38
- "type": "string"
39
- },
40
- {
41
- "const": "username_taken",
42
- "type": "string"
43
- },
44
- {
45
- "const": "invalid_email",
46
- "type": "string"
47
- },
48
- {
49
- "const": "weak_password",
50
- "type": "string"
51
- },
52
- {
53
- "const": "username_profanity",
54
- "type": "string"
55
- },
56
- {
57
- "const": "internal_error",
58
- "type": "string"
59
- },
60
- {
61
- "const": "unauthorized",
62
- "type": "string"
63
- },
64
- {
65
- "const": "invalid_command",
66
- "type": "string"
67
- }
68
- ]
69
- }
70
- },
71
- "required": [
72
- "command",
73
- "status",
74
- "reason"
75
- ]
76
- }
77
- ]
78
- }
@@ -1,33 +0,0 @@
1
- {
2
- "$id": "account/rename/request",
3
- "requiresLogin": false,
4
- "requiresRole": false,
5
- "type": "object",
6
- "properties": {
7
- "command": {
8
- "const": "account/rename/request",
9
- "type": "string"
10
- },
11
- "data": {
12
- "type": "object",
13
- "properties": {
14
- "newUsername": {
15
- "minLength": 3,
16
- "maxLength": 20,
17
- "pattern": "^[A-Za-z0-9_-]+$",
18
- "examples": [
19
- "Bob"
20
- ],
21
- "type": "string"
22
- }
23
- },
24
- "required": [
25
- "newUsername"
26
- ]
27
- }
28
- },
29
- "required": [
30
- "command",
31
- "data"
32
- ]
33
- }
@@ -1,66 +0,0 @@
1
- {
2
- "$id": "account/rename/response",
3
- "requiresLogin": false,
4
- "requiresRole": false,
5
- "anyOf": [
6
- {
7
- "type": "object",
8
- "properties": {
9
- "command": {
10
- "const": "account/rename/response",
11
- "type": "string"
12
- },
13
- "status": {
14
- "const": "success",
15
- "type": "string"
16
- }
17
- },
18
- "required": [
19
- "command",
20
- "status"
21
- ]
22
- },
23
- {
24
- "type": "object",
25
- "properties": {
26
- "command": {
27
- "const": "account/rename/response",
28
- "type": "string"
29
- },
30
- "status": {
31
- "const": "failed",
32
- "type": "string"
33
- },
34
- "reason": {
35
- "anyOf": [
36
- {
37
- "const": "username_taken",
38
- "type": "string"
39
- },
40
- {
41
- "const": "username_profanity",
42
- "type": "string"
43
- },
44
- {
45
- "const": "internal_error",
46
- "type": "string"
47
- },
48
- {
49
- "const": "unauthorized",
50
- "type": "string"
51
- },
52
- {
53
- "const": "invalid_command",
54
- "type": "string"
55
- }
56
- ]
57
- }
58
- },
59
- "required": [
60
- "command",
61
- "status",
62
- "reason"
63
- ]
64
- }
65
- ]
66
- }