@overlayed/app 2.8.0 → 2.9.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.d.ts CHANGED
@@ -1,154 +1,157 @@
1
+ import "arktype";
1
2
  //#region ../utils/dist/index.d.ts
2
3
  //#endregion
3
4
  //#region src/brand.d.ts
4
5
  /**
5
- * A `Brand` is a type that takes at minimum two type parameters. Given a base
6
- * type `Base` and some unique and arbitrary branding type `Branding`, it
7
- * produces a type based on but distinct from `Base`. The resulting branded
8
- * type is not directly assignable from the base type, and not mutually
9
- * assignable with another branded type derived from the same base type.
10
- *
11
- * Take care that the branding type is unique. Two branded types that share the
12
- * same base type and branding type are considered the same type! There are two
13
- * ways to avoid this.
14
- *
15
- * The first way is to supply a third type parameter, `ReservedName`, with a
16
- * string literal type that is not `__type__`, which is the default.
17
- *
18
- * The second way is to define a branded type in terms of its surrounding
19
- * interface, thereby forming a recursive type. This is possible because there
20
- * are no constraints on what the branding type must be. It does not have to
21
- * be a string literal type, even though it often is.
22
- *
23
- * @example
24
- * ```
25
- * type Path = Brand<string, 'path'>;
26
- * type UserId = Brand<number, 'user'>;
27
- * type DifferentUserId = Brand<number, 'user', '__kind__'>;
28
- * interface Post { id: Brand<number, Post> }
29
- * ```
30
- */
31
- type Brand<Base, Branding, ReservedName extends string = "__type__"> = Base & { [K in ReservedName]: Branding } & {
6
+ * A `Brand` is a type that takes at minimum two type parameters. Given a base
7
+ * type `Base` and some unique and arbitrary branding type `Branding`, it
8
+ * produces a type based on but distinct from `Base`. The resulting branded
9
+ * type is not directly assignable from the base type, and not mutually
10
+ * assignable with another branded type derived from the same base type.
11
+ *
12
+ * Take care that the branding type is unique. Two branded types that share the
13
+ * same base type and branding type are considered the same type! There are two
14
+ * ways to avoid this.
15
+ *
16
+ * The first way is to supply a third type parameter, `ReservedName`, with a
17
+ * string literal type that is not `__type__`, which is the default.
18
+ *
19
+ * The second way is to define a branded type in terms of its surrounding
20
+ * interface, thereby forming a recursive type. This is possible because there
21
+ * are no constraints on what the branding type must be. It does not have to
22
+ * be a string literal type, even though it often is.
23
+ *
24
+ * @example
25
+ * ```
26
+ * type Path = Brand<string, 'path'>;
27
+ * type UserId = Brand<number, 'user'>;
28
+ * type DifferentUserId = Brand<number, 'user', '__kind__'>;
29
+ * interface Post { id: Brand<number, Post> }
30
+ * ```
31
+ */
32
+ type Brand<Base, Branding, ReservedName extends string = "__type__"> = Base & { [K in ReservedName]: Branding; } & {
32
33
  __witness__: Base;
33
34
  };
34
35
  /**
35
- * An `AnyBrand` is a branded type based on any base type branded with any
36
- * branding type. By itself it is not useful, but it can act as type constraint
37
- * when manipulating branded types in general.
38
- */
36
+ * An `AnyBrand` is a branded type based on any base type branded with any
37
+ * branding type. By itself it is not useful, but it can act as type constraint
38
+ * when manipulating branded types in general.
39
+ */
39
40
  type AnyBrand = Brand<unknown, any>;
40
41
  /**
41
- * `BaseOf` is a type that takes any branded type `B` and yields its base type.
42
- */
42
+ * `BaseOf` is a type that takes any branded type `B` and yields its base type.
43
+ */
43
44
  type BaseOf<B extends AnyBrand> = B["__witness__"];
44
45
  /**
45
- * A `Brander` is a function that takes a value of some base type and casts
46
- * that value to a branded type derived from said base type. It can be thought
47
- * of as the type of a "constructor", in the functional programming sense of
48
- * the word.
49
- *
50
- * @example
51
- * ```
52
- * type UserId = Brand<number, 'user'>;
53
- * // A Brander<UserId> would take a number and return a UserId
54
- * ```
55
- */
46
+ * A `Brander` is a function that takes a value of some base type and casts
47
+ * that value to a branded type derived from said base type. It can be thought
48
+ * of as the type of a "constructor", in the functional programming sense of
49
+ * the word.
50
+ *
51
+ * @example
52
+ * ```
53
+ * type UserId = Brand<number, 'user'>;
54
+ * // A Brander<UserId> would take a number and return a UserId
55
+ * ```
56
+ */
56
57
  type Brander<B extends AnyBrand> = (underlying: BaseOf<B>) => B;
57
- /**
58
- * A generic function that, when given some branded type, can take a value with
59
- * the base type of the branded type, and cast that value to the branded type.
60
- * It fulfills the contract of a `Brander`.
61
- *
62
- * At runtime, this function simply returns the value as-is.
63
- *
64
- * @param underlying The value with a base type, to be casted
65
- * @return The same underlying value, but casted
66
- * @example
67
- * ```
68
- * type UserId = Brand<number, 'user'>;
69
- * const UserId: Brander<UserId> = identity;
70
- * ```
71
- */
72
58
  //#endregion
73
59
  //#region ../games/sand/dist/index.d.ts
74
60
  //#region src/consts.d.ts
75
- declare const SAND_GAME_STATES: readonly ["menu", "waiting_for_players", "matchmaking", "match_found", "in_progress", "loot_division", "extracted", "all_left", "aborted", "failed", "decayed", "invalid"];
76
- type SandGameState = (typeof SAND_GAME_STATES)[number] | (string & {});
77
- declare const SandGameStateSchema: import("arktype/internal/variants/string.ts").StringType<SandGameState, {}>;
78
- declare const SAND_GAME_MODES: readonly ["storm_dive", "voyage", "invalid"];
79
- type SandGameMode = (typeof SAND_GAME_MODES)[number] | (string & {});
80
- declare const SandGameModeSchema: import("arktype/internal/variants/string.ts").StringType<SandGameMode, {}>;
81
- declare const SAND_STORM_STATES: readonly ["idle", "delay", "moving", "invalid"];
82
- type SandStormState = (typeof SAND_STORM_STATES)[number] | (string & {});
83
- declare const SandStormStateSchema: import("arktype/internal/variants/string.ts").StringType<SandStormState, {}>; //#endregion
61
+ export declare const SAND_GAME_STATES: readonly ["menu", "waiting_for_players", "matchmaking", "match_found", "in_progress", "loot_division", "extracted", "all_left", "aborted", "failed", "decayed", "invalid"];
62
+ export type SandGameState = (typeof SAND_GAME_STATES)[number] | (string & {});
63
+ export declare const SandGameStateSchema: import("arktype/internal/variants/string.ts").StringType<SandGameState, {}>;
64
+ export declare const SAND_GAME_MODES: readonly ["storm_dive", "voyage", "invalid"];
65
+ export type SandGameMode = (typeof SAND_GAME_MODES)[number] | (string & {});
66
+ export declare const SandGameModeSchema: import("arktype/internal/variants/string.ts").StringType<SandGameMode, {}>;
67
+ export declare const SAND_STORM_STATES: readonly ["idle", "delay", "moving", "invalid"];
68
+ export type SandStormState = (typeof SAND_STORM_STATES)[number] | (string & {});
69
+ export declare const SandStormStateSchema: import("arktype/internal/variants/string.ts").StringType<SandStormState, {}>;
70
+ //#endregion
84
71
  //#region src/brands.d.ts
85
- type SandAccountId = Brand<string, "sandAccountId">;
86
- declare const SandAccountId: Brander<SandAccountId>;
87
- type SandPlayerId = Brand<number, "sandPlayerId">;
88
- declare const SandPlayerId: Brander<SandPlayerId>;
89
- type SandPlatformId = Brand<string, "sandPlatformId">;
90
- declare const SandPlatformId: Brander<SandPlatformId>;
91
- type SandPlayfabId = Brand<string, "sandPlayfabId">;
92
- declare const SandPlayfabId: Brander<SandPlayfabId>;
93
- type SandMatchId = Brand<number, "sandMatchId">;
94
- declare const SandMatchId: Brander<SandMatchId>;
95
- type SandExtractionId = Brand<number, "sandExtractionId">;
96
- declare const SandExtractionId: Brander<SandExtractionId>;
97
- type SandLandmarkId = Brand<string, "sandLandmarkId">;
98
- declare const SandLandmarkId: Brander<SandLandmarkId>;
99
- type SandCharacterId = Brand<number, "sandCharacterId">;
100
- declare const SandCharacterId: Brander<SandCharacterId>;
101
- type SandPartyJoinCode = Brand<string, "sandPartyJoinCode">;
102
- declare const SandPartyJoinCode: Brander<SandPartyJoinCode>;
103
- type SandItemDefinition = Brand<string, "sandItemDefinition">;
104
- declare const SandItemDefinition: Brander<SandItemDefinition>;
105
- type SandTechNodeId = Brand<string, "sandTechNodeId">;
106
- declare const SandTechNodeId: Brander<SandTechNodeId>;
107
- type SandWalkerId = Brand<number, "sandWalkerId">;
108
- declare const SandWalkerId: Brander<SandWalkerId>;
109
- type SandBlueprintId = Brand<string, "sandBlueprintId">;
110
- declare const SandBlueprintId: Brander<SandBlueprintId>;
111
- type SandTramplerId = Brand<number, "sandTramplerId">;
112
- declare const SandTramplerId: Brander<SandTramplerId>; //#endregion
72
+ export type SandAccountId = Brand<string, "sandAccountId">;
73
+ export declare const SandAccountId: Brander<SandAccountId>;
74
+ export type SandPlayerId = Brand<number, "sandPlayerId">;
75
+ export declare const SandPlayerId: Brander<SandPlayerId>;
76
+ export type SandPlatformId = Brand<string, "sandPlatformId">;
77
+ export declare const SandPlatformId: Brander<SandPlatformId>;
78
+ export type SandPlayfabId = Brand<string, "sandPlayfabId">;
79
+ export declare const SandPlayfabId: Brander<SandPlayfabId>;
80
+ export type SandMatchId = Brand<number, "sandMatchId">;
81
+ export declare const SandMatchId: Brander<SandMatchId>;
82
+ export type SandExtractionId = Brand<number, "sandExtractionId">;
83
+ export declare const SandExtractionId: Brander<SandExtractionId>;
84
+ export type SandLandmarkId = Brand<string, "sandLandmarkId">;
85
+ export declare const SandLandmarkId: Brander<SandLandmarkId>;
86
+ export type SandCharacterId = Brand<number, "sandCharacterId">;
87
+ export declare const SandCharacterId: Brander<SandCharacterId>;
88
+ export type SandPartyJoinCode = Brand<string, "sandPartyJoinCode">;
89
+ export declare const SandPartyJoinCode: Brander<SandPartyJoinCode>;
90
+ export type SandItemDefinition = Brand<string, "sandItemDefinition">;
91
+ export declare const SandItemDefinition: Brander<SandItemDefinition>;
92
+ export type SandTechNodeId = Brand<string, "sandTechNodeId">;
93
+ export declare const SandTechNodeId: Brander<SandTechNodeId>;
94
+ export type SandWalkerId = Brand<number, "sandWalkerId">;
95
+ export declare const SandWalkerId: Brander<SandWalkerId>;
96
+ export type SandBlueprintId = Brand<string, "sandBlueprintId">;
97
+ export declare const SandBlueprintId: Brander<SandBlueprintId>;
98
+ export type SandTramplerId = Brand<number, "sandTramplerId">;
99
+ export declare const SandTramplerId: Brander<SandTramplerId>;
100
+ //#endregion
113
101
  //#region src/module.d.ts
114
- declare function module(): {
102
+ export declare function module(): {
115
103
  readonly key: "sand";
116
104
  readonly events: import("arktype").Module<{
117
105
  event: {
118
106
  game: "sand";
119
- type: "logged_in";
107
+ type: "party_member_joined";
120
108
  creationTime: number;
121
109
  content: {
122
110
  accountId: SandAccountId;
123
111
  displayName: string;
124
112
  platformId: SandPlatformId;
125
113
  playfabId: SandPlayfabId;
114
+ characterId: SandCharacterId;
115
+ isCaptain: boolean;
126
116
  };
127
117
  } | {
128
118
  game: "sand";
129
- type: "game_state_changed";
119
+ type: "tech_tree_changed";
130
120
  creationTime: number;
131
121
  content: {
132
- state: "aborted" | "all_left" | "decayed" | "extracted" | "failed" | "in_progress" | "invalid" | "loot_division" | "match_found" | "matchmaking" | "menu" | "waiting_for_players" | (string & {});
122
+ unlocked: number;
123
+ total: number;
124
+ nodes: {
125
+ id: SandTechNodeId;
126
+ name: string;
127
+ tier: number;
128
+ isUnlocked: boolean;
129
+ isAvailable: boolean;
130
+ }[];
133
131
  };
134
132
  } | {
135
133
  game: "sand";
136
- type: "party_changed";
134
+ type: "logged_in";
137
135
  creationTime: number;
138
136
  content: {
139
- joinCode: SandPartyJoinCode;
137
+ accountId: SandAccountId;
138
+ displayName: string;
139
+ platformId: SandPlatformId;
140
+ playfabId: SandPlayfabId;
140
141
  };
141
142
  } | {
142
143
  game: "sand";
143
- type: "party_member_joined";
144
+ type: "game_state_changed";
144
145
  creationTime: number;
145
146
  content: {
146
- accountId: SandAccountId;
147
- displayName: string;
148
- platformId: SandPlatformId;
149
- playfabId: SandPlayfabId;
150
- characterId: SandCharacterId;
151
- isCaptain: boolean;
147
+ state: "aborted" | "all_left" | "decayed" | "extracted" | "failed" | "in_progress" | "invalid" | "loot_division" | "match_found" | "matchmaking" | "menu" | "waiting_for_players" | (string & {});
148
+ };
149
+ } | {
150
+ game: "sand";
151
+ type: "party_changed";
152
+ creationTime: number;
153
+ content: {
154
+ joinCode: SandPartyJoinCode;
152
155
  };
153
156
  } | {
154
157
  game: "sand";
@@ -182,21 +185,6 @@ declare function module(): {
182
185
  amount: number;
183
186
  delta: number;
184
187
  };
185
- } | {
186
- game: "sand";
187
- type: "tech_tree_changed";
188
- creationTime: number;
189
- content: {
190
- unlocked: number;
191
- total: number;
192
- nodes: {
193
- id: SandTechNodeId;
194
- name: string;
195
- tier: number;
196
- isUnlocked: boolean;
197
- isAvailable: boolean;
198
- }[];
199
- };
200
188
  } | {
201
189
  game: "sand";
202
190
  type: "tech_tree_item_unlocked";
@@ -663,14 +651,16 @@ declare function module(): {
663
651
  };
664
652
  };
665
653
  }>;
666
- }; //#endregion
654
+ };
655
+ //#endregion
667
656
  //#region src/utils.d.ts
668
- declare const BaseEvent: import("arktype/internal/variants/object.ts").ObjectType<{
657
+ export declare const BaseEvent: import("arktype/internal/variants/object.ts").ObjectType<{
669
658
  game: string;
670
659
  type: string;
671
660
  creationTime: number;
672
661
  }, {}>;
673
- type BaseEvent = typeof BaseEvent.infer; //#endregion
662
+ export type BaseEvent = typeof BaseEvent.infer;
663
+ //#endregion
674
664
  //#region src/schemas.d.ts
675
665
  declare const PositionSchema: import("arktype/internal/variants/object.ts").ObjectType<{
676
666
  x: number;
@@ -720,7 +710,8 @@ declare const TechTreeNodeSchema: import("arktype/internal/variants/object.ts").
720
710
  isUnlocked: boolean;
721
711
  isAvailable: boolean;
722
712
  }, {}>;
723
- type TechTreeNode = typeof TechTreeNodeSchema.infer; //#endregion
713
+ type TechTreeNode = typeof TechTreeNodeSchema.infer;
714
+ //#endregion
724
715
  //#region src/events/loggedIn.d.ts
725
716
  declare const LoggedIn: import("arktype/internal/variants/object.ts").ObjectType<{
726
717
  game: "sand";
@@ -733,7 +724,8 @@ declare const LoggedIn: import("arktype/internal/variants/object.ts").ObjectType
733
724
  playfabId: SandPlayfabId;
734
725
  };
735
726
  }, {}>;
736
- type LoggedInEvent = typeof LoggedIn.infer; //#endregion
727
+ type LoggedInEvent = typeof LoggedIn.infer;
728
+ //#endregion
737
729
  //#region src/events/gameStateChanged.d.ts
738
730
  declare const GameStateChanged: import("arktype/internal/variants/object.ts").ObjectType<{
739
731
  game: "sand";
@@ -743,7 +735,8 @@ declare const GameStateChanged: import("arktype/internal/variants/object.ts").Ob
743
735
  state: "aborted" | "all_left" | "decayed" | "extracted" | "failed" | "in_progress" | "invalid" | "loot_division" | "match_found" | "matchmaking" | "menu" | "waiting_for_players" | (string & {});
744
736
  };
745
737
  }, {}>;
