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,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "account/register/request",
|
|
3
|
+
"requiresLogin": false,
|
|
4
|
+
"requiresRole": false,
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"command": {
|
|
8
|
+
"const": "account/register/request",
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
11
|
+
"data": {
|
|
12
|
+
"examples": [
|
|
13
|
+
{
|
|
14
|
+
"email": "bob@test.com",
|
|
15
|
+
"username": "bob",
|
|
16
|
+
"hashedPassword": "1b311ff1a6af12fba8720bd2ce02c960"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"type": "object",
|
|
20
|
+
"properties": {
|
|
21
|
+
"email": {
|
|
22
|
+
"format": "email",
|
|
23
|
+
"examples": [
|
|
24
|
+
"bob@test.com"
|
|
25
|
+
],
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
28
|
+
"username": {
|
|
29
|
+
"minLength": 3,
|
|
30
|
+
"maxLength": 20,
|
|
31
|
+
"pattern": "^[A-Za-z0-9_-]+$",
|
|
32
|
+
"examples": [
|
|
33
|
+
"Bob"
|
|
34
|
+
],
|
|
35
|
+
"type": "string"
|
|
36
|
+
},
|
|
37
|
+
"hashedPassword": {
|
|
38
|
+
"type": "string"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"required": [
|
|
42
|
+
"email",
|
|
43
|
+
"username",
|
|
44
|
+
"hashedPassword"
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"required": [
|
|
49
|
+
"command",
|
|
50
|
+
"data"
|
|
51
|
+
]
|
|
52
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "account/register/response",
|
|
3
|
+
"requiresLogin": false,
|
|
4
|
+
"requiresRole": false,
|
|
5
|
+
"anyOf": [
|
|
6
|
+
{
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"command": {
|
|
10
|
+
"const": "account/register/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": "account/register/response",
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
"status": {
|
|
31
|
+
"const": "failed",
|
|
32
|
+
"type": "string"
|
|
33
|
+
},
|
|
34
|
+
"reason": {
|
|
35
|
+
"anyOf": [
|
|
36
|
+
{
|
|
37
|
+
"const": "email_taken",
|
|
38
|
+
"type": "string"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"const": "username_taken",
|
|
42
|
+
"type": "string"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"const": "invalid_email",
|
|
46
|
+
"type": "string"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"const": "weak_password",
|
|
50
|
+
"type": "string"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"const": "username_profanity",
|
|
54
|
+
"type": "string"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"const": "internal_error",
|
|
58
|
+
"type": "string"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"const": "unauthorized",
|
|
62
|
+
"type": "string"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"const": "invalid_command",
|
|
66
|
+
"type": "string"
|
|
67
|
+
}
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"required": [
|
|
72
|
+
"command",
|
|
73
|
+
"status",
|
|
74
|
+
"reason"
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "account/rename/request",
|
|
3
|
+
"requiresLogin": false,
|
|
4
|
+
"requiresRole": false,
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"command": {
|
|
8
|
+
"const": "account/rename/request",
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
11
|
+
"data": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"newUsername": {
|
|
15
|
+
"minLength": 3,
|
|
16
|
+
"maxLength": 20,
|
|
17
|
+
"pattern": "^[A-Za-z0-9_-]+$",
|
|
18
|
+
"examples": [
|
|
19
|
+
"Bob"
|
|
20
|
+
],
|
|
21
|
+
"type": "string"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"required": [
|
|
25
|
+
"newUsername"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"required": [
|
|
30
|
+
"command",
|
|
31
|
+
"data"
|
|
32
|
+
]
|
|
33
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "account/rename/response",
|
|
3
|
+
"requiresLogin": false,
|
|
4
|
+
"requiresRole": false,
|
|
5
|
+
"anyOf": [
|
|
6
|
+
{
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"command": {
|
|
10
|
+
"const": "account/rename/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": "account/rename/response",
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
"status": {
|
|
31
|
+
"const": "failed",
|
|
32
|
+
"type": "string"
|
|
33
|
+
},
|
|
34
|
+
"reason": {
|
|
35
|
+
"anyOf": [
|
|
36
|
+
{
|
|
37
|
+
"const": "username_taken",
|
|
38
|
+
"type": "string"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"const": "username_profanity",
|
|
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,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "bot/slave/request",
|
|
3
|
+
"requiresLogin": false,
|
|
4
|
+
"requiresRole": true,
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"command": {
|
|
8
|
+
"const": "bot/slave/request",
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
11
|
+
"data": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"maxBattles": {
|
|
15
|
+
"minimum": 1,
|
|
16
|
+
"default": 4,
|
|
17
|
+
"type": "integer"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"required": [
|
|
21
|
+
"maxBattles"
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"required": [
|
|
26
|
+
"command",
|
|
27
|
+
"data"
|
|
28
|
+
]
|
|
29
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "bot/slave/response",
|
|
3
|
+
"requiresLogin": false,
|
|
4
|
+
"requiresRole": true,
|
|
5
|
+
"anyOf": [
|
|
6
|
+
{
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"command": {
|
|
10
|
+
"const": "bot/slave/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": "bot/slave/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,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "bot/unslave/response",
|
|
3
|
+
"requiresLogin": false,
|
|
4
|
+
"requiresRole": true,
|
|
5
|
+
"anyOf": [
|
|
6
|
+
{
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"command": {
|
|
10
|
+
"const": "bot/unslave/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": "bot/unslave/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,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "game/launch/response",
|
|
3
|
+
"requiresLogin": false,
|
|
4
|
+
"requiresRole": false,
|
|
5
|
+
"anyOf": [
|
|
6
|
+
{
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"command": {
|
|
10
|
+
"const": "game/launch/response",
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
"status": {
|
|
14
|
+
"const": "success",
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"data": {
|
|
18
|
+
"type": "object",
|
|
19
|
+
"properties": {
|
|
20
|
+
"script": {
|
|
21
|
+
"type": "string"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"required": [
|
|
25
|
+
"script"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"required": [
|
|
30
|
+
"command",
|
|
31
|
+
"status",
|
|
32
|
+
"data"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"type": "object",
|
|
37
|
+
"properties": {
|
|
38
|
+
"command": {
|
|
39
|
+
"const": "game/launch/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
|
+
}
|