@overlayed/app 1.3.14 → 1.4.0

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/sand.js ADDED
@@ -0,0 +1 @@
1
+ import{scope as e,type as t}from"arktype";function n(e){return e}function r(e){return e}function i(e){return e?t=>(e(t),t):r}const a=[`menu`,`waiting_for_players`,`matchmaking`,`match_found`,`in_progress`,`loot_division`,`extracted`,`all_left`,`aborted`,`failed`,`decayed`,`invalid`],o=t(`string`),s=[`storm_dive`,`voyage`,`invalid`],c=t(`string`),l=[`idle`,`delay`,`moving`,`invalid`],u=t(`string`),d=i(),f=i(),p=i(),m=i(),h=i(),g=i(),_=i(),v=i(),y=i(),b=i(),x=i(),S=i(),C=i(),w=i(),T=t({game:`string`,type:`string`,creation_time:`number`}),E=T.and({game:`'sand'`}),D=t({x:`number`,y:`number`,z:`number`}),O=t({min_x:`number`,min_z:`number`,max_x:`number`,max_z:`number`}),k=t({id:n(t.string),name:`string`,position:D}),A=t({account_id:n(t.string),display_name:`string`,platform_id:n(t.string),playfab_id:n(t.string)}),j=t({definition:n(t.string),amount:`number`}),M=t({id:n(t.string),name:`string`,tier:`number`,is_unlocked:`boolean`,is_available:`boolean`}),N=e({"#event1":`logged_in | game_state_changed | party_changed | party_member_joined | party_member_left | inventory_changed | inventory_item_changed | tech_tree_changed | tech_tree_item_unlocked | walker_changed`,"#event2":`match_started | match_ended | world_time_changed | player_joined | extraction_added | extraction_removed | storm_changed | trampler_acquired | trampler_changed | trampler_lost`,event:`event1 | event2`,logged_in:E.and({type:`'logged_in'`,content:A}),game_state_changed:E.and({type:`'game_state_changed'`,content:{state:o}}),party_changed:E.and({type:`'party_changed'`,content:{join_code:n(t.string)}}),party_member_joined:E.and({type:`'party_member_joined'`,content:A.and({character_id:n(t.number),is_captain:`boolean`})}),party_member_left:E.and({type:`'party_member_left'`,content:{account_id:n(t.string)}}),inventory_changed:E.and({type:`'inventory_changed'`,content:{slots_used:`number`,slots_total:`number`,crowns:`number`,mechanical_parts:`number`,pneumatic_parts:`number`,computing_modules:`number`,items:j.array()}}),inventory_item_changed:E.and({type:`'inventory_item_changed'`,content:{definition:n(t.string),amount:`number`,delta:`number`}}),tech_tree_changed:E.and({type:`'tech_tree_changed'`,content:{unlocked:`number`,total:`number`,nodes:M.array()}}),tech_tree_item_unlocked:E.and({type:`'tech_tree_item_unlocked'`,content:{id:n(t.string),name:`string`,tier:`number`}}),walker_changed:E.and({type:`'walker_changed'`,content:{walker_id:n(t.number),blueprint_unique_id:n(t.string),blueprint_file:`string`,first_name_index:`number`,second_name_index:`number`}}),match_started:E.and({type:`'match_started'`,content:{match_id:n(t.number),game_mode:c,seed:`number >= 0`,server_start_time:`number >= 0`,world_bounds:O,landmarks:k.array()}}),match_ended:E.and({type:`'match_ended'`}),world_time_changed:E.and({type:`'world_time_changed'`,content:{hour:`0 <= number <= 23`}}),player_joined:E.and({type:`'player_joined'`,content:{player_id:n(t(`number >= 0`)),username:`string`,platform_id:n(t.string),playfab_id:n(t.string)}}),extraction_added:E.and({type:`'extraction_added'`,content:{extraction_id:n(t.number),radius:`number`,position:D}}),extraction_removed:E.and({type:`'extraction_removed'`,content:{extraction_id:n(t.number)}}),storm_changed:E.and({type:`'storm_changed'`,content:{stage:`number`,total_stages:`number`,state:u,end_time:`number >= 0`,radius:`number`,center:D,next_radius:`number`,next_center:D}}),trampler_acquired:E.and({type:`'trampler_acquired'`,content:{trampler_id:n(t.number),master_server_id:n(t.number),blueprint:`string`,creator_account_id:n(t(`number >= 0`)),first_name_index:`number`,second_name_index:`number`}}),trampler_changed:E.and({type:`'trampler_changed'`,content:{trampler_id:n(t.number),position:D,yaw:`number`,speed:`number`,velocity:D}}),trampler_lost:E.and({type:`'trampler_lost'`,content:{trampler_id:n(t.number)}})}).export();function P(){return{key:`sand`,events:N}}export{T as BaseEvent,s as SAND_GAME_MODES,a as SAND_GAME_STATES,l as SAND_STORM_STATES,d as SandAccountId,C as SandBlueprintId,v as SandCharacterId,g as SandExtractionId,c as SandGameModeSchema,o as SandGameStateSchema,b as SandItemDefinition,_ as SandLandmarkId,h as SandMatchId,y as SandPartyJoinCode,p as SandPlatformId,f as SandPlayerId,m as SandPlayfabId,u as SandStormStateSchema,x as SandTechNodeId,w as SandTramplerId,S as SandWalkerId,P as module};
package/dist/siege.d.ts CHANGED
@@ -653,22 +653,23 @@ declare function module(): {
653
653
  };
