tachyon-protocol 0.3.3 → 0.3.5

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.3";
5
+ readonly version: "0.3.5";
6
6
  readonly ids: {
7
7
  readonly autohost: {
8
8
  readonly slave: readonly ["request", "response"];
@@ -69,6 +69,11 @@ type ResponseOnlyEndpointId<S extends ServiceId> = {
69
69
  type RequestData<S extends ServiceId, E extends EndpointId<S>> = RequestCommand<S, E> extends {
70
70
  data: infer Data;
71
71
  } ? Data : never;
72
+ type DistributiveOmit<T, K extends keyof T> = T extends T ? Omit<T, K> : never;
73
+ type ResponseData<S extends ServiceId, E extends EndpointId<S>> = ResponseCommand<S, E> extends {
74
+ commandId: string;
75
+ messageId: string;
76
+ } ? DistributiveOmit<ResponseCommand<S, E>, "commandId" | "messageId"> : never;
72
77
  type SuccessResponseData<S extends ServiceId, E extends EndpointId<S>> = ResponseCommand<S, E> & {
73
78
  status: "success";
74
79
  } extends {
@@ -100,7 +105,7 @@ declare function getValidator<T extends {
100
105
  commandId: string;
101
106
  }>(command: T): ValidateFunction<T>;
102
107
 
103
- export { Command, DataRequestId, EmptyRequestId, EndpointId, GenericRequestCommand, GenericResponseCommand, RequestCommand, RequestData, RequestEndpointId, ResponseCommand, ResponseEndpointId, ResponseOnlyEndpointId, ServiceId, SuccessResponseData, getValidator, tachyonMeta };
108
+ export { Command, DataRequestId, EmptyRequestId, EndpointId, GenericRequestCommand, GenericResponseCommand, RequestCommand, RequestData, RequestEndpointId, ResponseCommand, ResponseData, ResponseEndpointId, ResponseOnlyEndpointId, ServiceId, SuccessResponseData, getValidator, tachyonMeta };
104
109
 
105
110
  export type AutohostSlaveResponse =
106
111
  | {
@@ -309,8 +314,8 @@ export type LobbyJoinedResponse =
309
314
  commandId: "lobby/joined/response";
310
315
  status: "success";
311
316
  data: {
312
- battleId: number;
313
- hostId: number;
317
+ battleId: string;
318
+ hostId: string;
314
319
  engine: string;
315
320
  game: string;
316
321
  map: string;
@@ -346,7 +351,7 @@ export type LobbyJoinedResponse =
346
351
  inGame: boolean;
347
352
  isSpectator: false;
348
353
  isBot: true;
349
- ownerId: number;
354
+ ownerId: string;
350
355
  aiShortName: string;
351
356
  name: string;
352
357
  aiOptions: {
@@ -363,14 +368,14 @@ export type LobbyJoinedResponse =
363
368
  username: string;
364
369
  displayName: string;
365
370
  avatarUrl: string;
366
- clanId: number | null;
367
- partyId: number | null;
371
+ clanId: string | null;
372
+ partyId: string | null;
368
373
  roles: string[];
369
374
  countryCode?: string;
370
375
  status: "offline" | "menu" | "playing" | "lobby";
371
376
  battleStatus:
372
377
  | ({
373
- battleId: number;
378
+ battleId: string;
374
379
  } & (
375
380
  | ({
376
381
  playerId: number;
@@ -476,8 +481,8 @@ export type LobbyListResponse =
476
481
  status: "success";
477
482
  data: {
478
483
  battles: ({
479
- battleId: number;
480
- hostId: number;
484
+ battleId: string;
485
+ hostId: string;
481
486
  engine: string;
482
487
  game: string;
483
488
  map: string;
@@ -513,7 +518,7 @@ export type LobbyListResponse =
513
518
  inGame: boolean;
514
519
  isSpectator: false;
515
520
  isBot: true;
516
- ownerId: number;
521
+ ownerId: string;
517
522
  aiShortName: string;
518
523
  name: string;
519
524
  aiOptions: {
@@ -530,14 +535,14 @@ export type LobbyListResponse =
530
535
  username: string;
531
536
  displayName: string;
532
537
  avatarUrl: string;
533
- clanId: number | null;
534
- partyId: number | null;
538
+ clanId: string | null;
539
+ partyId: string | null;
535
540
  roles: string[];
536
541
  countryCode?: string;
537
542
  status: "offline" | "menu" | "playing" | "lobby";
538
543
  battleStatus:
539
544
  | ({
540
- battleId: number;
545
+ battleId: string;
541
546
  } & (
542
547
  | ({
543
548
  playerId: number;
@@ -566,8 +571,8 @@ export type LobbyListResponse =
566
571
  title: string;
567
572
  locked: boolean;
568
573
  passworded: boolean;
569
- bossIds: number[];
570
- joinQueueIds: number[];
574
+ bossIds: string[];
575
+ joinQueueIds: string[];
571
576
  limits: {
572
577
  minTeamsize: number | null;
573
578
  maxTeamsize: number | null;
@@ -601,7 +606,7 @@ export type LobbyReceiveMessageResponse =
601
606
  commandId: "lobby/receiveMessage/response";
602
607
  status: "success";
603
608
  data: {
604
- userId: number;
609
+ userId: string;
605
610
  message: string;
606
611
  };
607
612
  }
@@ -720,8 +725,8 @@ export type LobbyUpdatedResponse =
720
725
  status: "success";
721
726
  data: {
722
727
  battles: ({
723
- battleId?: number;
724
- hostId?: number;
728
+ battleId?: string;
729
+ hostId?: string;
725
730
  engine?: string;
726
731
  game?: string;
727
732
  map?: string;
@@ -757,7 +762,7 @@ export type LobbyUpdatedResponse =
757
762
  inGame: boolean;
758
763
  isSpectator: false;
759
764
  isBot: true;
760
- ownerId: number;
765
+ ownerId: string;
761
766
  aiShortName: string;
762
767
  name: string;
763
768
  aiOptions: {
@@ -774,14 +779,14 @@ export type LobbyUpdatedResponse =
774
779
  username: string;
775
780
  displayName: string;
776
781
  avatarUrl: string;
777
- clanId: number | null;
778
- partyId: number | null;
782
+ clanId: string | null;
783
+ partyId: string | null;
779
784
  roles: string[];
780
785
  countryCode?: string;
781
786
  status: "offline" | "menu" | "playing" | "lobby";
782
787
  battleStatus:
783
788
  | ({
784
- battleId: number;
789
+ battleId: string;
785
790
  } & (
786
791
  | ({
787
792
  playerId: number;
@@ -810,8 +815,8 @@ export type LobbyUpdatedResponse =
810
815
  title?: string;
811
816
  locked?: boolean;
812
817
  passworded?: boolean;
813
- bossIds?: number[];
814
- joinQueueIds?: number[];
818
+ bossIds?: string[];
819
+ joinQueueIds?: string[];
815
820
  limits?: {
816
821
  minTeamsize: number | null;
817
822
  maxTeamsize: number | null;
@@ -994,7 +999,7 @@ export type MatchmakingQueueUpdateResponse =
994
999
  commandId: "matchmaking/queueUpdate/response";
995
1000
  status: "success";
996
1001
  data: {
997
- playersQueued: number;
1002
+ playersQueued: string;
998
1003
  };
999
1004
  }
1000
1005
  | {
@@ -1083,14 +1088,14 @@ export type SystemConnectedResponse =
1083
1088
  username: string;
1084
1089
  displayName: string;
1085
1090
  avatarUrl: string;
1086
- clanId: number | null;
1087
- partyId: number | null;
1091
+ clanId: string | null;
1092
+ partyId: string | null;
1088
1093
  roles: string[];
1089
1094
  countryCode?: string;
1090
1095
  status: "offline" | "menu" | "playing" | "lobby";
1091
1096
  battleStatus:
1092
1097
  | ({
1093
- battleId: number;
1098
+ battleId: string;
1094
1099
  } & (
1095
1100
  | ({
1096
1101
  playerId: number;
@@ -1114,10 +1119,10 @@ export type SystemConnectedResponse =
1114
1119
  }
1115
1120
  ))
1116
1121
  | null;
1117
- friendIds: number[];
1118
- outgoingFriendRequestIds: number[];
1119
- incomingFriendRequestIds: number[];
1120
- ignoreIds: number[];
1122
+ friendIds: string[];
1123
+ outgoingFriendRequestIds: string[];
1124
+ incomingFriendRequestIds: string[];
1125
+ ignoreIds: string[];
1121
1126
  };
1122
1127
  }
1123
1128
  | {
@@ -1200,14 +1205,14 @@ export type UserSubscribeResponse =
1200
1205
  username: string;
1201
1206
  displayName: string;
1202
1207
  avatarUrl: string;
1203
- clanId: number | null;
1204
- partyId: number | null;
1208
+ clanId: string | null;
1209
+ partyId: string | null;
1205
1210
  roles: string[];
1206
1211
  countryCode?: string;
1207
1212
  status: "offline" | "menu" | "playing" | "lobby";
1208
1213
  battleStatus:
1209
1214
  | ({
1210
- battleId: number;
1215
+ battleId: string;
1211
1216
  } & (
1212
1217
  | ({
1213
1218
  playerId: number;
@@ -1293,14 +1298,14 @@ export type UserUpdatedResponse =
1293
1298
  username?: string;
1294
1299
  displayName?: string;
1295
1300
  avatarUrl?: string;
1296
- clanId?: number | null;
1297
- partyId?: number | null;
1301
+ clanId?: string | null;
1302
+ partyId?: string | null;
1298
1303
  roles?: string[];
1299
1304
  countryCode?: string;
1300
1305
  status?: "offline" | "menu" | "playing" | "lobby";
1301
1306
  battleStatus?:
1302
1307
  | ({
1303
- battleId: number;
1308
+ battleId: string;
1304
1309
  } & (
1305
1310
  | ({
1306
1311
  playerId: number;
@@ -1324,10 +1329,10 @@ export type UserUpdatedResponse =
1324
1329
  }
1325
1330
  ))
1326
1331
  | null;
1327
- friendIds?: number[];
1328
- outgoingFriendRequestIds?: number[];
1329
- incomingFriendRequestIds?: number[];
1330
- ignoreIds?: number[];
1332
+ friendIds?: string[];
1333
+ outgoingFriendRequestIds?: string[];
1334
+ incomingFriendRequestIds?: string[];
1335
+ ignoreIds?: string[];
1331
1336
  }[];
1332
1337
  };
1333
1338
  }
@@ -1586,7 +1591,7 @@ export interface LobbyJoinRequest {
1586
1591
  messageId: string;
1587
1592
  commandId: "lobby/join/request";
1588
1593
  data: {
1589
- lobbyId: number;
1594
+ lobbyId: string;
1590
1595
  password?: string;
1591
1596
  };
1592
1597
  }
@@ -1609,14 +1614,14 @@ export interface LobbySubscribeRequest {
1609
1614
  messageId: string;
1610
1615
  commandId: "lobby/subscribe/request";
1611
1616
  data: {
1612
- battleIds: number[];
1617
+ battleIds: string[];
1613
1618
  };
1614
1619
  }
1615
1620
  export interface LobbyUnsubscribeRequest {
1616
1621
  messageId: string;
1617
1622
  commandId: "lobby/unsubscribe/request";
1618
1623
  data: {
1619
- battleIds?: number[];
1624
+ battleIds?: string[];
1620
1625
  };
1621
1626
  }
1622
1627
  export interface MatchmakingCancelRequest {
@@ -1656,14 +1661,14 @@ export interface UserSubscribeRequest {
1656
1661
  messageId: string;
1657
1662
  commandId: "user/subscribe/request";
1658
1663
  data: {
1659
- userIds: number[];
1664
+ userIds: string[];
1660
1665
  };
1661
1666
  }
1662
1667
  export interface UserUnsubscribeRequest {
1663
1668
  messageId: string;
1664
1669
  commandId: "user/unsubscribe/request";
1665
1670
  data: {
1666
- userIds: number[];
1671
+ userIds: string[];
1667
1672
  };
1668
1673
  }
1669
1674
  export type TachyonUnixTime = number | null;
@@ -1706,7 +1711,7 @@ export interface TachyonBot {
1706
1711
  inGame: boolean;
1707
1712
  isSpectator: false;
1708
1713
  isBot: true;
1709
- ownerId: number;
1714
+ ownerId: string;
1710
1715
  aiShortName: string;
1711
1716
  name: string;
1712
1717
  aiOptions: {
@@ -1721,7 +1726,7 @@ export interface TachyonBot {
1721
1726
 
1722
1727
  export type TachyonBattleStatus =
1723
1728
  | ({
1724
- battleId: number;
1729
+ battleId: string;
1725
1730
  } & (
1726
1731
  | ({
1727
1732
  playerId: number;
@@ -1753,14 +1758,14 @@ export interface TachyonUser {
1753
1758
  username: string;
1754
1759
  displayName: string;
1755
1760
  avatarUrl: string;
1756
- clanId: number | null;
1757
- partyId: number | null;
1761
+ clanId: string | null;
1762
+ partyId: string | null;
1758
1763
  roles: string[];
1759
1764
  countryCode?: string;
1760
1765
  status: "offline" | "menu" | "playing" | "lobby";
1761
1766
  battleStatus:
1762
1767
  | ({
1763
- battleId: number;
1768
+ battleId: string;
1764
1769
  } & (
1765
1770
  | ({
1766
1771
  playerId: number;
@@ -1791,14 +1796,14 @@ export interface TachyonPrivateUser {
1791
1796
  username: string;
1792
1797
  displayName: string;
1793
1798
  avatarUrl: string;
1794
- clanId: number | null;
1795
- partyId: number | null;
1799
+ clanId: string | null;
1800
+ partyId: string | null;
1796
1801
  roles: string[];
1797
1802
  countryCode?: string;
1798
1803
  status: "offline" | "menu" | "playing" | "lobby";
1799
1804
  battleStatus:
1800
1805
  | ({
1801
- battleId: number;
1806
+ battleId: string;
1802
1807
  } & (
1803
1808
  | ({
1804
1809
  playerId: number;
@@ -1822,10 +1827,10 @@ export interface TachyonPrivateUser {
1822
1827
  }
1823
1828
  ))
1824
1829
  | null;
1825
- friendIds: number[];
1826
- outgoingFriendRequestIds: number[];
1827
- incomingFriendRequestIds: number[];
1828
- ignoreIds: number[];
1830
+ friendIds: string[];
1831
+ outgoingFriendRequestIds: string[];
1832
+ incomingFriendRequestIds: string[];
1833
+ ignoreIds: string[];
1829
1834
  }
1830
1835
 
1831
1836
  export interface TachyonRect {
@@ -1836,8 +1841,8 @@ export interface TachyonRect {
1836
1841
  }
1837
1842
 
1838
1843
  export interface TachyonBattle {
1839
- battleId: number;
1840
- hostId: number;
1844
+ battleId: string;
1845
+ hostId: string;
1841
1846
  engine: string;
1842
1847
  game: string;
1843
1848
  map: string;
@@ -1873,7 +1878,7 @@ export interface TachyonBattle {
1873
1878
  inGame: boolean;
1874
1879
  isSpectator: false;
1875
1880
  isBot: true;
1876
- ownerId: number;
1881
+ ownerId: string;
1877
1882
  aiShortName: string;
1878
1883
  name: string;
1879
1884
  aiOptions: {
@@ -1890,14 +1895,14 @@ export interface TachyonBattle {
1890
1895
  username: string;
1891
1896
  displayName: string;
1892
1897
  avatarUrl: string;
1893
- clanId: number | null;
1894
- partyId: number | null;
1898
+ clanId: string | null;
1899
+ partyId: string | null;
1895
1900
  roles: string[];
1896
1901
  countryCode?: string;
1897
1902
  status: "offline" | "menu" | "playing" | "lobby";
1898
1903
  battleStatus:
1899
1904
  | ({
1900
- battleId: number;
1905
+ battleId: string;
1901
1906
  } & (
1902
1907
  | ({
1903
1908
  playerId: number;
@@ -1925,8 +1930,8 @@ export interface TachyonBattle {
1925
1930
  }
1926
1931
 
1927
1932
  export type TachyonCustomBattle = {
1928
- battleId: number;
1929
- hostId: number;
1933
+ battleId: string;
1934
+ hostId: string;
1930
1935
  engine: string;
1931
1936
  game: string;
1932
1937
  map: string;
@@ -1962,7 +1967,7 @@ export type TachyonCustomBattle = {
1962
1967
  inGame: boolean;
1963
1968
  isSpectator: false;
1964
1969
  isBot: true;
1965
- ownerId: number;
1970
+ ownerId: string;
1966
1971
  aiShortName: string;
1967
1972
  name: string;
1968
1973
  aiOptions: {
@@ -1979,14 +1984,14 @@ export type TachyonCustomBattle = {
1979
1984
  username: string;
1980
1985
  displayName: string;
1981
1986
  avatarUrl: string;
1982
- clanId: number | null;
1983
- partyId: number | null;
1987
+ clanId: string | null;
1988
+ partyId: string | null;
1984
1989
  roles: string[];
1985
1990
  countryCode?: string;
1986
1991
  status: "offline" | "menu" | "playing" | "lobby";
1987
1992
  battleStatus:
1988
1993
  | ({
1989
- battleId: number;
1994
+ battleId: string;
1990
1995
  } & (
1991
1996
  | ({
1992
1997
  playerId: number;
@@ -2015,8 +2020,8 @@ export type TachyonCustomBattle = {
2015
2020
  title: string;
2016
2021
  locked: boolean;
2017
2022
  passworded: boolean;
2018
- bossIds: number[];
2019
- joinQueueIds: number[];
2023
+ bossIds: string[];
2024
+ joinQueueIds: string[];
2020
2025
  limits: {
2021
2026
  minTeamsize: number | null;
2022
2027
  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.3",
7078
+ "version": "0.3.5",
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"
@@ -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"
@@ -311,7 +311,7 @@
311
311
  "type": "object",
312
312
  "properties": {
313
313
  "battleId": {
314
- "type": "integer"
314
+ "type": "string"
315
315
  }
316
316
  },
317
317
  "required": [
@@ -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"
@@ -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"
@@ -368,7 +368,7 @@
368
368
  "type": "object",
369
369
  "properties": {
370
370
  "battleId": {
371
- "type": "integer"
371
+ "type": "string"
372
372
  }
373
373
  },
374
374
  "required": [
@@ -523,13 +523,13 @@
523
523
  "bossIds": {
524
524
  "type": "array",
525
525
  "items": {
526
- "type": "integer"
526
+ "type": "string"
527
527
  }
528
528
  },
529
529
  "joinQueueIds": {
530
530
  "type": "array",
531
531
  "items": {
532
- "type": "integer"
532
+ "type": "string"
533
533
  }
534
534
  },
535
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"
@@ -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"
@@ -297,7 +297,7 @@
297
297
  "type": "object",
298
298
  "properties": {
299
299
  "battleId": {
300
- "type": "integer"
300
+ "type": "string"
301
301
  }
302
302
  },
303
303
  "required": [
@@ -436,13 +436,13 @@
436
436
  "bossIds": {
437
437
  "type": "array",
438
438
  "items": {
439
- "type": "integer"
439
+ "type": "string"
440
440
  }
441
441
  },
442
442
  "joinQueueIds": {
443
443
  "type": "array",
444
444
  "items": {
445
- "type": "integer"
445
+ "type": "string"
446
446
  }
447
447
  },
448
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": [
@@ -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"
@@ -89,7 +89,7 @@
89
89
  "type": "object",
90
90
  "properties": {
91
91
  "battleId": {
92
- "type": "integer"
92
+ "type": "string"
93
93
  }
94
94
  },
95
95
  "required": [
@@ -200,25 +200,25 @@
200
200
  "friendIds": {
201
201
  "type": "array",
202
202
  "items": {
203
- "type": "integer"
203
+ "type": "string"
204
204
  }
205
205
  },
206
206
  "outgoingFriendRequestIds": {
207
207
  "type": "array",
208
208
  "items": {
209
- "type": "integer"
209
+ "type": "string"
210
210
  }
211
211
  },
212
212
  "incomingFriendRequestIds": {
213
213
  "type": "array",
214
214
  "items": {
215
- "type": "integer"
215
+ "type": "string"
216
216
  }
217
217
  },
218
218
  "ignoreIds": {
219
219
  "type": "array",
220
220
  "items": {
221
- "type": "integer"
221
+ "type": "string"
222
222
  }
223
223
  }
224
224
  },
@@ -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
  },
@@ -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"
@@ -94,7 +94,7 @@
94
94
  "type": "object",
95
95
  "properties": {
96
96
  "battleId": {
97
- "type": "integer"
97
+ "type": "string"
98
98
  }
99
99
  },
100
100
  "required": [
@@ -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
  },
@@ -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"
@@ -94,7 +94,7 @@
94
94
  "type": "object",
95
95
  "properties": {
96
96
  "battleId": {
97
- "type": "integer"
97
+ "type": "string"
98
98
  }
99
99
  },
100
100
  "required": [
@@ -205,25 +205,25 @@
205
205
  "friendIds": {
206
206
  "type": "array",
207
207
  "items": {
208
- "type": "integer"
208
+ "type": "string"
209
209
  }
210
210
  },
211
211
  "outgoingFriendRequestIds": {
212
212
  "type": "array",
213
213
  "items": {
214
- "type": "integer"
214
+ "type": "string"
215
215
  }
216
216
  },
217
217
  "incomingFriendRequestIds": {
218
218
  "type": "array",
219
219
  "items": {
220
- "type": "integer"
220
+ "type": "string"
221
221
  }
222
222
  },
223
223
  "ignoreIds": {
224
224
  "type": "array",
225
225
  "items": {
226
- "type": "integer"
226
+ "type": "string"
227
227
  }
228
228
  }
229
229
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tachyon-protocol",
3
- "version": "0.3.3",
3
+ "version": "0.3.5",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "dev": "nodemon --watch src/** --ext ts --ignore src/meta.ts --exec npm run build",
@@ -29,8 +29,7 @@
29
29
  },
30
30
  "homepage": "https://github.com/beyond-all-reason/tachyon#readme",
31
31
  "dependencies": {
32
- "jaz-ts-utils": "^7.10.0",
33
- "type-fest": "^4.9.0"
32
+ "jaz-ts-utils": "^7.10.0"
34
33
  },
35
34
  "devDependencies": {
36
35
  "@sinclair/typebox": "^0.32.9",
@@ -54,6 +53,7 @@
54
53
  "ts-node": "^10.9.1",
55
54
  "tsconfig-paths": "^4.2.0",
56
55
  "tsup": "^7.2.0",
56
+ "type-fest": "^4.14.0",
57
57
  "typescript": "^5.1.6"
58
58
  },
59
59
  "overrides": {