746
- type GameStateChangedEvent = typeof GameStateChanged.infer; //#endregion
738
+ type GameStateChangedEvent = typeof GameStateChanged.infer;
739
+ //#endregion
747
740
  //#region src/events/partyChanged.d.ts
748
741
  declare const PartyChanged: import("arktype/internal/variants/object.ts").ObjectType<{
749
742
  game: "sand";
@@ -753,7 +746,8 @@ declare const PartyChanged: import("arktype/internal/variants/object.ts").Object
753
746
  joinCode: SandPartyJoinCode;
754
747
  };
755
748
  }, {}>;
756
- type PartyChangedEvent = typeof PartyChanged.infer; //#endregion
749
+ type PartyChangedEvent = typeof PartyChanged.infer;
750
+ //#endregion
757
751
  //#region src/events/partyMemberJoined.d.ts
758
752
  declare const PartyMemberJoined: import("arktype/internal/variants/object.ts").ObjectType<{
759
753
  game: "sand";
@@ -768,7 +762,8 @@ declare const PartyMemberJoined: import("arktype/internal/variants/object.ts").O
768
762
  isCaptain: boolean;
769
763
  };
770
764
  }, {}>;
771
- type PartyMemberJoinedEvent = typeof PartyMemberJoined.infer; //#endregion
765
+ type PartyMemberJoinedEvent = typeof PartyMemberJoined.infer;
766
+ //#endregion
772
767
  //#region src/events/partyMemberLeft.d.ts
