tachyon-protocol 0.1.12 → 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 -278
  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 -304
  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,12 +1,14 @@
1
1
  {
2
2
  "$id": "lobby/left/response",
3
3
  "requiresLogin": false,
4
- "requiresRole": false,
5
4
  "anyOf": [
6
5
  {
7
6
  "type": "object",
8
7
  "properties": {
9
- "command": {
8
+ "messageId": {
9
+ "type": "string"
10
+ },
11
+ "commandId": {
10
12
  "const": "lobby/left/response",
11
13
  "type": "string"
12
14
  },
@@ -16,14 +18,18 @@
16
18
  }
17
19
  },
18
20
  "required": [
19
- "command",
21
+ "messageId",
22
+ "commandId",
20
23
  "status"
21
24
  ]
22
25
  },
23
26
  {
24
27
  "type": "object",
25
28
  "properties": {
26
- "command": {
29
+ "messageId": {
30
+ "type": "string"
31
+ },
32
+ "commandId": {
27
33
  "const": "lobby/left/response",
28
34
  "type": "string"
29
35
  },
@@ -32,24 +38,65 @@
32
38
  "type": "string"
33
39
  },
34
40
  "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
- ]
41
+ "const": "internal_error",
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": "lobby/left/response",
60
+ "type": "string"
61
+ },
62
+ "status": {
63
+ "const": "failed",
64
+ "type": "string"
65
+ },
66
+ "reason": {
67
+ "const": "unauthorized",
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": "lobby/left/response",
86
+ "type": "string"
87
+ },
88
+ "status": {
89
+ "const": "failed",
90
+ "type": "string"
91
+ },
92
+ "reason": {
93
+ "const": "invalid_command",
94
+ "type": "string"
49
95
  }
50
96
  },
51
97
  "required": [
52
- "command",
98
+ "messageId",
99
+ "commandId",
53
100
  "status",
54
101
  "reason"
55
102
  ]
@@ -1,15 +1,18 @@
1
1
  {
2
2
  "$id": "lobby/list/request",
3
3
  "requiresLogin": false,
4
- "requiresRole": false,
5
4
  "type": "object",
6
5
  "properties": {
7
- "command": {
6
+ "messageId": {
7
+ "type": "string"
8
+ },
9
+ "commandId": {
8
10
  "const": "lobby/list/request",
9
11
  "type": "string"
10
12
  }
11
13
  },
12
14
  "required": [
13
- "command"
15
+ "messageId",
16
+ "commandId"
14
17
  ]
15
18
  }
@@ -1,12 +1,14 @@
1
1
  {
2
2
  "$id": "lobby/list/response",
3
3
  "requiresLogin": false,
4
- "requiresRole": false,
5
4
  "anyOf": [
6
5
  {
7
6
  "type": "object",
8
7
  "properties": {
9
- "command": {
8
+ "messageId": {
9
+ "type": "string"
10
+ },
11
+ "commandId": {
10
12
  "const": "lobby/list/response",
11
13
  "type": "string"
12
14
  },
@@ -224,7 +226,8 @@
224
226
  }
225
227
  },
226
228
  "required": [
227
- "command",
229
+ "messageId",
230
+ "commandId",
228
231
  "status",
229
232
  "data"
230
233
  ]
@@ -232,7 +235,10 @@
232
235
  {
233
236
  "type": "object",
234
237
  "properties": {
235
- "command": {
238
+ "messageId": {
239
+ "type": "string"
240
+ },
241
+ "commandId": {
236
242
  "const": "lobby/list/response",
237
243
  "type": "string"
238
244
  },
@@ -241,24 +247,65 @@
241
247
  "type": "string"
242
248
  },
243
249
  "reason": {
244
- "anyOf": [
245
- {
246
- "const": "internal_error",
247
- "type": "string"
248
- },
249
- {
250
- "const": "unauthorized",
251
- "type": "string"
252
- },
253
- {
254
- "const": "invalid_command",
255
- "type": "string"
256
- }
257
- ]
250
+ "const": "internal_error",
251
+ "type": "string"
252
+ }
253
+ },
254
+ "required": [
255
+ "messageId",
256
+ "commandId",
257
+ "status",
258
+ "reason"
259
+ ]
260
+ },
261
+ {
262
+ "type": "object",
263
+ "properties": {
264
+ "messageId": {
265
+ "type": "string"
266
+ },
267
+ "commandId": {
268
+ "const": "lobby/list/response",
269
+ "type": "string"
270
+ },
271
+ "status": {
272
+ "const": "failed",
273
+ "type": "string"
274
+ },
275
+ "reason": {
276
+ "const": "unauthorized",
277
+ "type": "string"
278
+ }
279
+ },
280
+ "required": [
281
+ "messageId",
282
+ "commandId",
283
+ "status",
284
+ "reason"
285
+ ]
286
+ },
287
+ {
288
+ "type": "object",
289
+ "properties": {
290
+ "messageId": {
291
+ "type": "string"
292
+ },
293
+ "commandId": {
294
+ "const": "lobby/list/response",
295
+ "type": "string"
296
+ },
297
+ "status": {
298
+ "const": "failed",
299
+ "type": "string"
300
+ },
301
+ "reason": {
302
+ "const": "invalid_command",
303
+ "type": "string"
258
304
  }
259
305
  },
260
306
  "required": [
261
- "command",
307
+ "messageId",
308
+ "commandId",
262
309
  "status",
263
310
  "reason"
264
311
  ]
@@ -1,12 +1,14 @@
1
1
  {
2
2
  "$id": "lobby/receiveMessage/response",
3
3
  "requiresLogin": false,
4
- "requiresRole": false,
5
4
  "anyOf": [
6
5
  {
7
6
  "type": "object",
8
7
  "properties": {
9
- "command": {
8
+ "messageId": {
9
+ "type": "string"
10
+ },
11
+ "commandId": {
10
12
  "const": "lobby/receiveMessage/response",
11
13
  "type": "string"
12
14
  },
@@ -37,7 +39,8 @@
37
39
  }
38
40
  },
39
41
  "required": [
40
- "command",
42
+ "messageId",
43
+ "commandId",
41
44
  "status",
42
45
  "data"
43
46
  ]
@@ -45,7 +48,10 @@
45
48
  {
46
49
  "type": "object",
47
50
  "properties": {
48
- "command": {
51
+ "messageId": {
52
+ "type": "string"
53
+ },
54
+ "commandId": {
49
55
  "const": "lobby/receiveMessage/response",
50
56
  "type": "string"
51
57
  },
@@ -54,24 +60,65 @@
54
60
  "type": "string"
55
61
  },
56
62
  "reason": {
57
- "anyOf": [
58
- {
59
- "const": "internal_error",
60
- "type": "string"
61
- },
62
- {
63
- "const": "unauthorized",
64
- "type": "string"
65
- },
66
- {
67
- "const": "invalid_command",
68
- "type": "string"
69
- }
70
- ]
63
+ "const": "internal_error",
64
+ "type": "string"
65
+ }
66
+ },
67
+ "required": [
68
+ "messageId",
69
+ "commandId",
70
+ "status",
71
+ "reason"
72
+ ]
73
+ },
74
+ {
75
+ "type": "object",
76
+ "properties": {
77
+ "messageId": {
78
+ "type": "string"
79
+ },
80
+ "commandId": {
81
+ "const": "lobby/receiveMessage/response",
82
+ "type": "string"
83
+ },
84
+ "status": {
85
+ "const": "failed",
86
+ "type": "string"
87
+ },
88
+ "reason": {
89
+ "const": "unauthorized",
90
+ "type": "string"
91
+ }
92
+ },
93
+ "required": [
94
+ "messageId",
95
+ "commandId",
96
+ "status",
97
+ "reason"
98
+ ]
99
+ },
100
+ {
101
+ "type": "object",
102
+ "properties": {
103
+ "messageId": {
104
+ "type": "string"
105
+ },
106
+ "commandId": {
107
+ "const": "lobby/receiveMessage/response",
108
+ "type": "string"
109
+ },
110
+ "status": {
111
+ "const": "failed",
112
+ "type": "string"
113
+ },
114
+ "reason": {
115
+ "const": "invalid_command",
116
+ "type": "string"
71
117
  }
72
118
  },
73
119
  "required": [
74
- "command",
120
+ "messageId",
121
+ "commandId",
75
122
  "status",
76
123
  "reason"
77
124
  ]
@@ -1,10 +1,12 @@
1
1
  {
2
2
  "$id": "lobby/sendMessage/request",
3
3
  "requiresLogin": false,
4
- "requiresRole": false,
5
4
  "type": "object",
6
5
  "properties": {
7
- "command": {
6
+ "messageId": {
7
+ "type": "string"
8
+ },
9
+ "commandId": {
8
10
  "const": "lobby/sendMessage/request",
9
11
  "type": "string"
10
12
  },
@@ -27,7 +29,8 @@
27
29
  }
28
30
  },
29
31
  "required": [
30
- "command",
32
+ "messageId",
33
+ "commandId",
31
34
  "data"
32
35
  ]
33
36
  }
@@ -1,12 +1,14 @@
1
1
  {
2
2
  "$id": "lobby/sendMessage/response",
3
3
  "requiresLogin": false,
4
- "requiresRole": false,
5
4
  "anyOf": [
6
5
  {
7
6
  "type": "object",
8
7
  "properties": {
9
- "command": {
8
+ "messageId": {
9
+ "type": "string"
10
+ },
11
+ "commandId": {
10
12
  "const": "lobby/sendMessage/response",
11
13
  "type": "string"
12
14
  },
@@ -16,14 +18,18 @@
16
18
  }
17
19
  },
18
20
  "required": [
19
- "command",
21
+ "messageId",
22
+ "commandId",
20
23
  "status"
21
24
  ]
22
25
  },
23
26
  {
24
27
  "type": "object",
25
28
  "properties": {
26
- "command": {
29
+ "messageId": {
30
+ "type": "string"
31
+ },
32
+ "commandId": {
27
33
  "const": "lobby/sendMessage/response",
28
34
  "type": "string"
29
35
  },
@@ -32,32 +38,117 @@
32
38
  "type": "string"
33
39
  },
34
40
  "reason": {
35
- "anyOf": [
36
- {
37
- "const": "not_in_lobby",
38
- "type": "string"
39
- },
40
- {
41
- "const": "muted",
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
- ]
41
+ "const": "not_in_lobby",
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": "lobby/sendMessage/response",
60
+ "type": "string"
61
+ },
62
+ "status": {
63
+ "const": "failed",
64
+ "type": "string"
65
+ },
66
+ "reason": {
67
+ "const": "muted",
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": "lobby/sendMessage/response",
86
+ "type": "string"
87
+ },
88
+ "status": {
89
+ "const": "failed",
90
+ "type": "string"
91
+ },
92
+ "reason": {
93
+ "const": "internal_error",
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": "lobby/sendMessage/response",
112
+ "type": "string"
113
+ },
114
+ "status": {
115
+ "const": "failed",
116
+ "type": "string"
117
+ },
118
+ "reason": {
119
+ "const": "unauthorized",
120
+ "type": "string"
121
+ }
122
+ },
123
+ "required": [
124
+ "messageId",
125
+ "commandId",
126
+ "status",
127
+ "reason"
128
+ ]
129
+ },
130
+ {
131
+ "type": "object",
132
+ "properties": {
133
+ "messageId": {
134
+ "type": "string"
135
+ },
136
+ "commandId": {
137
+ "const": "lobby/sendMessage/response",
138
+ "type": "string"
139
+ },
140
+ "status": {
141
+ "const": "failed",
142
+ "type": "string"
143
+ },
144
+ "reason": {
145
+ "const": "invalid_command",
146
+ "type": "string"
57
147
  }
58
148
  },
59
149
  "required": [
60
- "command",
150
+ "messageId",
151
+ "commandId",
61
152
  "status",
62
153
  "reason"
63
154
  ]