tachyon-protocol 0.1.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 +97 -0
  2. package/dist/account/getToken/request.json +73 -0
  3. package/dist/account/getToken/response.json +91 -0
  4. package/dist/account/login/request.json +32 -0
  5. package/dist/account/login/response.json +300 -0
  6. package/dist/account/recover/request.json +15 -0
  7. package/dist/account/recover/response.json +58 -0
  8. package/dist/account/register/request.json +52 -0
  9. package/dist/account/register/response.json +78 -0
  10. package/dist/account/rename/request.json +33 -0
  11. package/dist/account/rename/response.json +66 -0
  12. package/dist/bot/slave/request.json +29 -0
  13. package/dist/bot/slave/response.json +58 -0
  14. package/dist/bot/unslave/request.json +15 -0
  15. package/dist/bot/unslave/response.json +58 -0
  16. package/dist/game/launch/response.json +70 -0
  17. package/dist/index.d.ts +923 -0
  18. package/dist/lobby/close/request.json +15 -0
  19. package/dist/lobby/close/response.json +58 -0
  20. package/dist/lobby/create/request.json +52 -0
  21. package/dist/lobby/create/response.json +66 -0
  22. package/dist/lobby/join/request.json +36 -0
  23. package/dist/lobby/join/response.json +86 -0
  24. package/dist/lobby/joined/response.json +256 -0
  25. package/dist/lobby/leave/request.json +15 -0
  26. package/dist/lobby/leave/response.json +62 -0
  27. package/dist/lobby/left/response.json +58 -0
  28. package/dist/lobby/list/request.json +15 -0
  29. package/dist/lobby/list/response.json +267 -0
  30. package/dist/lobby/receiveMessage/response.json +80 -0
  31. package/dist/lobby/sendMessage/request.json +33 -0
  32. package/dist/lobby/sendMessage/response.json +66 -0
  33. package/dist/lobby/updated/response.json +212 -0
  34. package/dist/matchmaking/cancel/request.json +15 -0
  35. package/dist/matchmaking/cancel/response.json +62 -0
  36. package/dist/matchmaking/found/response.json +70 -0
  37. package/dist/matchmaking/list/request.json +15 -0
  38. package/dist/matchmaking/list/response.json +105 -0
  39. package/dist/matchmaking/lost/response.json +58 -0
  40. package/dist/matchmaking/queue/request.json +31 -0
  41. package/dist/matchmaking/queue/response.json +66 -0
  42. package/dist/matchmaking/queueUpdate/response.json +70 -0
  43. package/dist/matchmaking/ready/request.json +15 -0
  44. package/dist/matchmaking/ready/response.json +62 -0
  45. package/dist/matchmaking/readyUpdate/response.json +74 -0
  46. package/dist/system/disconnect/request.json +15 -0
  47. package/dist/system/disconnected/response.json +58 -0
  48. package/dist/system/version/response.json +71 -0
  49. package/license.md +19 -0
  50. package/package.json +52 -0