773
768
  declare const PartyMemberLeft: import("arktype/internal/variants/object.ts").ObjectType<{
774
769
  game: "sand";
@@ -778,7 +773,8 @@ declare const PartyMemberLeft: import("arktype/internal/variants/object.ts").Obj
778
773
  accountId: SandAccountId;
779
774
  };
780
775
  }, {}>;
781
- type PartyMemberLeftEvent = typeof PartyMemberLeft.infer; //#endregion
776
+ type PartyMemberLeftEvent = typeof PartyMemberLeft.infer;
777
+ //#endregion
782
778
  //#region src/events/storageChanged.d.ts
783
779
  declare const StorageChanged: import("arktype/internal/variants/object.ts").ObjectType<{
784
780
  game: "sand";
@@ -797,7 +793,8 @@ declare const StorageChanged: import("arktype/internal/variants/object.ts").Obje
797
793
  }[];
798
794
  };
799
795
  }, {}>;
800
- type StorageChangedEvent = typeof StorageChanged.infer; //#endregion
796
+ type StorageChangedEvent = typeof StorageChanged.infer;
797
+ //#endregion
801
798
  //#region src/events/storageItemChanged.d.ts
802
799
  declare const StorageItemChanged: import("arktype/internal/variants/object.ts").ObjectType<{
803
800
  game: "sand";
@@ -809,7 +806,8 @@ declare const StorageItemChanged: import("arktype/internal/variants/object.ts").
809
806
  delta: number;
810
807
  };