654
654
  event: {
655
655
  game: "siege";
656
- type: "stopped_queuing";
657
- creation_time: number;
658
- } | {
659
- game: "siege";
660
- type: "player_assists_changed";
656
+ type: "defuser_sabotaged";
661
657
  creation_time: number;
662
658
  content: {
663
659
  player_id: SiegePlayerId;
664
- assists: number;
665
660
  };
666
661
  } | {
667
662
  game: "siege";
668
- type: "defuser_sabotaged";
663
+ type: "operator_banned";
669
664
  creation_time: number;
670
665
  content: {
671
- player_id: SiegePlayerId;
666
+ team: 0 | 1;
667
+ index: number;
668
+ side: "attacker" | "both" | "defender" | "invalid" | (string & {});
669
+ operator_name: {
670
+ id: SiegeOperatorNameId;
671
+ value: string;
672
+ } | null;
672
673
  };
673
674
  } | {
674
675
  game: "siege";
@@ -682,6 +683,10 @@ declare function module(): {
682
683
  };
683
684
  match_type: SiegeMatchType;
684
685
  };
686
+ } | {
687
+ game: "siege";
688
+ type: "stopped_queuing";
689
+ creation_time: number;
685
690
  } | {
686
691
  game: "siege";
687
692
  type: "match_started";
@@ -750,19 +755,6 @@ declare function module(): {
750
755
  index: number;
751
756
  side: "attacker" | "both" | "defender" | "invalid" | (string & {});
752
757
  };
753
- } | {
754
- game: "siege";
755
- type: "operator_banned";
756
- creation_time: number;
757
- content: {
758
- team: 0 | 1;
759
- index: number;
760
- side: "attacker" | "both" | "defender" | "invalid" | (string & {});
761
- operator_name: {
762
- id: SiegeOperatorNameId;
763
- value: string;
764
- } | null;
765
- };
766
758
  } | {
767
759
  game: "siege";
768
760
  type: "operator_ban_cleared";
@@ -880,6 +872,14 @@ declare function module(): {
880
872
  player_id: SiegePlayerId;
881
873
  deaths: number;
882
874
  };
875
+ } | {
876
+ game: "siege";
877
+ type: "player_assists_changed";
878
+ creation_time: number;
879
+ content: {
880
+ player_id: SiegePlayerId;
881
+ assists: number;
882
+ };
883
883
  } | {
884
884
  game: "siege";
885
885
  type: "player_game_mode_actions_changed";
@@ -2013,22 +2013,23 @@ declare const siegeEvents: import("arktype").Module<{
2013
2013
  };
2014
2014
  event: {
2015
2015
  game: "siege";
2016
- type: "stopped_queuing";
2017
- creation_time: number;
2018
- } | {
2019
- game: "siege";
2020
- type: "player_assists_changed";
2016
+ type: "defuser_sabotaged";
2021
2017
  creation_time: number;
2022
2018
  content: {
2023
2019
  player_id: SiegePlayerId;
2024
- assists: number;
2025
2020
  };
2026
2021
  } | {
2027
2022
  game: "siege";
2028
- type: "defuser_sabotaged";
2023
+ type: "operator_banned";
2029
2024
  creation_time: number;
2030
2025
  content: {
2031
- player_id: SiegePlayerId;
2026
+ team: 0 | 1;
2027
+ index: number;
2028
+ side: "attacker" | "both" | "defender" | "invalid" | (string & {});
2029
+ operator_name: {
2030
+ id: SiegeOperatorNameId;
2031
+ value: string;
2032
+ } | null;
2032
2033
  };
2033
2034
  } | {
2034
2035
  game: "siege";
@@ -2042,6 +2043,10 @@ declare const siegeEvents: import("arktype").Module<{
2042
2043
  };
2043
2044
  match_type: SiegeMatchType;
2044
2045
  };
2046
+ } | {
2047
+ game: "siege";
2048
+ type: "stopped_queuing";
2049
+ creation_time: number;
2045
2050
  } | {
2046
2051
  game: "siege";
2047
2052
  type: "match_started";
@@ -2110,19 +2115,6 @@ declare const siegeEvents: import("arktype").Module<{
2110
2115
  index: number;
2111
2116
  side: "attacker" | "both" | "defender" | "invalid" | (string & {});
2112
2117
  };
2113
- } | {
2114
- game: "siege";
2115
- type: "operator_banned";
2116
- creation_time: number;
2117
- content: {
2118
- team: 0 | 1;
2119
- index: number;
2120
- side: "attacker" | "both" | "defender" | "invalid" | (string & {});
2121
- operator_name: {
2122
- id: SiegeOperatorNameId;
2123
- value: string;
2124
- } | null;
2125
- };
2126
2118
  } | {
2127
2119
  game: "siege";
2128
2120
  type: "operator_ban_cleared";
@@ -2240,6 +2232,14 @@ declare const siegeEvents: import("arktype").Module<{
2240
2232
  player_id: SiegePlayerId;
2241
2233
  deaths: number;
2242
2234
  };
2235
+ } | {
2236
+ game: "siege";
2237
+ type: "player_assists_changed";
2238
+ creation_time: number;
2239
+ content: {
2240
+ player_id: SiegePlayerId;
2241
+ assists: number;
2242
+ };
2243
2243
  } | {
2244
2244
  game: "siege";
2245
2245
  type: "player_game_mode_actions_changed";
@@ -2,6 +2,16 @@
2
2
  //#endregion
3
3
  //#region src/events/loggedIn.d.ts
4
4
  declare const LoggedIn: import("arktype/internal/variants/object.ts").ObjectType<{
5
+ game: "sand";
6
+ type: "logged_in";
7
+ creation_time: number;
8
+ content: {
9
+ account_id: string;
10
+ display_name: string;
11
+ platform_id: string;
12
+ playfab_id: string;
13
+ };
14
+ } | {
5
15
  game: "siege" | "tft";
6
16
  type: "logged_in";
7
17
  creation_time: number;
@@ -12,7 +22,7 @@ declare const LoggedIn: import("arktype/internal/variants/object.ts").ObjectType
12
22
  type LoggedInEvent = typeof LoggedIn.infer; //#endregion
13
23
  //#region src/events/moduleLoaded.d.ts
14
24
  declare const ModuleLoaded: import("arktype/internal/variants/object.ts").ObjectType<{
15
- game: "siege" | "tft";
25
+ game: "sand" | "siege" | "tft";
16
26
  type: "module_loaded";
17
27
  creation_time: number;
18
28
  content: {
@@ -23,14 +33,14 @@ declare const ModuleLoaded: import("arktype/internal/variants/object.ts").Object
23
33
  type ModuleLoadedEvent = typeof ModuleLoaded.infer; //#endregion
24
34
  //#region src/events/moduleUnloaded.d.ts
25
35
  declare const ModuleUnloaded: import("arktype/internal/variants/object.ts").ObjectType<{
26
- game: "siege" | "tft";
36
+ game: "sand" | "siege" | "tft";
27
37
  type: "module_unloaded";
28
38
  creation_time: number;
29
39
  }, {}>;
30
40
  type ModuleUnloadedEvent = typeof ModuleUnloaded.infer; //#endregion
31
41
  //#region src/events/unsupportedGameVersion.d.ts
32
42
  declare const UnsupportedGameVersion: import("arktype/internal/variants/object.ts").ObjectType<{
33
- game: "siege" | "tft";
43
+ game: "sand" | "siege" | "tft";
34
44
  type: "unsupported_game_version";
35
45
  creation_time: number;
36
46
  content: {
@@ -42,14 +52,24 @@ type UnsupportedGameVersionEvent = typeof UnsupportedGameVersion.infer; //#endre
42
52
  //#region src/events/index.d.ts
43
53
  declare const universalEvents: import("arktype").Module<{
44
54
  event: {
45
- game: "siege" | "tft";
55
+ game: "sand";
46
56
  type: "logged_in";
47
57
  creation_time: number;
48
58
  content: {
49
59
  account_id: string;
60
+ display_name: string;
61
+ platform_id: string;
62
+ playfab_id: string;
50
63
  };
51
64
  } | {
52
65
  game: "siege" | "tft";
66
+ type: "logged_in";
67
+ creation_time: number;
68
+ content: {
69
+ account_id: string;
70
+ };
71
+ } | {
72
+ game: "sand" | "siege" | "tft";
53
73
  type: "module_loaded";
54
74
  creation_time: number;
55
75
  content: {
@@ -57,11 +77,11 @@ declare const universalEvents: import("arktype").Module<{
57
77
  process_hash: string;
58
78
  };
59
79
  } | {
60
- game: "siege" | "tft";
80
+ game: "sand" | "siege" | "tft";
61
81
  type: "module_unloaded";
62
82
  creation_time: number;
63
83
  } | {
64
- game: "siege" | "tft";
84
+ game: "sand" | "siege" | "tft";
65
85
  type: "unsupported_game_version";
66
86
  creation_time: number;
67
87
  content: {
@@ -70,6 +90,16 @@ declare const universalEvents: import("arktype").Module<{
70
90
  };
71
91
  };
72
92
  logged_in: {
93
+ game: "sand";
94
+ type: "logged_in";
95
+ creation_time: number;
96
+ content: {
97
+ account_id: string;
98
+ display_name: string;
99
+ platform_id: string;
100
+ playfab_id: string;
101
+ };
102
+ } | {
73
103
  game: "siege" | "tft";
74
104
  type: "logged_in";
75
105
  creation_time: number;
@@ -78,7 +108,7 @@ declare const universalEvents: import("arktype").Module<{
78
108
  };
79
109
  };
80
110
  module_loaded: {
81
- game: "siege" | "tft";
111
+ game: "sand" | "siege" | "tft";
82
112
  type: "module_loaded";
83
113
  creation_time: number;
84
114
  content: {
@@ -87,12 +117,12 @@ declare const universalEvents: import("arktype").Module<{
87
117
  };
88
118
  };
89
119
  module_unloaded: {
90
- game: "siege" | "tft";
120
+ game: "sand" | "siege" | "tft";
91
121
  type: "module_unloaded";
92
122
  creation_time: number;
93
123
  };
94
124
  unsupported_game_version: {
95
- game: "siege" | "tft";
125
+ game: "sand" | "siege" | "tft";
96
126
  type: "unsupported_game_version";
97
127
  creation_time: number;
98
128
  content: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@overlayed/app",
3
- "version": "1.3.14",
3
+ "version": "1.4.0",
4
4
  "description": "Overlayed app",
5
5
  "keywords": [
6
6
  "typescript"
@@ -30,6 +30,11 @@
30
30
  "import": "./dist/siege.js",
31
31
  "default": "./dist/siege.js"
32
32
  },
33
+ "./games/sand": {
34
+ "types": "./dist/sand.d.ts",
35
+ "import": "./dist/sand.js",
36
+ "default": "./dist/sand.js"
37
+ },
33
38
  "./universal": {
34
39
  "types": "./dist/universal.d.ts",
35
40
  "import": "./dist/universal.js",
@@ -79,11 +84,12 @@
79
84
  "@overlayed/cortex-client": "0.0.6",
80
85
  "@overlayed/events": "0.0.4",
81
86
  "@overlayed/native-managers": "0.0.4",
82
- "@overlayed/shared-node": "0.0.4",
87
+ "@overlayed/sand": "0.0.0",
83
88
  "@overlayed/siege": "0.0.5",
84
89
  "@overlayed/universal": "0.0.0",
85
90
  "@overlayed/utils": "0.0.4",
86
- "@overlayed/utils-node": "0.0.4"
91
+ "@overlayed/utils-node": "0.0.4",
92
+ "@overlayed/shared-node": "0.0.4"
87
93
  },
88
94
  "peerDependencies": {
89
95
  "electron": "33.3.0"