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,58 @@
1
+ {
2
+ "$id": "lobby/left/response",
3
+ "requiresLogin": false,
4
+ "requiresRole": false,
5
+ "anyOf": [
6
+ {
7
+ "type": "object",
8
+ "properties": {
9
+ "command": {
10
+ "const": "lobby/left/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/left/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,15 @@
1
+ {
2
+ "$id": "lobby/list/request",
3
+ "requiresLogin": false,
4
+ "requiresRole": false,
5
+ "type": "object",
6
+ "properties": {
7
+ "command": {
8
+ "const": "lobby/list/request",
9
+ "type": "string"
10
+ }
11
+ },
12
+ "required": [
13
+ "command"
14
+ ]
15
+ }
@@ -0,0 +1,267 @@
1
+ {
2
+ "$id": "lobby/list/response",
3
+ "requiresLogin": false,
4
+ "requiresRole": false,
5
+ "anyOf": [
6
+ {
7
+ "type": "object",
8
+ "properties": {
9
+ "command": {
10
+ "const": "lobby/list/response",
11
+ "type": "string"
12
+ },
13
+ "status": {
14
+ "const": "success",
15
+ "type": "string"
16
+ },
17
+ "data": {
18
+ "type": "object",
19
+ "properties": {
20
+ "lobbies": {
21
+ "type": "array",
22
+ "items": {
23
+ "examples": [
24
+ {
25
+ "id": 27,
26
+ "name": "8v8 | All Welcome",
27
+ "founderId": 822,
28
+ "locked": false,
29
+ "passworded": false,
30
+ "playerIds": [
31
+ 567,
32
+ 232,
33
+ 88,
34
+ 119
35
+ ],
36
+ "spectatorIds": [
37
+ 88
38
+ ],
39
+ "engine": "105.1.1-1821-gaca6f20 BAR105",
40
+ "game": "Beyond All Reason test-23561-0abff7c",
41
+ "map": "Red Comet Remake 1.8",
42
+ "startAreas": {
43
+ "0": {
44
+ "x": 0,
45
+ "y": 0,
46
+ "width": 1,
47
+ "height": 0.3
48
+ },
49
+ "1": {
50
+ "x": 0,
51
+ "y": 0.7,
52
+ "width": 1,
53
+ "height": 0.3
54
+ }
55
+ },
56
+ "limits": {
57
+ "minTeamsize": 3,
58
+ "maxTeamsize": 3,
59
+ "minRating": null,
60
+ "maxRating": 25
61
+ }
62
+ }
63
+ ],
64
+ "type": "object",
65
+ "properties": {
66
+ "id": {
67
+ "type": "integer"
68
+ },
69
+ "name": {
70
+ "type": "string"
71
+ },
72
+ "founderId": {
73
+ "type": "integer"
74
+ },
75
+ "locked": {
76
+ "type": "boolean"
77
+ },
78
+ "passworded": {
79
+ "type": "boolean"
80
+ },
81
+ "playerIds": {
82
+ "type": "array",
83
+ "items": {
84
+ "type": "integer"
85
+ }
86
+ },
87
+ "spectatorIds": {
88
+ "type": "array",
89
+ "items": {
90
+ "type": "integer"
91
+ }
92
+ },
93
+ "engine": {
94
+ "type": "string"
95
+ },
96
+ "game": {
97
+ "type": "string"
98
+ },
99
+ "map": {
100
+ "type": "string"
101
+ },
102
+ "startAreas": {
103
+ "default": {
104
+ "0": {
105
+ "x": 0,
106
+ "y": 0,
107
+ "width": 1,
108
+ "height": 0.3
109
+ },
110
+ "1": {
111
+ "x": 0,
112
+ "y": 0.7,
113
+ "width": 1,
114
+ "height": 0.3
115
+ }
116
+ },
117
+ "type": "object",
118
+ "patternProperties": {
119
+ "^(0|[1-9][0-9]*)$": {
120
+ "examples": [
121
+ {
122
+ "x": 0,
123
+ "y": 0,
124
+ "width": 1,
125
+ "height": 0.3
126
+ }
127
+ ],
128
+ "type": "object",
129
+ "properties": {
130
+ "x": {
131
+ "type": "number"
132
+ },
133
+ "y": {
134
+ "type": "number"
135
+ },
136
+ "width": {
137
+ "type": "number"
138
+ },
139
+ "height": {
140
+ "type": "number"
141
+ }
142
+ },
143
+ "required": [
144
+ "x",
145
+ "y",
146
+ "width",
147
+ "height"
148
+ ]
149
+ }
150
+ }
151
+ },
152
+ "limits": {
153
+ "type": "object",
154
+ "properties": {
155
+ "minTeamsize": {
156
+ "anyOf": [
157
+ {
158
+ "type": "integer"
159
+ },
160
+ {
161
+ "type": "null"
162
+ }
163
+ ]
164
+ },
165
+ "maxTeamsize": {
166
+ "anyOf": [
167
+ {
168
+ "type": "integer"
169
+ },
170
+ {
171
+ "type": "null"
172
+ }
173
+ ]
174
+ },
175
+ "minRating": {
176
+ "anyOf": [
177
+ {
178
+ "type": "integer"
179
+ },
180
+ {
181
+ "type": "null"
182
+ }
183
+ ]
184
+ },
185
+ "maxRating": {
186
+ "anyOf": [
187
+ {
188
+ "type": "integer"
189
+ },
190
+ {
191
+ "type": "null"
192
+ }
193
+ ]
194
+ }
195
+ },
196
+ "required": [
197
+ "minTeamsize",
198
+ "maxTeamsize",
199
+ "minRating",
200
+ "maxRating"
201
+ ]
202
+ }
203
+ },
204
+ "required": [
205
+ "id",
206
+ "name",
207
+ "founderId",
208
+ "locked",
209
+ "passworded",
210
+ "playerIds",
211
+ "spectatorIds",
212
+ "engine",
213
+ "game",
214
+ "map",
215
+ "startAreas",
216
+ "limits"
217
+ ]
218
+ }
219
+ }
220
+ },
221
+ "required": [
222
+ "lobbies"
223
+ ]
224
+ }
225
+ },
226
+ "required": [
227
+ "command",
228
+ "status",
229
+ "data"
230
+ ]
231
+ },
232
+ {
233
+ "type": "object",
234
+ "properties": {
235
+ "command": {
236
+ "const": "lobby/list/response",
237
+ "type": "string"
238
+ },
239
+ "status": {
240
+ "const": "failed",
241
+ "type": "string"
242
+ },
243
+ "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
+ ]
258
+ }
259
+ },
260
+ "required": [
261
+ "command",
262
+ "status",
263
+ "reason"
264
+ ]
265
+ }
266
+ ]
267
+ }
@@ -0,0 +1,80 @@
1
+ {
2
+ "$id": "lobby/receiveMessage/response",
3
+ "requiresLogin": false,
4
+ "requiresRole": false,
5
+ "anyOf": [
6
+ {
7
+ "type": "object",
8
+ "properties": {
9
+ "command": {
10
+ "const": "lobby/receiveMessage/response",
11
+ "type": "string"
12
+ },
13
+ "status": {
14
+ "const": "success",
15
+ "type": "string"
16
+ },
17
+ "data": {
18
+ "examples": [
19
+ {
20
+ "userId": 27,
21
+ "message": "Hello lobby!"
22
+ }
23
+ ],
24
+ "type": "object",
25
+ "properties": {
26
+ "userId": {
27
+ "type": "integer"
28
+ },
29
+ "message": {
30
+ "type": "string"
31
+ }
32
+ },
33
+ "required": [
34
+ "userId",
35
+ "message"
36
+ ]
37
+ }
38
+ },
39
+ "required": [
40
+ "command",
41
+ "status",
42
+ "data"
43
+ ]
44
+ },
45
+ {
46
+ "type": "object",
47
+ "properties": {
48
+ "command": {
49
+ "const": "lobby/receiveMessage/response",
50
+ "type": "string"
51
+ },
52
+ "status": {
53
+ "const": "failed",
54
+ "type": "string"
55
+ },
56
+ "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
+ ]
71
+ }
72
+ },
73
+ "required": [
74
+ "command",
75
+ "status",
76
+ "reason"
77
+ ]
78
+ }
79
+ ]
80
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "$id": "lobby/sendMessage/request",
3
+ "requiresLogin": false,
4
+ "requiresRole": false,
5
+ "type": "object",
6
+ "properties": {
7
+ "command": {
8
+ "const": "lobby/sendMessage/request",
9
+ "type": "string"
10
+ },
11
+ "data": {
12
+ "examples": [
13
+ {
14
+ "message": "Hello lobby!"
15
+ }
16
+ ],
17
+ "type": "object",
18
+ "properties": {
19
+ "message": {
20
+ "maxLength": 300,
21
+ "type": "string"
22
+ }
23
+ },
24
+ "required": [
25
+ "message"
26
+ ]
27
+ }
28
+ },
29
+ "required": [
30
+ "command",
31
+ "data"
32
+ ]
33
+ }
@@ -0,0 +1,66 @@
1
+ {
2
+ "$id": "lobby/sendMessage/response",
3
+ "requiresLogin": false,
4
+ "requiresRole": false,
5
+ "anyOf": [
6
+ {
7
+ "type": "object",
8
+ "properties": {
9
+ "command": {
10
+ "const": "lobby/sendMessage/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/sendMessage/response",
28
+ "type": "string"
29
+ },
30
+ "status": {
31
+ "const": "failed",
32
+ "type": "string"
33
+ },
34
+ "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
+ ]
57
+ }
58
+ },
59
+ "required": [
60
+ "command",
61
+ "status",
62
+ "reason"
63
+ ]
64
+ }
65
+ ]
66
+ }