811
808
  }, {}>;
812
- type StorageItemChangedEvent = typeof StorageItemChanged.infer; //#endregion
809
+ type StorageItemChangedEvent = typeof StorageItemChanged.infer;
810
+ //#endregion
813
811
  //#region src/events/techTreeChanged.d.ts
814
812
  declare const TechTreeChanged: import("arktype/internal/variants/object.ts").ObjectType<{
815
813
  game: "sand";
@@ -827,7 +825,8 @@ declare const TechTreeChanged: import("arktype/internal/variants/object.ts").Obj
827
825
  }[];
828
826
  };
829
827
  }, {}>;
830
- type TechTreeChangedEvent = typeof TechTreeChanged.infer; //#endregion
828
+ type TechTreeChangedEvent = typeof TechTreeChanged.infer;
829
+ //#endregion
831
830
  //#region src/events/techTreeItemUnlocked.d.ts
832
831
  declare const TechTreeItemUnlocked: import("arktype/internal/variants/object.ts").ObjectType<{
833
832
  game: "sand";
@@ -839,7 +838,8 @@ declare const TechTreeItemUnlocked: import("arktype/internal/variants/object.ts"
839
838
  tier: number;
840
839
  };
841
840
  }, {}>;
842
- type TechTreeItemUnlockedEvent = typeof TechTreeItemUnlocked.infer; //#endregion
841
+ type TechTreeItemUnlockedEvent = typeof TechTreeItemUnlocked.infer;
842
+ //#endregion
843
843
  //#region src/events/walkerChanged.d.ts
