tachyon-protocol 0.1.1 → 0.1.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 (48) hide show
  1. package/dist/account/getToken/request.json +72 -72
  2. package/dist/account/getToken/response.json +90 -90
  3. package/dist/account/login/request.json +31 -31
  4. package/dist/account/login/response.json +299 -299
  5. package/dist/account/recover/request.json +14 -14
  6. package/dist/account/recover/response.json +57 -57
  7. package/dist/account/register/request.json +51 -51
  8. package/dist/account/register/response.json +77 -77
  9. package/dist/account/rename/request.json +32 -32
  10. package/dist/account/rename/response.json +65 -65
  11. package/dist/bot/slave/request.json +28 -28
  12. package/dist/bot/slave/response.json +57 -57
  13. package/dist/bot/unslave/request.json +14 -14
  14. package/dist/bot/unslave/response.json +57 -57
  15. package/dist/game/launch/response.json +69 -69
  16. package/dist/index.d.ts +926 -923
  17. package/dist/lobby/close/request.json +14 -14
  18. package/dist/lobby/close/response.json +57 -57
  19. package/dist/lobby/create/request.json +51 -51
  20. package/dist/lobby/create/response.json +65 -65
  21. package/dist/lobby/join/request.json +35 -35
  22. package/dist/lobby/join/response.json +85 -85
  23. package/dist/lobby/joined/response.json +255 -255
  24. package/dist/lobby/leave/request.json +14 -14
  25. package/dist/lobby/leave/response.json +61 -61
  26. package/dist/lobby/left/response.json +57 -57
  27. package/dist/lobby/list/request.json +14 -14
  28. package/dist/lobby/list/response.json +266 -266
  29. package/dist/lobby/receiveMessage/response.json +79 -79
  30. package/dist/lobby/sendMessage/request.json +32 -32
  31. package/dist/lobby/sendMessage/response.json +65 -65
  32. package/dist/lobby/updated/response.json +211 -211
  33. package/dist/matchmaking/cancel/request.json +14 -14
  34. package/dist/matchmaking/cancel/response.json +61 -61
  35. package/dist/matchmaking/found/response.json +69 -69
  36. package/dist/matchmaking/list/request.json +14 -14
  37. package/dist/matchmaking/list/response.json +104 -104
  38. package/dist/matchmaking/lost/response.json +57 -57
  39. package/dist/matchmaking/queue/request.json +30 -30
  40. package/dist/matchmaking/queue/response.json +65 -65
  41. package/dist/matchmaking/queueUpdate/response.json +69 -69
  42. package/dist/matchmaking/ready/request.json +14 -14
  43. package/dist/matchmaking/ready/response.json +61 -61
  44. package/dist/matchmaking/readyUpdate/response.json +73 -73
  45. package/dist/system/disconnect/request.json +14 -14
  46. package/dist/system/disconnected/response.json +57 -57
  47. package/dist/system/version/response.json +95 -70
  48. package/package.json +2 -2
@@ -1,300 +1,300 @@
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
- ]
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
300
  }
@@ -1,15 +1,15 @@
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
- ]
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
15
  }