@@ -0,0 +1,15 @@
1
+ {
2
+ "$id": "lobby/close/request",
3
+ "requiresLogin": false,
4
+ "requiresRole": false,
5
+ "type": "object",
6
+ "properties": {
7
+ "command": {
8
+ "const": "lobby/close/request",
9
+ "type": "string"
10
+ }
11
+ },
12
+ "required": [
13
+ "command"
14
+ ]
15
+ }
@@ -0,0 +1,58 @@
1
+ {
2
+ "$id": "lobby/close/response",
3
+ "requiresLogin": false,
4
+ "requiresRole": false,
5
+ "anyOf": [
6
+ {
7
+ "type": "object",
8
+ "properties": {
9
+ "command": {
10
+ "const": "lobby/close/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": "lobby/close/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
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "$id": "lobby/create/request",
3
+ "requiresLogin": false,
4
+ "requiresRole": false,
5
+ "type": "object",
6
+ "properties": {
7
+ "command": {
8
+ "const": "lobby/create/request",
9
+ "type": "string"
10
+ },
11
+ "data": {
12
+ "examples": [
13
+ {
14
+ "title": "8v8 | All Welcome",
15
+ "private": false,
16
+ "region": "EU",
17
+ "maxPlayers": 16
18
+ }
19
+ ],
20
+ "type": "object",
21
+ "properties": {
22
+ "title": {
23
+ "minLength": 2,
24
+ "maxLength": 30,
25
+ "type": "string"
26
+ },
27
+ "private": {
28
+ "default": true,
29
+ "type": "boolean"
30
+ },
31
+ "region": {
32
+ "type": "string"
33
+ },
34
+ "maxPlayers": {
35
+ "minimum": 0,
36
+ "default": 16,
37
+ "type": "integer"
38
+ }
39
+ },
40
+ "required": [
41
+ "title",
42
+ "private",
43
+ "region",
44
+ "maxPlayers"
45
+ ]
46
+ }
47
+ },
48
+ "required": [
49
+ "command",
50
+ "data"
51
+ ]
52
+ }
@@ -0,0 +1,66 @@
1
+ {
2
+ "$id": "lobby/create/response",
3
+ "requiresLogin": false,
4
+ "requiresRole": false,
5
+ "anyOf": [
6
+ {
7
+ "type": "object",
8
+ "properties": {
9
+ "command": {
10
+ "const": "lobby/create/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": "lobby/create/response",
28
+ "type": "string"
29
+ },
30
+ "status": {
31
+ "const": "failed",
32
+ "type": "string"
33
+ },
34
+ "reason": {
35
+ "anyOf": [
36
+ {
37
+ "const": "no_hosts_available",
38
+ "type": "string"
39
+ },
40
+ {
41
+ "const": "invalid_region",
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
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "$id": "lobby/join/request",
3
+ "requiresLogin": false,
4
+ "requiresRole": false,
5
+ "type": "object",
6
+ "properties": {
7
+ "command": {
8
+ "const": "lobby/join/request",
9
+ "type": "string"
10
+ },
11
+ "data": {
12
+ "examples": [
13
+ {
14
+ "lobbyId": 27,
15
+ "password": "fish"
16
+ }
17
+ ],
18
+ "type": "object",
19
+ "properties": {
20
+ "lobbyId": {
21
+ "type": "integer"
22
+ },
23
+ "password": {
24
+ "type": "string"
25
+ }
26
+ },
27
+ "required": [
28
+ "lobbyId"
29
+ ]
30
+ }
31
+ },
32
+ "required": [
33
+ "command",
34
+ "data"
35
+ ]
36
+ }
@@ -0,0 +1,86 @@
1
+ {
2
+ "$id": "lobby/join/response",
3
+ "requiresLogin": false,
4
+ "requiresRole": false,
5
+ "anyOf": [
6
+ {
7
+ "type": "object",
8
+ "properties": {
9
+ "command": {
10
+ "const": "lobby/join/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": "lobby/join/response",
28
+ "type": "string"
29
+ },
30
+ "status": {
31
+ "const": "failed",
32
+ "type": "string"
33
+ },
34
+ "reason": {
35
+ "anyOf": [
36
+ {
37
+ "const": "locked",
38
+ "type": "string"
39
+ },
40
+ {
41
+ "const": "requires_password",
42
+ "type": "string"
43
+ },
44
+ {
45
+ "const": "invalid_password",
46
+ "type": "string"
47
+ },
48
+ {
49
+ "const": "max_participants_reached",
50
+ "type": "string"
51
+ },
52
+ {
53
+ "const": "rank_too_low",
54
+ "type": "string"
55
+ },
56
+ {
57
+ "const": "rank_too_high",
58
+ "type": "string"
59
+ },
60
+ {
61
+ "const": "banned",
62
+ "type": "string"
63
+ },
64
+ {
65
+ "const": "internal_error",
66
+ "type": "string"
67
+ },
68
+ {
69
+ "const": "unauthorized",
70
+ "type": "string"
71
+ },
72
+ {
73
+ "const": "invalid_command",
74
+ "type": "string"
75
+ }
76
+ ]
77
+ }
78
+ },
79
+ "required": [
80
+ "command",
81
+ "status",
82
+ "reason"
83
+ ]
84
+ }
85
+ ]
86
+ }
@@ -0,0 +1,256 @@
1
+ {
2
+ "$id": "lobby/joined/response",
3
+ "requiresLogin": false,
4
+ "requiresRole": false,
5
+ "anyOf": [
6
+ {
7
+ "type": "object",
8
+ "properties": {
9
+ "command": {
10
+ "const": "lobby/joined/response",
11
+ "type": "string"
12
+ },
13
+ "status": {
14
+ "const": "success",
15
+ "type": "string"
16
+ },
17
+ "data": {
18
+ "examples": [
19
+ {
20
+ "id": 27,
21
+ "name": "8v8 | All Welcome",
22
+ "founderId": 822,
23
+ "locked": false,
24
+ "passworded": false,
25
+ "playerIds": [
26
+ 567,
27
+ 232,
28
+ 88,
29
+ 119
30
+ ],
31
+ "spectatorIds": [
32
+ 88
33
+ ],
34
+ "engine": "105.1.1-1821-gaca6f20 BAR105",
35
+ "game": "Beyond All Reason test-23561-0abff7c",
36
+ "map": "Red Comet Remake 1.8",
37
+ "startAreas": {
38
+ "0": {
39
+ "x": 0,
40
+ "y": 0,
41
+ "width": 1,
42
+ "height": 0.3
43
+ },
44
+ "1": {
45
+ "x": 0,
46
+ "y": 0.7,
47
+ "width": 1,
48
+ "height": 0.3
49
+ }
50
+ },
51
+ "limits": {
52
+ "minTeamsize": 3,
53
+ "maxTeamsize": 3,
54
+ "minRating": null,
55
+ "maxRating": 25
56
+ }
57
+ }
58
+ ],
59
+ "type": "object",
60
+ "properties": {
61
+ "id": {
62
+ "type": "integer"
63
+ },
64
+ "name": {
65
+ "type": "string"
66
+ },
67
+ "founderId": {
68
+ "type": "integer"
69
+ },
70
+ "locked": {
71
+ "type": "boolean"
72
+ },
73
+ "passworded": {
74
+ "type": "boolean"
75
+ },
76
+ "playerIds": {
77
+ "type": "array",
78
+ "items": {
79
+ "type": "integer"
80
+ }
81
+ },
82
+ "spectatorIds": {
83
+ "type": "array",
84
+ "items": {
85
+ "type": "integer"
86
+ }
87
+ },
88
+ "engine": {
89
+ "type": "string"
90
+ },
91
+ "game": {
92
+ "type": "string"
93
+ },
94
+ "map": {
95
+ "type": "string"
96
+ },
97
+ "startAreas": {
98
+ "default": {
99
+ "0": {
100
+ "x": 0,
101
+ "y": 0,
102
+ "width": 1,
103
+ "height": 0.3
104
+ },
105
+ "1": {
106
+ "x": 0,
107
+ "y": 0.7,
108
+ "width": 1,
109
+ "height": 0.3
110
+ }
111
+ },
112
+ "type": "object",
113
+ "patternProperties": {
114
+ "^(0|[1-9][0-9]*)$": {
115
+ "examples": [
116
+ {
117
+ "x": 0,
118
+ "y": 0,
119
+ "width": 1,
120
+ "height": 0.3
121
+ }
122
+ ],
123
+ "type": "object",
124
+ "properties": {
125
+ "x": {
126
+ "type": "number"
127
+ },
128
+ "y": {
129
+ "type": "number"
130
+ },
131
+ "width": {
132
+ "type": "number"
133
+ },
134
+ "height": {
135
+ "type": "number"
136
+ }
137
+ },
138
+ "required": [
139
+ "x",
140
+ "y",
141
+ "width",
142
+ "height"
143
+ ]
144
+ }
145
+ }
146
+ },
147
+ "limits": {
148
+ "type": "object",
149
+ "properties": {
150
+ "minTeamsize": {
151
+ "anyOf": [
152
+ {
153
+ "type": "integer"
154
+ },
155
+ {
156
+ "type": "null"
157
+ }
158
+ ]
159
+ },
160
+ "maxTeamsize": {
161
+ "anyOf": [
162
+ {
163
+ "type": "integer"
164
+ },
165
+ {
166
+ "type": "null"
167
+ }
168
+ ]
169
+ },
170
+ "minRating": {
171
+ "anyOf": [
172
+ {
173
+ "type": "integer"
174
+ },
175
+ {
176
+ "type": "null"
177
+ }
178
+ ]
179
+ },
180
+ "maxRating": {
181
+ "anyOf": [
182
+ {
183
+ "type": "integer"
184
+ },
185
+ {
186
+ "type": "null"
187
+ }
188
+ ]
189
+ }
190
+ },
191
+ "required": [
192
+ "minTeamsize",
193
+ "maxTeamsize",
194
+ "minRating",
195
+ "maxRating"
196
+ ]
197
+ }
198
+ },
199
+ "required": [
200
+ "id",
201
+ "name",
202
+ "founderId",
203
+ "locked",
204
+ "passworded",
205
+ "playerIds",
206
+ "spectatorIds",
207
+ "engine",
208
+ "game",
209
+ "map",
210
+ "startAreas",
211
+ "limits"
212
+ ]
213
+ }
214
+ },
215
+ "required": [
216
+ "command",
217
+ "status",
218
+ "data"
219
+ ]
220
+ },
221
+ {
222
+ "type": "object",
223
+ "properties": {
224
+ "command": {
225
+ "const": "lobby/joined/response",
226
+ "type": "string"
227
+ },
228
+ "status": {
229
+ "const": "failed",
230
+ "type": "string"
231
+ },
232
+ "reason": {
233
+ "anyOf": [
234
+ {
235
+ "const": "internal_error",
236
+ "type": "string"
237
+ },
238
+ {
239
+ "const": "unauthorized",
240
+ "type": "string"
241
+ },
242
+ {
243
+ "const": "invalid_command",
244
+ "type": "string"
245
+ }
246
+ ]
247
+ }
248
+ },
249
+ "required": [
250
+ "command",
251
+ "status",
252
+ "reason"
253
+ ]
254
+ }
255
+ ]
256
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "$id": "lobby/leave/request",
3
+ "requiresLogin": false,
4
+ "requiresRole": false,
5
+ "type": "object",
6
+ "properties": {
7
+ "command": {
8
+ "const": "lobby/leave/request",
9
+ "type": "string"
10
+ }
11
+ },
12
+ "required": [
13
+ "command"
14
+ ]
15
+ }
@@ -0,0 +1,62 @@
1
+ {
2
+ "$id": "lobby/leave/response",
3
+ "requiresLogin": false,
4
+ "requiresRole": false,
5
+ "anyOf": [
6
+ {
7
+ "type": "object",
8
+ "properties": {
9
+ "command": {
10
+ "const": "lobby/leave/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": "lobby/leave/response",
28
+ "type": "string"
29
+ },
30
+ "status": {
31
+ "const": "failed",
32
+ "type": "string"
33
+ },
34
+ "reason": {
35
+ "anyOf": [
36
+ {
37
+ "const": "no_lobby",
38
+ "type": "string"
39
+ },
40
+ {
41
+ "const": "internal_error",
42
+ "type": "string"
43
+ },
44
+ {
45
+ "const": "unauthorized",
46
+ "type": "string"
47
+ },
48
+ {
49
+ "const": "invalid_command",
50
+ "type": "string"
51
+ }
52
+ ]
53
+ }
54
+ },
55
+ "required": [
56
+ "command",
57
+ "status",
58
+ "reason"
59
+ ]
60
+ }
61
+ ]
62
+ }