844
844
  declare const WalkerChanged: import("arktype/internal/variants/object.ts").ObjectType<{
845
845
  game: "sand";
@@ -853,7 +853,8 @@ declare const WalkerChanged: import("arktype/internal/variants/object.ts").Objec
853
853
  secondNameIndex: number;
854
854
  };
855
855
  }, {}>;
856
- type WalkerChangedEvent = typeof WalkerChanged.infer; //#endregion
856
+ type WalkerChangedEvent = typeof WalkerChanged.infer;
857
+ //#endregion
857
858
  //#region src/events/matchStarted.d.ts
858
859
  declare const MatchStarted: import("arktype/internal/variants/object.ts").ObjectType<{
859
860
  game: "sand";
@@ -881,14 +882,16 @@ declare const MatchStarted: import("arktype/internal/variants/object.ts").Object
881
882
  }[];
882
883
  };
883
884
  }, {}>;
884
- type MatchStartedEvent = typeof MatchStarted.infer; //#endregion
885
+ type MatchStartedEvent = typeof MatchStarted.infer;
886
+ //#endregion
885
887
  //#region src/events/matchEnded.d.ts
886
888
  declare const MatchEnded: import("arktype/internal/variants/object.ts").ObjectType<{
887
889
  game: "sand";
888
890
  type: "match_ended";
889
891
  creationTime: number;
890
892
  }, {}>;
