tachyon-protocol 0.1.12 → 0.2.1

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 +64 -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 -281
  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,10 +1,12 @@
1
1
  {
2
2
  "$id": "matchmaking/queue/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": "matchmaking/queue/request",
9
11
  "type": "string"
10
12
  },
@@ -25,7 +27,8 @@
25
27
  }
26
28
  },
27
29
  "required": [
28
- "command",
30
+ "messageId",
31
+ "commandId",
29
32
  "data"
30
33
  ]
31
34
  }
@@ -1,12 +1,14 @@
1
1
  {
2
2
  "$id": "matchmaking/queue/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": "matchmaking/queue/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": "matchmaking/queue/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": "invalid_queue_specified",
38
- "type": "string"
39
- },
40
- {
41
- "const": "already_ingame",
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": "invalid_queue_specified",
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": "matchmaking/queue/response",
60
+ "type": "string"
61
+ },
62
+ "status": {
63
+ "const": "failed",
64
+ "type": "string"
65
+ },
66
+ "reason": {
67
+ "const": "already_ingame",
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": "matchmaking/queue/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": "matchmaking/queue/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": "matchmaking/queue/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
  ]
@@ -1,12 +1,14 @@
1
1
  {
2
2
  "$id": "matchmaking/queueUpdate/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": "matchmaking/queueUpdate/response",
11
13
  "type": "string"
12
14
  },
@@ -27,7 +29,8 @@
27
29
  }
28
30
  },
29
31
  "required": [
30
- "command",
32
+ "messageId",
33
+ "commandId",
31
34
  "status",
32
35
  "data"
33
36
  ]
@@ -35,7 +38,10 @@
35
38
  {
36
39
  "type": "object",
37
40
  "properties": {
38
- "command": {
41
+ "messageId": {
42
+ "type": "string"
43
+ },
44
+ "commandId": {
39
45
  "const": "matchmaking/queueUpdate/response",
40
46
  "type": "string"
41
47
  },
@@ -44,24 +50,65 @@
44
50
  "type": "string"
45
51
  },
46
52
  "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
- ]
53
+ "const": "internal_error",
54
+ "type": "string"
55
+ }
56
+ },
57
+ "required": [
58
+ "messageId",
59
+ "commandId",
60
+ "status",
61
+ "reason"
62
+ ]
63
+ },
64
+ {
65
+ "type": "object",
66
+ "properties": {
67
+ "messageId": {
68
+ "type": "string"
69
+ },
70
+ "commandId": {
71
+ "const": "matchmaking/queueUpdate/response",
72
+ "type": "string"
73
+ },
74
+ "status": {
75
+ "const": "failed",
76
+ "type": "string"
77
+ },
78
+ "reason": {
79
+ "const": "unauthorized",
80
+ "type": "string"
81
+ }
82
+ },
83
+ "required": [
84
+ "messageId",
85
+ "commandId",
86
+ "status",
87
+ "reason"
88
+ ]
89
+ },
90
+ {
91
+ "type": "object",
92
+ "properties": {
93
+ "messageId": {
94
+ "type": "string"
95
+ },
96
+ "commandId": {
97
+ "const": "matchmaking/queueUpdate/response",
98
+ "type": "string"
99
+ },
100
+ "status": {
101
+ "const": "failed",
102
+ "type": "string"
103
+ },
104
+ "reason": {
105
+ "const": "invalid_command",
106
+ "type": "string"
61
107
  }
62
108
  },
63
109
  "required": [
64
- "command",
110
+ "messageId",
111
+ "commandId",
65
112
  "status",
66
113
  "reason"
67
114
  ]
@@ -1,15 +1,18 @@
1
1
  {
2
2
  "$id": "matchmaking/ready/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": "matchmaking/ready/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": "matchmaking/ready/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": "matchmaking/ready/response",
11
13
  "type": "string"
12
14
  },
@@ -16,14 +18,96 @@
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": {
33
+ "const": "matchmaking/ready/response",
34
+ "type": "string"
35
+ },
36
+ "status": {
37
+ "const": "failed",
38
+ "type": "string"
39
+ },
40
+ "reason": {
41
+ "const": "no_match",
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": "matchmaking/ready/response",
60
+ "type": "string"
61
+ },
62
+ "status": {
63
+ "const": "failed",
64
+ "type": "string"
65
+ },
66
+ "reason": {
67
+ "const": "internal_error",
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": "matchmaking/ready/response",
86
+ "type": "string"
87
+ },
88
+ "status": {
89
+ "const": "failed",
90
+ "type": "string"
91
+ },
92
+ "reason": {
93
+ "const": "unauthorized",
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": {
27
111
  "const": "matchmaking/ready/response",
28
112
  "type": "string"
29
113
  },
