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,15 +1,18 @@
1
1
  {
2
2
  "$id": "lobby/close/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": "lobby/close/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": "lobby/close/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": "lobby/close/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": "lobby/close/response",
28
34
  "type": "string"
29
35
  },
@@ -32,24 +38,65 @@
32
38
  "type": "string"
33
39
  },
34
40
  "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
- ]
41
+ "const": "internal_error",
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": "lobby/close/response",
60
+ "type": "string"
61
+ },
62
+ "status": {
63
+ "const": "failed",
64
+ "type": "string"
65
+ },
66
+ "reason": {
67
+ "const": "unauthorized",
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": "lobby/close/response",
86
+ "type": "string"
87
+ },
88
+ "status": {
89
+ "const": "failed",
90
+ "type": "string"
91
+ },
92
+ "reason": {
93
+ "const": "invalid_command",
94
+ "type": "string"
49
95
  }
50
96
  },
51
97
  "required": [
52
- "command",
98
+ "messageId",
99
+ "commandId",
53
100
  "status",
54
101
  "reason"
55
102
  ]
@@ -1,10 +1,12 @@
1
1
  {
2
2
  "$id": "lobby/create/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": "lobby/create/request",
9
11
  "type": "string"
10
12
  },
@@ -46,7 +48,8 @@
46
48
  }
47
49
  },
48
50
  "required": [
49
- "command",
51
+ "messageId",
52
+ "commandId",
50
53
  "data"
51
54
  ]
52
55
  }
@@ -1,12 +1,14 @@
1
1
  {
2
2
  "$id": "lobby/create/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": "lobby/create/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": "lobby/create/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": "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
- ]
41
+ "const": "no_hosts_available",
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": "lobby/create/response",
60
+ "type": "string"
61
+ },
62
+ "status": {
63
+ "const": "failed",
64
+ "type": "string"
65
+ },
66
+ "reason": {
67
+ "const": "invalid_region",
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": "lobby/create/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": "lobby/create/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": "lobby/create/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,10 +1,12 @@
1
1
  {
2
2
  "$id": "lobby/join/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": "lobby/join/request",
9
11
  "type": "string"
10
12
  },
@@ -30,7 +32,8 @@
30
32
  }
31
33
  },
32
34
  "required": [
33
- "command",
35
+ "messageId",
36
+ "commandId",
34
37
  "data"
35
38
  ]
36
39
  }