891
- type MatchEndedEvent = typeof MatchEnded.infer; //#endregion
893
+ type MatchEndedEvent = typeof MatchEnded.infer;
894
+ //#endregion
892
895
  //#region src/events/worldTimeChanged.d.ts
893
896
  declare const WorldTimeChanged: import("arktype/internal/variants/object.ts").ObjectType<{
894
897
  game: "sand";
@@ -898,7 +901,8 @@ declare const WorldTimeChanged: import("arktype/internal/variants/object.ts").Ob
898
901
  hour: number;
899
902
  };
900
903
  }, {}>;
901
- type WorldTimeChangedEvent = typeof WorldTimeChanged.infer; //#endregion
904
+ type WorldTimeChangedEvent = typeof WorldTimeChanged.infer;
905
+ //#endregion
902
906
  //#region src/events/playerJoined.d.ts
903
907
  declare const PlayerJoined: import("arktype/internal/variants/object.ts").ObjectType<{
904
908
  game: "sand";
@@ -911,7 +915,8 @@ declare const PlayerJoined: import("arktype/internal/variants/object.ts").Object
911
915
  playfabId: SandPlayfabId;
912
916
  };
913
917
  }, {}>;
914
- type PlayerJoinedEvent = typeof PlayerJoined.infer; //#endregion
918
+ type PlayerJoinedEvent = typeof PlayerJoined.infer;
919
+ //#endregion
915
920
  //#region src/events/extractionAdded.d.ts
916
921
  declare const ExtractionAdded: import("arktype/internal/variants/object.ts").ObjectType<{
917
922
  game: "sand";
@@ -927,7 +932,8 @@ declare const ExtractionAdded: import("arktype/internal/variants/object.ts").Obj
927
932
  };
928
933
  };
929
934
  }, {}>;
930
- type ExtractionAddedEvent = typeof ExtractionAdded.infer; //#endregion
935
+ type ExtractionAddedEvent = typeof ExtractionAdded.infer;
936
+ //#endregion
931
937
  //#region src/events/extractionRemoved.d.ts
932
938
  declare const ExtractionRemoved: import("arktype/internal/variants/object.ts").ObjectType<{
933
939
  game: "sand";
@@ -937,7 +943,8 @@ declare const ExtractionRemoved: import("arktype/internal/variants/object.ts").O
937
943
  extractionId: SandExtractionId;
938
944
  };
939
945
  }, {}>;
940
- type ExtractionRemovedEvent = typeof ExtractionRemoved.infer; //#endregion
946
+ type ExtractionRemovedEvent = typeof ExtractionRemoved.infer;
947
+ //#endregion
941
948
  //#region src/events/stormChanged.d.ts
942
949
  declare const StormChanged: import("arktype/internal/variants/object.ts").ObjectType<{
943
950
  game: "sand";
@@ -962,7 +969,8 @@ declare const StormChanged: import("arktype/internal/variants/object.ts").Object
962
969
  };
963
970
  };
964
971
  }, {}>;
965
- type StormChangedEvent = typeof StormChanged.infer; //#endregion
972
+ type StormChangedEvent = typeof StormChanged.infer;
973
+ //#endregion
966
974
  //#region src/events/tramplerAcquired.d.ts
967
975
  declare const TramplerAcquired: import("arktype/internal/variants/object.ts").ObjectType<{
968
976
  game: "sand";
@@ -977,7 +985,8 @@ declare const TramplerAcquired: import("arktype/internal/variants/object.ts").Ob
977
985
  secondNameIndex: number;
978
986
  };
979
987
  }, {}>;
980
- type TramplerAcquiredEvent = typeof TramplerAcquired.infer; //#endregion
988
+ type TramplerAcquiredEvent = typeof TramplerAcquired.infer;
989
+ //#endregion
981
990
  //#region src/events/tramplerChanged.d.ts
982
991
  declare const TramplerChanged: import("arktype/internal/variants/object.ts").ObjectType<{
983
992
  game: "sand";
@@ -999,7 +1008,8 @@ declare const TramplerChanged: import("arktype/internal/variants/object.ts").Obj
999
1008
  };
1000
1009
  };
1001
1010
  }, {}>;
