@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/index.d.mts +95 -112
- package/dist/index.mjs +9 -9
- package/dist/preload.d.ts +1 -1
- package/dist/preload.js +1 -1
- package/dist/sand.d.ts +194 -180
- package/dist/sand.js +1 -1
- package/dist/security.d.mts +3 -3
- package/dist/siege.d.ts +207 -181
- package/dist/siege.js +1 -1
- package/dist/universal.d.ts +9 -5
- package/package.json +4 -4
package/dist/siege.d.ts
CHANGED
|
@@ -1,140 +1,125 @@
|
|
|
1
1
|
import { Type } from "arktype";
|
|
2
|
-
|
|
3
2
|
//#region ../utils/dist/index.d.ts
|
|
4
3
|
//#endregion
|
|
5
4
|
//#region src/brand.d.ts
|
|
6
5
|
/**
|
|
7
|
-
* A `Brand` is a type that takes at minimum two type parameters. Given a base
|
|
8
|
-
* type `Base` and some unique and arbitrary branding type `Branding`, it
|
|
9
|
-
* produces a type based on but distinct from `Base`. The resulting branded
|
|
10
|
-
* type is not directly assignable from the base type, and not mutually
|
|
11
|
-
* assignable with another branded type derived from the same base type.
|
|
12
|
-
*
|
|
13
|
-
* Take care that the branding type is unique. Two branded types that share the
|
|
14
|
-
* same base type and branding type are considered the same type! There are two
|
|
15
|
-
* ways to avoid this.
|
|
16
|
-
*
|
|
17
|
-
* The first way is to supply a third type parameter, `ReservedName`, with a
|
|
18
|
-
* string literal type that is not `__type__`, which is the default.
|
|
19
|
-
*
|
|
20
|
-
* The second way is to define a branded type in terms of its surrounding
|
|
21
|
-
* interface, thereby forming a recursive type. This is possible because there
|
|
22
|
-
* are no constraints on what the branding type must be. It does not have to
|
|
23
|
-
* be a string literal type, even though it often is.
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* ```
|
|
27
|
-
* type Path = Brand<string, 'path'>;
|
|
28
|
-
* type UserId = Brand<number, 'user'>;
|
|
29
|
-
* type DifferentUserId = Brand<number, 'user', '__kind__'>;
|
|
30
|
-
* interface Post { id: Brand<number, Post> }
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
|
-
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; } & {
|
|
34
33
|
__witness__: Base;
|
|
35
34
|
};
|
|
36
35
|
/**
|
|
37
|
-
* An `AnyBrand` is a branded type based on any base type branded with any
|
|
38
|
-
* branding type. By itself it is not useful, but it can act as type constraint
|
|
39
|
-
* when manipulating branded types in general.
|
|
40
|
-
*/
|
|
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
|
+
*/
|
|
41
40
|
type AnyBrand = Brand<unknown, any>;
|
|
42
41
|
/**
|
|
43
|
-
* `BaseOf` is a type that takes any branded type `B` and yields its base type.
|
|
44
|
-
*/
|
|
42
|
+
* `BaseOf` is a type that takes any branded type `B` and yields its base type.
|
|
43
|
+
*/
|
|
45
44
|
type BaseOf<B extends AnyBrand> = B["__witness__"];
|
|
46
45
|
/**
|
|
47
|
-
* A `Brander` is a function that takes a value of some base type and casts
|
|
48
|
-
* that value to a branded type derived from said base type. It can be thought
|
|
49
|
-
* of as the type of a "constructor", in the functional programming sense of
|
|
50
|
-
* the word.
|
|
51
|
-
*
|
|
52
|
-
* @example
|
|
53
|
-
* ```
|
|
54
|
-
* type UserId = Brand<number, 'user'>;
|
|
55
|
-
* // A Brander<UserId> would take a number and return a UserId
|
|
56
|
-
* ```
|
|
57
|
-
*/
|
|
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
|
+
*/
|
|
58
57
|
type Brander<B extends AnyBrand> = (underlying: BaseOf<B>) => B;
|
|
59
|
-
/**
|
|
60
|
-
* A generic function that, when given some branded type, can take a value with
|
|
61
|
-
* the base type of the branded type, and cast that value to the branded type.
|
|
62
|
-
* It fulfills the contract of a `Brander`.
|
|
63
|
-
*
|
|
64
|
-
* At runtime, this function simply returns the value as-is.
|
|
65
|
-
*
|
|
66
|
-
* @param underlying The value with a base type, to be casted
|
|
67
|
-
* @return The same underlying value, but casted
|
|
68
|
-
* @example
|
|
69
|
-
* ```
|
|
70
|
-
* type UserId = Brand<number, 'user'>;
|
|
71
|
-
* const UserId: Brander<UserId> = identity;
|
|
72
|
-
* ```
|
|
73
|
-
*/
|
|
74
58
|
//#endregion
|
|
75
59
|
//#region ../games/siege/dist/index.d.ts
|
|
76
60
|
//#region src/brands.d.ts
|
|
77
|
-
type SiegeGameModeTypeNameId = Brand<number, "siegeGameModeTypeNameId">;
|
|
78
|
-
declare const SiegeGameModeTypeNameId: Brander<SiegeGameModeTypeNameId>;
|
|
79
|
-
type SiegeOperatorNameId = Brand<number, "siegeOperatorNameId">;
|
|
80
|
-
declare const SiegeOperatorNameId: Brander<SiegeOperatorNameId>;
|
|
81
|
-
type SiegeRoomNameId = Brand<number, "siegeRoomNameId">;
|
|
82
|
-
declare const SiegeRoomNameId: Brander<SiegeRoomNameId>;
|
|
83
|
-
type SiegeLoadoutItemNameId = Brand<number, "siegeLoadoutItemNameId">;
|
|
84
|
-
declare const SiegeLoadoutItemNameId: Brander<SiegeLoadoutItemNameId>;
|
|
85
|
-
type SiegeMapNameId = Brand<number, "siegeMapNameId">;
|
|
86
|
-
declare const SiegeMapNameId: Brander<SiegeMapNameId>;
|
|
87
|
-
type SiegeRoundState = Brand<number, "siegeRoundState">;
|
|
88
|
-
declare const SiegeRoundState: Brander<SiegeRoundState>;
|
|
89
|
-
type SiegeMatchId = Brand<number, "siegeMatchId">;
|
|
90
|
-
declare const SiegeMatchId: Brander<SiegeMatchId>;
|
|
91
|
-
type SiegePlayerId = Brand<number, "siegePlayerId">;
|
|
92
|
-
declare const SiegePlayerId: Brander<SiegePlayerId>;
|
|
93
|
-
type SiegeProfileId = Brand<string, "siegeProfileId">;
|
|
94
|
-
declare const SiegeProfileId: Brander<SiegeProfileId>;
|
|
95
|
-
type SiegeItemObjectId = Brand<number, "siegeItemObjectId">;
|
|
96
|
-
declare const SiegeItemObjectId: Brander<SiegeItemObjectId>;
|
|
97
|
-
type SiegeDamageSourceId = Brand<number, "siegeDamageSourceId">;
|
|
98
|
-
declare const SiegeDamageSourceId: Brander<SiegeDamageSourceId>;
|
|
99
|
-
type SiegeMatchType = Brand<string, "siegeMatchType">;
|
|
100
|
-
declare const SiegeMatchType: Brander<SiegeMatchType>;
|
|
101
|
-
type SiegeGameMode = Brand<string, "siegeGameMode">;
|
|
102
|
-
declare const SiegeGameMode: Brander<SiegeGameMode>;
|
|
103
|
-
type SiegeTimeOfDay = Brand<number, "siegeTimeOfDay">;
|
|
104
|
-
declare const SiegeTimeOfDay: Brander<SiegeTimeOfDay>;
|
|
61
|
+
export type SiegeGameModeTypeNameId = Brand<number, "siegeGameModeTypeNameId">;
|
|
62
|
+
export declare const SiegeGameModeTypeNameId: Brander<SiegeGameModeTypeNameId>;
|
|
63
|
+
export type SiegeOperatorNameId = Brand<number, "siegeOperatorNameId">;
|
|
64
|
+
export declare const SiegeOperatorNameId: Brander<SiegeOperatorNameId>;
|
|
65
|
+
export type SiegeRoomNameId = Brand<number, "siegeRoomNameId">;
|
|
66
|
+
export declare const SiegeRoomNameId: Brander<SiegeRoomNameId>;
|
|
67
|
+
export type SiegeLoadoutItemNameId = Brand<number, "siegeLoadoutItemNameId">;
|
|
68
|
+
export declare const SiegeLoadoutItemNameId: Brander<SiegeLoadoutItemNameId>;
|
|
69
|
+
export type SiegeMapNameId = Brand<number, "siegeMapNameId">;
|
|
70
|
+
export declare const SiegeMapNameId: Brander<SiegeMapNameId>;
|
|
71
|
+
export type SiegeRoundState = Brand<number, "siegeRoundState">;
|
|
72
|
+
export declare const SiegeRoundState: Brander<SiegeRoundState>;
|
|
73
|
+
export type SiegeMatchId = Brand<number, "siegeMatchId">;
|
|
74
|
+
export declare const SiegeMatchId: Brander<SiegeMatchId>;
|
|
75
|
+
export type SiegePlayerId = Brand<number, "siegePlayerId">;
|
|
76
|
+
export declare const SiegePlayerId: Brander<SiegePlayerId>;
|
|
77
|
+
export type SiegeProfileId = Brand<string, "siegeProfileId">;
|
|
78
|
+
export declare const SiegeProfileId: Brander<SiegeProfileId>;
|
|
79
|
+
export type SiegeItemObjectId = Brand<number, "siegeItemObjectId">;
|
|
80
|
+
export declare const SiegeItemObjectId: Brander<SiegeItemObjectId>;
|
|
81
|
+
export type SiegeDamageSourceId = Brand<number, "siegeDamageSourceId">;
|
|
82
|
+
export declare const SiegeDamageSourceId: Brander<SiegeDamageSourceId>;
|
|
83
|
+
export type SiegeMatchType = Brand<string, "siegeMatchType">;
|
|
84
|
+
export declare const SiegeMatchType: Brander<SiegeMatchType>;
|
|
85
|
+
export type SiegeGameMode = Brand<string, "siegeGameMode">;
|
|
86
|
+
export declare const SiegeGameMode: Brander<SiegeGameMode>;
|
|
87
|
+
export type SiegeTimeOfDay = Brand<number, "siegeTimeOfDay">;
|
|
88
|
+
export declare const SiegeTimeOfDay: Brander<SiegeTimeOfDay>;
|
|
89
|
+
//#endregion
|
|
105
90
|
//#region src/consts.d.ts
|
|
106
|
-
declare const SIEGE_BOT_ID = "00000000-0000-0000-0000-000000000000";
|
|
107
|
-
declare const SIEGE_GAME_MODE_PHASES: readonly ["intro", "planning", "prep", "action", "results", "invalid", "first"];
|
|
108
|
-
type SiegeGameModePhase = (typeof SIEGE_GAME_MODE_PHASES)[number] | (string & {});
|
|
109
|
-
declare const SiegeGameModePhaseSchema: import("arktype/internal/variants/string.ts").StringType<SiegeGameModePhase, {}>;
|
|
110
|
-
declare const SIEGE_TEAMS: readonly [0, 1];
|
|
111
|
-
declare const SiegeTeamSchema: import("arktype/internal/variants/number.ts").NumberType<0 | 1, {}>;
|
|
112
|
-
type SiegeTeam = typeof SiegeTeamSchema.infer;
|
|
113
|
-
declare const SIEGE_SIDES: readonly ["attacker", "defender", "both", "invalid"];
|
|
114
|
-
type SiegeSide = (typeof SIEGE_SIDES)[number] | (string & {});
|
|
115
|
-
declare const SiegeSideSchema: import("arktype/internal/variants/string.ts").StringType<SiegeSide, {}>;
|
|
116
|
-
declare const SIEGE_PLAYER_LIFE_STATES: readonly ["normal", "overhealed", "low_health", "downed", "dead", "respawning"];
|
|
117
|
-
type SiegePlayerLifeState = (typeof SIEGE_PLAYER_LIFE_STATES)[number] | (string & {});
|
|
118
|
-
declare const SiegePlayerLifeStateSchema: import("arktype/internal/variants/string.ts").StringType<SiegePlayerLifeState, {}>;
|
|
119
|
-
declare const SIEGE_EQUIPPED_ITEM_SLOTS: readonly ["primary_weapon", "secondary_weapon", "primary_gadget", "secondary_gadget", "team_gadget", "world_weapon", "invalid"];
|
|
120
|
-
type SiegeEquippedItemSlot = (typeof SIEGE_EQUIPPED_ITEM_SLOTS)[number] | (string & {});
|
|
121
|
-
declare const SiegeEquippedItemSlotSchema: import("arktype/internal/variants/string.ts").StringType<SiegeEquippedItemSlot, {}>;
|
|
122
|
-
declare const SIEGE_OBSERVATION_TOOLS: readonly ["drone", "camera", "bulletproof_camera", "argus_camera", "evil_eye", "black_eye", "yokai_drone", "rce_drone", "shock_drone", "kludge_drone", "shell_camera", "invalid"];
|
|
123
|
-
type SiegeObservationTool = (typeof SIEGE_OBSERVATION_TOOLS)[number] | (string & {});
|
|
124
|
-
declare const SiegeObservationToolSchema: import("arktype/internal/variants/string.ts").StringType<SiegeObservationTool, {}>;
|
|
125
|
-
declare const SIEGE_PROFILE_PLATFORMS: readonly ["pc", "xbox", "playstation", "invalid"];
|
|
126
|
-
type SiegeProfilePlatform = (typeof SIEGE_PROFILE_PLATFORMS)[number] | (string & {});
|
|
127
|
-
declare const SiegeProfilePlatformSchema: import("arktype/internal/variants/string.ts").StringType<SiegeProfilePlatform, {}>;
|
|
128
|
-
declare const SIEGE_DAMAGE_TYPES: readonly ["bullet", "melee", "explosive", "falling", "regeneration", "unknown", "debris", "projectile", "downed", "gas", "thermal_explosion", "melee_gadget", "barbed_wire", "electric", "reinforcement", "frag", "paralyzed", "emp", "break", "cleanup", "interrogation", "melee-finisher", "toxic", "toxic-explosion", "pneumatic", "body-contact", "contact-explosion", "flash", "parasite-spike", "laser", "concussion", "blowtorch", "taser-shield", "reverse-friendly-fire", "self-destroyed", "area-control", "fire", "breach-kick", "break-wall", "blade-mine", "melee-pushback", "supressive-fire", "gas-pipe-fire", "invalid"];
|
|
129
|
-
type SiegeDamageType = (typeof SIEGE_DAMAGE_TYPES)[number] | (string & {});
|
|
130
|
-
declare const SiegeDamageTypeSchema: import("arktype/internal/variants/string.ts").StringType<SiegeDamageType, {}>;
|
|
131
|
-
declare const SIEGE_DAMAGE_TEAM_TYPES: readonly ["unknown", "enemy", "friendly", "invalid"];
|
|
132
|
-
type SiegeDamageTeamType = (typeof SIEGE_DAMAGE_TEAM_TYPES)[number] | (string & {});
|
|
133
|
-
declare const SiegeDamageTeamTypeSchema: import("arktype/internal/variants/string.ts").StringType<SiegeDamageTeamType, {}>;
|
|
134
|
-
declare const SIEGE_DAMAGE_HIT_ZONES: readonly ["invalid", "head", "left_upper_arm", "right_upper_arm", "left_forearm", "right_forearm", "left_hand", "right_hand", "upper_torso", "lower_torso", "crotch", "left_thigh", "right_thigh", "left_calf", "right_calf", "left_foot", "right_foot", "neck", "clothing"];
|
|
135
|
-
type SiegeDamageHitZone = (typeof SIEGE_DAMAGE_HIT_ZONES)[number] | (string & {});
|
|
136
|
-
declare const SiegeDamageHitZoneSchema: import("arktype/internal/variants/string.ts").StringType<SiegeDamageHitZone, {}>;
|
|
137
|
-
declare const SIEGE_GAME_MODES_TO_ID: Readonly<{
|
|
91
|
+
export declare const SIEGE_BOT_ID = "00000000-0000-0000-0000-000000000000";
|
|
92
|
+
export declare const SIEGE_GAME_MODE_PHASES: readonly ["intro", "planning", "prep", "action", "results", "invalid", "first"];
|
|
93
|
+
export type SiegeGameModePhase = (typeof SIEGE_GAME_MODE_PHASES)[number] | (string & {});
|
|
94
|
+
export declare const SiegeGameModePhaseSchema: import("arktype/internal/variants/string.ts").StringType<SiegeGameModePhase, {}>;
|
|
95
|
+
export declare const SIEGE_TEAMS: readonly [0, 1];
|
|
96
|
+
export declare const SiegeTeamSchema: import("arktype/internal/variants/number.ts").NumberType<0 | 1, {}>;
|
|
97
|
+
export type SiegeTeam = typeof SiegeTeamSchema.infer;
|
|
98
|
+
export declare const SIEGE_SIDES: readonly ["attacker", "defender", "both", "invalid"];
|
|
99
|
+
export type SiegeSide = (typeof SIEGE_SIDES)[number] | (string & {});
|
|
100
|
+
export declare const SiegeSideSchema: import("arktype/internal/variants/string.ts").StringType<SiegeSide, {}>;
|
|
101
|
+
export declare const SIEGE_PLAYER_LIFE_STATES: readonly ["normal", "overhealed", "low_health", "downed", "dead", "respawning"];
|
|
102
|
+
export type SiegePlayerLifeState = (typeof SIEGE_PLAYER_LIFE_STATES)[number] | (string & {});
|
|
103
|
+
export declare const SiegePlayerLifeStateSchema: import("arktype/internal/variants/string.ts").StringType<SiegePlayerLifeState, {}>;
|
|
104
|
+
export declare const SIEGE_EQUIPPED_ITEM_SLOTS: readonly ["primary_weapon", "secondary_weapon", "primary_gadget", "secondary_gadget", "team_gadget", "world_weapon", "invalid"];
|
|
105
|
+
export type SiegeEquippedItemSlot = (typeof SIEGE_EQUIPPED_ITEM_SLOTS)[number] | (string & {});
|
|
106
|
+
export declare const SiegeEquippedItemSlotSchema: import("arktype/internal/variants/string.ts").StringType<SiegeEquippedItemSlot, {}>;
|
|
107
|
+
export declare const SIEGE_OBSERVATION_TOOLS: readonly ["drone", "camera", "bulletproof_camera", "argus_camera", "evil_eye", "black_eye", "yokai_drone", "rce_drone", "shock_drone", "kludge_drone", "shell_camera", "invalid"];
|
|
108
|
+
export type SiegeObservationTool = (typeof SIEGE_OBSERVATION_TOOLS)[number] | (string & {});
|
|
109
|
+
export declare const SiegeObservationToolSchema: import("arktype/internal/variants/string.ts").StringType<SiegeObservationTool, {}>;
|
|
110
|
+
export declare const SIEGE_PROFILE_PLATFORMS: readonly ["pc", "xbox", "playstation", "invalid"];
|
|
111
|
+
export type SiegeProfilePlatform = (typeof SIEGE_PROFILE_PLATFORMS)[number] | (string & {});
|
|
112
|
+
export declare const SiegeProfilePlatformSchema: import("arktype/internal/variants/string.ts").StringType<SiegeProfilePlatform, {}>;
|
|
113
|
+
export declare const SIEGE_DAMAGE_TYPES: readonly ["bullet", "melee", "explosive", "falling", "regeneration", "unknown", "debris", "projectile", "downed", "gas", "thermal_explosion", "melee_gadget", "barbed_wire", "electric", "reinforcement", "frag", "paralyzed", "emp", "break", "cleanup", "interrogation", "melee-finisher", "toxic", "toxic-explosion", "pneumatic", "body-contact", "contact-explosion", "flash", "parasite-spike", "laser", "concussion", "blowtorch", "taser-shield", "reverse-friendly-fire", "self-destroyed", "area-control", "fire", "breach-kick", "break-wall", "blade-mine", "melee-pushback", "supressive-fire", "gas-pipe-fire", "invalid"];
|
|
114
|
+
export type SiegeDamageType = (typeof SIEGE_DAMAGE_TYPES)[number] | (string & {});
|
|
115
|
+
export declare const SiegeDamageTypeSchema: import("arktype/internal/variants/string.ts").StringType<SiegeDamageType, {}>;
|
|
116
|
+
export declare const SIEGE_DAMAGE_TEAM_TYPES: readonly ["unknown", "enemy", "friendly", "invalid"];
|
|
117
|
+
export type SiegeDamageTeamType = (typeof SIEGE_DAMAGE_TEAM_TYPES)[number] | (string & {});
|
|
118
|
+
export declare const SiegeDamageTeamTypeSchema: import("arktype/internal/variants/string.ts").StringType<SiegeDamageTeamType, {}>;
|
|
119
|
+
export declare const SIEGE_DAMAGE_HIT_ZONES: readonly ["invalid", "head", "left_upper_arm", "right_upper_arm", "left_forearm", "right_forearm", "left_hand", "right_hand", "upper_torso", "lower_torso", "crotch", "left_thigh", "right_thigh", "left_calf", "right_calf", "left_foot", "right_foot", "neck", "clothing"];
|
|
120
|
+
export type SiegeDamageHitZone = (typeof SIEGE_DAMAGE_HIT_ZONES)[number] | (string & {});
|
|
121
|
+
export declare const SiegeDamageHitZoneSchema: import("arktype/internal/variants/string.ts").StringType<SiegeDamageHitZone, {}>;
|
|
122
|
+
export declare const SIEGE_GAME_MODES_TO_ID: Readonly<{
|
|
138
123
|
teamDeathmatch: SiegeGameMode;
|
|
139
124
|
goldenGun: SiegeGameMode;
|
|
140
125
|
freeForAll: SiegeGameMode;
|
|
@@ -148,8 +133,8 @@ declare const SIEGE_GAME_MODES_TO_ID: Readonly<{
|
|
|
148
133
|
rengoku: SiegeGameMode;
|
|
149
134
|
hideAndSeek: SiegeGameMode;
|
|
150
135
|
}>;
|
|
151
|
-
declare const SIEGE_GAME_MODE_LABELS: Record<SiegeGameMode, string>;
|
|
152
|
-
declare const SIEGE_GAME_MODE_TYPES_TO_ID: Readonly<{
|
|
136
|
+
export declare const SIEGE_GAME_MODE_LABELS: Record<SiegeGameMode, string>;
|
|
137
|
+
export declare const SIEGE_GAME_MODE_TYPES_TO_ID: Readonly<{
|
|
153
138
|
readonly ranked: SiegeGameModeTypeNameId;
|
|
154
139
|
readonly quickMatch: SiegeGameModeTypeNameId;
|
|
155
140
|
readonly customGame: SiegeGameModeTypeNameId;
|
|
@@ -168,8 +153,8 @@ declare const SIEGE_GAME_MODE_TYPES_TO_ID: Readonly<{
|
|
|
168
153
|
readonly hideAndSeek: SiegeGameModeTypeNameId;
|
|
169
154
|
readonly legendDivision: SiegeGameModeTypeNameId;
|
|
170
155
|
}>;
|
|
171
|
-
declare const SIEGE_GAME_MODE_TYPE_LABELS: Record<SiegeGameModeTypeNameId, string>;
|
|
172
|
-
declare const SIEGE_OPERATOR_TO_ID: Readonly<{
|
|
156
|
+
export declare const SIEGE_GAME_MODE_TYPE_LABELS: Record<SiegeGameModeTypeNameId, string>;
|
|
157
|
+
export declare const SIEGE_OPERATOR_TO_ID: Readonly<{
|
|
173
158
|
readonly glaz: SiegeOperatorNameId;
|
|
174
159
|
readonly blitz: SiegeOperatorNameId;
|
|
175
160
|
readonly buck: SiegeOperatorNameId;
|
|
@@ -250,17 +235,17 @@ declare const SIEGE_OPERATOR_TO_ID: Readonly<{
|
|
|
250
235
|
readonly solidSnake: SiegeOperatorNameId;
|
|
251
236
|
readonly noor: SiegeOperatorNameId;
|
|
252
237
|
}>;
|
|
253
|
-
declare const SIEGE_OPERATOR_LABELS: Record<SiegeOperatorNameId, string>;
|
|
254
|
-
interface SiegeOperatorMeta {
|
|
238
|
+
export declare const SIEGE_OPERATOR_LABELS: Record<SiegeOperatorNameId, string>;
|
|
239
|
+
export interface SiegeOperatorMeta {
|
|
255
240
|
name: string;
|
|
256
241
|
role: SiegeSide;
|
|
257
242
|
}
|
|
258
|
-
interface SiegeOperatorMetaFull {
|
|
243
|
+
export interface SiegeOperatorMetaFull {
|
|
259
244
|
id: SiegeOperatorNameId;
|
|
260
245
|
name: string;
|
|
261
246
|
role: SiegeSide;
|
|
262
247
|
}
|
|
263
|
-
declare const SIEGE_OPERATOR_META: Readonly<{
|
|
248
|
+
export declare const SIEGE_OPERATOR_META: Readonly<{
|
|
264
249
|
readonly [SIEGE_OPERATOR_TO_ID.striker]: {
|
|
265
250
|
readonly name: "Striker";
|
|
266
251
|
readonly role: "attacker";
|
|
@@ -574,8 +559,8 @@ declare const SIEGE_OPERATOR_META: Readonly<{
|
|
|
574
559
|
readonly role: "defender";
|
|
575
560
|
};
|
|
576
561
|
}>;
|
|
577
|
-
declare const SIEGE_SIDE_OPERATORS: Record<Extract<SiegeSide, "attacker" | "defender">, SiegeOperatorMetaFull[]>;
|
|
578
|
-
declare const SIEGE_MAP_TO_ID: Readonly<{
|
|
562
|
+
export declare const SIEGE_SIDE_OPERATORS: Record<Extract<SiegeSide, "attacker" | "defender">, SiegeOperatorMetaFull[]>;
|
|
563
|
+
export declare const SIEGE_MAP_TO_ID: Readonly<{
|
|
579
564
|
readonly favela: SiegeMapNameId;
|
|
580
565
|
readonly fortress: SiegeMapNameId;
|
|
581
566
|
readonly villa: SiegeMapNameId;
|
|
@@ -612,8 +597,8 @@ declare const SIEGE_MAP_TO_ID: Readonly<{
|
|
|
612
597
|
readonly doktorsLab: SiegeMapNameId;
|
|
613
598
|
readonly calypsoCasino: SiegeMapNameId;
|
|
614
599
|
}>;
|
|
615
|
-
declare const SIEGE_MAP_LABELS: Record<SiegeMapNameId, string>;
|
|
616
|
-
declare const SIEGE_ROUND_STATES_TO_ID: Readonly<{
|
|
600
|
+
export declare const SIEGE_MAP_LABELS: Record<SiegeMapNameId, string>;
|
|
601
|
+
export declare const SIEGE_ROUND_STATES_TO_ID: Readonly<{
|
|
617
602
|
readonly notPlayed: SiegeRoundState;
|
|
618
603
|
readonly inProgress: SiegeRoundState;
|
|
619
604
|
readonly lost: SiegeRoundState;
|
|
@@ -624,14 +609,15 @@ declare const SIEGE_ROUND_STATES_TO_ID: Readonly<{
|
|
|
624
609
|
readonly unknownReason: SiegeRoundState;
|
|
625
610
|
readonly matchCancelled: SiegeRoundState;
|
|
626
611
|
}>;
|
|
627
|
-
declare const SIEGE_ROUND_STATE_LABELS: Record<SiegeRoundState, string>;
|
|
628
|
-
declare const SIEGE_TIME_OF_DAY_TO_ID: Readonly<{
|
|
612
|
+
export declare const SIEGE_ROUND_STATE_LABELS: Record<SiegeRoundState, string>;
|
|
613
|
+
export declare const SIEGE_TIME_OF_DAY_TO_ID: Readonly<{
|
|
629
614
|
readonly day: SiegeTimeOfDay;
|
|
630
615
|
readonly night: SiegeTimeOfDay;
|
|
631
616
|
}>;
|
|
632
|
-
declare const SIEGE_TIME_OF_DAY_LABELS: Record<SiegeTimeOfDay, string>;
|
|
617
|
+
export declare const SIEGE_TIME_OF_DAY_LABELS: Record<SiegeTimeOfDay, string>;
|
|
618
|
+
//#endregion
|
|
633
619
|
//#region src/module.d.ts
|
|
634
|
-
declare function module(): {
|
|
620
|
+
export declare function module(): {
|
|
635
621
|
readonly key: "siege";
|
|
636
622
|
readonly events: import("arktype").Module<{
|
|
637
623
|
chat_message: {
|
|
@@ -1237,28 +1223,30 @@ declare function module(): {
|
|
|
1237
1223
|
creationTime: number;
|
|
1238
1224
|
};
|
|
1239
1225
|
}>;
|
|
1240
|
-
};
|
|
1226
|
+
};
|
|
1227
|
+
//#endregion
|
|
1241
1228
|
//#region src/utils.d.ts
|
|
1242
|
-
declare const BaseEvent: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1229
|
+
export declare const BaseEvent: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1243
1230
|
game: string;
|
|
1244
1231
|
type: string;
|
|
1245
1232
|
creationTime: number;
|
|
1246
1233
|
}, {}>;
|
|
1247
|
-
type BaseEvent = typeof BaseEvent.infer;
|
|
1234
|
+
export type BaseEvent = typeof BaseEvent.infer;
|
|
1248
1235
|
/**
|
|
1249
1236
|
* Determines if a given round state is a victory state.
|
|
1250
1237
|
*
|
|
1251
1238
|
* @param state - The state to check.
|
|
1252
1239
|
* @returns True if the state is a victory state, false otherwise.
|
|
1253
1240
|
*/
|
|
1254
|
-
declare function isSiegeRoundStateVictory(state: SiegeRoundState): boolean;
|
|
1241
|
+
export declare function isSiegeRoundStateVictory(state: SiegeRoundState): boolean;
|
|
1255
1242
|
/**
|
|
1256
1243
|
* Determines if a given round state is a completed state.
|
|
1257
1244
|
*
|
|
1258
1245
|
* @param state - The state to check.
|
|
1259
1246
|
* @returns True if the state is a completed state, false otherwise.
|
|
1260
1247
|
*/
|
|
1261
|
-
declare function isSiegeRoundStateCompleted(state: SiegeRoundState): boolean;
|
|
1248
|
+
export declare function isSiegeRoundStateCompleted(state: SiegeRoundState): boolean;
|
|
1249
|
+
//#endregion
|
|
1262
1250
|
//#region src/schemas.d.ts
|
|
1263
1251
|
declare const TranslationSchema: <T extends AnyBrand | number = number>() => Type<{
|
|
1264
1252
|
id: T;
|
|
@@ -1598,7 +1586,8 @@ declare const RoundEndDataSchema: import("arktype/internal/variants/object.ts").
|
|
|
1598
1586
|
} | null | undefined;
|
|
1599
1587
|
}[];
|
|
1600
1588
|
}, {}>;
|
|
1601
|
-
type RoundEndData = typeof RoundEndDataSchema.infer;
|
|
1589
|
+
type RoundEndData = typeof RoundEndDataSchema.infer;
|
|
1590
|
+
//#endregion
|
|
1602
1591
|
//#region src/events/matchStarted.d.ts
|
|
1603
1592
|
declare const MatchStarted: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1604
1593
|
game: "siege";
|
|
@@ -1640,7 +1629,8 @@ declare const MatchStarted: import("arktype/internal/variants/object.ts").Object
|
|
|
1640
1629
|
}[];
|
|
1641
1630
|
};
|
|
1642
1631
|
}, {}>;
|
|
1643
|
-
type MatchStartedEvent = typeof MatchStarted.infer;
|
|
1632
|
+
type MatchStartedEvent = typeof MatchStarted.infer;
|
|
1633
|
+
//#endregion
|
|
1644
1634
|
//#region src/events/startedQueuing.d.ts
|
|
1645
1635
|
declare const StartedQueuing: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1646
1636
|
game: "siege";
|
|
@@ -1655,21 +1645,24 @@ declare const StartedQueuing: import("arktype/internal/variants/object.ts").Obje
|
|
|
1655
1645
|
matchType: SiegeMatchType;
|
|
1656
1646
|
};
|
|
1657
1647
|
}, {}>;
|
|
1658
|
-
type StartedQueuingEvent = typeof StartedQueuing.infer;
|
|
1648
|
+
type StartedQueuingEvent = typeof StartedQueuing.infer;
|
|
1649
|
+
//#endregion
|
|
1659
1650
|
//#region src/events/stoppedQueueing.d.ts
|
|
1660
1651
|
declare const StoppedQueueing: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1661
1652
|
game: "siege";
|
|
1662
1653
|
type: "stopped_queuing";
|
|
1663
1654
|
creationTime: number;
|
|
1664
1655
|
}, {}>;
|
|
1665
|
-
type StoppedQueueingEvent = typeof StoppedQueueing.infer;
|
|
1656
|
+
type StoppedQueueingEvent = typeof StoppedQueueing.infer;
|
|
1657
|
+
//#endregion
|
|
1666
1658
|
//#region src/events/matchEnded.d.ts
|
|
1667
1659
|
declare const MatchEnded: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1668
1660
|
game: "siege";
|
|
1669
1661
|
type: "match_ended";
|
|
1670
1662
|
creationTime: number;
|
|
1671
1663
|
}, {}>;
|
|
1672
|
-
type MatchEndedEvent = typeof MatchEnded.infer;
|
|
1664
|
+
type MatchEndedEvent = typeof MatchEnded.infer;
|
|
1665
|
+
//#endregion
|
|
1673
1666
|
//#region src/events/mapChanged.d.ts
|
|
1674
1667
|
declare const MapChanged: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1675
1668
|
game: "siege";
|
|
@@ -1688,7 +1681,8 @@ declare const MapChanged: import("arktype/internal/variants/object.ts").ObjectTy
|
|
|
1688
1681
|
};
|
|
1689
1682
|
};
|
|
1690
1683
|
}, {}>;
|
|
1691
|
-
type MapChangedEvent = typeof MapChanged.infer;
|
|
1684
|
+
type MapChangedEvent = typeof MapChanged.infer;
|
|
1685
|
+
//#endregion
|
|
1692
1686
|
//#region src/events/operatorBanVotingStarted.d.ts
|
|
1693
1687
|
declare const OperatorBanVotingStarted: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1694
1688
|
game: "siege";
|
|
@@ -1700,7 +1694,8 @@ declare const OperatorBanVotingStarted: import("arktype/internal/variants/object
|
|
|
1700
1694
|
side: "attacker" | "both" | "defender" | "invalid" | (string & {});
|
|
1701
1695
|
};
|
|
1702
1696
|
}, {}>;
|
|
1703
|
-
type OperatorBanVotingStartedEvent = typeof OperatorBanVotingStarted.infer;
|
|
1697
|
+
type OperatorBanVotingStartedEvent = typeof OperatorBanVotingStarted.infer;
|
|
1698
|
+
//#endregion
|
|
1704
1699
|
//#region src/events/operatorBanned.d.ts
|
|
1705
1700
|
declare const OperatorBanned: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1706
1701
|
game: "siege";
|
|
@@ -1716,7 +1711,8 @@ declare const OperatorBanned: import("arktype/internal/variants/object.ts").Obje
|
|
|
1716
1711
|
} | null;
|
|
1717
1712
|
};
|
|
1718
1713
|
}, {}>;
|
|
1719
|
-
type OperatorBannedEvent = typeof OperatorBanned.infer;
|
|
1714
|
+
type OperatorBannedEvent = typeof OperatorBanned.infer;
|
|
1715
|
+
//#endregion
|
|
1720
1716
|
//#region src/events/operatorBanCleared.d.ts
|
|
1721
1717
|
declare const OperatorBanCleared: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1722
1718
|
game: "siege";
|
|
@@ -1727,7 +1723,8 @@ declare const OperatorBanCleared: import("arktype/internal/variants/object.ts").
|
|
|
1727
1723
|
index: number;
|
|
1728
1724
|
};
|
|
1729
1725
|
}, {}>;
|
|
1730
|
-
type OperatorBanClearedEvent = typeof OperatorBanCleared.infer;
|
|
1726
|
+
type OperatorBanClearedEvent = typeof OperatorBanCleared.infer;
|
|
1727
|
+
//#endregion
|
|
1731
1728
|
//#region src/events/roundEnded.d.ts
|
|
1732
1729
|
declare const RoundEnded: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1733
1730
|
game: "siege";
|
|
@@ -1846,7 +1843,8 @@ declare const RoundEnded: import("arktype/internal/variants/object.ts").ObjectTy
|
|
|
1846
1843
|
}[];
|
|
1847
1844
|
};
|
|
1848
1845
|
}, {}>;
|
|
1849
|
-
type RoundEndedEvent = typeof RoundEnded.infer;
|
|
1846
|
+
type RoundEndedEvent = typeof RoundEnded.infer;
|
|
1847
|
+
//#endregion
|
|
1850
1848
|
//#region src/events/phaseChanged.d.ts
|
|
1851
1849
|
declare const PhaseChanged: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1852
1850
|
game: "siege";
|
|
@@ -1856,7 +1854,8 @@ declare const PhaseChanged: import("arktype/internal/variants/object.ts").Object
|
|
|
1856
1854
|
phase: "action" | "first" | "intro" | "invalid" | "planning" | "prep" | "results" | (string & {});
|
|
1857
1855
|
};
|
|
1858
1856
|
}, {}>;
|
|
1859
|
-
type PhaseChangedEvent = typeof PhaseChanged.infer;
|
|
1857
|
+
type PhaseChangedEvent = typeof PhaseChanged.infer;
|
|
1858
|
+
//#endregion
|
|
1860
1859
|
//#region src/events/playerJoined.d.ts
|
|
1861
1860
|
declare const PlayerJoined: import("arktype/internal/variants/object.ts").ObjectType<(In: {
|
|
1862
1861
|
game: "siege";
|
|
@@ -1920,7 +1919,8 @@ declare const PlayerJoined: import("arktype/internal/variants/object.ts").Object
|
|
|
1920
1919
|
startingSide: "attacker" | "both" | "defender" | "invalid" | (string & {});
|
|
1921
1920
|
};
|
|
1922
1921
|
}>, {}>;
|
|
1923
|
-
type PlayerJoinedEvent = typeof PlayerJoined.infer;
|
|
1922
|
+
type PlayerJoinedEvent = typeof PlayerJoined.infer;
|
|
1923
|
+
//#endregion
|
|
1924
1924
|
//#region src/events/playerLeft.d.ts
|
|
1925
1925
|
declare const PlayerLeft: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1926
1926
|
game: "siege";
|
|
@@ -1930,7 +1930,8 @@ declare const PlayerLeft: import("arktype/internal/variants/object.ts").ObjectTy
|
|
|
1930
1930
|
playerId: SiegePlayerId;
|
|
1931
1931
|
};
|
|
1932
1932
|
}, {}>;
|
|
1933
|
-
type PlayerLeftEvent = typeof PlayerLeft.infer;
|
|
1933
|
+
type PlayerLeftEvent = typeof PlayerLeft.infer;
|
|
1934
|
+
//#endregion
|
|
1934
1935
|
//#region src/events/playerOperatorChanged.d.ts
|
|
1935
1936
|
declare const PlayerOperatorChanged: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1936
1937
|
game: "siege";
|
|
@@ -1944,7 +1945,8 @@ declare const PlayerOperatorChanged: import("arktype/internal/variants/object.ts
|
|
|
1944
1945
|
};
|
|
1945
1946
|
};
|
|
1946
1947
|
}, {}>;
|
|
1947
|
-
type PlayerOperatorChangedEvent = typeof PlayerOperatorChanged.infer;
|
|
1948
|
+
type PlayerOperatorChangedEvent = typeof PlayerOperatorChanged.infer;
|
|
1949
|
+
//#endregion
|
|
1948
1950
|
//#region src/events/playerLocationChanged.d.ts
|
|
1949
1951
|
declare const PlayerLocationChanged: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1950
1952
|
game: "siege";
|
|
@@ -1955,7 +1957,8 @@ declare const PlayerLocationChanged: import("arktype/internal/variants/object.ts
|
|
|
1955
1957
|
locationName: string;
|
|
1956
1958
|
};
|
|
1957
1959
|
}, {}>;
|
|
1958
|
-
type PlayerLocationChangedEvent = typeof PlayerLocationChanged.infer;
|
|
1960
|
+
type PlayerLocationChangedEvent = typeof PlayerLocationChanged.infer;
|
|
1961
|
+
//#endregion
|
|
1959
1962
|
//#region src/events/playerSideChanged.d.ts
|
|
1960
1963
|
declare const PlayerSideChanged: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1961
1964
|
game: "siege";
|
|
@@ -1966,7 +1969,8 @@ declare const PlayerSideChanged: import("arktype/internal/variants/object.ts").O
|
|
|
1966
1969
|
side: "attacker" | "both" | "defender" | "invalid" | (string & {});
|
|
1967
1970
|
};
|
|
1968
1971
|
}, {}>;
|
|
1969
|
-
type PlayerSideChangedEvent = typeof PlayerSideChanged.infer;
|
|
1972
|
+
type PlayerSideChangedEvent = typeof PlayerSideChanged.infer;
|
|
1973
|
+
//#endregion
|
|
1970
1974
|
//#region src/events/playerScoreChanged.d.ts
|
|
1971
1975
|
declare const PlayerScoreChanged: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1972
1976
|
game: "siege";
|
|
@@ -1977,7 +1981,8 @@ declare const PlayerScoreChanged: import("arktype/internal/variants/object.ts").
|
|
|
1977
1981
|
score: number;
|
|
1978
1982
|
};
|
|
1979
1983
|
}, {}>;
|
|
1980
|
-
type PlayerScoreChangedEvent = typeof PlayerScoreChanged.infer;
|
|
1984
|
+
type PlayerScoreChangedEvent = typeof PlayerScoreChanged.infer;
|
|
1985
|
+
//#endregion
|
|
1981
1986
|
//#region src/events/playerKillsChanged.d.ts
|
|
1982
1987
|
declare const PlayerKillsChanged: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1983
1988
|
game: "siege";
|
|
@@ -1988,7 +1993,8 @@ declare const PlayerKillsChanged: import("arktype/internal/variants/object.ts").
|
|
|
1988
1993
|
kills: number;
|
|
1989
1994
|
};
|
|
1990
1995
|
}, {}>;
|
|
1991
|
-
type PlayerKillsChangedEvent = typeof PlayerKillsChanged.infer;
|
|
1996
|
+
type PlayerKillsChangedEvent = typeof PlayerKillsChanged.infer;
|
|
1997
|
+
//#endregion
|
|
1992
1998
|
//#region src/events/playerDeathsChanged.d.ts
|
|
1993
1999
|
declare const PlayerDeathsChanged: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1994
2000
|
game: "siege";
|
|
@@ -1999,7 +2005,8 @@ declare const PlayerDeathsChanged: import("arktype/internal/variants/object.ts")
|
|
|
1999
2005
|
deaths: number;
|
|
2000
2006
|
};
|
|
2001
2007
|
}, {}>;
|
|
2002
|
-
type PlayerDeathsChangedEvent = typeof PlayerDeathsChanged.infer;
|
|
2008
|
+
type PlayerDeathsChangedEvent = typeof PlayerDeathsChanged.infer;
|
|
2009
|
+
//#endregion
|
|
2003
2010
|
//#region src/events/playerAssistsChanged.d.ts
|
|
2004
2011
|
declare const PlayerAssistsChanged: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2005
2012
|
game: "siege";
|
|
@@ -2010,7 +2017,8 @@ declare const PlayerAssistsChanged: import("arktype/internal/variants/object.ts"
|
|
|
2010
2017
|
assists: number;
|
|
2011
2018
|
};
|
|
2012
2019
|
}, {}>;
|
|
2013
|
-
type PlayerAssistsChangedEvent = typeof PlayerAssistsChanged.infer;
|
|
2020
|
+
type PlayerAssistsChangedEvent = typeof PlayerAssistsChanged.infer;
|
|
2021
|
+
//#endregion
|
|
2014
2022
|
//#region src/events/playerGameModeActionsChanged.d.ts
|
|
2015
2023
|
declare const PlayerGameModeActionsChanged: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2016
2024
|
game: "siege";
|
|
@@ -2021,7 +2029,8 @@ declare const PlayerGameModeActionsChanged: import("arktype/internal/variants/ob
|
|
|
2021
2029
|
gameModeActions: number;
|
|
2022
2030
|
};
|
|
2023
2031
|
}, {}>;
|
|
2024
|
-
type PlayerGameModeActionsChangedEvent = typeof PlayerGameModeActionsChanged.infer;
|
|
2032
|
+
type PlayerGameModeActionsChangedEvent = typeof PlayerGameModeActionsChanged.infer;
|
|
2033
|
+
//#endregion
|
|
2025
2034
|
//#region src/events/playerPingUpdated.d.ts
|
|
2026
2035
|
declare const PlayerPingUpdated: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2027
2036
|
game: "siege";
|
|
@@ -2032,7 +2041,8 @@ declare const PlayerPingUpdated: import("arktype/internal/variants/object.ts").O
|
|
|
2032
2041
|
ping: number;
|
|
2033
2042
|
};
|
|
2034
2043
|
}, {}>;
|
|
2035
|
-
type PlayerPingUpdatedEvent = typeof PlayerPingUpdated.infer;
|
|
2044
|
+
type PlayerPingUpdatedEvent = typeof PlayerPingUpdated.infer;
|
|
2045
|
+
//#endregion
|
|
2036
2046
|
//#region src/events/defuserPlanted.d.ts
|
|
2037
2047
|
declare const DefuserPlanted: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2038
2048
|
game: "siege";
|
|
@@ -2042,7 +2052,8 @@ declare const DefuserPlanted: import("arktype/internal/variants/object.ts").Obje
|
|
|
2042
2052
|
playerId: SiegePlayerId;
|
|
2043
2053
|
};
|
|
2044
2054
|
}, {}>;
|
|
2045
|
-
type DefuserPlantedEvent = typeof DefuserPlanted.infer;
|
|
2055
|
+
type DefuserPlantedEvent = typeof DefuserPlanted.infer;
|
|
2056
|
+
//#endregion
|
|
2046
2057
|
//#region src/events/defuserSabotaged.d.ts
|
|
2047
2058
|
declare const DefuserSabotaged: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2048
2059
|
game: "siege";
|
|
@@ -2052,7 +2063,8 @@ declare const DefuserSabotaged: import("arktype/internal/variants/object.ts").Ob
|
|
|
2052
2063
|
playerId: SiegePlayerId;
|
|
2053
2064
|
};
|
|
2054
2065
|
}, {}>;
|
|
2055
|
-
type DefuserSabotagedEvent = typeof DefuserSabotaged.infer;
|
|
2066
|
+
type DefuserSabotagedEvent = typeof DefuserSabotaged.infer;
|
|
2067
|
+
//#endregion
|
|
2056
2068
|
//#region src/events/defuserPickedUp.d.ts
|
|
2057
2069
|
declare const DefuserPickedUp: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2058
2070
|
game: "siege";
|
|
@@ -2063,7 +2075,8 @@ declare const DefuserPickedUp: import("arktype/internal/variants/object.ts").Obj
|
|
|
2063
2075
|
initial: boolean;
|
|
2064
2076
|
};
|
|
2065
2077
|
}, {}>;
|
|
2066
|
-
type DefuserPickedUpEvent = typeof DefuserPickedUp.infer;
|
|
2078
|
+
type DefuserPickedUpEvent = typeof DefuserPickedUp.infer;
|
|
2079
|
+
//#endregion
|
|
2067
2080
|
//#region src/events/defuserDropped.d.ts
|
|
2068
2081
|
declare const DefuserDropped: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2069
2082
|
game: "siege";
|
|
@@ -2073,7 +2086,8 @@ declare const DefuserDropped: import("arktype/internal/variants/object.ts").Obje
|
|
|
2073
2086
|
playerId: SiegePlayerId;
|
|
2074
2087
|
};
|
|
2075
2088
|
}, {}>;
|
|
2076
|
-
type DefuserDroppedEvent = typeof DefuserDropped.infer;
|
|
2089
|
+
type DefuserDroppedEvent = typeof DefuserDropped.infer;
|
|
2090
|
+
//#endregion
|
|
2077
2091
|
//#region src/events/playerLifeStateChanged.d.ts
|
|
2078
2092
|
declare const PlayerLifeStateChanged: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2079
2093
|
game: "siege";
|
|
@@ -2084,7 +2098,8 @@ declare const PlayerLifeStateChanged: import("arktype/internal/variants/object.t
|
|
|
2084
2098
|
lifeState: "dead" | "downed" | "low_health" | "normal" | "overhealed" | "respawning" | (string & {});
|
|
2085
2099
|
};
|
|
2086
2100
|
}, {}>;
|
|
2087
|
-
type PlayerLifeStateChangedEvent = typeof PlayerLifeStateChanged.infer;
|
|
2101
|
+
type PlayerLifeStateChangedEvent = typeof PlayerLifeStateChanged.infer;
|
|
2102
|
+
//#endregion
|
|
2088
2103
|
//#region src/events/playerDied.d.ts
|
|
2089
2104
|
declare const PlayerDied: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2090
2105
|
game: "siege";
|
|
@@ -2096,7 +2111,8 @@ declare const PlayerDied: import("arktype/internal/variants/object.ts").ObjectTy
|
|
|
2096
2111
|
headshot: boolean;
|
|
2097
2112
|
};
|
|
2098
2113
|
}, {}>;
|
|
2099
|
-
type PlayerDiedEvent = typeof PlayerDied.infer;
|
|
2114
|
+
type PlayerDiedEvent = typeof PlayerDied.infer;
|
|
2115
|
+
//#endregion
|
|
2100
2116
|
//#region src/events/playerDowned.d.ts
|
|
2101
2117
|
declare const PlayerDowned: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2102
2118
|
game: "siege";
|
|
@@ -2107,7 +2123,8 @@ declare const PlayerDowned: import("arktype/internal/variants/object.ts").Object
|
|
|
2107
2123
|
instigatorPlayerId: SiegePlayerId;
|
|
2108
2124
|
};
|
|
2109
2125
|
}, {}>;
|
|
2110
|
-
type PlayerDownedEvent = typeof PlayerDowned.infer;
|
|
2126
|
+
type PlayerDownedEvent = typeof PlayerDowned.infer;
|
|
2127
|
+
//#endregion
|
|
2111
2128
|
//#region src/events/playerPingIdChanged.d.ts
|
|
2112
2129
|
declare const PlayerPingIdChanged: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2113
2130
|
game: "siege";
|
|
@@ -2118,7 +2135,8 @@ declare const PlayerPingIdChanged: import("arktype/internal/variants/object.ts")
|
|
|
2118
2135
|
pingId: number;
|
|
2119
2136
|
};
|
|
2120
2137
|
}, {}>;
|
|
2121
|
-
type PlayerPingIdChangedEvent = typeof PlayerPingIdChanged.infer;
|
|
2138
|
+
type PlayerPingIdChangedEvent = typeof PlayerPingIdChanged.infer;
|
|
2139
|
+
//#endregion
|
|
2122
2140
|
//#region src/events/playerTeamChanged.d.ts
|
|
2123
2141
|
declare const PlayerTeamChanged: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2124
2142
|
game: "siege";
|
|
@@ -2129,7 +2147,8 @@ declare const PlayerTeamChanged: import("arktype/internal/variants/object.ts").O
|
|
|
2129
2147
|
team: 0 | 1;
|
|
2130
2148
|
};
|
|
2131
2149
|
}, {}>;
|
|
2132
|
-
type PlayerTeamChangedEvent = typeof PlayerTeamChanged.infer;
|
|
2150
|
+
type PlayerTeamChangedEvent = typeof PlayerTeamChanged.infer;
|
|
2151
|
+
//#endregion
|
|
2133
2152
|
//#region src/events/chatMessage.d.ts
|
|
2134
2153
|
declare const ChatMessage: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2135
2154
|
game: "siege";
|
|
@@ -2141,7 +2160,8 @@ declare const ChatMessage: import("arktype/internal/variants/object.ts").ObjectT
|
|
|
2141
2160
|
isTeam: boolean;
|
|
2142
2161
|
};
|
|
2143
2162
|
}, {}>;
|
|
2144
|
-
type ChatMessageEvent = typeof ChatMessage.infer;
|
|
2163
|
+
type ChatMessageEvent = typeof ChatMessage.infer;
|
|
2164
|
+
//#endregion
|
|
2145
2165
|
//#region src/events/mapBanStarted.d.ts
|
|
2146
2166
|
declare const MapBanStarted: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2147
2167
|
game: "siege";
|
|
@@ -2154,7 +2174,8 @@ declare const MapBanStarted: import("arktype/internal/variants/object.ts").Objec
|
|
|
2154
2174
|
}[];
|
|
2155
2175
|
};
|
|
2156
2176
|
}, {}>;
|
|
2157
|
-
type MapBanStartedEvent = typeof MapBanStarted.infer;
|
|
2177
|
+
type MapBanStartedEvent = typeof MapBanStarted.infer;
|
|
2178
|
+
//#endregion
|
|
2158
2179
|
//#region src/events/mapBanned.d.ts
|
|
2159
2180
|
declare const MapBanned: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2160
2181
|
game: "siege";
|
|
@@ -2168,7 +2189,8 @@ declare const MapBanned: import("arktype/internal/variants/object.ts").ObjectTyp
|
|
|
2168
2189
|
};
|
|
2169
2190
|
};
|
|
2170
2191
|
}, {}>;
|
|
2171
|
-
type MapBannedEvent = typeof MapBanned.infer;
|
|
2192
|
+
type MapBannedEvent = typeof MapBanned.infer;
|
|
2193
|
+
//#endregion
|
|
2172
2194
|
//#region src/events/mapBanResult.d.ts
|
|
2173
2195
|
declare const MapBanResult: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2174
2196
|
game: "siege";
|
|
@@ -2182,7 +2204,8 @@ declare const MapBanResult: import("arktype/internal/variants/object.ts").Object
|
|
|
2182
2204
|
isTied: boolean;
|
|
2183
2205
|
};
|
|
2184
2206
|
}, {}>;
|
|
2185
|
-
type MapBanResultEvent = typeof MapBanResult.infer;
|
|
2207
|
+
type MapBanResultEvent = typeof MapBanResult.infer;
|
|
2208
|
+
//#endregion
|
|
2186
2209
|
//#region src/events/playerLoadoutChanged.d.ts
|
|
2187
2210
|
declare const PlayerLoadoutChanged: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2188
2211
|
game: "siege";
|
|
@@ -2246,7 +2269,8 @@ declare const PlayerLoadoutChanged: import("arktype/internal/variants/object.ts"
|
|
|
2246
2269
|
};
|
|
2247
2270
|
};
|
|
2248
2271
|
}, {}>;
|
|
2249
|
-
type PlayerLoadoutChangedEvent = typeof PlayerLoadoutChanged.infer;
|
|
2272
|
+
type PlayerLoadoutChangedEvent = typeof PlayerLoadoutChanged.infer;
|
|
2273
|
+
//#endregion
|
|
2250
2274
|
//#region src/events/playerEquippedItemChanged.d.ts
|
|
2251
2275
|
declare const PlayerEquippedItemChanged: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2252
2276
|
game: "siege";
|
|
@@ -2257,7 +2281,8 @@ declare const PlayerEquippedItemChanged: import("arktype/internal/variants/objec
|
|
|
2257
2281
|
slot: "invalid" | "primary_gadget" | "primary_weapon" | "secondary_gadget" | "secondary_weapon" | "team_gadget" | "world_weapon" | (string & {});
|
|
2258
2282
|
};
|
|
2259
2283
|
}, {}>;
|
|
2260
|
-
type PlayerEquippedItemChangedEvent = typeof PlayerEquippedItemChanged.infer;
|
|
2284
|
+
type PlayerEquippedItemChangedEvent = typeof PlayerEquippedItemChanged.infer;
|
|
2285
|
+
//#endregion
|
|
2261
2286
|
//#region src/events/playerObservationToolChanged.d.ts
|
|
2262
2287
|
declare const PlayerObservationToolChanged: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2263
2288
|
game: "siege";
|
|
@@ -2273,7 +2298,8 @@ declare const PlayerObservationToolChanged: import("arktype/internal/variants/ob
|
|
|
2273
2298
|
isOwner: boolean;
|
|
2274
2299
|
};
|
|
2275
2300
|
}, {}>;
|
|
2276
|
-
type PlayerObservationToolChangedEvent = typeof PlayerObservationToolChanged.infer;
|
|
2301
|
+
type PlayerObservationToolChangedEvent = typeof PlayerObservationToolChanged.infer;
|
|
2302
|
+
//#endregion
|
|
2277
2303
|
//#region src/events/index.d.ts
|
|
2278
2304
|
declare const siegeEvents: import("arktype").Module<{
|
|
2279
2305
|
chat_message: {
|
|
@@ -2880,6 +2906,6 @@ declare const siegeEvents: import("arktype").Module<{
|
|
|
2880
2906
|
};
|
|
2881
2907
|
}>;
|
|
2882
2908
|
type SiegeEvent = typeof siegeEvents.event.infer;
|
|
2883
|
-
type SiegeEventType = SiegeEvent["type"];
|
|
2909
|
+
type SiegeEventType = SiegeEvent["type"];
|
|
2884
2910
|
//#endregion
|
|
2885
|
-
export {
|
|
2911
|
+
export type { ChatMessageEvent, DefuserDroppedEvent, DefuserPickedUpEvent, DefuserPlantedEvent, DefuserSabotagedEvent, LoadoutData, LoadoutDataSchema, LoadoutWeaponData, LoadoutWeaponDataSchema, MapBanResultEvent, MapBanStartedEvent, MapBannedEvent, MapChangedEvent, MapData, MapDataSchema, MatchEndedEvent, MatchRoundData, MatchRoundDataSchema, MatchStartedEvent, OperatorBanClearedEvent, OperatorBanVotingStartedEvent, OperatorBannedEvent, PhaseChangedEvent, PlayerAssistsChangedEvent, PlayerDamageData, PlayerDamageDataSchema, PlayerDeathsChangedEvent, PlayerDiedEvent, PlayerDownedEvent, PlayerEquippedItemChangedEvent, PlayerGameModeActionsChangedEvent, PlayerJoinedEvent, PlayerKillsChangedEvent, PlayerLeftEvent, PlayerLifeStateChangedEvent, PlayerLoadoutChangedEvent, PlayerLocationChangedEvent, PlayerMatchStatsData, PlayerMatchStatsDataSchema, PlayerObservationToolChangedEvent, PlayerOperatorChangedEvent, PlayerPingIdChangedEvent, PlayerPingUpdatedEvent, PlayerScoreChangedEvent, PlayerSideChangedEvent, PlayerTeamChangedEvent, RoundEndData, RoundEndDataSchema, RoundEndPlayerData, RoundEndPlayerDataSchema, RoundEndedEvent, SiegeEvent, SiegeEventType, StartedQueuingEvent, StoppedQueueingEvent, Translation, TranslationSchema, WorldLocation, WorldLocationSchema, siegeEvents };
|