tachyon-protocol 0.3.2 → 0.3.3

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/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import { EmptyObject } from 'type-fest';
2
2
  import { ValidateFunction } from 'ajv';
3
3
 
4
4
  declare const tachyonMeta: {
5
- readonly version: "0.3.2";
5
+ readonly version: "0.3.3";
6
6
  readonly ids: {
7
7
  readonly autohost: {
8
8
  readonly slave: readonly ["request", "response"];
@@ -359,7 +359,7 @@ export type LobbyJoinedResponse =
359
359
  faction: string;
360
360
  }[];
361
361
  users: {
362
- userId: number;
362
+ userId: string;
363
363
  username: string;
364
364
  displayName: string;
365
365
  avatarUrl: string;
@@ -367,6 +367,7 @@ export type LobbyJoinedResponse =
367
367
  partyId: number | null;
368
368
  roles: string[];
369
369
  countryCode?: string;
370
+ status: "offline" | "menu" | "playing" | "lobby";
370
371
  battleStatus:
371
372
  | ({
372
373
  battleId: number;
@@ -525,7 +526,7 @@ export type LobbyListResponse =
525
526
  faction: string;
526
527
  }[];
527
528
  users: {
528
- userId: number;
529
+ userId: string;
529
530
  username: string;
530
531
  displayName: string;
531
532
  avatarUrl: string;
@@ -533,6 +534,7 @@ export type LobbyListResponse =
533
534
  partyId: number | null;
534
535
  roles: string[];
535
536
  countryCode?: string;
537
+ status: "offline" | "menu" | "playing" | "lobby";
536
538
  battleStatus:
537
539
  | ({
538
540
  battleId: number;
@@ -768,7 +770,7 @@ export type LobbyUpdatedResponse =
768
770
  faction: string;
769
771
  }[];
770
772
  users?: {
771
- userId: number;
773
+ userId: string;
772
774
  username: string;
773
775
  displayName: string;
774
776
  avatarUrl: string;
@@ -776,6 +778,7 @@ export type LobbyUpdatedResponse =
776
778
  partyId: number | null;
777
779
  roles: string[];
778
780
  countryCode?: string;
781
+ status: "offline" | "menu" | "playing" | "lobby";
779
782
  battleStatus:
780
783
  | ({
781
784
  battleId: number;
@@ -1076,7 +1079,7 @@ export type SystemConnectedResponse =
1076
1079
  commandId: "system/connected/response";
1077
1080
  status: "success";
1078
1081
  data: {
1079
- userId: number;
1082
+ userId: string;
1080
1083
  username: string;
1081
1084
  displayName: string;
1082
1085
  avatarUrl: string;
@@ -1084,6 +1087,7 @@ export type SystemConnectedResponse =
1084
1087
  partyId: number | null;
1085
1088
  roles: string[];
1086
1089
  countryCode?: string;
1090
+ status: "offline" | "menu" | "playing" | "lobby";
1087
1091
  battleStatus:
1088
1092
  | ({
1089
1093
  battleId: number;
@@ -1192,7 +1196,7 @@ export type UserSubscribeResponse =
1192
1196
  status: "success";
1193
1197
  data: {
1194
1198
  users: {
1195
- userId: number;
1199
+ userId: string;
1196
1200
  username: string;
1197
1201
  displayName: string;
1198
1202
  avatarUrl: string;
@@ -1200,6 +1204,7 @@ export type UserSubscribeResponse =
1200
1204
  partyId: number | null;
1201
1205
  roles: string[];
1202
1206
  countryCode?: string;
1207
+ status: "offline" | "menu" | "playing" | "lobby";
1203
1208
  battleStatus:
1204
1209
  | ({
1205
1210
  battleId: number;
@@ -1284,7 +1289,7 @@ export type UserUpdatedResponse =
1284
1289
  status: "success";
1285
1290
  data: {
1286
1291
  users: {
1287
- userId?: number;
1292
+ userId?: string;
1288
1293
  username?: string;
1289
1294
  displayName?: string;
1290
1295
  avatarUrl?: string;
@@ -1292,6 +1297,7 @@ export type UserUpdatedResponse =
1292
1297
  partyId?: number | null;
1293
1298
  roles?: string[];
1294
1299
  countryCode?: string;
1300
+ status?: "offline" | "menu" | "playing" | "lobby";
1295
1301
  battleStatus?:
1296
1302
  | ({
1297
1303
  battleId: number;
@@ -1740,8 +1746,10 @@ export type TachyonBattleStatus =
1740
1746
  ))
1741
1747
  | null;
1742
1748
 
1749
+ export type TachyonUserStatus = "offline" | "menu" | "playing" | "lobby";
1750
+
1743
1751
  export interface TachyonUser {
1744
- userId: number;
1752
+ userId: string;
1745
1753
  username: string;
1746
1754
  displayName: string;
1747
1755
  avatarUrl: string;
@@ -1749,6 +1757,7 @@ export interface TachyonUser {
1749
1757
  partyId: number | null;
1750
1758
  roles: string[];
1751
1759
  countryCode?: string;
1760
+ status: "offline" | "menu" | "playing" | "lobby";
1752
1761
  battleStatus:
1753
1762
  | ({
1754
1763
  battleId: number;
@@ -1778,7 +1787,7 @@ export interface TachyonUser {
1778
1787
  }
1779
1788
 
1780
1789
  export interface TachyonPrivateUser {
1781
- userId: number;
1790
+ userId: string;
1782
1791
  username: string;
1783
1792
  displayName: string;
1784
1793
  avatarUrl: string;
@@ -1786,6 +1795,7 @@ export interface TachyonPrivateUser {
1786
1795
  partyId: number | null;
1787
1796
  roles: string[];
1788
1797
  countryCode?: string;
1798
+ status: "offline" | "menu" | "playing" | "lobby";
1789
1799
  battleStatus:
1790
1800
  | ({
1791
1801
  battleId: number;
@@ -1876,7 +1886,7 @@ export interface TachyonBattle {
1876
1886
  faction: string;
1877
1887
  }[];
1878
1888
  users: {
1879
- userId: number;
1889
+ userId: string;
1880
1890
  username: string;
1881
1891
  displayName: string;
1882
1892
  avatarUrl: string;
@@ -1884,6 +1894,7 @@ export interface TachyonBattle {
1884
1894
  partyId: number | null;
1885
1895
  roles: string[];
1886
1896
  countryCode?: string;
1897
+ status: "offline" | "menu" | "playing" | "lobby";
1887
1898
  battleStatus:
1888
1899
  | ({
1889
1900
  battleId: number;
@@ -1964,7 +1975,7 @@ export type TachyonCustomBattle = {
1964
1975
  faction: string;
1965
1976
  }[];
1966
1977
  users: {
1967
- userId: number;
1978
+ userId: string;
1968
1979
  username: string;
1969
1980
  displayName: string;
1970
1981
  avatarUrl: string;
@@ -1972,6 +1983,7 @@ export type TachyonCustomBattle = {
1972
1983
  partyId: number | null;
1973
1984
  roles: string[];
1974
1985
  countryCode?: string;
1986
+ status: "offline" | "menu" | "playing" | "lobby";
1975
1987
  battleStatus:
1976
1988
  | ({
1977
1989
  battleId: number;
package/dist/index.js CHANGED
@@ -7075,7 +7075,7 @@ module.exports = __toCommonJS(compiled_exports);
7075
7075
 
7076
7076
  // src/meta.ts
7077
7077
  var tachyonMeta = {
7078
- "version": "0.3.2",
7078
+ "version": "0.3.3",
7079
7079
  "ids": {
7080
7080
  "autohost": {
7081
7081
  "slave": [
@@ -242,7 +242,7 @@
242
242
  "type": "object",
243
243
  "properties": {
244
244
  "userId": {
245
- "type": "integer"
245
+ "type": "string"
246
246
  },
247
247
  "username": {
248
248
  "type": "string"
@@ -283,6 +283,26 @@
283
283
  "countryCode": {
284
284
  "type": "string"
285
285
  },
286
+ "status": {
287
+ "anyOf": [
288
+ {
289
+ "const": "offline",
290
+ "type": "string"
291
+ },
292
+ {
293
+ "const": "menu",
294
+ "type": "string"
295
+ },
296
+ {
297
+ "const": "playing",
298
+ "type": "string"
299
+ },
300
+ {
301
+ "const": "lobby",
302
+ "type": "string"
303
+ }
304
+ ]
305
+ },
286
306
  "battleStatus": {
287
307
  "anyOf": [
288
308
  {
@@ -408,6 +428,7 @@
408
428
  "clanId",
409
429
  "partyId",
410
430
  "roles",
431
+ "status",
411
432
  "battleStatus"
412
433
  ]
413
434
  }
@@ -299,7 +299,7 @@
299
299
  "type": "object",
300
300
  "properties": {
301
301
  "userId": {
302
- "type": "integer"
302
+ "type": "string"
303
303
  },
304
304
  "username": {
305
305
  "type": "string"
@@ -340,6 +340,26 @@
340
340
  "countryCode": {
341
341
  "type": "string"
342
342
  },
343
+ "status": {
344
+ "anyOf": [
345
+ {
346
+ "const": "offline",
347
+ "type": "string"
348
+ },
349
+ {
350
+ "const": "menu",
351
+ "type": "string"
352
+ },
353
+ {
354
+ "const": "playing",
355
+ "type": "string"
356
+ },
357
+ {
358
+ "const": "lobby",
359
+ "type": "string"
360
+ }
361
+ ]
362
+ },
343
363
  "battleStatus": {
344
364
  "anyOf": [
345
365
  {
@@ -465,6 +485,7 @@
465
485
  "clanId",
466
486
  "partyId",
467
487
  "roles",
488
+ "status",
468
489
  "battleStatus"
469
490
  ]
470
491
  }
@@ -228,7 +228,7 @@
228
228
  "type": "object",
229
229
  "properties": {
230
230
  "userId": {
231
- "type": "integer"
231
+ "type": "string"
232
232
  },
233
233
  "username": {
234
234
  "type": "string"
@@ -269,6 +269,26 @@
269
269
  "countryCode": {
270
270
  "type": "string"
271
271
  },
272
+ "status": {
273
+ "anyOf": [
274
+ {
275
+ "const": "offline",
276
+ "type": "string"
277
+ },
278
+ {
279
+ "const": "menu",
280
+ "type": "string"
281
+ },
282
+ {
283
+ "const": "playing",
284
+ "type": "string"
285
+ },
286
+ {
287
+ "const": "lobby",
288
+ "type": "string"
289
+ }
290
+ ]
291
+ },
272
292
  "battleStatus": {
273
293
  "anyOf": [
274
294
  {
@@ -394,6 +414,7 @@
394
414
  "clanId",
395
415
  "partyId",
396
416
  "roles",
417
+ "status",
397
418
  "battleStatus"
398
419
  ]
399
420
  }
@@ -20,7 +20,7 @@
20
20
  "type": "object",
21
21
  "properties": {
22
22
  "userId": {
23
- "type": "integer"
23
+ "type": "string"
24
24
  },
25
25
  "username": {
26
26
  "type": "string"
@@ -61,6 +61,26 @@
61
61
  "countryCode": {
62
62
  "type": "string"
63
63
  },
64
+ "status": {
65
+ "anyOf": [
66
+ {
67
+ "const": "offline",
68
+ "type": "string"
69
+ },
70
+ {
71
+ "const": "menu",
72
+ "type": "string"
73
+ },
74
+ {
75
+ "const": "playing",
76
+ "type": "string"
77
+ },
78
+ {
79
+ "const": "lobby",
80
+ "type": "string"
81
+ }
82
+ ]
83
+ },
64
84
  "battleStatus": {
65
85
  "anyOf": [
66
86
  {
@@ -210,6 +230,7 @@
210
230
  "clanId",
211
231
  "partyId",
212
232
  "roles",
233
+ "status",
213
234
  "battleStatus",
214
235
  "friendIds",
215
236
  "outgoingFriendRequestIds",
@@ -25,7 +25,7 @@
25
25
  "type": "object",
26
26
  "properties": {
27
27
  "userId": {
28
- "type": "integer"
28
+ "type": "string"
29
29
  },
30
30
  "username": {
31
31
  "type": "string"
@@ -66,6 +66,26 @@
66
66
  "countryCode": {
67
67
  "type": "string"
68
68
  },
69
+ "status": {
70
+ "anyOf": [
71
+ {
72
+ "const": "offline",
73
+ "type": "string"
74
+ },
75
+ {
76
+ "const": "menu",
77
+ "type": "string"
78
+ },
79
+ {
80
+ "const": "playing",
81
+ "type": "string"
82
+ },
83
+ {
84
+ "const": "lobby",
85
+ "type": "string"
86
+ }
87
+ ]
88
+ },
69
89
  "battleStatus": {
70
90
  "anyOf": [
71
91
  {
@@ -191,6 +211,7 @@
191
211
  "clanId",
192
212
  "partyId",
193
213
  "roles",
214
+ "status",
194
215
  "battleStatus"
195
216
  ]
196
217
  }
@@ -25,7 +25,7 @@
25
25
  "type": "object",
26
26
  "properties": {
27
27
  "userId": {
28
- "type": "integer"
28
+ "type": "string"
29
29
  },
30
30
  "username": {
31
31
  "type": "string"
@@ -66,6 +66,26 @@
66
66
  "countryCode": {
67
67
  "type": "string"
68
68
  },
69
+ "status": {
70
+ "anyOf": [
71
+ {
72
+ "const": "offline",
73
+ "type": "string"
74
+ },
75
+ {
76
+ "const": "menu",
77
+ "type": "string"
78
+ },
79
+ {
80
+ "const": "playing",
81
+ "type": "string"
82
+ },
83
+ {
84
+ "const": "lobby",
85
+ "type": "string"
86
+ }
87
+ ]
88
+ },
69
89
  "battleStatus": {
70
90
  "anyOf": [
71
91
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tachyon-protocol",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "dev": "nodemon --watch src/** --ext ts --ignore src/meta.ts --exec npm run build",