1002
- type TramplerChangedEvent = typeof TramplerChanged.infer; //#endregion
1011
+ type TramplerChangedEvent = typeof TramplerChanged.infer;
1012
+ //#endregion
1003
1013
  //#region src/events/tramplerLost.d.ts
1004
1014
  declare const TramplerLost: import("arktype/internal/variants/object.ts").ObjectType<{
1005
1015
  game: "sand";
@@ -1009,7 +1019,8 @@ declare const TramplerLost: import("arktype/internal/variants/object.ts").Object
1009
1019
  tramplerId: SandTramplerId;
1010
1020
  };
1011
1021
  }, {}>;
1012
- type TramplerLostEvent = typeof TramplerLost.infer; //#endregion
1022
+ type TramplerLostEvent = typeof TramplerLost.infer;
1023
+ //#endregion
1013
1024
  //#region src/events/inventoryChanged.d.ts
1014
1025
  declare const InventoryChanged: import("arktype/internal/variants/object.ts").ObjectType<{
1015
1026
  game: "sand";
@@ -1025,7 +1036,8 @@ declare const InventoryChanged: import("arktype/internal/variants/object.ts").Ob
1025
1036
  }[];
1026
1037
  };
1027
1038
  }, {}>;
1028
- type InventoryChangedEvent = typeof InventoryChanged.infer; //#endregion
1039
+ type InventoryChangedEvent = typeof InventoryChanged.infer;
1040
+ //#endregion
1029
1041
  //#region src/events/inventorySlotChanged.d.ts
1030
1042
  declare const InventorySlotChanged: import("arktype/internal/variants/object.ts").ObjectType<{
1031
1043
  game: "sand";
@@ -1039,7 +1051,8 @@ declare const InventorySlotChanged: import("arktype/internal/variants/object.ts"
1039
1051
  delta: number;
1040
1052
  };
1041
1053
  }, {}>;
1042
- type InventorySlotChangedEvent = typeof InventorySlotChanged.infer; //#endregion
1054
+ type InventorySlotChangedEvent = typeof InventorySlotChanged.infer;
1055
+ //#endregion
1043
1056
  //#region src/events/inventoryEquippedChanged.d.ts
1044
1057
  declare const InventoryEquippedChanged: import("arktype/internal/variants/object.ts").ObjectType<{
1045
1058
  game: "sand";
@@ -1051,44 +1064,60 @@ declare const InventoryEquippedChanged: import("arktype/internal/variants/object
1051
1064
  definition: SandItemDefinition;
1052
1065
  };
1053
1066
  }, {}>;
1054
- type InventoryEquippedChangedEvent = typeof InventoryEquippedChanged.infer; //#endregion
1067
+ type InventoryEquippedChangedEvent = typeof InventoryEquippedChanged.infer;
1068
+ //#endregion
1055
1069
  //#region src/events/index.d.ts
