tachyon-protocol 0.3.2 → 0.3.4

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.4";
6
6
  readonly ids: {
7
7
  readonly autohost: {
8
8
  readonly slave: readonly ["request", "response"];
@@ -309,8 +309,8 @@ export type LobbyJoinedResponse =
309
309
  commandId: "lobby/joined/response";
310
310
  status: "success";
311
311
  data: {
312
- battleId: number;
313
- hostId: number;
312
+ battleId: string;
313
+ hostId: string;
314
314
  engine: string;
315
315
  game: string;
316
316
  map: string;
@@ -346,7 +346,7 @@ export type LobbyJoinedResponse =
346
346
  inGame: boolean;
347
347
  isSpectator: false;
348
348
  isBot: true;
349
- ownerId: number;
349
+ ownerId: string;
350
350
  aiShortName: string;
351
351
  name: string;
352
352
  aiOptions: {
@@ -359,17 +359,18 @@ 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;
366
- clanId: number | null;
367
- partyId: number | null;
366
+ clanId: string | null;
367
+ partyId: string | null;
368
368
  roles: string[];
369
369
  countryCode?: string;
370
+ status: "offline" | "menu" | "playing" | "lobby";
370
371
  battleStatus:
371
372
  | ({
372
- battleId: number;
373
+ battleId: string;
373
374
  } & (
374
375
  | ({
375
376
  playerId: number;
@@ -475,8 +476,8 @@ export type LobbyListResponse =
475
476
  status: "success";
476
477
  data: {
477
478
  battles: ({
478
- battleId: number;
479
- hostId: number;
479
+ battleId: string;
480
+ hostId: string;
480
481
  engine: string;
481
482
  game: string;
482
483
  map: string;
@@ -512,7 +513,7 @@ export type LobbyListResponse =
512
513
  inGame: boolean;
513
514
  isSpectator: false;
514
515
  isBot: true;
515
- ownerId: number;
516
+ ownerId: string;
516
517
  aiShortName: string;
517
518
  name: string;
518
519
  aiOptions: {
@@ -525,17 +526,18 @@ 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;
532
- clanId: number | null;
533
- partyId: number | null;
533
+ clanId: string | null;
534
+ partyId: string | null;
534
535
  roles: string[];
535
536
  countryCode?: string;
537
+ status: "offline" | "menu" | "playing" | "lobby";
536
538
  battleStatus:
537
539
  | ({
538
- battleId: number;
540
+ battleId: string;
539
541
  } & (
540
542
  | ({
541
543
  playerId: number;
@@ -564,8 +566,8 @@ export type LobbyListResponse =
564
566
  title: string;
565
567
  locked: boolean;
566
568
  passworded: boolean;
567
- bossIds: number[];
568
- joinQueueIds: number[];
569
+ bossIds: string[];
570
+ joinQueueIds: string[];
569
571
  limits: {
570
572
  minTeamsize: number | null;
571
573
  maxTeamsize: number | null;
@@ -599,7 +601,7 @@ export type LobbyReceiveMessageResponse =
599
601
  commandId: "lobby/receiveMessage/response";
600
602
  status: "success";
601
603
  data: {
602
- userId: number;
604
+ userId: string;
603
605
  message: string;
604
606
  };
605
607
  }
@@ -718,8 +720,8 @@ export type LobbyUpdatedResponse =
718
720
  status: "success";
719
721
  data: {
720
722
  battles: ({
721
- battleId?: number;
722
- hostId?: number;
723
+ battleId?: string;
724
+ hostId?: string;
723
725
  engine?: string;
724
726
  game?: string;
725
727
  map?: string;
@@ -755,7 +757,7 @@ export type LobbyUpdatedResponse =
755
757
  inGame: boolean;
756
758
  isSpectator: false;
757
759
  isBot: true;
758
- ownerId: number;
760
+ ownerId: string;
759
761
  aiShortName: string;
760
762
  name: string;
761
763
  aiOptions: {
@@ -768,17 +770,18 @@ 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;
775
- clanId: number | null;
776
- partyId: number | null;
777
+ clanId: string | null;
778
+ partyId: string | null;
777
779
  roles: string[];
778
780
  countryCode?: string;
781
+ status: "offline" | "menu" | "playing" | "lobby";
779
782
  battleStatus:
780
783
  | ({
781
- battleId: number;
784
+ battleId: string;
782
785
  } & (
783
786
  | ({
784
787
  playerId: number;
@@ -807,8 +810,8 @@ export type LobbyUpdatedResponse =
807
810
  title?: string;
808
811
  locked?: boolean;
809
812
  passworded?: boolean;
810
- bossIds?: number[];
811
- joinQueueIds?: number[];
813
+ bossIds?: string[];
814
+ joinQueueIds?: string[];
812
815
  limits?: {
813
816
  minTeamsize: number | null;
814
817
  maxTeamsize: number | null;
@@ -991,7 +994,7 @@ export type MatchmakingQueueUpdateResponse =
991
994
  commandId: "matchmaking/queueUpdate/response";
992
995
  status: "success";
993
996
  data: {
994
- playersQueued: number;
997
+ playersQueued: string;
995
998
  };
996
999
  }
997
1000
  | {
@@ -1076,17 +1079,18 @@ 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;
1083
- clanId: number | null;
1084
- partyId: number | null;
1086
+ clanId: string | null;
1087
+ partyId: string | null;
1085
1088
  roles: string[];
1086
1089
  countryCode?: string;
1090
+ status: "offline" | "menu" | "playing" | "lobby";
1087
1091
  battleStatus:
1088
1092
  | ({
1089
- battleId: number;
1093
+ battleId: string;
1090
1094
  } & (
1091
1095
  | ({
1092
1096
  playerId: number;
@@ -1110,10 +1114,10 @@ export type SystemConnectedResponse =
1110
1114
  }
1111
1115
  ))
1112
1116
  | null;
1113
- friendIds: number[];
1114
- outgoingFriendRequestIds: number[];
1115
- incomingFriendRequestIds: number[];
1116
- ignoreIds: number[];
1117
+ friendIds: string[];
1118
+ outgoingFriendRequestIds: string[];
1119
+ incomingFriendRequestIds: string[];
1120
+ ignoreIds: string[];
1117
1121
  };
1118
1122
  }
1119
1123
  | {
@@ -1192,17 +1196,18 @@ 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;
1199
- clanId: number | null;
1200
- partyId: number | null;
1203
+ clanId: string | null;
1204
+ partyId: string | null;
1201
1205
  roles: string[];
1202
1206
  countryCode?: string;
1207
+ status: "offline" | "menu" | "playing" | "lobby";
1203
1208
  battleStatus:
1204
1209
  | ({
1205
- battleId: number;
1210
+ battleId: string;
1206
1211
  } & (
1207
1212
  | ({
1208
1213
  playerId: number;
@@ -1284,17 +1289,18 @@ 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;
1291
- clanId?: number | null;
1292
- partyId?: number | null;
1296
+ clanId?: string | null;
1297
+ partyId?: string | null;
1293
1298
  roles?: string[];
1294
1299
  countryCode?: string;
1300
+ status?: "offline" | "menu" | "playing" | "lobby";
1295
1301
  battleStatus?:
1296
1302
  | ({
1297
- battleId: number;
1303
+ battleId: string;
1298
1304
  } & (
1299
1305
  | ({
1300
1306
  playerId: number;
@@ -1318,10 +1324,10 @@ export type UserUpdatedResponse =
1318
1324
  }
1319
1325
  ))
1320
1326
  | null;
1321
- friendIds?: number[];
1322
- outgoingFriendRequestIds?: number[];
1323
- incomingFriendRequestIds?: number[];
1324
- ignoreIds?: number[];
1327
+ friendIds?: string[];
1328
+ outgoingFriendRequestIds?: string[];
1329
+ incomingFriendRequestIds?: string[];
1330
+ ignoreIds?: string[];
1325
1331
  }[];
1326
1332
  };
1327
1333
  }
@@ -1580,7 +1586,7 @@ export interface LobbyJoinRequest {
1580
1586
  messageId: string;
1581
1587
  commandId: "lobby/join/request";
1582
1588
  data: {
1583
- lobbyId: number;
1589
+ lobbyId: string;
1584
1590
  password?: string;
1585
1591
  };
1586
1592
  }
@@ -1603,14 +1609,14 @@ export interface LobbySubscribeRequest {
1603
1609
  messageId: string;
1604
1610
  commandId: "lobby/subscribe/request";
1605
1611
  data: {
1606
- battleIds: number[];
1612
+ battleIds: string[];
1607
1613
  };
1608
1614
  }
1609
1615
  export interface LobbyUnsubscribeRequest {
1610
1616
  messageId: string;
1611
1617
  commandId: "lobby/unsubscribe/request";
1612
1618
  data: {
1613
- battleIds?: number[];
1619
+ battleIds?: string[];
1614
1620
  };
1615
1621
  }
1616
1622
  export interface MatchmakingCancelRequest {
@@ -1650,14 +1656,14 @@ export interface UserSubscribeRequest {
1650
1656
  messageId: string;
1651
1657
  commandId: "user/subscribe/request";
1652
1658
  data: {
1653
- userIds: number[];
1659
+ userIds: string[];
1654
1660
  };
1655
1661
  }
1656
1662
  export interface UserUnsubscribeRequest {
1657
1663
  messageId: string;
1658
1664
  commandId: "user/unsubscribe/request";
1659
1665
  data: {
1660
- userIds: number[];
1666
+ userIds: string[];
1661
1667
  };
1662
1668
  }
1663
1669
  export type TachyonUnixTime = number | null;
@@ -1700,7 +1706,7 @@ export interface TachyonBot {
1700
1706
  inGame: boolean;
1701
1707
  isSpectator: false;
1702
1708
  isBot: true;
1703
- ownerId: number;
1709
+ ownerId: string;
1704
1710
  aiShortName: string;
1705
1711
  name: string;
1706
1712
  aiOptions: {
@@ -1715,7 +1721,7 @@ export interface TachyonBot {
1715
1721
 
1716
1722
  export type TachyonBattleStatus =
1717
1723
  | ({
1718
- battleId: number;
1724
+ battleId: string;
1719
1725
  } & (
1720
1726
  | ({
1721
1727
  playerId: number;
@@ -1740,18 +1746,21 @@ 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;
1748
- clanId: number | null;
1749
- partyId: number | null;
1756
+ clanId: string | null;
1757
+ partyId: string | null;
1750
1758
  roles: string[];
1751
1759
  countryCode?: string;
1760
+ status: "offline" | "menu" | "playing" | "lobby";
1752
1761
  battleStatus:
1753
1762
  | ({
1754
- battleId: number;
1763
+ battleId: string;
1755
1764
  } & (
1756
1765
  | ({
1757
1766
  playerId: number;
@@ -1778,17 +1787,18 @@ 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;
1785
- clanId: number | null;
1786
- partyId: number | null;
1794
+ clanId: string | null;
1795
+ partyId: string | null;
1787
1796
  roles: string[];
1788
1797
  countryCode?: string;
1798
+ status: "offline" | "menu" | "playing" | "lobby";
1789
1799
  battleStatus:
1790
1800
  | ({
1791
- battleId: number;
1801
+ battleId: string;
1792
1802
  } & (
1793
1803
  | ({
1794
1804
  playerId: number;
@@ -1812,10 +1822,10 @@ export interface TachyonPrivateUser {
1812
1822
  }
1813
1823
  ))
1814
1824
  | null;
1815
- friendIds: number[];
1816
- outgoingFriendRequestIds: number[];
1817
- incomingFriendRequestIds: number[];
1818
- ignoreIds: number[];
1825
+ friendIds: string[];
1826
+ outgoingFriendRequestIds: string[];
1827
+ incomingFriendRequestIds: string[];
1828
+ ignoreIds: string[];
1819
1829
  }
1820
1830
 
1821
1831
  export interface TachyonRect {
@@ -1826,8 +1836,8 @@ export interface TachyonRect {
1826
1836
  }
1827
1837
 
1828
1838
  export interface TachyonBattle {
1829
- battleId: number;
1830
- hostId: number;
1839
+ battleId: string;
1840
+ hostId: string;
1831
1841
  engine: string;
1832
1842
  game: string;
1833
1843
  map: string;
@@ -1863,7 +1873,7 @@ export interface TachyonBattle {
1863
1873
  inGame: boolean;
1864
1874
  isSpectator: false;
1865
1875
  isBot: true;
1866
- ownerId: number;
1876
+ ownerId: string;
1867
1877
  aiShortName: string;
1868
1878
  name: string;
1869
1879
  aiOptions: {
@@ -1876,17 +1886,18 @@ 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;
1883
- clanId: number | null;
1884
- partyId: number | null;
1893
+ clanId: string | null;
1894
+ partyId: string | null;
1885
1895
  roles: string[];
1886
1896
  countryCode?: string;
1897
+ status: "offline" | "menu" | "playing" | "lobby";
1887
1898
  battleStatus:
1888
1899
  | ({
1889
- battleId: number;
1900
+ battleId: string;
1890
1901
  } & (
1891
1902
  | ({
1892
1903
  playerId: number;
@@ -1914,8 +1925,8 @@ export interface TachyonBattle {
1914
1925
  }
1915
1926
 
1916
1927
  export type TachyonCustomBattle = {
1917
- battleId: number;
1918
- hostId: number;
1928
+ battleId: string;
1929
+ hostId: string;
1919
1930
  engine: string;
1920
1931
  game: string;
1921
1932
  map: string;
@@ -1951,7 +1962,7 @@ export type TachyonCustomBattle = {
1951
1962
  inGame: boolean;
1952
1963
  isSpectator: false;
1953
1964
  isBot: true;
1954
- ownerId: number;
1965
+ ownerId: string;
1955
1966
  aiShortName: string;
1956
1967
  name: string;
1957
1968
  aiOptions: {
@@ -1964,17 +1975,18 @@ 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;
1971
- clanId: number | null;
1972
- partyId: number | null;
1982
+ clanId: string | null;
1983
+ partyId: string | null;
1973
1984
  roles: string[];
1974
1985
  countryCode?: string;
1986
+ status: "offline" | "menu" | "playing" | "lobby";
1975
1987
  battleStatus:
1976
1988
  | ({
1977
- battleId: number;
1989
+ battleId: string;
1978
1990
  } & (
1979
1991
  | ({
1980
1992
  playerId: number;
@@ -2003,8 +2015,8 @@ export type TachyonCustomBattle = {
2003
2015
  title: string;
2004
2016
  locked: boolean;
2005
2017
  passworded: boolean;
2006
- bossIds: number[];
2007
- joinQueueIds: number[];
2018
+ bossIds: string[];
2019
+ joinQueueIds: string[];
2008
2020
  limits: {
2009
2021
  minTeamsize: number | null;
2010
2022
  maxTeamsize: number | null;
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.4",
7079
7079
  "ids": {
7080
7080
  "autohost": {
7081
7081
  "slave": [
@@ -20,7 +20,7 @@
20
20
  "type": "object",
21
21
  "properties": {
22
22
  "lobbyId": {
23
- "type": "integer"
23
+ "type": "string"
24
24
  },
25
25
  "password": {
26
26
  "type": "string"
@@ -53,10 +53,10 @@
53
53
  "type": "object",
54
54
  "properties": {
55
55
  "battleId": {
56
- "type": "integer"
56
+ "type": "string"
57
57
  },
58
58
  "hostId": {
59
- "type": "integer"
59
+ "type": "string"
60
60
  },
61
61
  "engine": {
62
62
  "type": "string"
@@ -202,7 +202,7 @@
202
202
  "type": "boolean"
203
203
  },
204
204
  "ownerId": {
205
- "type": "integer"
205
+ "type": "string"
206
206
  },
207
207
  "aiShortName": {
208
208
  "type": "string"
@@ -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"
@@ -257,7 +257,7 @@
257
257
  "clanId": {
258
258
  "anyOf": [
259
259
  {
260
- "type": "integer"
260
+ "type": "string"
261
261
  },
262
262
  {
263
263
  "type": "null"
@@ -267,7 +267,7 @@
267
267
  "partyId": {
268
268
  "anyOf": [
269
269
  {
270
- "type": "integer"
270
+ "type": "string"
271
271
  },
272
272
  {
273
273
  "type": "null"
@@ -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
  {
@@ -291,7 +311,7 @@
291
311
  "type": "object",
292
312
  "properties": {
293
313
  "battleId": {
294
- "type": "integer"
314
+ "type": "string"
295
315
  }
296
316
  },
297
317
  "required": [
@@ -408,6 +428,7 @@
408
428
  "clanId",
409
429
  "partyId",
410
430
  "roles",
431
+ "status",
411
432
  "battleStatus"
412
433
  ]
413
434
  }
@@ -110,10 +110,10 @@
110
110
  "type": "object",
111
111
  "properties": {
112
112
  "battleId": {
113
- "type": "integer"
113
+ "type": "string"
114
114
  },
115
115
  "hostId": {
116
- "type": "integer"
116
+ "type": "string"
117
117
  },
118
118
  "engine": {
119
119
  "type": "string"
@@ -259,7 +259,7 @@
259
259
  "type": "boolean"
260
260
  },
261
261
  "ownerId": {
262
- "type": "integer"
262
+ "type": "string"
263
263
  },
264
264
  "aiShortName": {
265
265
  "type": "string"
@@ -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"
@@ -314,7 +314,7 @@
314
314
  "clanId": {
315
315
  "anyOf": [
316
316
  {
317
- "type": "integer"
317
+ "type": "string"
318
318
  },
319
319
  {
320
320
  "type": "null"
@@ -324,7 +324,7 @@
324
324
  "partyId": {
325
325
  "anyOf": [
326
326
  {
327
- "type": "integer"
327
+ "type": "string"
328
328
  },
329
329
  {
330
330
  "type": "null"
@@ -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
  {
@@ -348,7 +368,7 @@
348
368
  "type": "object",
349
369
  "properties": {
350
370
  "battleId": {
351
- "type": "integer"
371
+ "type": "string"
352
372
  }
353
373
  },
354
374
  "required": [
@@ -465,6 +485,7 @@
465
485
  "clanId",
466
486
  "partyId",
467
487
  "roles",
488
+ "status",
468
489
  "battleStatus"
469
490
  ]
470
491
  }
@@ -502,13 +523,13 @@
502
523
  "bossIds": {
503
524
  "type": "array",
504
525
  "items": {
505
- "type": "integer"
526
+ "type": "string"
506
527
  }
507
528
  },
508
529
  "joinQueueIds": {
509
530
  "type": "array",
510
531
  "items": {
511
- "type": "integer"
532
+ "type": "string"
512
533
  }
513
534
  },
514
535
  "limits": {
@@ -26,7 +26,7 @@
26
26
  "type": "object",
27
27
  "properties": {
28
28
  "userId": {
29
- "type": "integer"
29
+ "type": "string"
30
30
  },
31
31
  "message": {
32
32
  "type": "string"
@@ -16,7 +16,7 @@
16
16
  "battleIds": {
17
17
  "type": "array",
18
18
  "items": {
19
- "type": "integer"
19
+ "type": "string"
20
20
  }
21
21
  }
22
22
  },
@@ -16,7 +16,7 @@
16
16
  "battleIds": {
17
17
  "type": "array",
18
18
  "items": {
19
- "type": "integer"
19
+ "type": "string"
20
20
  }
21
21
  }
22
22
  }
@@ -39,10 +39,10 @@
39
39
  "type": "object",
40
40
  "properties": {
41
41
  "battleId": {
42
- "type": "integer"
42
+ "type": "string"
43
43
  },
44
44
  "hostId": {
45
- "type": "integer"
45
+ "type": "string"
46
46
  },
47
47
  "engine": {
48
48
  "type": "string"
@@ -188,7 +188,7 @@
188
188
  "type": "boolean"
189
189
  },
190
190
  "ownerId": {
191
- "type": "integer"
191
+ "type": "string"
192
192
  },
193
193
  "aiShortName": {
194
194
  "type": "string"
@@ -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"
@@ -243,7 +243,7 @@
243
243
  "clanId": {
244
244
  "anyOf": [
245
245
  {
246
- "type": "integer"
246
+ "type": "string"
247
247
  },
248
248
  {
249
249
  "type": "null"
@@ -253,7 +253,7 @@
253
253
  "partyId": {
254
254
  "anyOf": [
255
255
  {
256
- "type": "integer"
256
+ "type": "string"
257
257
  },
258
258
  {
259
259
  "type": "null"
@@ -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
  {
@@ -277,7 +297,7 @@
277
297
  "type": "object",
278
298
  "properties": {
279
299
  "battleId": {
280
- "type": "integer"
300
+ "type": "string"
281
301
  }
282
302
  },
283
303
  "required": [
@@ -394,6 +414,7 @@
394
414
  "clanId",
395
415
  "partyId",
396
416
  "roles",
417
+ "status",
397
418
  "battleStatus"
398
419
  ]
399
420
  }
@@ -415,13 +436,13 @@
415
436
  "bossIds": {
416
437
  "type": "array",
417
438
  "items": {
418
- "type": "integer"
439
+ "type": "string"
419
440
  }
420
441
  },
421
442
  "joinQueueIds": {
422
443
  "type": "array",
423
444
  "items": {
424
- "type": "integer"
445
+ "type": "string"
425
446
  }
426
447
  },
427
448
  "limits": {
@@ -20,7 +20,7 @@
20
20
  "type": "object",
21
21
  "properties": {
22
22
  "playersQueued": {
23
- "type": "integer"
23
+ "type": "string"
24
24
  }
25
25
  },
26
26
  "required": [
@@ -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"
@@ -35,7 +35,7 @@
35
35
  "clanId": {
36
36
  "anyOf": [
37
37
  {
38
- "type": "integer"
38
+ "type": "string"
39
39
  },
40
40
  {
41
41
  "type": "null"
@@ -45,7 +45,7 @@
45
45
  "partyId": {
46
46
  "anyOf": [
47
47
  {
48
- "type": "integer"
48
+ "type": "string"
49
49
  },
50
50
  {
51
51
  "type": "null"
@@ -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
  {
@@ -69,7 +89,7 @@
69
89
  "type": "object",
70
90
  "properties": {
71
91
  "battleId": {
72
- "type": "integer"
92
+ "type": "string"
73
93
  }
74
94
  },
75
95
  "required": [
@@ -180,25 +200,25 @@
180
200
  "friendIds": {
181
201
  "type": "array",
182
202
  "items": {
183
- "type": "integer"
203
+ "type": "string"
184
204
  }
185
205
  },
186
206
  "outgoingFriendRequestIds": {
187
207
  "type": "array",
188
208
  "items": {
189
- "type": "integer"
209
+ "type": "string"
190
210
  }
191
211
  },
192
212
  "incomingFriendRequestIds": {
193
213
  "type": "array",
194
214
  "items": {
195
- "type": "integer"
215
+ "type": "string"
196
216
  }
197
217
  },
198
218
  "ignoreIds": {
199
219
  "type": "array",
200
220
  "items": {
201
- "type": "integer"
221
+ "type": "string"
202
222
  }
203
223
  }
204
224
  },
@@ -210,6 +230,7 @@
210
230
  "clanId",
211
231
  "partyId",
212
232
  "roles",
233
+ "status",
213
234
  "battleStatus",
214
235
  "friendIds",
215
236
  "outgoingFriendRequestIds",
@@ -16,7 +16,7 @@
16
16
  "userIds": {
17
17
  "type": "array",
18
18
  "items": {
19
- "type": "integer"
19
+ "type": "string"
20
20
  }
21
21
  }
22
22
  },
@@ -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"
@@ -40,7 +40,7 @@
40
40
  "clanId": {
41
41
  "anyOf": [
42
42
  {
43
- "type": "integer"
43
+ "type": "string"
44
44
  },
45
45
  {
46
46
  "type": "null"
@@ -50,7 +50,7 @@
50
50
  "partyId": {
51
51
  "anyOf": [
52
52
  {
53
- "type": "integer"
53
+ "type": "string"
54
54
  },
55
55
  {
56
56
  "type": "null"
@@ -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
  {
@@ -74,7 +94,7 @@
74
94
  "type": "object",
75
95
  "properties": {
76
96
  "battleId": {
77
- "type": "integer"
97
+ "type": "string"
78
98
  }
79
99
  },
80
100
  "required": [
@@ -191,6 +211,7 @@
191
211
  "clanId",
192
212
  "partyId",
193
213
  "roles",
214
+ "status",
194
215
  "battleStatus"
195
216
  ]
196
217
  }
@@ -16,7 +16,7 @@
16
16
  "userIds": {
17
17
  "type": "array",
18
18
  "items": {
19
- "type": "integer"
19
+ "type": "string"
20
20
  }
21
21
  }
22
22
  },
@@ -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"
@@ -40,7 +40,7 @@
40
40
  "clanId": {
41
41
  "anyOf": [
42
42
  {
43
- "type": "integer"
43
+ "type": "string"
44
44
  },
45
45
  {
46
46
  "type": "null"
@@ -50,7 +50,7 @@
50
50
  "partyId": {
51
51
  "anyOf": [
52
52
  {
53
- "type": "integer"
53
+ "type": "string"
54
54
  },
55
55
  {
56
56
  "type": "null"
@@ -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
  {
@@ -74,7 +94,7 @@
74
94
  "type": "object",
75
95
  "properties": {
76
96
  "battleId": {
77
- "type": "integer"
97
+ "type": "string"
78
98
  }
79
99
  },
80
100
  "required": [
@@ -185,25 +205,25 @@
185
205
  "friendIds": {
186
206
  "type": "array",
187
207
  "items": {
188
- "type": "integer"
208
+ "type": "string"
189
209
  }
190
210
  },
191
211
  "outgoingFriendRequestIds": {
192
212
  "type": "array",
193
213
  "items": {
194
- "type": "integer"
214
+ "type": "string"
195
215
  }
196
216
  },
197
217
  "incomingFriendRequestIds": {
198
218
  "type": "array",
199
219
  "items": {
200
- "type": "integer"
220
+ "type": "string"
201
221
  }
202
222
  },
203
223
  "ignoreIds": {
204
224
  "type": "array",
205
225
  "items": {
206
- "type": "integer"
226
+ "type": "string"
207
227
  }
208
228
  }
209
229
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tachyon-protocol",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "dev": "nodemon --watch src/** --ext ts --ignore src/meta.ts --exec npm run build",