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.
- package/README.md +97 -0
- package/dist/account/getToken/request.json +73 -0
- package/dist/account/getToken/response.json +91 -0
- package/dist/account/login/request.json +32 -0
- package/dist/account/login/response.json +300 -0
- package/dist/account/recover/request.json +15 -0
- package/dist/account/recover/response.json +58 -0
- package/dist/account/register/request.json +52 -0
- package/dist/account/register/response.json +78 -0
- package/dist/account/rename/request.json +33 -0
- package/dist/account/rename/response.json +66 -0
- package/dist/bot/slave/request.json +29 -0
- package/dist/bot/slave/response.json +58 -0
- package/dist/bot/unslave/request.json +15 -0
- package/dist/bot/unslave/response.json +58 -0
- package/dist/game/launch/response.json +70 -0
- package/dist/index.d.ts +923 -0
- package/dist/lobby/close/request.json +15 -0
- package/dist/lobby/close/response.json +58 -0
- package/dist/lobby/create/request.json +52 -0
- package/dist/lobby/create/response.json +66 -0
- package/dist/lobby/join/request.json +36 -0
- package/dist/lobby/join/response.json +86 -0
- package/dist/lobby/joined/response.json +256 -0
- package/dist/lobby/leave/request.json +15 -0
- package/dist/lobby/leave/response.json +62 -0
- package/dist/lobby/left/response.json +58 -0
- package/dist/lobby/list/request.json +15 -0
- package/dist/lobby/list/response.json +267 -0
- package/dist/lobby/receiveMessage/response.json +80 -0
- package/dist/lobby/sendMessage/request.json +33 -0
- package/dist/lobby/sendMessage/response.json +66 -0
- package/dist/lobby/updated/response.json +212 -0
- package/dist/matchmaking/cancel/request.json +15 -0
- package/dist/matchmaking/cancel/response.json +62 -0
- package/dist/matchmaking/found/response.json +70 -0
- package/dist/matchmaking/list/request.json +15 -0
- package/dist/matchmaking/list/response.json +105 -0
- package/dist/matchmaking/lost/response.json +58 -0
- package/dist/matchmaking/queue/request.json +31 -0
- package/dist/matchmaking/queue/response.json +66 -0
- package/dist/matchmaking/queueUpdate/response.json +70 -0
- package/dist/matchmaking/ready/request.json +15 -0
- package/dist/matchmaking/ready/response.json +62 -0
- package/dist/matchmaking/readyUpdate/response.json +74 -0
- package/dist/system/disconnect/request.json +15 -0
- package/dist/system/disconnected/response.json +58 -0
- package/dist/system/version/response.json +71 -0
- package/license.md +19 -0
- package/package.json +52 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "matchmaking/queueUpdate/response",
|
|
3
|
+
"requiresLogin": false,
|
|
4
|
+
"requiresRole": false,
|
|
5
|
+
"anyOf": [
|
|
6
|
+
{
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"command": {
|
|
10
|
+
"const": "matchmaking/queueUpdate/response",
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
"status": {
|
|
14
|
+
"const": "success",
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"data": {
|
|
18
|
+
"type": "object",
|
|
19
|
+
"properties": {
|
|
20
|
+
"playersQueued": {
|
|
21
|
+
"type": "integer"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"required": [
|
|
25
|
+
"playersQueued"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"required": [
|
|
30
|
+
"command",
|
|
31
|
+
"status",
|
|
32
|
+
"data"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"type": "object",
|
|
37
|
+
"properties": {
|
|
38
|
+
"command": {
|
|
39
|
+
"const": "matchmaking/queueUpdate/response",
|
|
40
|
+
"type": "string"
|
|
41
|
+
},
|
|
42
|
+
"status": {
|
|
43
|
+
"const": "failed",
|
|
44
|
+
"type": "string"
|
|
45
|
+
},
|
|
46
|
+
"reason": {
|
|
47
|
+
"anyOf": [
|
|
48
|
+
{
|
|
49
|
+
"const": "internal_error",
|
|
50
|
+
"type": "string"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"const": "unauthorized",
|
|
54
|
+
"type": "string"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"const": "invalid_command",
|
|
58
|
+
"type": "string"
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"required": [
|
|
64
|
+
"command",
|
|
65
|
+
"status",
|
|
66
|
+
"reason"
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "matchmaking/ready/request",
|
|
3
|
+
"requiresLogin": false,
|
|
4
|
+
"requiresRole": false,
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"command": {
|
|
8
|
+
"const": "matchmaking/ready/request",
|
|
9
|
+
"type": "string"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"required": [
|
|
13
|
+
"command"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "matchmaking/ready/response",
|
|
3
|
+
"requiresLogin": false,
|
|
4
|
+
"requiresRole": false,
|
|
5
|
+
"anyOf": [
|
|
6
|
+
{
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"command": {
|
|
10
|
+
"const": "matchmaking/ready/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": "matchmaking/ready/response",
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
"status": {
|
|
31
|
+
"const": "failed",
|
|
32
|
+
"type": "string"
|
|
33
|
+
},
|
|
34
|
+
"reason": {
|
|
35
|
+
"anyOf": [
|
|
36
|
+
{
|
|
37
|
+
"const": "no_match",
|
|
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
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "matchmaking/readyUpdate/response",
|
|
3
|
+
"requiresLogin": false,
|
|
4
|
+
"requiresRole": false,
|
|
5
|
+
"anyOf": [
|
|
6
|
+
{
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"command": {
|
|
10
|
+
"const": "matchmaking/readyUpdate/response",
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
"status": {
|
|
14
|
+
"const": "success",
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"data": {
|
|
18
|
+
"type": "object",
|
|
19
|
+
"properties": {
|
|
20
|
+
"readyMax": {
|
|
21
|
+
"type": "integer"
|
|
22
|
+
},
|
|
23
|
+
"readyCurrent": {
|
|
24
|
+
"type": "integer"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"required": [
|
|
28
|
+
"readyMax",
|
|
29
|
+
"readyCurrent"
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"required": [
|
|
34
|
+
"command",
|
|
35
|
+
"status",
|
|
36
|
+
"data"
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"type": "object",
|
|
41
|
+
"properties": {
|
|
42
|
+
"command": {
|
|
43
|
+
"const": "matchmaking/readyUpdate/response",
|
|
44
|
+
"type": "string"
|
|
45
|
+
},
|
|
46
|
+
"status": {
|
|
47
|
+
"const": "failed",
|
|
48
|
+
"type": "string"
|
|
49
|
+
},
|
|
50
|
+
"reason": {
|
|
51
|
+
"anyOf": [
|
|
52
|
+
{
|
|
53
|
+
"const": "internal_error",
|
|
54
|
+
"type": "string"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"const": "unauthorized",
|
|
58
|
+
"type": "string"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"const": "invalid_command",
|
|
62
|
+
"type": "string"
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"required": [
|
|
68
|
+
"command",
|
|
69
|
+
"status",
|
|
70
|
+
"reason"
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "system/disconnect/request",
|
|
3
|
+
"requiresLogin": false,
|
|
4
|
+
"requiresRole": false,
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"command": {
|
|
8
|
+
"const": "system/disconnect/request",
|
|
9
|
+
"type": "string"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"required": [
|
|
13
|
+
"command"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "system/disconnected/response",
|
|
3
|
+
"requiresLogin": false,
|
|
4
|
+
"requiresRole": false,
|
|
5
|
+
"anyOf": [
|
|
6
|
+
{
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"command": {
|
|
10
|
+
"const": "system/disconnected/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": "system/disconnected/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,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "system/version/response",
|
|
3
|
+
"requiresLogin": false,
|
|
4
|
+
"requiresRole": false,
|
|
5
|
+
"anyOf": [
|
|
6
|
+
{
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"command": {
|
|
10
|
+
"const": "system/version/response",
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
"status": {
|
|
14
|
+
"const": "success",
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"data": {
|
|
18
|
+
"type": "object",
|
|
19
|
+
"properties": {
|
|
20
|
+
"tachyonVersion": {
|
|
21
|
+
"const": "0.1.0",
|
|
22
|
+
"type": "string"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"required": [
|
|
26
|
+
"tachyonVersion"
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"required": [
|
|
31
|
+
"command",
|
|
32
|
+
"status",
|
|
33
|
+
"data"
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"type": "object",
|
|
38
|
+
"properties": {
|
|
39
|
+
"command": {
|
|
40
|
+
"const": "system/version/response",
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
"status": {
|
|
44
|
+
"const": "failed",
|
|
45
|
+
"type": "string"
|
|
46
|
+
},
|
|
47
|
+
"reason": {
|
|
48
|
+
"anyOf": [
|
|
49
|
+
{
|
|
50
|
+
"const": "internal_error",
|
|
51
|
+
"type": "string"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"const": "unauthorized",
|
|
55
|
+
"type": "string"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"const": "invalid_command",
|
|
59
|
+
"type": "string"
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"required": [
|
|
65
|
+
"command",
|
|
66
|
+
"status",
|
|
67
|
+
"reason"
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
}
|
package/license.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Copyright (c) 2021 Beyond All Reason
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
5
|
+
in the Software without restriction, including without limitation the rights
|
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
furnished to do so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
|
11
|
+
copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
19
|
+
SOFTWARE.
|
package/package.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "tachyon-protocol",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"types": "dist/index.d.ts",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "nodemon --watch src/** --ext ts --exec npm run build",
|
|
8
|
+
"build": "ts-node src/index.ts",
|
|
9
|
+
"tidy": "npm run lint && npm run format",
|
|
10
|
+
"lint": "eslint . --ext .ts --fix",
|
|
11
|
+
"format": "prettier --write src/**/*.ts",
|
|
12
|
+
"test": "jest",
|
|
13
|
+
"postinstall": "patch-package"
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/beyond-all-reason/tachyon.git"
|
|
21
|
+
},
|
|
22
|
+
"author": "",
|
|
23
|
+
"license": "ISC",
|
|
24
|
+
"bugs": {
|
|
25
|
+
"url": "https://github.com/beyond-all-reason/tachyon/issues"
|
|
26
|
+
},
|
|
27
|
+
"homepage": "https://github.com/beyond-all-reason/tachyon#readme",
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@swc/core": "^1.3.65",
|
|
30
|
+
"@swc/helpers": "^0.5.1",
|
|
31
|
+
"@swc/wasm": "^1.3.65",
|
|
32
|
+
"@types/jest": "^29.5.0",
|
|
33
|
+
"@typescript-eslint/eslint-plugin": "^5.60.1",
|
|
34
|
+
"@typescript-eslint/parser": "^5.60.1",
|
|
35
|
+
"ajv": "^8.12.0",
|
|
36
|
+
"eslint": "^8.43.0",
|
|
37
|
+
"jaz-ts-utils": "^7.5.2",
|
|
38
|
+
"jest": "^29.5.0",
|
|
39
|
+
"json-schema-to-typescript": "^13.0.2",
|
|
40
|
+
"nodemon": "^2.0.22",
|
|
41
|
+
"patch-package": "^7.0.0",
|
|
42
|
+
"ts-jest": "^29.0.5",
|
|
43
|
+
"ts-node": "^10.9.1",
|
|
44
|
+
"tsconfig-paths": "^4.2.0",
|
|
45
|
+
"typescript": "^5.1.6"
|
|
46
|
+
},
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"@sinclair/typebox": "^0.28.18",
|
|
49
|
+
"ajv-formats": "^2.1.1",
|
|
50
|
+
"json-schema-faker": "^0.5.3"
|
|
51
|
+
}
|
|
52
|
+
}
|