1056
1070
  declare const sandEvents: import("arktype").Module<{
1057
1071
  event: {
1058
1072
  game: "sand";
1059
- type: "logged_in";
1073
+ type: "party_member_joined";
1060
1074
  creationTime: number;
1061
1075
  content: {
1062
1076
  accountId: SandAccountId;
1063
1077
  displayName: string;
1064
1078
  platformId: SandPlatformId;
1065
1079
  playfabId: SandPlayfabId;
1080
+ characterId: SandCharacterId;
1081
+ isCaptain: boolean;
1066
1082
  };
1067
1083
  } | {
1068
1084
  game: "sand";
1069
- type: "game_state_changed";
1085
+ type: "tech_tree_changed";
1070
1086
  creationTime: number;
1071
1087
  content: {
1072
- state: "aborted" | "all_left" | "decayed" | "extracted" | "failed" | "in_progress" | "invalid" | "loot_division" | "match_found" | "matchmaking" | "menu" | "waiting_for_players" | (string & {});
1088
+ unlocked: number;
1089
+ total: number;
1090
+ nodes: {
1091
+ id: SandTechNodeId;
1092
+ name: string;
1093
+ tier: number;
1094
+ isUnlocked: boolean;
1095
+ isAvailable: boolean;
1096
+ }[];
1073
1097
  };
1074
1098
  } | {
1075
1099
  game: "sand";
1076
- type: "party_changed";
1100
+ type: "logged_in";
1077
1101
  creationTime: number;
1078
1102
  content: {
1079
- joinCode: SandPartyJoinCode;
1103
+ accountId: SandAccountId;
1104
+ displayName: string;
1105
+ platformId: SandPlatformId;
1106
+ playfabId: SandPlayfabId;
1080
1107
  };
1081
1108
  } | {
1082
1109
  game: "sand";
1083
- type: "party_member_joined";
1110
+ type: "game_state_changed";
1084
1111
  creationTime: number;
1085
1112
  content: {
1086
- accountId: SandAccountId;
1087
- displayName: string;
1088
- platformId: SandPlatformId;
1089
- playfabId: SandPlayfabId;
1090
- characterId: SandCharacterId;
1091
- isCaptain: boolean;
1113
+ state: "aborted" | "all_left" | "decayed" | "extracted" | "failed" | "in_progress" | "invalid" | "loot_division" | "match_found" | "matchmaking" | "menu" | "waiting_for_players" | (string & {});
1114
+ };
1115
+ } | {
1116
+ game: "sand";
1117
+ type: "party_changed";
1118
+ creationTime: number;
1119
+ content: {
1120
+ joinCode: SandPartyJoinCode;
1092
1121
  };
1093
1122
  } | {
1094
1123
  game: "sand";
@@ -1122,21 +1151,6 @@ declare const sandEvents: import("arktype").Module<{
1122
1151
  amount: number;
1123
1152
  delta: number;
1124
1153
  };
1125
- } | {
1126
- game: "sand";
1127
- type: "tech_tree_changed";
1128
- creationTime: number;
1129
- content: {
1130
- unlocked: number;
1131
- total: number;
1132
- nodes: {
1133
- id: SandTechNodeId;
1134
- name: string;
1135
- tier: number;
1136
- isUnlocked: boolean;
1137
- isAvailable: boolean;
1138
- }[];
1139
- };
1140
1154
  } | {
1141
1155
  game: "sand";
1142
1156
  type: "tech_tree_item_unlocked";
@@ -1604,6 +1618,6 @@ declare const sandEvents: import("arktype").Module<{
1604
1618
  };
1605
1619
  }>;
1606
1620
  type SandEvent = typeof sandEvents.event.infer;
1607
- type SandEventType = SandEvent["type"]; //#endregion
1621
+ type SandEventType = SandEvent["type"];
1608
1622
  //#endregion
1609
- export { type AccountIdentity, type AccountIdentitySchema, BaseEvent, type ExtractionAddedEvent, type ExtractionRemovedEvent, type GameStateChangedEvent, type InventoryChangedEvent, type InventoryEquippedChangedEvent, type InventorySlot, type InventorySlotChangedEvent, type InventorySlotSchema, type Landmark, type LandmarkSchema, type LoggedInEvent, type MatchEndedEvent, type MatchStartedEvent, type PartyChangedEvent, type PartyMemberJoinedEvent, type PartyMemberLeftEvent, type PlayerJoinedEvent, type Position, type PositionSchema, SAND_GAME_MODES, SAND_GAME_STATES, SAND_STORM_STATES, SandAccountId, SandBlueprintId, SandCharacterId, type SandEvent, type SandEventType, SandExtractionId, SandGameMode, SandGameModeSchema, SandGameState, SandGameStateSchema, SandItemDefinition, SandLandmarkId, SandMatchId, SandPartyJoinCode, SandPlatformId, SandPlayerId, SandPlayfabId, SandStormState, SandStormStateSchema, SandTechNodeId, SandTramplerId, SandWalkerId, type StorageChangedEvent, type StorageItem, type StorageItemChangedEvent, type StorageItemSchema, type StormChangedEvent, type TechTreeChangedEvent, type TechTreeItemUnlockedEvent, type TechTreeNode, type TechTreeNodeSchema, type TramplerAcquiredEvent, type TramplerChangedEvent, type TramplerLostEvent, type WalkerChangedEvent, type WorldBounds, type WorldBoundsSchema, type WorldTimeChangedEvent, module, type sandEvents };
1623
+ export type { AccountIdentity, AccountIdentitySchema, ExtractionAddedEvent, ExtractionRemovedEvent, GameStateChangedEvent, InventoryChangedEvent, InventoryEquippedChangedEvent, InventorySlot, InventorySlotChangedEvent, InventorySlotSchema, Landmark, LandmarkSchema, LoggedInEvent, MatchEndedEvent, MatchStartedEvent, PartyChangedEvent, PartyMemberJoinedEvent, PartyMemberLeftEvent, PlayerJoinedEvent, Position, PositionSchema, SandEvent, SandEventType, StorageChangedEvent, StorageItem, StorageItemChangedEvent, StorageItemSchema, StormChangedEvent, TechTreeChangedEvent, TechTreeItemUnlockedEvent, TechTreeNode, TechTreeNodeSchema, TramplerAcquiredEvent, TramplerChangedEvent, TramplerLostEvent, WalkerChangedEvent, WorldBounds, WorldBoundsSchema, WorldTimeChangedEvent, sandEvents };