@@ -32,28 +116,13 @@
32
116
  "type": "string"
33
117
  },
34
118
  "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
- ]
119
+ "const": "invalid_command",
120
+ "type": "string"
53
121
  }
54
122
  },
55
123
  "required": [
56
- "command",
124
+ "messageId",
125
+ "commandId",
57
126
  "status",
58
127
  "reason"
59
128
  ]
@@ -1,12 +1,14 @@
1
1
  {
2
2
  "$id": "matchmaking/readyUpdate/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": "matchmaking/readyUpdate/response",
11
13
  "type": "string"
12
14
  },
@@ -31,7 +33,8 @@
31
33
  }
32
34
  },
33
35
  "required": [
34
- "command",
36
+ "messageId",
37
+ "commandId",
35
38
  "status",
36
39
  "data"
37
40
  ]
@@ -39,7 +42,10 @@
39
42
  {
40
43
  "type": "object",
41
44
  "properties": {
42
- "command": {
45
+ "messageId": {
46
+ "type": "string"
47
+ },
48
+ "commandId": {
43
49
  "const": "matchmaking/readyUpdate/response",
44
50
  "type": "string"
45
51
  },
@@ -48,24 +54,65 @@
48
54
  "type": "string"
49
55
  },
50
56
  "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
- ]
57
+ "const": "internal_error",
58
+ "type": "string"
59
+ }
60
+ },
61
+ "required": [
62
+ "messageId",
63
+ "commandId",
64
+ "status",
65
+ "reason"
66
+ ]
67
+ },
68
+ {
69
+ "type": "object",
70
+ "properties": {
71
+ "messageId": {
72
+ "type": "string"
73
+ },
74
+ "commandId": {
75
+ "const": "matchmaking/readyUpdate/response",
76
+ "type": "string"
77
+ },
78
+ "status": {
79
+ "const": "failed",
80
+ "type": "string"
81
+ },
82
+ "reason": {
83
+ "const": "unauthorized",
84
+ "type": "string"
85
+ }
86
+ },
87
+ "required": [
88
+ "messageId",
89
+ "commandId",
90
+ "status",
91
+ "reason"
92
+ ]
93
+ },
94
+ {
95
+ "type": "object",
96
+ "properties": {
97
+ "messageId": {
98
+ "type": "string"
99
+ },
100
+ "commandId": {
101
+ "const": "matchmaking/readyUpdate/response",
102
+ "type": "string"
103
+ },
104
+ "status": {
105
+ "const": "failed",
106
+ "type": "string"
107
+ },
108
+ "reason": {
109
+ "const": "invalid_command",
110
+ "type": "string"
65
111
  }
66
112
  },
67
113
  "required": [
68
- "command",
114
+ "messageId",
115
+ "commandId",
69
116
  "status",
70
117
  "reason"
71
118
  ]
package/dist/meta.json CHANGED
@@ -1,28 +1,6 @@
1
1
  {
2
- "version": "0.1.12",
2
+ "version": "0.2.1",
3
3
  "ids": {
4
- "account": {
5
- "getToken": [
6
- "request",
7
- "response"
8
- ],
9
- "login": [
10
- "request",
11
- "response"
12
- ],
13
- "recover": [
14
- "request",
15
- "response"
16
- ],
17
- "register": [
18
- "request",
19
- "response"
20
- ],
21
- "rename": [
22
- "request",
23
- "response"
24
- ]
25
- },
26
4
  "bot": {
27
5
  "slave": [
28
6
  "request",
@@ -1,15 +1,18 @@
1
1
  {
2
2
  "$id": "system/disconnect/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": "system/disconnect/request",
9
11
  "type": "string"
10
12
  }
11
13
  },
12
14
  "required": [
13
- "command"
15
+ "messageId",
16
+ "commandId"
14
17
  ]
15
18
  }