@idosgames/core 0.19.1 → 0.21.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/CHANGELOG.md +127 -0
- package/dist/{RealtimeSession-Cg-wm6i4.d.cts → RealtimeSession-C7RK8yTp.d.cts} +1473 -1005
- package/dist/{RealtimeSession-BjBq5iJG.d.ts → RealtimeSession-DYzdKXlK.d.ts} +1473 -1005
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +22 -4
- package/dist/index.d.ts +22 -4
- package/dist/index.js +2 -2
- package/dist/realtime/index.cjs +1 -1
- package/dist/realtime/index.d.cts +2 -2
- package/dist/realtime/index.d.ts +2 -2
- package/dist/realtime/index.js +1 -1
- package/package.json +1 -1
|
@@ -87,9 +87,12 @@ declare const EventTokenType: {
|
|
|
87
87
|
};
|
|
88
88
|
type EventTokenType = (typeof EventTokenType)[keyof typeof EventTokenType];
|
|
89
89
|
declare const ScheduleMode: {
|
|
90
|
-
readonly
|
|
90
|
+
readonly AlwaysOn: "AlwaysOn";
|
|
91
91
|
readonly Scheduled: "Scheduled";
|
|
92
92
|
readonly Chained: "Chained";
|
|
93
|
+
readonly Triggered: "Triggered";
|
|
94
|
+
readonly Cyclic: "Cyclic";
|
|
95
|
+
readonly Relative: "Relative";
|
|
93
96
|
};
|
|
94
97
|
type ScheduleMode = (typeof ScheduleMode)[keyof typeof ScheduleMode];
|
|
95
98
|
declare const AuthType: {
|
|
@@ -143,7 +146,7 @@ type VirtualCurrencyDefinition = { CurrencyID: string; DisplayName?: null | stri
|
|
|
143
146
|
type CryptoNetworkBinding = { NetworkID: string; ContractAddress?: null | string; Decimals?: null | number; MinWithdraw?: null | string; DepositsEnabled?: null | boolean; WithdrawalsEnabled?: null | boolean; [key: string]: unknown; };
|
|
144
147
|
type CryptoLimits = { DailyWithdrawUsd?: null | string; MonthlyWithdrawUsd?: null | string; KycRequiredAboveUsd?: null | string; [key: string]: unknown; };
|
|
145
148
|
type CryptoCurrencyPermissions = { DepositsEnabled?: null | boolean; WithdrawalsEnabled?: null | boolean; SpendableInGame?: null | boolean; ConvertibleToVirtual?: null | boolean; [key: string]: unknown; };
|
|
146
|
-
type CryptoCurrencyDefinition = { CurrencyID: string; DisplayName?: null | string; AssetPaths?: null | Record<string, string>; DisplayDecimals?: null | number; ValueInUSD?: null | string; ValueInUSDUpdatedAt?: null | string; DeveloperDepositSharePercent?: null | string; CommunityMarketingDepositSharePercent?: null | string; WithdrawalBurnPercent?: null | string; Networks?: null | Array<CryptoNetworkBinding>; Limits?: null | CryptoLimits; Permissions?: null | CryptoCurrencyPermissions; Conversion?: null | CurrencyConversion; Audit?: null | CurrencyAudit; Status?: null | 'Active' | 'Hidden' | 'Deprecated' | 'Maintenance'; [key: string]: unknown; };
|
|
149
|
+
type CryptoCurrencyDefinition = { CurrencyID: string; DisplayName?: null | string; AssetPaths?: null | Record<string, string>; DisplayDecimals?: null | number; ValueInUSD?: null | string; ValueInUSDUpdatedAt?: null | string; DeveloperDepositSharePercent?: null | string; CommunityMarketingDepositSharePercent?: null | string; WithdrawalBurnPercent?: null | string; Networks?: null | Array<CryptoNetworkBinding>; Limits?: null | CryptoLimits; Permissions?: null | CryptoCurrencyPermissions; Conversion?: null | CurrencyConversion; Audit?: null | CurrencyAudit; Status?: null | 'Active' | 'Hidden' | 'Deprecated' | 'Maintenance'; ServerGrantPolicy?: null | { Mode?: null | string; FundingNetworkID?: null | string; PerPlayerDailyTokens?: null | number; TitleDailyTokens?: null | number; [key: string]: unknown; }; [key: string]: unknown; };
|
|
147
150
|
/** The title's currency catalog (config), returned by getCurrencyDefinitions(). */
|
|
148
151
|
interface CurrencyDefinitions {
|
|
149
152
|
VirtualCurrencies?: Record<string, VirtualCurrencyDefinition> | null;
|
|
@@ -328,8 +331,8 @@ declare const StoreRotationMode: {
|
|
|
328
331
|
type StoreRotationMode = (typeof StoreRotationMode)[keyof typeof StoreRotationMode];
|
|
329
332
|
type StoreSlotPoolEntry = { OfferID?: null | string; Weight?: null | number; Gate?: null | SegmentGate; [key: string]: unknown; };
|
|
330
333
|
type StoreSlotRotation = { Mode?: null | string; OfferID?: null | string; Pool?: null | Array<StoreSlotPoolEntry>; Salt?: null | string; PerInstanceCap?: null | number; [key: string]: unknown; };
|
|
331
|
-
type StoreSlotDefinition = { SlotID?: null | string; Identity?: null | StoreIdentity; Availability?: null | StoreAvailability; Rotation?: null | StoreSlotRotation; [key: string]: unknown; };
|
|
332
|
-
type StoreSectionDefinition = { SectionID?: null | string; Identity?: null | StoreIdentity; Availability?: null | StoreAvailability; Slots?: null | Record<string, StoreSlotDefinition>; UniqueOffersInSection?: null | boolean; [key: string]: unknown; };
|
|
334
|
+
type StoreSlotDefinition = { SlotID?: null | string; Identity?: null | StoreIdentity; Availability?: null | StoreAvailability; Rotation?: null | StoreSlotRotation; Presets?: null | { Identity?: null | PresetBinding; Availability?: null | PresetBinding; Rotation?: null | PresetBinding; [key: string]: unknown; }; [key: string]: unknown; };
|
|
335
|
+
type StoreSectionDefinition = { SectionID?: null | string; Identity?: null | StoreIdentity; Availability?: null | StoreAvailability; Slots?: null | Record<string, StoreSlotDefinition>; UniqueOffersInSection?: null | boolean; Presets?: null | { Identity?: null | PresetBinding; Availability?: null | PresetBinding; [key: string]: unknown; }; [key: string]: unknown; };
|
|
333
336
|
type StoreLayout = { Sections?: null | Record<string, StoreSectionDefinition>; [key: string]: unknown; };
|
|
334
337
|
/** A single storefront (main / event / VIP). Its layout is what makes offers buyable. */
|
|
335
338
|
interface StoreDefinition {
|
|
@@ -545,10 +548,11 @@ type ClaimComebackRewardResponse = { ServerTimeUtc: string; ComebackID: string;
|
|
|
545
548
|
type ClaimRewardResponse = { ServerTimeUtc: string; ClaimID: string; ClaimState: UserClaimRewardState; Resources?: null | ResourceOperation; Inventory?: null | InventoryDelta; };
|
|
546
549
|
type GetMilestoneRewardMultiplierResponse = { Enabled: boolean; Multiplier?: null | number; Progress?: null | number; Source?: null | string; SourceKey?: null | string; };
|
|
547
550
|
type TierRewardSettings = { RewardMode?: null | string; RewardStackLowerTiers?: null | boolean; [key: string]: unknown; };
|
|
548
|
-
type
|
|
549
|
-
type
|
|
550
|
-
type
|
|
551
|
-
type
|
|
551
|
+
type RewardPresetRegistry = { Availability?: null | Record<string, { Gate?: null | SegmentGate; Limits?: null | LimitSpec; [key: string]: unknown; }>; [key: string]: unknown; };
|
|
552
|
+
type DailyCalendarDefinition = { CalendarID?: null | string; DisplayName?: null | string; Description?: null | string; AssetPaths?: null | Record<string, string>; Days?: null | Array<{ DayNumber?: null | number; Rewards?: null | ResourceGrant; IsMilestone?: null | boolean; AssetPaths?: null | Record<string, string>; [key: string]: unknown; }>; IsLooping?: null | boolean; MissBehavior?: null | string; ResetByDays?: null | number; MissThresholdMultiplier?: null | number; ClaimMode?: null | string; ClaimCooldownSeconds?: null | number; Availability?: null | { Gate?: null | SegmentGate; Limits?: null | LimitSpec; [key: string]: unknown; }; Presets?: null | { Availability?: null | PresetBinding; [key: string]: unknown; }; AvailableFromUtc?: null | string; AvailableUntilUtc?: null | string; [key: string]: unknown; };
|
|
553
|
+
type IdleAccrualDefinition = { AccrualID?: null | string; DisplayName?: null | string; Description?: null | string; AssetPaths?: null | Record<string, string>; Rate?: null | { BaseRatePerSecond?: null | number; PowerCoefficient?: null | number; BoardRankCoefficient?: null | number; EquipmentBonusEnabled?: null | boolean; EquipmentCharacterID?: null | string; PremiumMultipliers?: null | Array<{ MinPremiumTier?: null | number; RequiredPremiumID?: null | string; Multiplier?: null | number; [key: string]: unknown; }>; [key: string]: unknown; }; Rewards?: null | ResourceGrant; MaxAccumulationSeconds?: null | number; MinClaimSeconds?: null | number; Requirements?: null | { MinCharacterLevel?: null | number; RequirementsCharacterID?: null | string; Availability?: null | { Gate?: null | SegmentGate; Limits?: null | LimitSpec; [key: string]: unknown; }; RequiredItemIDs?: null | Array<string>; RequiredEquippedItemIDs?: null | Array<string>; [key: string]: unknown; }; FirstClaimMode?: null | string; AvailableFromUtc?: null | string; AvailableUntilUtc?: null | string; [key: string]: unknown; };
|
|
554
|
+
type ComebackRewardDefinition = { ComebackID?: null | string; DisplayName?: null | string; Description?: null | string; AssetPaths?: null | Record<string, string>; Tiers?: null | Array<{ MinAbsenceSeconds?: null | number; Rewards?: null | ResourceGrant; AssetPaths?: null | Record<string, string>; [key: string]: unknown; }>; ClaimCooldownSeconds?: null | number; ClaimWindowSeconds?: null | number; TrackPresenceOnRead?: null | boolean; Availability?: null | { Gate?: null | SegmentGate; Limits?: null | LimitSpec; [key: string]: unknown; }; Presets?: null | { Availability?: null | PresetBinding; [key: string]: unknown; }; AvailableFromUtc?: null | string; AvailableUntilUtc?: null | string; [key: string]: unknown; };
|
|
555
|
+
type ClaimRewardDefinition = { ClaimID?: null | string; DisplayName?: null | string; Description?: null | string; AssetPaths?: null | Record<string, string>; Mode?: null | string; Rewards?: null | ResourceGrant; PremiumLimitOverrides?: null | Array<{ MinPremiumTier?: null | number; RequiredPremiumID?: null | string; CooldownSeconds?: null | number; MaxClaimsPerWindow?: null | number; WindowSeconds?: null | number; TotalClaimLimit?: null | number; [key: string]: unknown; }>; Availability?: null | { Gate?: null | SegmentGate; Limits?: null | LimitSpec; [key: string]: unknown; }; Presets?: null | { Availability?: null | PresetBinding; [key: string]: unknown; }; AvailableFromUtc?: null | string; AvailableUntilUtc?: null | string; [key: string]: unknown; };
|
|
552
556
|
interface RewardDefinitions {
|
|
553
557
|
TierRewards?: TierRewardSettings | null;
|
|
554
558
|
MilestoneRewardMultiplier?: RewardProgressionMultiplierSpec | null;
|
|
@@ -556,6 +560,7 @@ interface RewardDefinitions {
|
|
|
556
560
|
IdleAccruals?: Record<string, IdleAccrualDefinition> | null;
|
|
557
561
|
Comebacks?: Record<string, ComebackRewardDefinition> | null;
|
|
558
562
|
Claims?: Record<string, ClaimRewardDefinition> | null;
|
|
563
|
+
Presets?: RewardPresetRegistry | null;
|
|
559
564
|
}
|
|
560
565
|
type RewardDefinitionsResponse = { RewardDefinitions?: null | RewardDefinitions; };
|
|
561
566
|
type UserRewardsStateResponse = { Rewards?: null | UserRewardState; };
|
|
@@ -613,11 +618,11 @@ interface UserQuestState {
|
|
|
613
618
|
PermanentQuests?: Record<string, UserQuestProgress>;
|
|
614
619
|
LastUpdatedUtc?: string;
|
|
615
620
|
}
|
|
616
|
-
type QuestPointsTrackView = { CycleID: string; InstanceKey?: null | string; PhaseID?: null | string; CycleIndex?: null | number; CycleStartUtc?: null | string; CycleEndUtc?: null | string; PointsTotalEarned?: null | number; PointsCurrent?: null | number; ClaimedPointMilestoneIDs?: null | Array<string>; };
|
|
621
|
+
type QuestPointsTrackView = { CycleID: string; InstanceKey?: null | string; PhaseID?: null | string; CycleIndex?: null | number; CycleStartUtc?: null | string; CycleEndUtc?: null | string; PointsTotalEarned?: null | number; PointsCurrent?: null | number; ClaimedPointMilestoneIDs?: null | Array<string>; NextMilestone?: null | MilestoneDefinition; HasUnclaimedMilestone?: null | boolean; };
|
|
617
622
|
type QuestProgressUpdate = { QuestID: string; Status: 'Active' | 'Completed' | 'Claimed' | 'Expired'; CycleID?: null | string; ObjectiveID?: null | string; NewValue?: null | number; ObjectiveCompleted?: null | boolean; };
|
|
618
623
|
type GetUserQuestStateResponse = { State?: null | UserQuestState; PointsTracks?: null | Record<string, QuestPointsTrackView>; };
|
|
619
624
|
type ClaimQuestRewardResponse = { ServerTimeUtc: string; QuestID: string; CycleID?: null | string; NewStatus?: null | 'Active' | 'Completed' | 'Claimed' | 'Expired'; Resources?: null | ResourceOperation; Inventory?: null | InventoryDelta; };
|
|
620
|
-
type ClaimMilestoneRewardResponse = { ServerTimeUtc: string; CycleID: string; MilestoneID: string; PointsTotalEarned?: null | number; Resources?: null | ResourceOperation; Inventory?: null | InventoryDelta; };
|
|
625
|
+
type ClaimMilestoneRewardResponse = { ServerTimeUtc: string; CycleID: string; MilestoneID: string; PointsTotalEarned?: null | number; Resources?: null | ResourceOperation; Inventory?: null | InventoryDelta; NextMilestone?: null | MilestoneDefinition; HasUnclaimedMilestone?: null | boolean; };
|
|
621
626
|
type ClaimGroupCompletionRewardResponse = { ServerTimeUtc: string; CycleID: string; GroupCompletionID: string; GroupID?: null | string; CompletedGroupQuests?: null | number; RequiredGroupQuests?: null | number; Resources?: null | ResourceOperation; Inventory?: null | InventoryDelta; };
|
|
622
627
|
type AddQuestProgressResponse = { MetricID: string; Updates?: null | Array<QuestProgressUpdate>; };
|
|
623
628
|
type ClaimQuestRewardsBatchResponse = Array<{ Id: string; Success: boolean; Error?: null | string; Data?: null | ClaimQuestRewardResponse; }>;
|
|
@@ -864,7 +869,7 @@ interface UserLeaderboardsState {
|
|
|
864
869
|
}
|
|
865
870
|
type LeaderboardUserEntry = { UserID: string; Score?: null | number; Rank?: null | number; LastScoreUpdateUtc?: null | string; IpHash?: null | string; PublicProfile?: null | UserPublicDataModel; SeasonTierAtCycleEnd?: null | number; [key: string]: unknown; };
|
|
866
871
|
type GetLeaderboardResponse = { LeaderboardID: string; CycleVersion?: null | number; TotalParticipants?: null | number; CycleEndUtc?: null | string; TopUsers?: null | Array<LeaderboardUserEntry>; BracketID?: null | string; };
|
|
867
|
-
type GetMyProgressResponse = { LeaderboardID: string; CurrentScore?: null | number; LastKnownRank?: null | number; HasUnclaimedReward?: null | boolean; ScoreEarnedThisCycle?: null | number; MilestoneTokensEarned?: null | number; NextMilestone?: null | MilestoneDefinition; HasUnclaimedMilestone?: null | boolean; ClaimableGraceCycles?: null | Array<{ CycleKey?: null | string; CycleEndUtc?: null | string; ClaimDeadlineUtc?: null | string; MilestoneTokensEarned?: null | number; ClaimableMilestoneIDs?: null | Array<string>; CycleIndex?: null | number; ChainedEventID?: null | string; [key: string]: unknown; }>; };
|
|
872
|
+
type GetMyProgressResponse = { LeaderboardID: string; CurrentScore?: null | number; LastKnownRank?: null | number; HasUnclaimedReward?: null | boolean; UnclaimedRewardRank?: null | number; ScoreEarnedThisCycle?: null | number; MilestoneTokensEarned?: null | number; TokenEntityID?: null | string; NextMilestone?: null | MilestoneDefinition; HasUnclaimedMilestone?: null | boolean; GrantedPremiumTiers?: null | Record<string, Array<string>>; ClaimableGraceCycles?: null | Array<{ CycleKey?: null | string; CycleEndUtc?: null | string; ClaimDeadlineUtc?: null | string; MilestoneTokensEarned?: null | number; ClaimableMilestoneIDs?: null | Array<string>; CycleIndex?: null | number; ChainedEventID?: null | string; [key: string]: unknown; }>; };
|
|
868
873
|
type SubmitScoreResponse = { LeaderboardID: string; NewScore: number; CycleVersion: number; };
|
|
869
874
|
type ClaimCycleRewardResponse = { ServerTimeUtc: string; LeaderboardID: string; Rank?: null | number; Resources?: null | ResourceOperation; Inventory?: null | InventoryDelta; };
|
|
870
875
|
type ClaimLeaderboardMilestoneResponse = { ServerTimeUtc: string; LeaderboardID: string; MilestoneID: string; Resources?: null | ResourceOperation; Inventory?: null | InventoryDelta; };
|
|
@@ -941,6 +946,11 @@ interface LeaderboardRequest extends BaseRequest {
|
|
|
941
946
|
LeaderboardID?: string;
|
|
942
947
|
Score?: number;
|
|
943
948
|
MilestoneID?: string;
|
|
949
|
+
/**
|
|
950
|
+
* ClaimMilestone only: key of a PAST cycle to claim in its grace window
|
|
951
|
+
* (`GetMyProgressResponse.ClaimableGraceCycles[].CycleKey`). Absent = the current cycle.
|
|
952
|
+
*/
|
|
953
|
+
CycleKey?: string;
|
|
944
954
|
CycleIndex?: number;
|
|
945
955
|
ChainedEventID?: string;
|
|
946
956
|
/** *Batch actions: leaderboards to operate on (deduped, clamped to MaxBatchSize). */
|
|
@@ -1059,7 +1069,7 @@ declare const PremiumAction: {
|
|
|
1059
1069
|
readonly PurchaseRealMoney: "PurchaseRealMoney";
|
|
1060
1070
|
};
|
|
1061
1071
|
type PremiumAction = (typeof PremiumAction)[keyof typeof PremiumAction];
|
|
1062
|
-
type EquippedItem = { CatalogID?: null | string; ItemID?: null | string; ItemInstanceID?: null | string; EquippedAt?: null | string; };
|
|
1072
|
+
type EquippedItem = { CatalogID?: null | string; ItemID?: null | string; ItemInstanceID?: null | string; Level?: null | number; EquippedAt?: null | string; };
|
|
1063
1073
|
type CharacterModel = { CharacterID: string; Level?: null | number; Experience?: null | number; Power?: null | number; StatLevels?: null | Record<string, number>; Equipment?: null | Record<string, EquippedItem>; UpdatedAt?: null | string; [key: string]: unknown; };
|
|
1064
1074
|
interface UserCharactersState {
|
|
1065
1075
|
Characters?: Record<string, CharacterModel>;
|
|
@@ -1209,6 +1219,8 @@ declare const MatchStatus: {
|
|
|
1209
1219
|
readonly InProgress: "InProgress";
|
|
1210
1220
|
readonly Cancelled: "Cancelled";
|
|
1211
1221
|
readonly Completed: "Completed";
|
|
1222
|
+
/** The offer outlived `MatchCreationSettings.OfferLifetimeSeconds`; the engine refunded the creator's entry. */
|
|
1223
|
+
readonly Expired: "Expired";
|
|
1212
1224
|
};
|
|
1213
1225
|
type MatchStatus = (typeof MatchStatus)[keyof typeof MatchStatus];
|
|
1214
1226
|
type BattleStepConfig = { AttackTarget: 'Head' | 'Torso' | 'Legs'; DefenseTarget: 'Head' | 'Torso' | 'Legs'; };
|
|
@@ -1223,10 +1235,10 @@ interface UserMatchState {
|
|
|
1223
1235
|
CreationLimits?: UserMatchCreationLimitState | null;
|
|
1224
1236
|
}
|
|
1225
1237
|
type BattleResult = { WinnerUserID?: null | string; LoserUserID?: null | string; Entry?: null | ResourceBundle; NetReward?: null | ResourceBundle; BattleLog?: null | Array<{ RoundIndex?: null | number; AttackerID?: null | string; DefenderID?: null | string; AttackZone?: null | 'Head' | 'Torso' | 'Legs'; DefenseZone?: null | 'Head' | 'Torso' | 'Legs'; HitType?: null | 'Hit' | 'Critical' | 'Block' | 'Dodge'; DamageDealt?: null | number; DefenderHpRemaining?: null | number; [key: string]: unknown; }>; IsDraw?: null | boolean; P1BattleProfile?: null | { UserID?: null | string; SelectedCharacterID?: null | string; SelectedCharacter?: null | CharacterModel; BattleStrategy?: null | Array<BattleStepConfig>; UnstackableItems?: null | Record<string, UnstackableItemInstanceState>; Stats?: null | { MaxHp?: null | number; CurrentHp?: null | number; Damage?: null | number; AttackSpeed?: null | number; CritChance?: null | number; CritMultiplier?: null | number; Armor?: null | number; DodgeChance?: null | number; [key: string]: unknown; }; [key: string]: unknown; }; P2BattleProfile?: null | { UserID?: null | string; SelectedCharacterID?: null | string; SelectedCharacter?: null | CharacterModel; BattleStrategy?: null | Array<BattleStepConfig>; UnstackableItems?: null | Record<string, UnstackableItemInstanceState>; Stats?: null | { MaxHp?: null | number; CurrentHp?: null | number; Damage?: null | number; AttackSpeed?: null | number; CritChance?: null | number; CritMultiplier?: null | number; Armor?: null | number; DodgeChance?: null | number; [key: string]: unknown; }; [key: string]: unknown; }; [key: string]: unknown; };
|
|
1226
|
-
type PvPMatch = { MatchID: string; TitleID?: null | string; RuleID?: null | string; CreatedAt?: null | string; CreatorID?: null | string; CreatorCharacterID?: null | string; CreatorStrategy?: null | Array<BattleStepConfig>; TargetUserID?: null | string; Entry?: null | ResourceBundle; CreationCostPaid?: null | ResourceBundle; RefundCreationCostOnCancel?: null | boolean; JoinedByUserID?: null | string; JoinedByCharacterID?: null | string; JoinedAt?: null | string; Status?: null | 'Completed' | 'InProgress' | 'Open' | 'Cancelled'; WinnerUserID?: null | string; CompletedAt?: null | string; IsRewardDistributed?: null | boolean; RewardDistributedAt?: null | string; [key: string]: unknown; };
|
|
1227
|
-
type CreateMatchResponse = { Status: 'Completed' | 'InProgress' | 'Open' | 'Cancelled'; MatchID: string; Entry?: null | ResourceBundle; Resources?: null | ResourceOperation; };
|
|
1238
|
+
type PvPMatch = { MatchID: string; TitleID?: null | string; RuleID?: null | string; CreatedAt?: null | string; CreatorID?: null | string; CreatorCharacterID?: null | string; CreatorStrategy?: null | Array<BattleStepConfig>; TargetUserID?: null | string; Entry?: null | ResourceBundle; CreationCostPaid?: null | ResourceBundle; RefundCreationCostOnCancel?: null | boolean; ExpiresAt?: null | string; JoinedByUserID?: null | string; JoinedByCharacterID?: null | string; JoinedAt?: null | string; Status?: null | 'Completed' | 'Expired' | 'InProgress' | 'Open' | 'Cancelled'; WinnerUserID?: null | string; CompletedAt?: null | string; IsRewardDistributed?: null | boolean; RewardDistributedAt?: null | string; [key: string]: unknown; };
|
|
1239
|
+
type CreateMatchResponse = { Status: 'Completed' | 'Expired' | 'InProgress' | 'Open' | 'Cancelled'; MatchID: string; Entry?: null | ResourceBundle; Resources?: null | ResourceOperation; };
|
|
1228
1240
|
type UpdateMatchResponse = { Match?: null | PvPMatch; };
|
|
1229
|
-
type CancelMatchResponse = { MatchID: string; Status: 'Completed' | 'InProgress' | 'Open' | 'Cancelled'; Resources?: null | ResourceOperation; };
|
|
1241
|
+
type CancelMatchResponse = { MatchID: string; Status: 'Completed' | 'Expired' | 'InProgress' | 'Open' | 'Cancelled'; Resources?: null | ResourceOperation; };
|
|
1230
1242
|
type InstantBattleResponse = { Battle?: null | BattleResult; Resources?: null | ResourceOperation; ResourcesDual?: null | ResourceDualPartyResult; };
|
|
1231
1243
|
type MatchesPageResponse = { Matches?: null | Array<PvPMatch>; Page?: null | number; PageSize?: null | number; HasMore?: null | boolean; };
|
|
1232
1244
|
interface MatchRequest extends BaseRequest {
|
|
@@ -1263,7 +1275,7 @@ type MatchAction = (typeof MatchAction)[keyof typeof MatchAction];
|
|
|
1263
1275
|
type InstantBattleSettings = { StatMapping?: null | { HealthStatID?: null | string; DamageStatID?: null | string; ArmorStatID?: null | string; AttackSpeedStatID?: null | string; CritChanceStatID?: null | string; CritDamageStatID?: null | string; DodgeStatID?: null | string; AllMightStatID?: null | string; [key: string]: unknown; }; Combat?: null | { MaxRounds?: null | number; BlockDamageMultiplier?: null | number; MinHitDamage?: null | number; DefaultCritMultiplier?: null | number; MaxCritChance?: null | number; MaxDodgeChance?: null | number; ArmorMode?: null | 'Flat' | 'PercentReduction'; MaxArmorReduction?: null | number; [key: string]: unknown; }; Formula?: null | { Health?: null | { Terms?: null | Array<{ Coefficient?: null | number; Factors?: null | Array<{ Kind?: null | 'Curve' | 'Constant' | 'Variable'; Constant?: null | number; VariableID?: null | string; Argument?: null | string; Curve?: null | { Base?: null | number; Shape?: null | 'Flat' | 'PerStep' | 'PerStepRate' | 'Geometric' | 'Table' | 'TableAbsolute'; PerStep?: null | number; PerStepRate?: null | number; GrowthRate?: null | number; Points?: null | Array<{ AtStep?: null | number; Value?: null | number; [key: string]: unknown; }>; Interpolation?: null | 'Geometric' | 'Step' | 'Linear'; TailGrowthRate?: null | number; MinResult?: null | number; MaxResult?: null | number; [key: string]: unknown; }; OnePlus?: null | boolean; [key: string]: unknown; }>; [key: string]: unknown; }>; [key: string]: unknown; }; Damage?: null | { Terms?: null | Array<{ Coefficient?: null | number; Factors?: null | Array<{ Kind?: null | 'Curve' | 'Constant' | 'Variable'; Constant?: null | number; VariableID?: null | string; Argument?: null | string; Curve?: null | { Base?: null | number; Shape?: null | 'Flat' | 'PerStep' | 'PerStepRate' | 'Geometric' | 'Table' | 'TableAbsolute'; PerStep?: null | number; PerStepRate?: null | number; GrowthRate?: null | number; Points?: null | Array<{ AtStep?: null | number; Value?: null | number; [key: string]: unknown; }>; Interpolation?: null | 'Geometric' | 'Step' | 'Linear'; TailGrowthRate?: null | number; MinResult?: null | number; MaxResult?: null | number; [key: string]: unknown; }; OnePlus?: null | boolean; [key: string]: unknown; }>; [key: string]: unknown; }>; [key: string]: unknown; }; Armor?: null | { Terms?: null | Array<{ Coefficient?: null | number; Factors?: null | Array<{ Kind?: null | 'Curve' | 'Constant' | 'Variable'; Constant?: null | number; VariableID?: null | string; Argument?: null | string; Curve?: null | { Base?: null | number; Shape?: null | 'Flat' | 'PerStep' | 'PerStepRate' | 'Geometric' | 'Table' | 'TableAbsolute'; PerStep?: null | number; PerStepRate?: null | number; GrowthRate?: null | number; Points?: null | Array<{ AtStep?: null | number; Value?: null | number; [key: string]: unknown; }>; Interpolation?: null | 'Geometric' | 'Step' | 'Linear'; TailGrowthRate?: null | number; MinResult?: null | number; MaxResult?: null | number; [key: string]: unknown; }; OnePlus?: null | boolean; [key: string]: unknown; }>; [key: string]: unknown; }>; [key: string]: unknown; }; AttackSpeed?: null | { Terms?: null | Array<{ Coefficient?: null | number; Factors?: null | Array<{ Kind?: null | 'Curve' | 'Constant' | 'Variable'; Constant?: null | number; VariableID?: null | string; Argument?: null | string; Curve?: null | { Base?: null | number; Shape?: null | 'Flat' | 'PerStep' | 'PerStepRate' | 'Geometric' | 'Table' | 'TableAbsolute'; PerStep?: null | number; PerStepRate?: null | number; GrowthRate?: null | number; Points?: null | Array<{ AtStep?: null | number; Value?: null | number; [key: string]: unknown; }>; Interpolation?: null | 'Geometric' | 'Step' | 'Linear'; TailGrowthRate?: null | number; MinResult?: null | number; MaxResult?: null | number; [key: string]: unknown; }; OnePlus?: null | boolean; [key: string]: unknown; }>; [key: string]: unknown; }>; [key: string]: unknown; }; CritChance?: null | { Terms?: null | Array<{ Coefficient?: null | number; Factors?: null | Array<{ Kind?: null | 'Curve' | 'Constant' | 'Variable'; Constant?: null | number; VariableID?: null | string; Argument?: null | string; Curve?: null | { Base?: null | number; Shape?: null | 'Flat' | 'PerStep' | 'PerStepRate' | 'Geometric' | 'Table' | 'TableAbsolute'; PerStep?: null | number; PerStepRate?: null | number; GrowthRate?: null | number; Points?: null | Array<{ AtStep?: null | number; Value?: null | number; [key: string]: unknown; }>; Interpolation?: null | 'Geometric' | 'Step' | 'Linear'; TailGrowthRate?: null | number; MinResult?: null | number; MaxResult?: null | number; [key: string]: unknown; }; OnePlus?: null | boolean; [key: string]: unknown; }>; [key: string]: unknown; }>; [key: string]: unknown; }; CritDamage?: null | { Terms?: null | Array<{ Coefficient?: null | number; Factors?: null | Array<{ Kind?: null | 'Curve' | 'Constant' | 'Variable'; Constant?: null | number; VariableID?: null | string; Argument?: null | string; Curve?: null | { Base?: null | number; Shape?: null | 'Flat' | 'PerStep' | 'PerStepRate' | 'Geometric' | 'Table' | 'TableAbsolute'; PerStep?: null | number; PerStepRate?: null | number; GrowthRate?: null | number; Points?: null | Array<{ AtStep?: null | number; Value?: null | number; [key: string]: unknown; }>; Interpolation?: null | 'Geometric' | 'Step' | 'Linear'; TailGrowthRate?: null | number; MinResult?: null | number; MaxResult?: null | number; [key: string]: unknown; }; OnePlus?: null | boolean; [key: string]: unknown; }>; [key: string]: unknown; }>; [key: string]: unknown; }; Dodge?: null | { Terms?: null | Array<{ Coefficient?: null | number; Factors?: null | Array<{ Kind?: null | 'Curve' | 'Constant' | 'Variable'; Constant?: null | number; VariableID?: null | string; Argument?: null | string; Curve?: null | { Base?: null | number; Shape?: null | 'Flat' | 'PerStep' | 'PerStepRate' | 'Geometric' | 'Table' | 'TableAbsolute'; PerStep?: null | number; PerStepRate?: null | number; GrowthRate?: null | number; Points?: null | Array<{ AtStep?: null | number; Value?: null | number; [key: string]: unknown; }>; Interpolation?: null | 'Geometric' | 'Step' | 'Linear'; TailGrowthRate?: null | number; MinResult?: null | number; MaxResult?: null | number; [key: string]: unknown; }; OnePlus?: null | boolean; [key: string]: unknown; }>; [key: string]: unknown; }>; [key: string]: unknown; }; [key: string]: unknown; }; [key: string]: unknown; };
|
|
1264
1276
|
type MatchEconomySettings = { BurnRate?: null | number; [key: string]: unknown; };
|
|
1265
1277
|
type MatchEntrySettings = { AllowVirtualCurrency?: null | boolean; AllowItems?: null | boolean; AllowEventTokens?: null | boolean; Allowed?: null | Array<{ Kind?: null | 'Item' | 'VirtualCurrency' | 'EventToken'; CurrencyID?: null | string; CatalogID?: null | string; ItemID?: null | string; TokenType?: null | 'TimedEvent' | 'Quest' | 'Leaderboard' | 'CoopEvent' | 'Season'; EntityID?: null | string; MinAmount?: null | number; MaxAmount?: null | number; [key: string]: unknown; }>; MaxPositions?: null | number; [key: string]: unknown; };
|
|
1266
|
-
type MatchCreationSettings = { PriceOptions?: null | PriceOptions; RefundCostOnCancel?: null | boolean; MaxOpenMatches?: null | number; Limits?: null | LimitSpec; AllowPrivateMatches?: null | boolean; MaxMatchesPerOpponentPerDay?: null | number; [key: string]: unknown; };
|
|
1278
|
+
type MatchCreationSettings = { PriceOptions?: null | PriceOptions; RefundCostOnCancel?: null | boolean; MaxOpenMatches?: null | number; OfferLifetimeSeconds?: null | number; Limits?: null | LimitSpec; AllowPrivateMatches?: null | boolean; MaxMatchesPerOpponentPerDay?: null | number; [key: string]: unknown; };
|
|
1267
1279
|
/** One instant-battle rule, keyed by RuleID in InstantBattleDefinitions.Rules. */
|
|
1268
1280
|
interface InstantBattleRule {
|
|
1269
1281
|
RuleID?: string | null;
|
|
@@ -1442,7 +1454,7 @@ type CoopGroupMember = { UserID?: null | string; PublicData?: null | UserPublicD
|
|
|
1442
1454
|
type CoopPartnerObjectState = { Index?: null | number; OwnerUserID?: null | string; CurrentProgress?: null | number; MaxProgress?: null | number; IsCompleted?: null | boolean; [key: string]: unknown; };
|
|
1443
1455
|
type CoopBuildObjectsState = { Objects?: null | Array<CoopPartnerObjectState>; [key: string]: unknown; };
|
|
1444
1456
|
type CoopGroupDocument = { GroupID?: null | string; TitleID?: null | string; CoopChainID?: null | string; CoopEventID?: null | string; CycleIndex?: null | number; Members?: null | Array<CoopGroupMember>; BuildObjectsState?: null | CoopBuildObjectsState; Status?: null | string; CreatedAtUtc?: null | string; ExpiresAtUtc?: null | string; Version?: null | number; [key: string]: unknown; };
|
|
1445
|
-
type ActiveCoopEventInfo = { CoopChainID: string; [key: string]: unknown; };
|
|
1457
|
+
type ActiveCoopEventInfo = { CoopChainID: string; CycleIndex?: null | number; EventOrder?: null | number; EventDef?: null | CoopEventDefinition; ComputedStartUtc?: null | string; ComputedEndUtc?: null | string; SecondsRemaining?: null | number; [key: string]: unknown; };
|
|
1446
1458
|
type CoopEventDefinition = { CoopEventID?: null | string; Order?: null | number; DurationSec?: null | number; DisplayName?: null | string; Description?: null | string; AssetPaths?: null | Record<string, string>; EventType?: null | string; PartnerCount?: null | number; MatchmakingTimeoutMinutes?: null | number; MemberGracePeriodMinutes?: null | number; BuildObjects?: null | { Objects?: null | Array<{ Index?: null | number; DisplayName?: null | string; AssetPaths?: null | Record<string, string>; MaxProgress?: null | number; CompletionReward?: null | ResourceGrant; [key: string]: unknown; }>; PriceOptions?: null | PriceOptions; SpinnerTable?: null | Array<{ DisplayName?: null | string; AssetPaths?: null | Record<string, string>; Weight?: null | number; MinProgress?: null | number; MaxProgress?: null | number; [key: string]: unknown; }>; MaxSpinsPerCall?: null | number; [key: string]: unknown; }; GrandPrize?: null | ResourceGrant; [key: string]: unknown; };
|
|
1447
1459
|
/** A coop event chain: cyclic schedule + ordered events + audience gate. */
|
|
1448
1460
|
interface CoopEventChainDefinition {
|
|
@@ -1511,7 +1523,7 @@ type DealNodeRuntimeStatus = (typeof DealNodeRuntimeStatus)[keyof typeof DealNod
|
|
|
1511
1523
|
type UserDealNodeState = { NodeID?: null | string; Status?: null | string; ExecutionCount?: null | number; UnlockedAtUtc?: null | string; CompletedAtUtc?: null | string; LastExecutedAtUtc?: null | string; NextAvailableAtUtc?: null | string; LastExecutionRefID?: null | string; [key: string]: unknown; };
|
|
1512
1524
|
type UserDealTrackState = { TrackID?: null | string; CurrentValue?: null | number; LastUpdatedUtc?: null | string; [key: string]: unknown; };
|
|
1513
1525
|
type UserDealOfferActivationState = { OfferID?: null | string; InstanceKey?: null | string; SourceOfferVersion?: null | number; Status?: null | string; ActivatedAtUtc?: null | string; ExhaustedAtUtc?: null | string; ExpiredAtUtc?: null | string; DismissedAtUtc?: null | string; ShowCount?: null | number; LastShownAtUtc?: null | string; Nodes?: null | Record<string, UserDealNodeState>; Tracks?: null | Record<string, UserDealTrackState>; SelectedChoiceNodeID?: null | string; [key: string]: unknown; };
|
|
1514
|
-
type UserDealSlotState = { SlotID?: null | string; QueueIndex?: null | number; CycleIndex?: null | number; ActiveOfferID?: null | string; ActiveOfferStartedAtUtc?: null | string; ActiveOfferExpiresAtUtc?: null | string; ActiveOffer?: null | UserDealOfferActivationState; NextCycleStartsAtUtc?: null | string; LastUpdatedUtc?: null | string; DismissSkipAvailableAtUtc?: null | string; LastDismissedAtUtc?: null | string; [key: string]: unknown; };
|
|
1526
|
+
type UserDealSlotState = { SlotID?: null | string; QueueIndex?: null | number; CycleIndex?: null | number; ActiveOfferID?: null | string; ActiveOfferStartedAtUtc?: null | string; ActiveOfferExpiresAtUtc?: null | string; ActiveOffer?: null | UserDealOfferActivationState; NextCycleStartsAtUtc?: null | string; LastUpdatedUtc?: null | string; DismissSkipAvailableAtUtc?: null | string; LastDismissedAtUtc?: null | string; ActiveScheduleInstanceKey?: null | string; [key: string]: unknown; };
|
|
1515
1527
|
type UserDealNodeLifetimeCounts = { TotalExecutions?: null | number; DailyExecutions?: null | number; DailyResetUtc?: null | string; [key: string]: unknown; };
|
|
1516
1528
|
type UserDealOfferHistory = { TotalActivations?: null | number; TotalExhausted?: null | number; TotalExpired?: null | number; TotalDismissed?: null | number; TotalShows?: null | number; LastShownAtUtc?: null | string; LastActivatedAtUtc?: null | string; LastExhaustedAtUtc?: null | string; NodeCounts?: null | Record<string, UserDealNodeLifetimeCounts>; [key: string]: unknown; };
|
|
1517
1529
|
/** Root runtime state of Deal Offers for one user: per-slot state + per-offer history. */
|
|
@@ -1889,7 +1901,7 @@ type SocialActorSnapshot = { Key?: null | string; DisplayName?: null | string; A
|
|
|
1889
1901
|
type SocialInboxItem = { Id: string; Verb?: null | string; EntityType?: null | string; EntityID?: null | string; Count?: null | number; LastActors?: null | Array<SocialActorSnapshot>; Payload?: null | { Title?: null | string; Excerpt?: null | string; ImageUrl?: null | string; [key: string]: unknown; }; CreatedAt?: null | string; UpdatedAt?: null | string; OccurredAt?: null | string; OwnerImpact?: null | ResourceOperation; IsBlocked?: null | boolean; TargetObjectName?: null | string; [key: string]: unknown; };
|
|
1890
1902
|
type InboxResponse = { Items?: null | Array<SocialInboxItem>; HasMore?: null | boolean; NextBeforeUpdatedAt?: null | string; NextBeforeID?: null | string; UnreadCount?: null | number; SeenAt?: null | string; [key: string]: unknown; };
|
|
1891
1903
|
type InboxBadgeResponse = { UnreadCount?: null | number; SeenAt?: null | string; [key: string]: unknown; };
|
|
1892
|
-
type SocialCounts = { Likes?: null | number; Favorites?: null | number; Followers?: null | number; Following?: null | number; Comments?: null | number; Replies?: null | number; Posts?: null | number; [key: string]: unknown; };
|
|
1904
|
+
type SocialCounts = { Likes?: null | number; Favorites?: null | number; Followers?: null | number; Following?: null | number; Comments?: null | number; Replies?: null | number; Posts?: null | number; Dislikes?: null | number; [key: string]: unknown; };
|
|
1893
1905
|
type SocialEntityState = { EntityType?: null | string; EntityID?: null | string; Counts?: null | SocialCounts; Liked?: null | boolean; Favorited?: null | boolean; Following?: null | boolean; Blocked?: null | boolean; [key: string]: unknown; };
|
|
1894
1906
|
type SocialEntityStatesResponse = { Items?: null | Array<SocialEntityState>; [key: string]: unknown; };
|
|
1895
1907
|
type SocialActorView = { UserID: string; PublicData?: null | UserPublicDataModel; Mutual?: null | boolean; Since?: null | string; [key: string]: unknown; };
|
|
@@ -1981,9 +1993,10 @@ declare const TimedBoostStackingPolicy: {
|
|
|
1981
1993
|
};
|
|
1982
1994
|
type TimedBoostStackingPolicy = (typeof TimedBoostStackingPolicy)[keyof typeof TimedBoostStackingPolicy];
|
|
1983
1995
|
type TimedBoostDefinition = { BoostID?: null | string; DisplayName?: null | string; Description?: null | string; AssetPaths?: null | Record<string, string>; PriceOptions?: null | PriceOptions; Effect?: null | { Target?: null | string; Operation?: null | string; Value?: null | number; [key: string]: unknown; }; DurationSeconds?: null | number; Charges?: null | number; StackingPolicy?: null | string; MaxActiveInstances?: null | number; Tags?: null | Array<string>; [key: string]: unknown; };
|
|
1984
|
-
type ScheduledBoostDefinition = { ScheduledBoostID?: null | string; DisplayName?: null | string; Description?: null | string; AssetPaths?: null | Record<string, string>; Tags?: null | Array<string>;
|
|
1985
|
-
type BoostChainDefinition = { ChainID?: null | string; DisplayName?: null | string; Description?: null | string; AssetPaths?: null | Record<string, string>;
|
|
1986
|
-
type TriggeredBoostDefinition = { TriggeredBoostID?: null | string; DisplayName?: null | string; AssetPaths?: null | Record<string, string>; Tags?: null | Array<string>; Sources?: null | Array<TriggerSource>; Effects?: null | Array<{ Target?: null | string; Operation?: null | string; Value?: null | number; [key: string]: unknown; }>; DurationSeconds?: null | number; Charges?: null | number; StackingPolicy?: null | string; MaxActiveInstances?: null | number; Gate?: null | SegmentGate; [key: string]: unknown; };
|
|
1996
|
+
type ScheduledBoostDefinition = { ScheduledBoostID?: null | string; DisplayName?: null | string; Description?: null | string; AssetPaths?: null | Record<string, string>; Tags?: null | Array<string>; Effects?: null | Array<{ Target?: null | string; Operation?: null | string; Value?: null | number; [key: string]: unknown; }>; Availability?: null | { Schedule?: null | ScheduleSpec; Gate?: null | SegmentGate; [key: string]: unknown; }; Presets?: null | { Availability?: null | PresetBinding; Effects?: null | PresetBinding; [key: string]: unknown; }; CustomParams?: null | Record<string, string>; [key: string]: unknown; };
|
|
1997
|
+
type BoostChainDefinition = { ChainID?: null | string; DisplayName?: null | string; Description?: null | string; AssetPaths?: null | Record<string, string>; Phases?: null | Array<{ ChainedBoostID?: null | string; Order?: null | number; DurationSec?: null | number; Effects?: null | Array<{ Target?: null | string; Operation?: null | string; Value?: null | number; [key: string]: unknown; }>; CustomParams?: null | Record<string, string>; [key: string]: unknown; }>; Availability?: null | { Schedule?: null | ScheduleSpec; Gate?: null | SegmentGate; [key: string]: unknown; }; Presets?: null | { Availability?: null | PresetBinding; Effects?: null | PresetBinding; [key: string]: unknown; }; CustomParams?: null | Record<string, string>; [key: string]: unknown; };
|
|
1998
|
+
type TriggeredBoostDefinition = { TriggeredBoostID?: null | string; DisplayName?: null | string; AssetPaths?: null | Record<string, string>; Tags?: null | Array<string>; Sources?: null | Array<TriggerSource>; Effects?: null | Array<{ Target?: null | string; Operation?: null | string; Value?: null | number; [key: string]: unknown; }>; DurationSeconds?: null | number; Charges?: null | number; StackingPolicy?: null | string; MaxActiveInstances?: null | number; Availability?: null | { Schedule?: null | ScheduleSpec; Gate?: null | SegmentGate; [key: string]: unknown; }; Presets?: null | { Availability?: null | PresetBinding; Effects?: null | PresetBinding; [key: string]: unknown; }; [key: string]: unknown; };
|
|
1999
|
+
type TimedBoostPresetRegistry = { Availability?: null | Record<string, { Schedule?: null | ScheduleSpec; Gate?: null | SegmentGate; [key: string]: unknown; }>; Effects?: null | Record<string, { Effects?: null | Array<{ Target?: null | string; Operation?: null | string; Value?: null | number; [key: string]: unknown; }>; [key: string]: unknown; }>; [key: string]: unknown; };
|
|
1987
2000
|
type TimedBoostGlobalSettings = { StackingCaps?: null | Record<string, { MaxAddPercent?: null | number; MaxMultiply?: null | number; MaxAddFlat?: null | number; [key: string]: unknown; }>; [key: string]: unknown; };
|
|
1988
2001
|
interface TimedBoostDefinitions {
|
|
1989
2002
|
Definitions?: Record<string, TimedBoostDefinition> | null;
|
|
@@ -1991,6 +2004,7 @@ interface TimedBoostDefinitions {
|
|
|
1991
2004
|
BoostChains?: Record<string, BoostChainDefinition> | null;
|
|
1992
2005
|
TriggeredBoosts?: Record<string, TriggeredBoostDefinition> | null;
|
|
1993
2006
|
Settings?: TimedBoostGlobalSettings | null;
|
|
2007
|
+
Presets?: TimedBoostPresetRegistry | null;
|
|
1994
2008
|
}
|
|
1995
2009
|
type ActiveTimedBoost = { InstanceID: string; BoostID: string; ActivatedAtUtc?: null | string; ExpiresAtUtc?: null | string; RemainingCharges?: null | number; EffectSnapshot?: null | { Target?: null | string; Operation?: null | string; Value?: null | number; [key: string]: unknown; }; SourceType?: null | string; SourceRef?: null | string; [key: string]: unknown; };
|
|
1996
2010
|
type BoostTriggerCounter = { Date?: null | string; DailyCount?: null | number; LastFiredUtc?: null | string; [key: string]: unknown; };
|
|
@@ -2177,12 +2191,12 @@ interface UserGameLoopsState {
|
|
|
2177
2191
|
Board?: BoardLoopState | null;
|
|
2178
2192
|
CommunityChest?: UserCommunityChestState | null;
|
|
2179
2193
|
}
|
|
2180
|
-
type SpecialModeStats = { PlayedCount?: null | number; RewardsClaimedCount?: null | number; InstantClaimsCount?: null | number; EarlyClaimsCount?: null | number; LateClaimsCount?: null | number; AdViewsTotal?: null | number; [key: string]: unknown; };
|
|
2194
|
+
type SpecialModeStats = { PlayedCount?: null | number; RewardsClaimedCount?: null | number; InstantClaimsCount?: null | number; EarlyClaimsCount?: null | number; LateClaimsCount?: null | number; AdViewsTotal?: null | number; StatRewardClaimsCount?: null | number; StatReportsClampedCount?: null | number; StatReportsUnknownMetricCount?: null | number; [key: string]: unknown; };
|
|
2181
2195
|
type RewardMultiplierRange = { Min?: null | number; Max?: null | number; [key: string]: unknown; };
|
|
2182
2196
|
type ScaledResourceOperation = { Operation?: null | ResourceOperation; ScaleWithRollMultiplier?: null | boolean; [key: string]: unknown; };
|
|
2183
2197
|
type BoardDiceConfig = { Count?: null | number; Sides?: null | number; [key: string]: unknown; };
|
|
2184
|
-
type BoardBotConfig = { ShieldChance?: null | number; DamagedBuildingChance?: null | number; RankMultiplierMin?: null | number; RankMultiplierMax?: null | number; RankOffsetMin?: null | number; RankOffsetMax?: null | number; [key: string]: unknown; };
|
|
2185
|
-
type ProceduralEconomyConfig = { CostMatrixTemplatesByID?: null | Record<string, Array<Array<number>>>; PerBoardGrowth?: null | number; VisualTemplateCycle?: null | Array<string>; EconomyScaledResources?: null | ResourceBundle; ScaleRaidStealWithEconomy?: null | boolean; ScaleAttackRewardWithEconomy?: null | boolean; AttackValueFromCostMatrix?: null | boolean; AttackBlockedRewardFactor?: null | number; ScaleVictimLossWithEconomy?: null | boolean; ScaleVictimLossWithTier?: null | boolean; SynthesizedBuildingSlots?: null | number; SynthesizedBuildingMaxLevel?: null | number; [key: string]: unknown; };
|
|
2198
|
+
type BoardBotConfig = { ShieldChance?: null | number; DamagedBuildingChance?: null | number; RankMultiplierMin?: null | number; RankMultiplierMax?: null | number; RankOffsetMin?: null | number; RankOffsetMax?: null | number; StageLevelSpread?: null | number; [key: string]: unknown; };
|
|
2199
|
+
type ProceduralEconomyConfig = { CostMatrixTemplatesByID?: null | Record<string, Array<Array<number>>>; PerBoardGrowth?: null | number; VisualTemplateCycle?: null | Array<string>; EconomyScaledResources?: null | ResourceBundle; ScaleRaidStealWithEconomy?: null | boolean; ScaleAttackRewardWithEconomy?: null | boolean; AttackValueFromCostMatrix?: null | boolean; AttackBlockedRewardFactor?: null | number; ScaleVictimLossWithEconomy?: null | boolean; ScaleVictimLossWithTier?: null | boolean; SynthesizedBuildingSlots?: null | number; SynthesizedBuildingMaxLevel?: null | number; DifficultyGrowthPerBoard?: null | number; [key: string]: unknown; };
|
|
2186
2200
|
type StageEconomyOverride = { CostMatrix?: null | Array<Array<number>>; PerBoardGrowth?: null | number; EconomyScale?: null | number; ScaledResources?: null | ResourceBundle; [key: string]: unknown; };
|
|
2187
2201
|
type BuildingDefinition = { SlotIndex?: null | number; Name?: null | string; AssetPaths?: null | Record<string, string>; MaxLevel?: null | number; MaxLevelReward?: null | ResourceGrant; [key: string]: unknown; };
|
|
2188
2202
|
type BoardTemplateDefinition = { Tiles?: null | Record<string, { Index?: null | number; Type?: null | string; CustomTypeID?: null | string; RandomActionAttackWeight?: null | number; RandomActionRaidWeight?: null | number; ChanceTableID?: null | string; SpecialModeID?: null | string; Params?: null | Record<string, string>; [key: string]: unknown; }>; [key: string]: unknown; };
|
|
@@ -2292,7 +2306,7 @@ interface GameLoopDefinitions {
|
|
|
2292
2306
|
CommunityChest?: CommunityChestDefinition | null;
|
|
2293
2307
|
[key: string]: unknown;
|
|
2294
2308
|
}
|
|
2295
|
-
type RollActionData = { TargetUserID?: null | string; IsBot?: null | boolean; PublicData?: null | UserPublicDataModel; TargetBuildingStates?: null | Array<BuildingState>; TargetHasShield?: null | boolean; [key: string]: unknown; };
|
|
2309
|
+
type RollActionData = { TargetUserID?: null | string; IsBot?: null | boolean; PublicData?: null | UserPublicDataModel; TargetBuildingStates?: null | Array<BuildingState>; TargetHasShield?: null | boolean; TargetStageLevel?: null | number; RaidRewardPreview?: null | { AttackerGainByOutcome?: null | Record<string, ResourceBundle>; [key: string]: unknown; }; [key: string]: unknown; };
|
|
2296
2310
|
type SpecialModeOfferData = { ModeID?: null | string; Choices?: null | Array<{ ChoiceID?: null | string; Mode?: null | string; Reward?: null | ScaledResourceOperation; DurationSeconds?: null | number; PriceOptions?: null | PriceOptions; Multipliers?: null | SpecialClaimMultipliers; RunStats?: null | SpecialRunStatsConfig; [key: string]: unknown; }>; [key: string]: unknown; };
|
|
2297
2311
|
type CommunityChestContributionResult = { GroupID?: null | string; Delta?: null | number; NewProgress?: null | number; MaxProgress?: null | number; UnlockedMilestoneIDs?: null | Array<string>; Completed?: null | boolean; [key: string]: unknown; };
|
|
2298
2312
|
interface BoardRollResponse {
|
|
@@ -2319,7 +2333,7 @@ interface BoardRollResponse {
|
|
|
2319
2333
|
CommunityChestContribution?: CommunityChestContributionResult | null;
|
|
2320
2334
|
}
|
|
2321
2335
|
type AttackResponse = { Outcome?: null | string; IsBotTarget?: null | boolean; BuildingIndexHit?: null | number; Operation?: null | ResourceOperation; Inventory?: null | InventoryDelta; DualResult?: null | ResourceDualPartyResult; [key: string]: unknown; };
|
|
2322
|
-
type RaidResponse = { Status?: null | string; Outcome?: null | string; FoundSymbol?: null | string | number; FoundBonus?: null | ResourceGrant; OpenedIndex?: null | number; AttemptsLeft?: null | number; RaidLayout?: null | Array<HeistCell>; HeistVariantTag?: null | string; IsJackpot?: null | boolean; Operation?: null | ResourceOperation; Inventory?: null | InventoryDelta; DualResult?: null | ResourceDualPartyResult; [key: string]: unknown; };
|
|
2336
|
+
type RaidResponse = { Status?: null | string; Outcome?: null | string; FoundSymbol?: null | string | number; FoundBonus?: null | ResourceGrant; OpenedIndex?: null | number; AttemptsLeft?: null | number; RaidLayout?: null | Array<HeistCell>; HeistVariantTag?: null | string; IsJackpot?: null | boolean; Operation?: null | ResourceOperation; Inventory?: null | InventoryDelta; DualResult?: null | ResourceDualPartyResult; RaidRewardPreview?: null | { AttackerGainByOutcome?: null | Record<string, ResourceBundle>; [key: string]: unknown; }; [key: string]: unknown; };
|
|
2323
2337
|
type BuildResponse = { BuiltIndex: number; NewLevel?: null | number; StageComplete?: null | boolean; MaxLevelRewardClaimed?: null | boolean; Operation?: null | ResourceOperation; Inventory?: null | InventoryDelta; [key: string]: unknown; };
|
|
2324
2338
|
type SpecialChooseResponse = { Mode?: null | string | number; Operation?: null | ResourceOperation; Inventory?: null | InventoryDelta; DurationSeconds?: null | number; StartedAtUtc?: null | string; ExpiresAtUtc?: null | string; [key: string]: unknown; };
|
|
2325
2339
|
type SpecialApplyMultiplierResponse = { AdViewsUsed?: null | number; RolledMultiplier?: null | number; AccumulatedMultiplier?: null | number; RemainingAdViews?: null | number; [key: string]: unknown; };
|
|
@@ -2341,7 +2355,7 @@ declare const CommunityChestMemberStatus: {
|
|
|
2341
2355
|
};
|
|
2342
2356
|
type CommunityChestMemberStatus = (typeof CommunityChestMemberStatus)[keyof typeof CommunityChestMemberStatus];
|
|
2343
2357
|
type CommunityChestSharedState = { CurrentProgress?: null | number; MaxProgress?: null | number; [key: string]: unknown; };
|
|
2344
|
-
type CommunityChestMember = { UserID?: null | string; PublicData?: null | UserPublicDataModel; IsBot?: null | boolean; ContributionPoints?: null | number;
|
|
2358
|
+
type CommunityChestMember = { UserID?: null | string; PublicData?: null | UserPublicDataModel; IsBot?: null | boolean; ContributionPoints?: null | number; MilestoneClaims?: null | Record<string, { ClaimedAt?: null | string; PremiumTiers?: null | Array<string>; Unlocked?: null | boolean; [key: string]: unknown; }>; GrandPrizeClaimed?: null | boolean; MemberStatus?: null | 'Active' | 'Left' | 'Replaced'; JoinedAtUtc?: null | string; LeftAtUtc?: null | string; [key: string]: unknown; };
|
|
2345
2359
|
type CommunityChestGroupDocument = { GroupID?: null | string; TitleID?: null | string; RoundIndex?: null | number; Members?: null | Array<CommunityChestMember>; SharedProgress?: null | CommunityChestSharedState; Status?: null | 'Active' | 'Completed' | 'Expired' | 'Forming' | 'Failed'; CreatedAtUtc?: null | string; ExpiresAtUtc?: null | string; Version?: null | number; [key: string]: unknown; };
|
|
2346
2360
|
type CommunityChestHistoryEntry = { GroupID?: null | string; RoundIndex?: null | number; FinalStatus?: null | 'Active' | 'Completed' | 'Expired' | 'Forming' | 'Failed'; GrandPrizeReceived?: null | boolean; FinishedAtUtc?: null | string; [key: string]: unknown; };
|
|
2347
2361
|
type UserCommunityChestState = { ActiveGroupID?: null | string; ActiveRoundIndex?: null | number; History?: null | Array<CommunityChestHistoryEntry>; [key: string]: unknown; };
|
|
@@ -2424,7 +2438,7 @@ type MarketGoodsType = (typeof MarketGoodsType)[keyof typeof MarketGoodsType];
|
|
|
2424
2438
|
type MarketplaceCommissionOverride = { Percent?: null | number; MinPerPosition?: null | number; [key: string]: unknown; };
|
|
2425
2439
|
type MarketplacePricePolicy = { AllowVirtualCurrency?: null | boolean; AllowItems?: null | boolean; AllowEventTokens?: null | boolean; Allowed?: null | Array<{ Kind?: null | 'Item' | 'VirtualCurrency' | 'EventToken'; CurrencyID?: null | string; CatalogID?: null | string; ItemID?: null | string; TokenType?: null | 'TimedEvent' | 'Quest' | 'Leaderboard' | 'CoopEvent' | 'Season'; EntityID?: null | string; MinAmount?: null | number; MaxAmount?: null | number; [key: string]: unknown; }>; MaxPositions?: null | number; [key: string]: unknown; };
|
|
2426
2440
|
type MarketplaceCommissionPolicy = { Percent?: null | number; MinPerPosition?: null | number; Sink?: null | 'Burn' | 'Ledger'; LedgerAccountID?: null | string; PerCatalogOverrides?: null | Record<string, MarketplaceCommissionOverride>; ApplyToDirectTrades?: null | boolean; [key: string]: unknown; };
|
|
2427
|
-
type MarketplaceTradabilityPolicy = { AllowedCatalogIDs?: null | Array<string>; DeniedCatalogIDs?: null | Array<string>; DeniedItemIDs?: null | Array<string>; AllowUnstackableWithState?: null | boolean; [key: string]: unknown; };
|
|
2441
|
+
type MarketplaceTradabilityPolicy = { AllowedCatalogIDs?: null | Array<string>; DeniedCatalogIDs?: null | Array<string>; DeniedItemIDs?: null | Array<string>; AllowUnstackableWithState?: null | boolean; AllowedCurrencyIDs?: null | Array<string>; DeniedCurrencyIDs?: null | Array<string>; [key: string]: unknown; };
|
|
2428
2442
|
type MarketplaceListingSettings = { Enabled?: null | boolean; AllowedDurationsHours?: null | Array<number>; MaxActiveListings?: null | number; CreateLimits?: null | LimitSpec; BuyLimits?: null | LimitSpec; ListingFeeOptions?: null | PriceOptions; RefundListingFeeOnCancel?: null | boolean; [key: string]: unknown; };
|
|
2429
2443
|
type MarketplaceAuctionSettings = { Enabled?: null | boolean; MinDurationHours?: null | number; MaxDurationHours?: null | number; AntiSnipeWindowSeconds?: null | number; AntiSnipeExtensionSeconds?: null | number; MaxAntiSnipeExtensions?: null | number; MinBidStepPercent?: null | number; MinBidStepAbsolute?: null | number; BidLimits?: null | LimitSpec; [key: string]: unknown; };
|
|
2430
2444
|
type MarketplaceBuyOrderSettings = { Enabled?: null | boolean; MaxActiveOrders?: null | number; AllowedDurationsHours?: null | Array<number>; CreateLimits?: null | LimitSpec; FillLimits?: null | LimitSpec; [key: string]: unknown; };
|
|
@@ -2436,7 +2450,7 @@ type MarketplaceAuctionState = { BidAxisType?: null | 'Item' | 'VirtualCurrency'
|
|
|
2436
2450
|
type MarketplaceActionCounter = { LastAt?: null | string; DailyCount?: null | number; DailyResetUtc?: null | string; [key: string]: unknown; };
|
|
2437
2451
|
type UserMarketplaceState = { Create?: null | MarketplaceActionCounter; Buy?: null | MarketplaceActionCounter; Sell?: null | MarketplaceActionCounter; Bid?: null | MarketplaceActionCounter; [key: string]: unknown; };
|
|
2438
2452
|
type MarketplaceOfferView = { OfferID?: null | string; OfferType?: null | 'Listing' | 'Auction' | 'BuyOrder' | 'DirectTrade'; Status?: null | 'Active' | 'Completed' | 'Expired' | 'Cancelled' | 'Declined'; CreatorUserID?: null | string; CreatorPublicData?: null | UserPublicDataModel; TargetUserID?: null | string; GoodsType?: null | 'Item' | 'VirtualCurrency'; GoodsCatalogID?: null | string; GoodsItemID?: null | string; GoodsCurrencyID?: null | string; GoodsAmount?: null | number; GoodsInstances?: null | Array<UnstackableItemInstanceState>; Price?: null | ResourceBundle; Auction?: null | MarketplaceAuctionState; CreatedAt?: null | string; ExpiresAt?: null | string; [key: string]: unknown; };
|
|
2439
|
-
type MarketplaceGroupedOfferView = { GoodsType?: null | 'Item' | 'VirtualCurrency'; GoodsCatalogID?: null | string; GoodsItemID?: null | string; GoodsCurrencyID?: null | string; CountsByType?: null | { Listing?: number; Auction?: number; BuyOrder?: number; DirectTrade?: number; };
|
|
2453
|
+
type MarketplaceGroupedOfferView = { GoodsType?: null | 'Item' | 'VirtualCurrency'; GoodsCatalogID?: null | string; GoodsItemID?: null | string; GoodsCurrencyID?: null | string; CountsByType?: null | { Listing?: number; Auction?: number; BuyOrder?: number; DirectTrade?: number; }; [key: string]: unknown; };
|
|
2440
2454
|
interface MarketplaceGetDefinitionsResponse {
|
|
2441
2455
|
Definitions?: MarketplaceDefinitions | null;
|
|
2442
2456
|
IsOpenNow?: boolean | null;
|
|
@@ -2448,8 +2462,8 @@ type MarketplaceOfferResponse = { Offer?: null | MarketplaceOfferView; [key: str
|
|
|
2448
2462
|
type MarketplaceSettlementResponse = { OfferID?: null | string; Status?: null | 'Active' | 'Completed' | 'Expired' | 'Cancelled' | 'Declined'; Settlement?: null | ResourceDualPartyResult; Resources?: null | ResourceOperation; CommissionTaken?: null | ResourceBundle; [key: string]: unknown; };
|
|
2449
2463
|
type MarketplaceCreateOfferResponse = { OfferID?: null | string; Offer?: null | MarketplaceOfferView; Resources?: null | ResourceOperation; Matched?: null | boolean; Settlement?: null | MarketplaceSettlementResponse; [key: string]: unknown; };
|
|
2450
2464
|
type MarketplacePlaceBidResponse = { OfferID?: null | string; CurrentBid?: null | number; BidCount?: null | number; ExpiresAt?: null | string; Resources?: null | ResourceOperation; [key: string]: unknown; };
|
|
2451
|
-
type MarketplaceMyStateResponse = { MyOffers?: null | Array<MarketplaceOfferView>;
|
|
2452
|
-
type MarketplaceHistoryEntryView = { OfferID?: null | string; OfferType?: null | 'Listing' | 'Auction' | 'BuyOrder' | 'DirectTrade'; FinalStatus?: null | 'Active' | 'Completed' | 'Expired' | 'Cancelled' | 'Declined'; SellerUserID?: null | string; BuyerUserID?: null | string; GoodsType?: null | 'Item' | 'VirtualCurrency'; GoodsCatalogID?: null | string; GoodsItemID?: null | string; GoodsCurrencyID?: null | string; GoodsAmount?: null | number; PricePaid?: null | ResourceBundle; CommissionTaken?: null | ResourceBundle; CompletedAt?: null | string; [key: string]: unknown; };
|
|
2465
|
+
type MarketplaceMyStateResponse = { MyOffers?: null | Array<MarketplaceOfferView>; MyBids?: null | Array<MarketplaceOfferView>; MyBuyOrders?: null | Array<MarketplaceOfferView>; IncomingTrades?: null | Array<MarketplaceOfferView>; OutgoingTrades?: null | Array<MarketplaceOfferView>; Claimables?: null | Array<MarketplaceOfferView>; DrainedRefunds?: null | Array<MarketplaceBidRefund>; Limits?: null | UserMarketplaceState; [key: string]: unknown; };
|
|
2466
|
+
type MarketplaceHistoryEntryView = { OfferID?: null | string; OfferType?: null | 'Listing' | 'Auction' | 'BuyOrder' | 'DirectTrade'; FinalStatus?: null | 'Active' | 'Completed' | 'Expired' | 'Cancelled' | 'Declined'; SellerUserID?: null | string; BuyerUserID?: null | string; GoodsType?: null | 'Item' | 'VirtualCurrency'; GoodsCatalogID?: null | string; GoodsItemID?: null | string; GoodsCurrencyID?: null | string; GoodsAmount?: null | number; PricePaid?: null | ResourceBundle; CommissionTaken?: null | ResourceBundle; CompletedAt?: null | string; MyRole?: null | string; [key: string]: unknown; };
|
|
2453
2467
|
type MarketplaceHistoryResponse = { Entries?: null | Array<MarketplaceHistoryEntryView>; ContinuationToken?: null | string; [key: string]: unknown; };
|
|
2454
2468
|
interface MarketplaceRequest extends BaseRequest {
|
|
2455
2469
|
OfferID?: string;
|
|
@@ -2483,7 +2497,15 @@ interface MarketplaceRequest extends BaseRequest {
|
|
|
2483
2497
|
PageSize?: number;
|
|
2484
2498
|
ContinuationToken?: string;
|
|
2485
2499
|
OfferTypeFilter?: MarketOfferType;
|
|
2486
|
-
|
|
2500
|
+
/** GetMyState: which of my bids `MyBids` returns. Absent = `All`. */
|
|
2501
|
+
MyBidsFilter?: MarketplaceMyBidsFilter;
|
|
2502
|
+
/** GetHistory: which entries to return. Absent = `All`. */
|
|
2503
|
+
HistoryFilter?: MarketplaceHistoryFilter;
|
|
2504
|
+
}
|
|
2505
|
+
/** GetMyState → `MyBids`: `Live` — auctions still running (can be outbid back), `Finished` — the result of taking part. */
|
|
2506
|
+
type MarketplaceMyBidsFilter = "All" | "Live" | "Finished";
|
|
2507
|
+
/** GetHistory: `Deals` — my trades only, `Bids` — auctions I took part in (won or lost). */
|
|
2508
|
+
type MarketplaceHistoryFilter = "All" | "Deals" | "Bids";
|
|
2487
2509
|
declare const MarketplaceAction: {
|
|
2488
2510
|
readonly GetDefinitions: "GetDefinitions";
|
|
2489
2511
|
readonly GetGroupedOffers: "GetGroupedOffers";
|
|
@@ -2855,6 +2877,8 @@ interface ClientState {
|
|
|
2855
2877
|
* кладёт в локальное хранилище и отдаёт `client.localization`.
|
|
2856
2878
|
*/
|
|
2857
2879
|
Localization?: LocalizationState | null;
|
|
2880
|
+
/** Server views the request asked for (`UserRequest.Views`); absent when none were asked. */
|
|
2881
|
+
Views?: ClientStateViewResult[] | null;
|
|
2858
2882
|
[k: string]: unknown;
|
|
2859
2883
|
}
|
|
2860
2884
|
/**
|
|
@@ -2900,11 +2924,6 @@ interface UserRequest extends BaseRequest {
|
|
|
2900
2924
|
KnownStateVersions?: Record<string, number>;
|
|
2901
2925
|
/** Эпоха, при которой была получена `KnownStateVersions`. Без неё карта версий игнорируется. */
|
|
2902
2926
|
KnownStateEpoch?: string;
|
|
2903
|
-
/**
|
|
2904
|
-
* Отдать конфиг телом, даже если он выложен на CDN. Ставится SDK автоматически при повторе
|
|
2905
|
-
* запроса, когда скачать артефакт не удалось; вручную задавать не нужно.
|
|
2906
|
-
*/
|
|
2907
|
-
ForceInlineConfig?: boolean;
|
|
2908
2927
|
/**
|
|
2909
2928
|
* Локаль игрока в любой форме («ru», «pt-BR», «pt_br»). Сервер сводит её к объявленной
|
|
2910
2929
|
* тайтлом и отвечает про результат в `ClientState.Localization.Locale`.
|
|
@@ -2920,6 +2939,36 @@ interface UserRequest extends BaseRequest {
|
|
|
2920
2939
|
* устареть они могут независимо: правка английского не трогает версию русского.
|
|
2921
2940
|
*/
|
|
2922
2941
|
KnownLocalizationVersions?: Record<string, number>;
|
|
2942
|
+
/**
|
|
2943
|
+
* Server views to compute and attach to this same login answer (`ClientState.Views`):
|
|
2944
|
+
* `[{ Name: "*" }]` — every view; a list — exactly those. Set by the SDK from the central
|
|
2945
|
+
* cache (`client.cache`); see `ClientStateViewRequest`.
|
|
2946
|
+
*/
|
|
2947
|
+
Views?: ClientStateViewRequest[];
|
|
2948
|
+
}
|
|
2949
|
+
/**
|
|
2950
|
+
* A server view the login brings along (engine `ClientStateViews`). `Name` — `"*"` (all) or one
|
|
2951
|
+
* of `Storefront`, `ActiveEvents`, `ActiveSeason`, `LeaderboardProgress`, `MarketplaceMyState`,
|
|
2952
|
+
* `ActiveDeals`, `CoopUserState`, `InboxUnread`, `ChatChannels`, `MailUnread`, `TutorialState`.
|
|
2953
|
+
* A view with variants and no parameter comes for every variant of the title (each season chain;
|
|
2954
|
+
* all enabled leaderboards). `Key` is echoed back as is.
|
|
2955
|
+
*/
|
|
2956
|
+
interface ClientStateViewRequest {
|
|
2957
|
+
Name: string;
|
|
2958
|
+
Key?: string;
|
|
2959
|
+
SeasonChainID?: string;
|
|
2960
|
+
LeaderboardIDs?: string[];
|
|
2961
|
+
MyBidsFilter?: string;
|
|
2962
|
+
Locale?: string;
|
|
2963
|
+
AutoStart?: boolean;
|
|
2964
|
+
}
|
|
2965
|
+
/** A computed view in the login answer: the same `Data` its own endpoint would return. */
|
|
2966
|
+
interface ClientStateViewResult {
|
|
2967
|
+
Name: string;
|
|
2968
|
+
Key?: string | null;
|
|
2969
|
+
Success: boolean;
|
|
2970
|
+
Error?: string | null;
|
|
2971
|
+
Data?: unknown;
|
|
2923
2972
|
}
|
|
2924
2973
|
declare const UserAction: {
|
|
2925
2974
|
readonly GetClientState: "GetClientState";
|
|
@@ -3005,7 +3054,7 @@ declare const TransactionDirection: {
|
|
|
3005
3054
|
type TransactionDirection = (typeof TransactionDirection)[keyof typeof TransactionDirection];
|
|
3006
3055
|
type BlockchainNftCollectionBinding = { ContractAddress?: null | string; ItemCatalogID?: null | string; DisplayName?: null | string; DepositsEnabled?: null | boolean; WithdrawalsEnabled?: null | boolean; [key: string]: unknown; };
|
|
3007
3056
|
type PlatformBlockchainState = { Ios?: null | boolean; Android?: null | boolean; Web?: null | boolean; [key: string]: unknown; };
|
|
3008
|
-
type BlockchainNetworkDefinition = { NetworkID?: null | string; DisplayName?: null | string; Type?: null | 'EVM' | 'Solana'; ChainID?: null | number; ChainTicker?: null | string; RewardPoolAddress?: null | string; VaultDepositAddress?: null | string; ChainConfigVersion?: null | number; RequiredConfirmations?: null | number; DepositsEnabled?: null | boolean; WithdrawalsEnabled?: null | boolean; NftDepositsEnabled?: null | boolean; NftWithdrawalsEnabled?: null | boolean; PlatformOverrides?: null | PlatformBlockchainState; NftCollections?: null | Array<BlockchainNftCollectionBinding>; AssetPaths?: null | Record<string, string>; [key: string]: unknown; };
|
|
3057
|
+
type BlockchainNetworkDefinition = { NetworkID?: null | string; DisplayName?: null | string; Type?: null | 'EVM' | 'Solana'; ChainID?: null | number; ChainTicker?: null | string; RewardPoolAddress?: null | string; VaultDepositAddress?: null | string; ChainConfigVersion?: null | number; RequiredConfirmations?: null | number; DepositsEnabled?: null | boolean; WithdrawalsEnabled?: null | boolean; NftDepositsEnabled?: null | boolean; NftWithdrawalsEnabled?: null | boolean; PlatformOverrides?: null | PlatformBlockchainState; NftCollections?: null | Array<BlockchainNftCollectionBinding>; AssetPaths?: null | Record<string, string>; RpcUrl?: null | string; GasPrice?: null | number; NftBridgeAddress?: null | string; SignatureEpoch?: null | number; [key: string]: unknown; };
|
|
3009
3058
|
type BlockchainSystemState = { DepositsEnabled?: null | boolean; WithdrawalsEnabled?: null | boolean; NftDepositsEnabled?: null | boolean; NftWithdrawalsEnabled?: null | boolean; PlatformOverrides?: null | PlatformBlockchainState; [key: string]: unknown; };
|
|
3010
3059
|
type BlockchainAccountSafetyPolicy = { MinAccountAgeDays?: null | number; MultiAccountCheckEnabled?: null | boolean; BanOnSharedWithdrawalAddress?: null | boolean; PendingWithdrawalTtlHours?: null | number; [key: string]: unknown; };
|
|
3011
3060
|
/** enum WalletGateBalanceSource — where the token gate reads the balance from. */
|
|
@@ -3035,7 +3084,7 @@ declare const PlayAccessMode: {
|
|
|
3035
3084
|
};
|
|
3036
3085
|
type PlayAccessMode = (typeof PlayAccessMode)[keyof typeof PlayAccessMode];
|
|
3037
3086
|
type BlockchainPlayAccessPolicy = { Mode?: null | 'Open' | 'AnyWithLinkedWallet' | 'WalletOnly'; TokenGates?: null | Array<WalletPlayTokenGate>; [key: string]: unknown; };
|
|
3038
|
-
type BlockchainDefinitions = { SystemState?: null | BlockchainSystemState; Networks?: null | Record<string, BlockchainNetworkDefinition>; AccountSafety?: null | BlockchainAccountSafetyPolicy; WalletLogin?: null | { Enabled?: null | boolean; WalletConnectProjectId?: null | string; [key: string]: unknown; }; PlayAccess?: null | BlockchainPlayAccessPolicy; [key: string]: unknown; };
|
|
3087
|
+
type BlockchainDefinitions = { SystemState?: null | BlockchainSystemState; Networks?: null | Record<string, BlockchainNetworkDefinition>; AccountSafety?: null | BlockchainAccountSafetyPolicy; WalletLogin?: null | { Enabled?: null | boolean; WalletConnectProjectId?: null | string; [key: string]: unknown; }; PlayAccess?: null | BlockchainPlayAccessPolicy; IframeAllowedHosts?: null | Array<string>; [key: string]: unknown; };
|
|
3039
3088
|
type LinkedWalletInfo = { NetworkID?: null | string; Address?: null | string; LinkedAt?: null | string; LastUsedAt?: null | string; LinkType?: null | 'AutoLinkedFromTransaction' | 'SignatureVerified' | 'ManuallyLinked'; IsSignatureVerified?: null | boolean; [key: string]: unknown; };
|
|
3040
3089
|
type PendingWithdrawalRef = { TitleTransactionID?: null | string; Type?: null | 'Token' | 'Nft'; NetworkID?: null | string; AssetID?: null | string; Amount?: null | string; CreatedAt?: null | string; ExpiresAt?: null | string; [key: string]: unknown; };
|
|
3041
3090
|
type UserKycState = { Status?: null | 'Expired' | 'Pending' | 'Rejected' | 'NotRequested' | 'Verified'; Tier?: null | 'None' | 'Tier1' | 'Tier2' | 'Tier3'; VerifiedAt?: null | string; ExpiresAt?: null | string; RejectedAt?: null | string; ProviderReference?: null | string; RejectionReason?: null | string; [key: string]: unknown; };
|
|
@@ -3048,23 +3097,24 @@ type WalletGatedBalance = { CurrencyID?: null | string; Balance?: null | string;
|
|
|
3048
3097
|
type PlayAccessStatus = { Granted: boolean; Mode?: null | 'Open' | 'AnyWithLinkedWallet' | 'WalletOnly'; Error?: null | string; WalletRequired?: null | boolean; NetworkID?: null | string; Address?: null | string; GrantedUntil?: null | string; Balances?: null | Array<WalletGatedBalance>; [key: string]: unknown; };
|
|
3049
3098
|
type PlayAccessState = { NetworkID?: null | string; Address?: null | string; CheckedAt?: null | string; Passed?: null | boolean; GrantedUntil?: null | string; Error?: null | string; Balances?: null | Array<WalletGatedBalance>; [key: string]: unknown; };
|
|
3050
3099
|
type PlayAccessWallet = { NetworkID?: null | string; Address?: null | string; CanUnlink?: null | boolean; [key: string]: unknown; };
|
|
3051
|
-
type PlayAccessInfoResponse = { Mode?: null | 'Open' | 'AnyWithLinkedWallet' | 'WalletOnly'; TokenGates?: null | Array<WalletPlayTokenGate>; WalletLoginEnabled?: null | boolean; CanLinkWallet?: null | boolean; LinkedWallets?: null | Array<PlayAccessWallet>; Status?: null | PlayAccessStatus; [key: string]: unknown; };
|
|
3052
|
-
type UserBlockchainState = { Version?: null | number; Stats?: null | BlockchainStats; LinkedWallets?: null | Record<string, LinkedWalletInfo>; LastWalletLogin?: null | { NetworkID?: null | string; Address?: null | string; CheckedAt?: null | string; LoggedInAt?: null | string; GatePassed?: null | boolean; GatedBalances?: null | Array<WalletGatedBalance>; [key: string]: unknown; }; PlayAccess?: null | PlayAccessState; PendingWithdrawals?: null | Array<PendingWithdrawalRef>; Kyc?: null | UserKycState; FirstActivityAt?: null | string; LastActivityAt?: null | string; IsFlagged?: null | boolean; FlagReason?: null | string; [key: string]: unknown; };
|
|
3053
|
-
type
|
|
3054
|
-
type
|
|
3100
|
+
type PlayAccessInfoResponse = { Mode?: null | 'Open' | 'AnyWithLinkedWallet' | 'WalletOnly'; TokenGates?: null | Array<WalletPlayTokenGate>; WalletLoginEnabled?: null | boolean; CanLinkWallet?: null | boolean; WalletsFromPlatformProfile?: null | boolean; LinkedWallets?: null | Array<PlayAccessWallet>; Status?: null | PlayAccessStatus; [key: string]: unknown; };
|
|
3101
|
+
type UserBlockchainState = { Version?: null | number; Stats?: null | BlockchainStats; LinkedWallets?: null | Record<string, LinkedWalletInfo>; LastWalletLogin?: null | { NetworkID?: null | string; Address?: null | string; CheckedAt?: null | string; LoggedInAt?: null | string; GatePassed?: null | boolean; GatedBalances?: null | Array<WalletGatedBalance>; [key: string]: unknown; }; PlayAccess?: null | PlayAccessState; PendingWithdrawals?: null | Array<PendingWithdrawalRef>; Kyc?: null | UserKycState; FirstActivityAt?: null | string; LastActivityAt?: null | string; IsFlagged?: null | boolean; FlagReason?: null | string; UnlinkedWallets?: null | Array<{ NetworkID?: null | string; Address?: null | string; UnlinkedAt?: null | string; [key: string]: unknown; }>; [key: string]: unknown; };
|
|
3102
|
+
type BlockchainStateDelta = { CryptoBalances?: null | Record<string, { CurrencyID: string; AmountDelta: string; FrozenDelta: string; UpdatedAt: string; [key: string]: unknown; }>; PendingAdded?: null | PendingWithdrawalRef; PendingRemovedIDs?: null | Array<string>; [key: string]: unknown; };
|
|
3103
|
+
type TokenTransactionDocument = { ID?: null | string; TitleID?: null | string; CreatedAt?: null | string; UpdatedAt?: null | string; UserID?: null | string; TransactionHash?: null | string; Nonce?: null | string; NetworkID?: null | string; ChainType?: null | string; ChainID?: null | number; Direction?: null | 'UsersCryptoWallet' | 'Game'; From?: null | string; To?: null | string; Amount?: null | string; Status?: null | 'Completed' | 'Expired' | 'Pending' | 'Failed' | 'Abandoned'; SignatureData?: null | string; CompletedAt?: null | string; ExpiresAt?: null | string; FailReason?: null | string; Reason?: null | string; Category?: null | string; TokenID?: null | string; CurrencyID?: null | string; AmountUsd?: null | string; NetPayoutAmount?: null | string; TemplateID?: null | string; DataType?: null | string; TitleDeletedAt?: null | string; BurnAmount?: null | number; RefundedAt?: null | string; RefundCheckedAt?: null | string; [key: string]: unknown; };
|
|
3104
|
+
type NFTTransactionDocument = { ID?: null | string; TitleID?: null | string; CreatedAt?: null | string; UpdatedAt?: null | string; UserID?: null | string; TransactionHash?: null | string; Nonce?: null | string; NetworkID?: null | string; ChainType?: null | string; ChainID?: null | number; Direction?: null | 'UsersCryptoWallet' | 'Game'; From?: null | string; To?: null | string; Amount?: null | string; Status?: null | 'Completed' | 'Expired' | 'Pending' | 'Failed' | 'Abandoned'; SignatureData?: null | string; CompletedAt?: null | string; ExpiresAt?: null | string; FailReason?: null | string; Reason?: null | string; Category?: null | string; NFTID?: null | string; ItemID?: null | string; CatalogID?: null | string; SkinID?: null | string; TemplateID?: null | string; DataType?: null | string; TitleDeletedAt?: null | string; [key: string]: unknown; };
|
|
3055
3105
|
type WithdrawalSplit = { To?: null | string; Amount?: null | string | number; [key: string]: unknown; };
|
|
3056
3106
|
type WithdrawalSignatureResponse = { TokenAddress?: null | string; WalletAddress?: null | string; Amount?: null | string; BurnAmount?: null | string; TokenId?: null | string; Nonce?: null | string; ContractAddress?: null | string; UserID?: null | string; TitleID?: null | string; Category?: null | string; Deadline?: null | string; SignatureEpoch?: null | string; Splits?: null | Array<WithdrawalSplit>; Signature?: null | string; [key: string]: unknown; };
|
|
3057
|
-
type SolanaWithdrawalSignature = { Mint?: null | string; WalletAddress?: null | string; Amount?: null | string; BurnAmount?: null | string; Nonce?: null | string; ExpiresAt?: null | string; ProgramID?: null | string; SignatureEpoch?: null | string; Domain?: null | string; Splits?: null | Array<WithdrawalSplit>; SignatureHex?: null | string;
|
|
3107
|
+
type SolanaWithdrawalSignature = { Mint?: null | string; WalletAddress?: null | string; Amount?: null | string; BurnAmount?: null | string; Nonce?: null | string; ExpiresAt?: null | string; ProgramID?: null | string; SignatureEpoch?: null | string; Domain?: null | string; Splits?: null | Array<WithdrawalSplit>; SignatureHex?: null | string; Ed25519PublicKey?: null | string; Ed25519Message?: null | string; UserID?: null | string; TitleID?: null | string; Category?: null | string; [key: string]: unknown; };
|
|
3058
3108
|
type BlockchainConfigResponse = { Blockchain?: null | BlockchainDefinitions; CryptoCurrencies?: null | Record<string, CryptoCurrencyDefinition>; [key: string]: unknown; };
|
|
3059
3109
|
type UserBlockchainStateResponse = { State?: null | UserBlockchainState; CryptoBalances?: null | Record<string, UserCryptoCurrencyState>; [key: string]: unknown; };
|
|
3060
|
-
type DepositTokenResponse = { ServerTimeUtc?: null | string; TransactionHash?: null | string; NetworkID?: null | string; CurrencyID?: null | string; AmountNative?: null | string; AmountUsd?: null | string; StateDelta?: null |
|
|
3110
|
+
type DepositTokenResponse = { ServerTimeUtc?: null | string; TransactionHash?: null | string; NetworkID?: null | string; CurrencyID?: null | string; AmountNative?: null | string; AmountUsd?: null | string; StateDelta?: null | BlockchainStateDelta; [key: string]: unknown; };
|
|
3061
3111
|
type DepositNFTResponse = { ServerTimeUtc?: null | string; TransactionHash?: null | string; NetworkID?: null | string; ItemID?: null | string; CatalogID?: null | string; NftTokenID?: null | string; Amount?: null | number; Resources?: null | ResourceOperation; Inventory?: null | InventoryDelta; [key: string]: unknown; };
|
|
3062
|
-
type TokenWithdrawalResponse = { ServerTimeUtc?: null | string; TitleTransactionID?: null | string; NetworkID?: null | string; CurrencyID?: null | string; AmountNative?: null | string; NetAmountNative?: null | string; BurnAmountNative?: null | string; AmountUsd?: null | string; ExpiresAt?: null | string; EvmSignature?: null | WithdrawalSignatureResponse; SolanaSignature?: null | SolanaWithdrawalSignature; StateDelta?: null |
|
|
3063
|
-
type NFTWithdrawalResponse = { ServerTimeUtc?: null | string; TitleTransactionID?: null | string; NetworkID?: null | string; ItemID?: null | string; CatalogID?: null | string; NftTokenID?: null | string; Amount?: null | number; ExpiresAt?: null | string; Resources?: null | ResourceOperation; EvmSignature?: null | WithdrawalSignatureResponse; SolanaSignature?: null | SolanaWithdrawalSignature; StateDelta?: null |
|
|
3064
|
-
type TransactionHistoryResponse = { TokenTransactions?: null | Array<TokenTransactionDocument>; NFTTransactions?: null | Array<NFTTransactionDocument>; [key: string]: unknown; };
|
|
3112
|
+
type TokenWithdrawalResponse = { ServerTimeUtc?: null | string; TitleTransactionID?: null | string; NetworkID?: null | string; CurrencyID?: null | string; AmountNative?: null | string; NetAmountNative?: null | string; BurnAmountNative?: null | string; AmountUsd?: null | string; ExpiresAt?: null | string; EvmSignature?: null | WithdrawalSignatureResponse; SolanaSignature?: null | SolanaWithdrawalSignature; StateDelta?: null | BlockchainStateDelta; ChainID?: null | number; [key: string]: unknown; };
|
|
3113
|
+
type NFTWithdrawalResponse = { ServerTimeUtc?: null | string; TitleTransactionID?: null | string; NetworkID?: null | string; ItemID?: null | string; CatalogID?: null | string; NftTokenID?: null | string; Amount?: null | number; ExpiresAt?: null | string; Resources?: null | ResourceOperation; EvmSignature?: null | WithdrawalSignatureResponse; SolanaSignature?: null | SolanaWithdrawalSignature; StateDelta?: null | BlockchainStateDelta; Inventory?: null | InventoryDelta; [key: string]: unknown; };
|
|
3114
|
+
type TransactionHistoryResponse = { TokenTransactions?: null | Array<TokenTransactionDocument>; NFTTransactions?: null | Array<NFTTransactionDocument>; RefundedIDs?: null | Array<string>; [key: string]: unknown; };
|
|
3065
3115
|
type DonationResponse = { ServerTimeUtc?: null | string; TransactionHash?: null | string; NetworkID?: null | string; CurrencyID?: null | string; AmountNative?: null | string; AmountUsd?: null | string; Target?: null | string; [key: string]: unknown; };
|
|
3066
3116
|
type RetryWithdrawalResponse = { TitleTransactionID?: null | string; Kind?: null | 'Token' | 'Nft'; EvmSignature?: null | WithdrawalSignatureResponse; SolanaSignature?: null | SolanaWithdrawalSignature; [key: string]: unknown; };
|
|
3067
|
-
type ConfirmWithdrawalResponse = { TitleTransactionID?: null | string; OnChainTxHash?: null | string; Status?: null | 'Completed' | 'Expired' | 'Pending' | 'Failed' | 'Abandoned'; StateDelta?: null |
|
|
3117
|
+
type ConfirmWithdrawalResponse = { TitleTransactionID?: null | string; OnChainTxHash?: null | string; Status?: null | 'Completed' | 'Expired' | 'Pending' | 'Failed' | 'Abandoned'; StateDelta?: null | BlockchainStateDelta; [key: string]: unknown; };
|
|
3068
3118
|
interface BlockchainRequest extends BaseRequest {
|
|
3069
3119
|
TitleTransactionID?: string;
|
|
3070
3120
|
NetworkID?: string;
|
|
@@ -3254,193 +3304,1037 @@ type OperationResult<T> = OperationSuccess<T> | OperationFailure;
|
|
|
3254
3304
|
declare function isOk<T>(result: OperationResult<T>): result is OperationSuccess<T>;
|
|
3255
3305
|
declare function isFail<T>(result: OperationResult<T>): result is OperationFailure;
|
|
3256
3306
|
|
|
3257
|
-
/** Mailbox badge counters after any mailbox call. */
|
|
3258
|
-
interface MailboxCounters {
|
|
3259
|
-
UnreadCount: number;
|
|
3260
|
-
UnclaimedCount: number;
|
|
3261
|
-
}
|
|
3262
3307
|
/**
|
|
3263
|
-
*
|
|
3264
|
-
*
|
|
3308
|
+
* Хранилище, переживающее перезапуск игры. Нужно ровно для одной вещи — держать конфиг тайтла
|
|
3309
|
+
* между сессиями, чтобы не качать его заново на каждом заходе (см. TitleConfigCache).
|
|
3265
3310
|
*
|
|
3266
|
-
*
|
|
3267
|
-
*
|
|
3311
|
+
* Интерфейс намеренно узкий и допускает как синхронную реализацию (localStorage), так и
|
|
3312
|
+
* асинхронную (IndexedDB, файловая система, PlayerPrefs в обёртке): вызывающий всегда делает
|
|
3313
|
+
* `await`, а синхронная реализация просто вернёт значение.
|
|
3268
3314
|
*/
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
pageSize?: number;
|
|
3287
|
-
category?: MailboxCategory;
|
|
3288
|
-
language?: string;
|
|
3289
|
-
}): Promise<OperationResult<GetMailboxMessagesResponse>>;
|
|
3290
|
-
/** Badge counters only. Writes nothing on the server — cheap enough for a menu badge. */
|
|
3291
|
-
getUnreadCount(): Promise<OperationResult<MailboxCountersResponse>>;
|
|
3292
|
-
/** Mark letters read; `all: true` marks every unread letter. */
|
|
3293
|
-
readMessages(messageIDs: string[] | "all"): Promise<OperationResult<MailboxOperationResponse>>;
|
|
3294
|
-
/** Claim one letter or one live module reward (`live:...`). */
|
|
3295
|
-
claimReward(messageID: string): Promise<OperationResult<MailboxClaimResponse>>;
|
|
3296
|
-
/** Claim several letters in one server operation; failed ones come back in `Failed`. */
|
|
3297
|
-
claimRewards(messageIDs: string[]): Promise<OperationResult<MailboxClaimResponse>>;
|
|
3298
|
-
/** Claim everything claimable: stored letters and live module rewards. */
|
|
3299
|
-
claimAll(): Promise<OperationResult<MailboxClaimResponse>>;
|
|
3300
|
-
private afterClaim;
|
|
3301
|
-
/**
|
|
3302
|
-
* Delete letters. `"allRead"` removes every read letter without a pending reward. A letter with
|
|
3303
|
-
* an unclaimed reward needs `force` (the reward is lost); deleting a friend's pending TRANSFER
|
|
3304
|
-
* declines it and returns the resources to the friend.
|
|
3305
|
-
*/
|
|
3306
|
-
deleteMessages(messageIDs: string[] | "allRead", options?: {
|
|
3307
|
-
force?: boolean;
|
|
3308
|
-
}): Promise<OperationResult<MailboxOperationResponse>>;
|
|
3309
|
-
/**
|
|
3310
|
-
* Gift to friends: one of a kind per friend per period (a day unless the title set IntervalSeconds/AnchorUtc).
|
|
3311
|
-
* A gift with a `Cost` charges the sender per friend; not enough — `NOT_ENOUGH_RESOURCES` for the
|
|
3312
|
-
* rest, nothing charged for them.
|
|
3313
|
-
*/
|
|
3314
|
-
sendGift(giftID: string, recipientUserIDs: string[]): Promise<OperationResult<MailboxSendGiftResponse>>;
|
|
3315
|
+
interface ConfigStorage {
|
|
3316
|
+
get(key: string): Promise<string | null> | string | null;
|
|
3317
|
+
set(key: string, value: string): Promise<void> | void;
|
|
3318
|
+
remove(key: string): Promise<void> | void;
|
|
3319
|
+
}
|
|
3320
|
+
type FodderConsumedEntry = { ItemInstanceID: string; Units: number; Level: number; };
|
|
3321
|
+
type UpgradeItemLevelResponse = { ServerTimeUtc: string; ItemInstanceID: string; ItemID: string; Level: number; CatalogID?: null | string; Resources?: null | ResourceOperation; FodderConsumed?: null | Array<FodderConsumedEntry>; };
|
|
3322
|
+
type UpgradeLevelsBatchResponse = Array<{ Id: string; Success: boolean; Error?: null | string; Data?: null | UpgradeItemLevelResponse; }>;
|
|
3323
|
+
/** One instance's upgrade in a batch (with optional multi-level Levels/TargetLevel). */
|
|
3324
|
+
interface ItemUpgradeRef {
|
|
3325
|
+
ItemInstanceID?: string;
|
|
3326
|
+
Levels?: number;
|
|
3327
|
+
TargetLevel?: number;
|
|
3328
|
+
FodderInstanceIDs?: string[];
|
|
3329
|
+
}
|
|
3330
|
+
interface ItemRequest extends BaseRequest {
|
|
3331
|
+
ItemInstanceID?: string;
|
|
3315
3332
|
/**
|
|
3316
|
-
*
|
|
3317
|
-
*
|
|
3318
|
-
* transfer so a timeout never charges twice.
|
|
3333
|
+
* Chosen way to pay (`PriceOption.OptionID`). Empty = the first option available on this
|
|
3334
|
+
* player's platform, which keeps single-price entities working unchanged.
|
|
3319
3335
|
*/
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
/**
|
|
3325
|
-
|
|
3336
|
+
SelectedOptionID?: string;
|
|
3337
|
+
Levels?: number;
|
|
3338
|
+
TargetLevel?: number;
|
|
3339
|
+
FodderInstanceIDs?: string[];
|
|
3340
|
+
/** UpgradeLevelsBatch: per-instance upgrades (deduped by ItemInstanceID). */
|
|
3341
|
+
Upgrades?: ItemUpgradeRef[];
|
|
3326
3342
|
}
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
readonly Global: "Global";
|
|
3331
|
-
/** Publisher announcements: players read only. */
|
|
3332
|
-
readonly Announcement: "Announcement";
|
|
3333
|
-
/** Group channel (clans). Membership comes from an external provider. */
|
|
3334
|
-
readonly Group: "Group";
|
|
3335
|
-
};
|
|
3336
|
-
type ChatChannelType = (typeof ChatChannelType)[keyof typeof ChatChannelType];
|
|
3337
|
-
declare const ChatPartitioning: {
|
|
3338
|
-
readonly None: "None";
|
|
3339
|
-
/** Split by the player's language. */
|
|
3340
|
-
readonly Language: "Language";
|
|
3341
|
-
/** Split by the player's country (resolved from IP by the server). */
|
|
3342
|
-
readonly Region: "Region";
|
|
3343
|
-
};
|
|
3344
|
-
type ChatPartitioning = (typeof ChatPartitioning)[keyof typeof ChatPartitioning];
|
|
3345
|
-
declare const ChatDirectAudience: {
|
|
3346
|
-
readonly Anyone: "Anyone";
|
|
3347
|
-
/** Friends only — an accepted edge in the Social graph. */
|
|
3348
|
-
readonly Friends: "Friends";
|
|
3349
|
-
};
|
|
3350
|
-
type ChatDirectAudience = (typeof ChatDirectAudience)[keyof typeof ChatDirectAudience];
|
|
3351
|
-
declare const ChatBlockedTermAction: {
|
|
3352
|
-
readonly Reject: "Reject";
|
|
3353
|
-
/** Mask the term with asterisks and let the message through. */
|
|
3354
|
-
readonly Mask: "Mask";
|
|
3355
|
-
};
|
|
3356
|
-
type ChatBlockedTermAction = (typeof ChatBlockedTermAction)[keyof typeof ChatBlockedTermAction];
|
|
3357
|
-
declare const ChatAuthorType: {
|
|
3358
|
-
readonly Player: "Player";
|
|
3359
|
-
/** The publisher: an announcement posted from the dashboard. */
|
|
3360
|
-
readonly Publisher: "Publisher";
|
|
3361
|
-
/** The system: a service message from the engine itself. */
|
|
3362
|
-
readonly System: "System";
|
|
3343
|
+
declare const ItemAction: {
|
|
3344
|
+
readonly UpgradeLevel: "UpgradeLevel";
|
|
3345
|
+
readonly UpgradeLevelsBatch: "UpgradeLevelsBatch";
|
|
3363
3346
|
};
|
|
3364
|
-
type
|
|
3365
|
-
declare const
|
|
3366
|
-
readonly
|
|
3367
|
-
readonly
|
|
3368
|
-
readonly
|
|
3369
|
-
readonly Inappropriate: "Inappropriate";
|
|
3370
|
-
readonly Other: "Other";
|
|
3347
|
+
type ItemAction = (typeof ItemAction)[keyof typeof ItemAction];
|
|
3348
|
+
declare const FodderValuationMode: {
|
|
3349
|
+
readonly FlatCount: "FlatCount";
|
|
3350
|
+
readonly Merge: "Merge";
|
|
3351
|
+
readonly InvestmentRefund: "InvestmentRefund";
|
|
3371
3352
|
};
|
|
3372
|
-
type
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
type ChatChannelPresetBindings = { Availability?: null | PresetBinding; Write?: null | PresetBinding; Retention?: null | PresetBinding; [key: string]: unknown; };
|
|
3378
|
-
type ChatChannelDefinition = { ChannelID?: null | string; Identity?: null | ChatChannelIdentity; Type?: null | 'Group' | 'Global' | 'Announcement'; GroupSource?: null | string; Partitioning?: null | 'None' | 'Language' | 'Region'; Capacity?: null | number; Availability?: null | ChatChannelAvailability; Write?: null | ChatChannelWriteRules; Retention?: null | ChatChannelRetention; Presets?: null | ChatChannelPresetBindings; [key: string]: unknown; };
|
|
3379
|
-
type DirectMessageSettings = { IsEnabled?: null | boolean; Gate?: null | SegmentGate; WhoCanMessage?: null | 'Friends' | 'Anyone'; Limits?: null | LimitSpec; MaxLength?: null | number; HistoryHours?: null | number; MaxConversations?: null | number; [key: string]: unknown; };
|
|
3380
|
-
type ChatModerationSettings = { BlockedTerms?: null | Array<string>; BlockedTermAction?: null | 'Reject' | 'Mask'; MaxIgnoreListSize?: null | number; ReportsEnabled?: null | boolean; ReportLimits?: null | LimitSpec; [key: string]: unknown; };
|
|
3381
|
-
type ChatPollingSettings = { MinIntervalSeconds?: null | number; MaxMessagesPerPoll?: null | number; MaxHistoryPageSize?: null | number; [key: string]: unknown; };
|
|
3382
|
-
type ChatPresetRegistry = { Availability?: null | Record<string, ChatChannelAvailability>; Write?: null | Record<string, ChatChannelWriteRules>; Retention?: null | Record<string, ChatChannelRetention>; [key: string]: unknown; };
|
|
3383
|
-
type ChatDefinitions = { IsEnabled?: null | boolean; Channels?: null | Record<string, ChatChannelDefinition>; Direct?: null | DirectMessageSettings; Moderation?: null | ChatModerationSettings; Polling?: null | ChatPollingSettings; Presets?: null | ChatPresetRegistry; [key: string]: unknown; };
|
|
3384
|
-
type UserChatChannelState = { LastReadAt?: null | string; LastReadMessageID?: null | string; Left?: null | boolean; [key: string]: unknown; };
|
|
3385
|
-
type UserChatLimitState = { LastAt?: null | string; DailyCount?: null | number; DailyResetUtc?: null | string; TotalCount?: null | number; LastTextHash?: null | string; [key: string]: unknown; };
|
|
3386
|
-
type UserChatState = { MutedUntil?: null | string; MuteReason?: null | string; Ignored?: null | Array<string>; Channels?: null | Record<string, UserChatChannelState>; Limits?: null | Record<string, UserChatLimitState>; ReportLimits?: null | UserChatLimitState; [key: string]: unknown; };
|
|
3387
|
-
type ChatCursor = { RoomID?: null | string; SentAt?: null | string; MessageID?: null | string; [key: string]: unknown; };
|
|
3388
|
-
type ChatMessageView = { RoomID?: null | string; ChannelID?: null | string; MessageID?: null | string; SenderUserID?: null | string; SenderProfile?: null | UserPublicDataModel; AuthorType?: null | 'System' | 'Player' | 'Publisher'; Text?: null | string; SentAt?: null | string; [key: string]: unknown; };
|
|
3389
|
-
type ChatChannelView = { ChannelID?: null | string; RoomID?: null | string; DisplayNameKey?: null | string; IconPath?: null | string; SortOrder?: null | number; Type?: null | 'Group' | 'Global' | 'Announcement'; CanWrite?: null | boolean; WriteBlockedReason?: null | string; SlowModeSeconds?: null | number; MaxLength?: null | number; UnreadCount?: null | number; LastReadAt?: null | string; [key: string]: unknown; };
|
|
3390
|
-
type ChatChannelsResponse = { Channels?: null | Array<ChatChannelView>; PollIntervalSeconds?: null | number; MutedUntil?: null | string; MuteReason?: null | string; [key: string]: unknown; };
|
|
3391
|
-
type ChatRoomUpdate = { RoomID?: null | string; Messages?: null | Array<ChatMessageView>; NextCursor?: null | ChatCursor; UnreadCount?: null | number; ServedFromDatabase?: null | boolean; [key: string]: unknown; };
|
|
3392
|
-
type ChatPollResponse = { Rooms?: null | Array<ChatRoomUpdate>; PollIntervalSeconds?: null | number; [key: string]: unknown; };
|
|
3393
|
-
type ChatHistoryResponse = { RoomID?: null | string; Messages?: null | Array<ChatMessageView>; NextBefore?: null | ChatCursor; [key: string]: unknown; };
|
|
3394
|
-
type ChatSendResponse = { Message?: null | ChatMessageView; Moderated?: null | boolean; [key: string]: unknown; };
|
|
3395
|
-
type ChatDirectChannelResponse = { RoomID?: null | string; PeerUserID?: null | string; PeerProfile?: null | UserPublicDataModel; MaxLength?: null | number; [key: string]: unknown; };
|
|
3396
|
-
type ChatConversationView = { RoomID?: null | string; PeerUserID?: null | string; PeerProfile?: null | UserPublicDataModel; LastMessage?: null | ChatMessageView; UnreadCount?: null | number; LastReadAt?: null | string; [key: string]: unknown; };
|
|
3397
|
-
type ChatConversationsResponse = { Conversations?: null | Array<ChatConversationView>; [key: string]: unknown; };
|
|
3398
|
-
type ChatStateResponse = { Ignored?: null | Array<string>; Cursor?: null | ChatCursor; Joined?: null | boolean; [key: string]: unknown; };
|
|
3399
|
-
type ChatReportResponse = { ReportID?: null | string; AlreadyReported?: null | boolean; [key: string]: unknown; };
|
|
3400
|
-
interface ChatRequest extends BaseRequest {
|
|
3401
|
-
ChannelID?: string;
|
|
3402
|
-
/** Full room address — used for direct conversations and already-opened rooms. */
|
|
3403
|
-
RoomID?: string;
|
|
3404
|
-
TargetUserID?: string;
|
|
3405
|
-
Text?: string;
|
|
3353
|
+
type FodderValuationMode = (typeof FodderValuationMode)[keyof typeof FodderValuationMode];
|
|
3354
|
+
declare const FodderSelectionMode: {
|
|
3355
|
+
readonly ProtectLeveled: "ProtectLeveled";
|
|
3356
|
+
readonly CheapestFirst: "CheapestFirst";
|
|
3357
|
+
readonly ClientSelected: "ClientSelected";
|
|
3406
3358
|
/**
|
|
3407
|
-
*
|
|
3408
|
-
*
|
|
3359
|
+
* Кормом идут только копии ТОГО ЖЕ уровня, что и прокачиваемый предмет: на 2-й уровень —
|
|
3360
|
+
* первые, на 3-й — вторые. Классическое слияние по тирам: копия другого уровня не кандидат
|
|
3361
|
+
* вовсе, поэтому прокачанная не может сгореть «в счёт» дешёвой, а перерасхода не бывает.
|
|
3409
3362
|
*/
|
|
3410
|
-
|
|
3411
|
-
Cursors?: ChatCursor[];
|
|
3412
|
-
Before?: ChatCursor;
|
|
3413
|
-
Limit?: number;
|
|
3414
|
-
MessageID?: string;
|
|
3415
|
-
Reason?: ChatReportReason;
|
|
3416
|
-
Comment?: string;
|
|
3417
|
-
}
|
|
3418
|
-
declare const ChatAction: {
|
|
3419
|
-
readonly GetChatDefinitions: "GetChatDefinitions";
|
|
3420
|
-
readonly GetChannels: "GetChannels";
|
|
3421
|
-
readonly Poll: "Poll";
|
|
3422
|
-
readonly GetHistory: "GetHistory";
|
|
3423
|
-
readonly GetConversations: "GetConversations";
|
|
3424
|
-
readonly SendMessage: "SendMessage";
|
|
3425
|
-
readonly OpenDirectChannel: "OpenDirectChannel";
|
|
3426
|
-
readonly MarkRead: "MarkRead";
|
|
3427
|
-
readonly JoinChannel: "JoinChannel";
|
|
3428
|
-
readonly LeaveChannel: "LeaveChannel";
|
|
3429
|
-
readonly ReportMessage: "ReportMessage";
|
|
3430
|
-
readonly IgnoreUser: "IgnoreUser";
|
|
3431
|
-
readonly UnignoreUser: "UnignoreUser";
|
|
3363
|
+
readonly SameLevelOnly: "SameLevelOnly";
|
|
3432
3364
|
};
|
|
3433
|
-
type
|
|
3365
|
+
type FodderSelectionMode = (typeof FodderSelectionMode)[keyof typeof FodderSelectionMode];
|
|
3366
|
+
type NFTNetworkBinding = { ContractAddress?: null | string; TokenID?: null | string; TokenStandard?: null | string; MaxLevel?: null | number; [key: string]: unknown; };
|
|
3367
|
+
type NFTModel = { Networks?: null | Record<string, NFTNetworkBinding>; MetadataUrl?: null | string; [key: string]: unknown; };
|
|
3368
|
+
type ItemStats = { FlatBonuses?: null | Record<string, number>; PercentBonuses?: null | Record<string, number>; Power?: null | number; [key: string]: unknown; };
|
|
3369
|
+
type ItemEquipment = { MinCharacterLevel?: null | number; UseRequirements?: null | Record<string, number>; AllowedCharacterIDs?: null | Array<string>; AllowedSlotIDs?: null | Array<string>; IdleRateBonus?: null | number; [key: string]: unknown; };
|
|
3370
|
+
type ItemUpgradeFodder = { ValuationMode?: null | 'FlatCount' | 'Merge' | 'InvestmentRefund'; WeightCurve?: null | { Base?: null | number; Shape?: null | 'Flat' | 'PerStep' | 'PerStepRate' | 'Geometric' | 'Table' | 'TableAbsolute'; PerStep?: null | number; PerStepRate?: null | number; GrowthRate?: null | number; Points?: null | Array<{ AtStep?: null | number; Value?: null | number; [key: string]: unknown; }>; Interpolation?: null | 'Geometric' | 'Step' | 'Linear'; TailGrowthRate?: null | number; MinResult?: null | number; MaxResult?: null | number; [key: string]: unknown; }; Selection?: null | 'ProtectLeveled' | 'CheapestFirst' | 'ClientSelected' | 'SameLevelOnly'; [key: string]: unknown; };
|
|
3371
|
+
type ItemUpgrade = { MaxLevel?: null | number; PriceOptions?: null | PriceOptions; CostCurve?: null | { Base?: null | number; Shape?: null | 'Flat' | 'PerStep' | 'PerStepRate' | 'Geometric' | 'Table' | 'TableAbsolute'; PerStep?: null | number; PerStepRate?: null | number; GrowthRate?: null | number; Points?: null | Array<{ AtStep?: null | number; Value?: null | number; [key: string]: unknown; }>; Interpolation?: null | 'Geometric' | 'Step' | 'Linear'; TailGrowthRate?: null | number; MinResult?: null | number; MaxResult?: null | number; [key: string]: unknown; }; FlatBonusCurve?: null | { Base?: null | number; Shape?: null | 'Flat' | 'PerStep' | 'PerStepRate' | 'Geometric' | 'Table' | 'TableAbsolute'; PerStep?: null | number; PerStepRate?: null | number; GrowthRate?: null | number; Points?: null | Array<{ AtStep?: null | number; Value?: null | number; [key: string]: unknown; }>; Interpolation?: null | 'Geometric' | 'Step' | 'Linear'; TailGrowthRate?: null | number; MinResult?: null | number; MaxResult?: null | number; [key: string]: unknown; }; PercentBonusCurve?: null | { Base?: null | number; Shape?: null | 'Flat' | 'PerStep' | 'PerStepRate' | 'Geometric' | 'Table' | 'TableAbsolute'; PerStep?: null | number; PerStepRate?: null | number; GrowthRate?: null | number; Points?: null | Array<{ AtStep?: null | number; Value?: null | number; [key: string]: unknown; }>; Interpolation?: null | 'Geometric' | 'Step' | 'Linear'; TailGrowthRate?: null | number; MinResult?: null | number; MaxResult?: null | number; [key: string]: unknown; }; PowerCurve?: null | { Base?: null | number; Shape?: null | 'Flat' | 'PerStep' | 'PerStepRate' | 'Geometric' | 'Table' | 'TableAbsolute'; PerStep?: null | number; PerStepRate?: null | number; GrowthRate?: null | number; Points?: null | Array<{ AtStep?: null | number; Value?: null | number; [key: string]: unknown; }>; Interpolation?: null | 'Geometric' | 'Step' | 'Linear'; TailGrowthRate?: null | number; MinResult?: null | number; MaxResult?: null | number; [key: string]: unknown; }; Fodder?: null | ItemUpgradeFodder; [key: string]: unknown; };
|
|
3372
|
+
type ItemMetadata = { RarityID?: null | string; CollectionID?: null | string; AuthorID?: null | string; [key: string]: unknown; };
|
|
3373
|
+
type ItemDefinition = { ItemID: string; CatalogID: string; ItemClass?: null | string; DisplayName?: null | string; Description?: null | string; Tags?: null | Array<string>; CustomData?: null | Record<string, string>; IsStackable?: null | boolean; IsTradable?: null | boolean; Weight?: null | number; AssetPaths?: null | Record<string, string>; NFT?: null | NFTModel; Stats?: null | ItemStats; Equipment?: null | ItemEquipment; Upgrade?: null | ItemUpgrade; Metadata?: null | ItemMetadata; ExpirationDurationSeconds?: null | number; MaxSupply?: null | number; [key: string]: unknown; };
|
|
3374
|
+
/** Catalog: a set of items of one thematic group. Key of `Items` is ItemID. */
|
|
3375
|
+
interface ItemCatalog {
|
|
3376
|
+
Items?: Record<string, ItemDefinition> | null;
|
|
3377
|
+
}
|
|
3378
|
+
/** Root container for all item catalogs of a title. Key of `Catalogs` is CatalogID. */
|
|
3379
|
+
interface ItemDefinitions {
|
|
3380
|
+
Catalogs?: Record<string, ItemCatalog> | null;
|
|
3381
|
+
}
|
|
3434
3382
|
|
|
3435
|
-
/**
|
|
3436
|
-
declare const
|
|
3437
|
-
/**
|
|
3438
|
-
readonly
|
|
3439
|
-
/**
|
|
3440
|
-
readonly
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3383
|
+
/** Storage scope: who may write a record and whether it is cached server-side. */
|
|
3384
|
+
declare const TitleDataScope: {
|
|
3385
|
+
/** Authored configuration. Written by the publisher / AI Coder; cached with the title config. */
|
|
3386
|
+
readonly Static: "Static";
|
|
3387
|
+
/** Mutable title state. Written only by CloudCode scripts; never cached. */
|
|
3388
|
+
readonly Runtime: "Runtime";
|
|
3389
|
+
};
|
|
3390
|
+
type TitleDataScope = (typeof TitleDataScope)[keyof typeof TitleDataScope];
|
|
3391
|
+
/** Visibility bucket. Clients never write title data — the bucket only decides who reads. */
|
|
3392
|
+
declare const TitleDataBucket: {
|
|
3393
|
+
/** Readable by game clients. */
|
|
3394
|
+
readonly Public: "Public";
|
|
3395
|
+
/** Server and CloudCode only — never returned to a client. */
|
|
3396
|
+
readonly Private: "Private";
|
|
3397
|
+
};
|
|
3398
|
+
type TitleDataBucket = (typeof TitleDataBucket)[keyof typeof TitleDataBucket];
|
|
3399
|
+
type TitleCustomDataRecord = { Value?: null | string; UpdatedAt?: null | string; Version?: null | number; LastWriter?: null | 'Client' | 'Server' | 'System'; ExpiresAt?: null | string; [key: string]: unknown; };
|
|
3400
|
+
type GetPublicTitleDataResponse = { StaticVersion?: null | number; RuntimeVersion?: null | number; Static?: null | Record<string, TitleCustomDataRecord>; Runtime?: null | Record<string, TitleCustomDataRecord>; NotModified?: null | boolean; };
|
|
3401
|
+
type TitleCustomDataKeyDefinition = { KeyID: string; Scope?: null | 'Static' | 'Runtime'; Bucket?: null | 'Private' | 'Public'; ValueType?: null | 'String' | 'Int' | 'Bool' | 'Json'; MaxValueLengthBytes?: null | number; TtlSeconds?: null | number; DefaultValue?: null | string; Description?: null | string; [key: string]: unknown; };
|
|
3402
|
+
/** Title-data schema as served to clients: public-bucket keys plus the title's limits. */
|
|
3403
|
+
interface TitleCustomDataDefinitions {
|
|
3404
|
+
Keys?: Record<string, TitleCustomDataKeyDefinition> | null;
|
|
3405
|
+
DefaultMaxValueLengthBytes?: number | null;
|
|
3406
|
+
DefaultTtlSeconds?: number | null;
|
|
3407
|
+
MaxKeysPerBucket?: number | null;
|
|
3408
|
+
MaxTotalSizeBytes?: number | null;
|
|
3409
|
+
RejectUnregisteredKeys?: boolean | null;
|
|
3410
|
+
}
|
|
3411
|
+
interface TitleCustomDataRequest extends BaseRequest {
|
|
3412
|
+
KeyIDs?: string[];
|
|
3413
|
+
KnownRuntimeVersion?: number;
|
|
3414
|
+
}
|
|
3415
|
+
declare const TitleCustomDataAction: {
|
|
3416
|
+
readonly GetTitleCustomDataDefinitions: "GetTitleCustomDataDefinitions";
|
|
3417
|
+
readonly GetPublicTitleData: "GetPublicTitleData";
|
|
3418
|
+
readonly GetPublicTitleDataKeys: "GetPublicTitleDataKeys";
|
|
3419
|
+
};
|
|
3420
|
+
type TitleCustomDataAction = (typeof TitleCustomDataAction)[keyof typeof TitleCustomDataAction];
|
|
3421
|
+
type BonusWindowConfig = { Schedule?: null | Array<{ Order?: null | number; Type?: null | string; DurationSec?: null | number; BonusMultiplier?: null | number; [key: string]: unknown; }>; RepeatCycle?: null | boolean; MaxCycles?: null | number; [key: string]: unknown; };
|
|
3422
|
+
type BonusWindowState = { IsActive?: null | boolean; CurrentPhaseEndUtc?: null | string; NextBonusStartUtc?: null | string; CurrentCycleIndex?: null | number; CurrentPhaseIndex?: null | number; ActiveBonusMultiplier?: null | number; [key: string]: unknown; };
|
|
3423
|
+
/**
|
|
3424
|
+
* Container of preset wiring for event content — one PresetBinding per block. Inline data
|
|
3425
|
+
* (Milestones) lives on EventContent. null = presets unused.
|
|
3426
|
+
*/
|
|
3427
|
+
interface TimedEventPresetBindings {
|
|
3428
|
+
Milestones?: PresetBinding | null;
|
|
3429
|
+
}
|
|
3430
|
+
/** Event content: display, token, sources, rewards, milestones, bonus window. */
|
|
3431
|
+
interface EventContent {
|
|
3432
|
+
DisplayName?: string | null;
|
|
3433
|
+
Description?: string | null;
|
|
3434
|
+
AssetPaths?: Record<string, string> | null;
|
|
3435
|
+
Category?: string | null;
|
|
3436
|
+
Token?: EventTokenDefinition | null;
|
|
3437
|
+
TokenSources?: TriggerSource[] | null;
|
|
3438
|
+
ClaimMode?: string | null;
|
|
3439
|
+
Milestones?: Record<string, MilestoneDefinition> | null;
|
|
3440
|
+
/** Container of content preset wiring (milestones). null = presets unused. */
|
|
3441
|
+
Presets?: TimedEventPresetBindings | null;
|
|
3442
|
+
BonusWindow?: BonusWindowConfig | null;
|
|
3443
|
+
}
|
|
3444
|
+
/** One event inside a cyclic chain (dates computed from AnchorUtc + DurationSec). */
|
|
3445
|
+
interface ChainedEventDefinition {
|
|
3446
|
+
ChainedEventID?: string | null;
|
|
3447
|
+
Order?: number | null;
|
|
3448
|
+
DurationSec?: number | null;
|
|
3449
|
+
Content?: EventContent | null;
|
|
3450
|
+
ClaimGraceHours?: number | null;
|
|
3451
|
+
CustomParams?: Record<string, string> | null;
|
|
3452
|
+
}
|
|
3453
|
+
/** Definition of a single event (Scheduled single-window or Chained phase-chain). */
|
|
3454
|
+
interface TimedEventDefinition {
|
|
3455
|
+
TimedEventID?: string | null;
|
|
3456
|
+
DisplayName?: string | null;
|
|
3457
|
+
Description?: string | null;
|
|
3458
|
+
AssetPaths?: Record<string, string> | null;
|
|
3459
|
+
Schedule?: ScheduleSpec | null;
|
|
3460
|
+
Content?: EventContent | null;
|
|
3461
|
+
Events?: ChainedEventDefinition[] | null;
|
|
3462
|
+
Gate?: SegmentGate | null;
|
|
3463
|
+
CustomParams?: Record<string, string> | null;
|
|
3464
|
+
}
|
|
3465
|
+
type LimitedTimeEventsGlobalSettings = { MaxConcurrentEvents?: null | number; [key: string]: unknown; };
|
|
3466
|
+
/** Registry of reusable event presets (milestones). Phases/events reference them via EventContent.Presets. */
|
|
3467
|
+
interface TimedEventPresetRegistry {
|
|
3468
|
+
Milestones?: Record<string, MilestoneSet> | null;
|
|
3469
|
+
}
|
|
3470
|
+
/** Root config of the limited-time events system, returned by getDefinitions(). */
|
|
3471
|
+
interface TimedEventDefinitions {
|
|
3472
|
+
Definitions?: Record<string, TimedEventDefinition> | null;
|
|
3473
|
+
Settings?: LimitedTimeEventsGlobalSettings | null;
|
|
3474
|
+
/** Registry of reusable event presets (milestones). null = unused. */
|
|
3475
|
+
Presets?: TimedEventPresetRegistry | null;
|
|
3476
|
+
}
|
|
3477
|
+
interface ActiveEventInfo {
|
|
3478
|
+
Type?: ScheduleMode;
|
|
3479
|
+
TimedEventID?: string;
|
|
3480
|
+
CurrentChainedEventID?: string | null;
|
|
3481
|
+
Content?: EventContent | null;
|
|
3482
|
+
Progress?: UserEventTokenProgress | null;
|
|
3483
|
+
ComputedStartUtc?: string | null;
|
|
3484
|
+
ComputedEndUtc?: string | null;
|
|
3485
|
+
CanEarn?: boolean | null;
|
|
3486
|
+
CanClaim?: boolean | null;
|
|
3487
|
+
NextMilestone?: MilestoneDefinition | null;
|
|
3488
|
+
BonusWindow?: BonusWindowState | null;
|
|
3489
|
+
CurrentCycleIndex?: number | null;
|
|
3490
|
+
/** Chained-mode only: this event's 1-based position within the chain. */
|
|
3491
|
+
CurrentEventOrder?: number | null;
|
|
3492
|
+
/** Chained-mode only: total number of events in the chain. */
|
|
3493
|
+
TotalEventsInChain?: number | null;
|
|
3494
|
+
/** Composite EntityID of this instance's token bucket ("MainChain:2:1"). */
|
|
3495
|
+
TokenEntityID?: string | null;
|
|
3496
|
+
}
|
|
3497
|
+
interface GetActiveEventsResponse {
|
|
3498
|
+
ActiveEvents?: ActiveEventInfo[] | null;
|
|
3499
|
+
}
|
|
3500
|
+
type UserTimedEventStateResponse = { Tokens?: null | Record<string, UserEventTokenProgress>; };
|
|
3501
|
+
type EventTokenSpendResponse = { Type?: null | 'Scheduled' | 'Cyclic' | 'Relative' | 'AlwaysOn' | 'Chained' | 'Triggered'; LteID?: null | string; Resources?: null | ResourceOperation; };
|
|
3502
|
+
type EventMilestoneClaimResponse = { Type?: null | 'Scheduled' | 'Cyclic' | 'Relative' | 'AlwaysOn' | 'Chained' | 'Triggered'; LteID?: null | string; MilestoneID?: null | string; TokenEntityID?: null | string; Rewards?: null | ResourceOperation; Inventory?: null | InventoryDelta; };
|
|
3503
|
+
type EventTokenGrantResponse = { Type?: null | 'Scheduled' | 'Cyclic' | 'Relative' | 'AlwaysOn' | 'Chained' | 'Triggered'; LteID?: null | string; Resources?: null | ResourceOperation; };
|
|
3504
|
+
type ClaimMilestonesBatchResponse = Array<{ Id: string; Success: boolean; Error?: null | string; Data?: null | EventMilestoneClaimResponse; }>;
|
|
3505
|
+
type SpendTokensBatchResponse = Array<{ Id: string; Success: boolean; Error?: null | string; Data?: null | EventTokenSpendResponse; }>;
|
|
3506
|
+
type GrantTokensBatchResponse = Array<{ Id: string; Success: boolean; Error?: null | string; Data?: null | EventTokenGrantResponse; }>;
|
|
3507
|
+
/** Addresses one event instance in a batch request (Type+LteID, optionally CycleIndex/ChainedEventID). */
|
|
3508
|
+
interface TimedEventInstanceRef {
|
|
3509
|
+
Type?: ScheduleMode;
|
|
3510
|
+
LteID?: string;
|
|
3511
|
+
CycleIndex?: number;
|
|
3512
|
+
ChainedEventID?: string;
|
|
3513
|
+
}
|
|
3514
|
+
/** One milestone claim in a batch (for ClaimMilestonesBatch). */
|
|
3515
|
+
interface TimedEventMilestoneRef extends TimedEventInstanceRef {
|
|
3516
|
+
MilestoneID?: string;
|
|
3517
|
+
}
|
|
3518
|
+
/** One token spend in a batch (for SpendTokensBatch). */
|
|
3519
|
+
interface TimedEventSpendRef extends TimedEventInstanceRef {
|
|
3520
|
+
SpendAmount?: number;
|
|
3521
|
+
RelatedEntityID?: string;
|
|
3522
|
+
}
|
|
3523
|
+
/** One token grant in a batch (for GrantTokensBatch). */
|
|
3524
|
+
interface TimedEventGrantRef extends TimedEventInstanceRef {
|
|
3525
|
+
SourceType?: string;
|
|
3526
|
+
Outcome?: string;
|
|
3527
|
+
SourceParams?: Record<string, string>;
|
|
3528
|
+
AmountOverride?: number;
|
|
3529
|
+
RollMultiplier?: number;
|
|
3530
|
+
RelatedEntityID?: string;
|
|
3531
|
+
}
|
|
3532
|
+
interface TimedEventRequest extends BaseRequest {
|
|
3533
|
+
Type?: ScheduleMode;
|
|
3534
|
+
LteID?: string;
|
|
3535
|
+
CycleIndex?: number;
|
|
3536
|
+
ChainedEventID?: string;
|
|
3537
|
+
SourceType?: string;
|
|
3538
|
+
AmountOverride?: number;
|
|
3539
|
+
SourceParams?: Record<string, string>;
|
|
3540
|
+
SpendAmount?: number;
|
|
3541
|
+
MilestoneID?: string;
|
|
3542
|
+
Outcome?: string;
|
|
3543
|
+
RollMultiplier?: number;
|
|
3544
|
+
/** ClaimMilestonesBatch: milestones to claim (deduped by Type+LteID+instance+MilestoneID). */
|
|
3545
|
+
Milestones?: TimedEventMilestoneRef[];
|
|
3546
|
+
/** ClaimAllMilestones: event instances to sweep. Null/empty = all active events. */
|
|
3547
|
+
Events?: TimedEventInstanceRef[];
|
|
3548
|
+
/** SpendTokensBatch: spends to apply (deduped by Type+LteID+instance). */
|
|
3549
|
+
Spends?: TimedEventSpendRef[];
|
|
3550
|
+
/** GrantTokensBatch: grants to apply (deduped by event address). */
|
|
3551
|
+
Grants?: TimedEventGrantRef[];
|
|
3552
|
+
}
|
|
3553
|
+
declare const TimedEventAction: {
|
|
3554
|
+
readonly GetActiveEvents: "GetActiveEvents";
|
|
3555
|
+
readonly GrantTokens: "GrantTokens";
|
|
3556
|
+
readonly SpendTokens: "SpendTokens";
|
|
3557
|
+
readonly ClaimMilestone: "ClaimMilestone";
|
|
3558
|
+
readonly GetDefinitions: "GetDefinitions";
|
|
3559
|
+
readonly GetUserLteState: "GetUserLteState";
|
|
3560
|
+
readonly ClaimMilestonesBatch: "ClaimMilestonesBatch";
|
|
3561
|
+
readonly ClaimAllMilestones: "ClaimAllMilestones";
|
|
3562
|
+
readonly SpendTokensBatch: "SpendTokensBatch";
|
|
3563
|
+
readonly GrantTokensBatch: "GrantTokensBatch";
|
|
3564
|
+
};
|
|
3565
|
+
type TimedEventAction = (typeof TimedEventAction)[keyof typeof TimedEventAction];
|
|
3566
|
+
|
|
3567
|
+
declare const CraftType: {
|
|
3568
|
+
readonly TradeUpRarity: "TradeUpRarity";
|
|
3569
|
+
readonly TradeUpCollection: "TradeUpCollection";
|
|
3570
|
+
};
|
|
3571
|
+
type CraftType = (typeof CraftType)[keyof typeof CraftType];
|
|
3572
|
+
/** How the output level is derived from the levels of the burned inputs. */
|
|
3573
|
+
declare const CraftOutputLevelMode: {
|
|
3574
|
+
/** Input levels don't matter — the output is always level 1 (legacy). */
|
|
3575
|
+
readonly None: "None";
|
|
3576
|
+
/** Level of the weakest input of the craft. */
|
|
3577
|
+
readonly Min: "Min";
|
|
3578
|
+
/** Average of the craft's input levels, rounded DOWN. */
|
|
3579
|
+
readonly Average: "Average";
|
|
3580
|
+
/** Level of the strongest input of the craft. */
|
|
3581
|
+
readonly Max: "Max";
|
|
3582
|
+
};
|
|
3583
|
+
type CraftOutputLevelMode = (typeof CraftOutputLevelMode)[keyof typeof CraftOutputLevelMode];
|
|
3584
|
+
/** Which unstackable input instances a craft burns. */
|
|
3585
|
+
declare const CraftInputSelectionMode: {
|
|
3586
|
+
/** Only non-upgraded (Level ≤ 1) instances, oldest first (legacy). */
|
|
3587
|
+
readonly ProtectLeveled: "ProtectLeveled";
|
|
3588
|
+
/** The client names the instances via `inputInstanceIDs`; without them — ProtectLeveled. */
|
|
3589
|
+
readonly ClientSelected: "ClientSelected";
|
|
3590
|
+
/** The server picks, weakest first: upgraded copies go only when fresh ones run out. */
|
|
3591
|
+
readonly LowestLevelFirst: "LowestLevelFirst";
|
|
3592
|
+
/** The server picks, strongest first. */
|
|
3593
|
+
readonly HighestLevelFirst: "HighestLevelFirst";
|
|
3594
|
+
};
|
|
3595
|
+
type CraftInputSelectionMode = (typeof CraftInputSelectionMode)[keyof typeof CraftInputSelectionMode];
|
|
3596
|
+
/** What happens when the derived level exceeds the output item's `Upgrade.MaxLevel`. */
|
|
3597
|
+
declare const CraftOutputLevelOverflow: {
|
|
3598
|
+
/** Lower the level to the output's MaxLevel. */
|
|
3599
|
+
readonly Clamp: "Clamp";
|
|
3600
|
+
/** Refuse the craft (checked against the lowest MaxLevel of the output pool, before the roll). */
|
|
3601
|
+
readonly Reject: "Reject";
|
|
3602
|
+
};
|
|
3603
|
+
type CraftOutputLevelOverflow = (typeof CraftOutputLevelOverflow)[keyof typeof CraftOutputLevelOverflow];
|
|
3604
|
+
type CraftBurnedInstance = { ItemInstanceID?: null | string; ItemID?: null | string; Level?: null | number; Units?: null | number; };
|
|
3605
|
+
type CraftSingleResult = { Index?: null | number; BurnedItemIDs?: null | Array<string>; RolledCollectionID?: null | string; UsedCollections?: null | Record<string, number>; Output?: null | ResourceEntry; OutputLevel?: null | number; BurnedInstances?: null | Array<CraftBurnedInstance>; };
|
|
3606
|
+
type CraftResponse = { ServerTimeUtc: string; CraftID: string; Type?: null | 'TradeUpRarity' | 'TradeUpCollection'; CraftedCount?: null | number; SelectedOptionID?: null | string; InputRarity?: null | string; OutputRarity?: null | string; Resources?: null | ResourceOperation; Inventory?: null | InventoryDelta; Results?: null | Array<CraftSingleResult>; };
|
|
3607
|
+
type CraftDefinition = { CraftID?: null | string; Type?: null | 'TradeUpRarity' | 'TradeUpCollection'; CatalogID?: null | string; CollectionID?: null | string; InputRarityID?: null | string; OutputRarityID?: null | string; RequiredItemCount?: null | number; PriceOptions?: null | PriceOptions; OutputLevelMode?: null | 'Max' | 'None' | 'Min' | 'Average'; InputSelection?: null | 'ProtectLeveled' | 'ClientSelected' | 'LowestLevelFirst' | 'HighestLevelFirst'; OutputLevelOverflow?: null | 'Clamp' | 'Reject'; [key: string]: unknown; };
|
|
3608
|
+
/** The title's craft catalog (config), returned by getDefinitions(). */
|
|
3609
|
+
interface CraftDefinitions {
|
|
3610
|
+
Definitions?: Record<string, CraftDefinition> | null;
|
|
3611
|
+
}
|
|
3612
|
+
type CraftDefinitionsResponse = { ServerTimeUtc?: null | string; CraftDefinitions?: null | CraftDefinitions; };
|
|
3613
|
+
interface CraftRequest extends BaseRequest {
|
|
3614
|
+
CraftID?: string;
|
|
3615
|
+
Count?: number;
|
|
3616
|
+
SelectedOptionID?: string;
|
|
3617
|
+
/** Template of catalog ItemIDs, exactly RequiredItemCount long; the server repeats it Count times. */
|
|
3618
|
+
InputItemIDs?: string[];
|
|
3619
|
+
/**
|
|
3620
|
+
* Only for a ClientSelected recipe: one instance id per UNSTACKABLE input of the expanded list
|
|
3621
|
+
* (template × Count), in order; stackable inputs take no slot. A bundle id may repeat once per unit.
|
|
3622
|
+
*/
|
|
3623
|
+
InputInstanceIDs?: string[];
|
|
3624
|
+
}
|
|
3625
|
+
declare const CraftAction: {
|
|
3626
|
+
readonly GetDefinitions: "GetDefinitions";
|
|
3627
|
+
readonly Craft: "Craft";
|
|
3628
|
+
};
|
|
3629
|
+
type CraftAction = (typeof CraftAction)[keyof typeof CraftAction];
|
|
3630
|
+
type ExperimentVariant = { VariantID?: null | string; DisplayName?: null | string; Weight?: null | number; IsControl?: null | boolean; Params?: null | Record<string, string>; [key: string]: unknown; };
|
|
3631
|
+
/** What an experiment is judged by (engine `ExperimentGoalKind`). */
|
|
3632
|
+
declare const ExperimentGoalKind: {
|
|
3633
|
+
/** Share of participants who sent `EventName` at least once. */
|
|
3634
|
+
readonly EventConversion: "EventConversion";
|
|
3635
|
+
/** `EventName` count per participant. */
|
|
3636
|
+
readonly EventCountPerUser: "EventCountPerUser";
|
|
3637
|
+
/** Sum of `EventName` Value per participant (revenue, score). */
|
|
3638
|
+
readonly EventValuePerUser: "EventValuePerUser";
|
|
3639
|
+
readonly RetentionD1: "RetentionD1";
|
|
3640
|
+
readonly RetentionD7: "RetentionD7";
|
|
3641
|
+
readonly PayerConversion: "PayerConversion";
|
|
3642
|
+
readonly Arpu: "Arpu";
|
|
3643
|
+
};
|
|
3644
|
+
type ExperimentGoalKind = (typeof ExperimentGoalKind)[keyof typeof ExperimentGoalKind];
|
|
3645
|
+
type ExperimentGoal = { MetricID?: null | string; Kind?: null | string; EventName?: null | string; IsPrimary?: null | boolean; [key: string]: unknown; };
|
|
3646
|
+
type ExperimentDefinition = { ExperimentID?: null | string; DisplayName?: null | string; Description?: null | string; IsEnabled?: null | boolean; Schedule?: null | ScheduleSpec; Gate?: null | SegmentGate; Variants?: null | Array<ExperimentVariant>; Salt?: null | string; LayerID?: null | string; StickyAssignment?: null | boolean; CustomParams?: null | Record<string, string>; Goals?: null | Array<ExperimentGoal>; ActivationEvent?: null | string; RolloutVariantID?: null | string; [key: string]: unknown; };
|
|
3647
|
+
type ExperimentDefinitions = { Experiments?: null | Record<string, ExperimentDefinition>; [key: string]: unknown; };
|
|
3648
|
+
/** State of an experiment for this player. */
|
|
3649
|
+
declare const PlayerExperimentStatus: {
|
|
3650
|
+
/** Running: the variant is the player's own sticky assignment. */
|
|
3651
|
+
readonly Running: "Running";
|
|
3652
|
+
/** Disabled, out of its schedule or not in the publisher's plan: everyone gets control. */
|
|
3653
|
+
readonly Stopped: "Stopped";
|
|
3654
|
+
/** The winner was rolled out: everyone gets it. */
|
|
3655
|
+
readonly RolledOut: "RolledOut";
|
|
3656
|
+
};
|
|
3657
|
+
type PlayerExperimentStatus = (typeof PlayerExperimentStatus)[keyof typeof PlayerExperimentStatus];
|
|
3658
|
+
type PlayerExperimentView = { ExperimentID?: null | string; VariantID?: null | string; Status?: null | string; Params?: null | Record<string, string>; [key: string]: unknown; };
|
|
3659
|
+
type GetExperimentsResponse = { Experiments?: null | Array<PlayerExperimentView>; IsAbTestingAvailable?: null | boolean; [key: string]: unknown; };
|
|
3660
|
+
type ExperimentRequest = BaseRequest;
|
|
3661
|
+
declare const ExperimentAction: {
|
|
3662
|
+
readonly GetExperiments: "GetExperiments";
|
|
3663
|
+
};
|
|
3664
|
+
type ExperimentAction = (typeof ExperimentAction)[keyof typeof ExperimentAction];
|
|
3665
|
+
|
|
3666
|
+
/** enum MultiplayerTopology — p2p connection topology within a room. */
|
|
3667
|
+
declare const MultiplayerTopology: {
|
|
3668
|
+
readonly Mesh: "Mesh";
|
|
3669
|
+
readonly Host: "Host";
|
|
3670
|
+
};
|
|
3671
|
+
type MultiplayerTopology = (typeof MultiplayerTopology)[keyof typeof MultiplayerTopology];
|
|
3672
|
+
/** enum MultiplayerChatMode — whether chat is server-relayed or p2p-only over the DataChannel. */
|
|
3673
|
+
declare const MultiplayerChatMode: {
|
|
3674
|
+
readonly ServerRelay: "ServerRelay";
|
|
3675
|
+
readonly P2P: "P2P";
|
|
3676
|
+
};
|
|
3677
|
+
type MultiplayerChatMode = (typeof MultiplayerChatMode)[keyof typeof MultiplayerChatMode];
|
|
3678
|
+
/** enum RoomVisibility — whether a room appears in the public ListRooms listing. */
|
|
3679
|
+
declare const RoomVisibility: {
|
|
3680
|
+
readonly Public: "Public";
|
|
3681
|
+
readonly Private: "Private";
|
|
3682
|
+
};
|
|
3683
|
+
type RoomVisibility = (typeof RoomVisibility)[keyof typeof RoomVisibility];
|
|
3684
|
+
/** enum EnvelopeType — kind of realtime envelope delivered via Poll. */
|
|
3685
|
+
declare const EnvelopeType: {
|
|
3686
|
+
readonly Signal: "Signal";
|
|
3687
|
+
readonly Chat: "Chat";
|
|
3688
|
+
readonly PlayerJoined: "PlayerJoined";
|
|
3689
|
+
readonly PlayerLeft: "PlayerLeft";
|
|
3690
|
+
readonly HostChanged: "HostChanged";
|
|
3691
|
+
readonly RoomClosed: "RoomClosed";
|
|
3692
|
+
readonly MemberState: "MemberState";
|
|
3693
|
+
};
|
|
3694
|
+
type EnvelopeType = (typeof EnvelopeType)[keyof typeof EnvelopeType];
|
|
3695
|
+
type IceServer = { Urls?: null | string; Username?: null | string; Credential?: null | string; [key: string]: unknown; };
|
|
3696
|
+
type MultiplayerSystemState = { Enabled?: null | boolean; [key: string]: unknown; };
|
|
3697
|
+
type MultiplayerDefinitions = { SystemState?: null | MultiplayerSystemState; DefaultTopology?: null | 'Mesh' | 'Host'; AllowCreatorTopologyOverride?: null | boolean; DefaultChatMode?: null | 'ServerRelay' | 'P2P'; AllowCreatorChatOverride?: null | boolean; MaxPlayersPerRoom?: null | number; RoomTtlSeconds?: null | number; MaxRoomLifetimeSeconds?: null | number; HeartbeatIntervalMs?: null | number; MemberTimeoutMs?: null | number; MaxSignalPayloadBytes?: null | number; MaxChatTextLength?: null | number; RoomLogCap?: null | number; IceServers?: null | Array<IceServer>; [key: string]: unknown; };
|
|
3698
|
+
type RoomMemberView = { UserID?: null | string; Username?: null | string; AvatarUrl?: null | string; Level?: null | number; Power?: null | number; Ready?: null | boolean; State?: null | Record<string, string>; JoinedAt?: null | number; IsHost?: null | boolean; LastSeenMs?: null | number; [key: string]: unknown; };
|
|
3699
|
+
type RoomListItem = { RoomID?: null | string; Name?: null | string; HostUserID?: null | string; Topology?: null | 'Mesh' | 'Host'; ChatMode?: null | 'ServerRelay' | 'P2P'; MaxPlayers?: null | number; Mode?: null | string; MemberCount?: null | number; CreatedAt?: null | number; [key: string]: unknown; };
|
|
3700
|
+
type RealtimeEnvelope = { Seq?: null | number; Type?: null | 'Signal' | 'Chat' | 'PlayerJoined' | 'PlayerLeft' | 'HostChanged' | 'RoomClosed' | 'MemberState'; FromUserID?: null | string; ToUserID?: null | string; Kind?: null | string; Payload?: null | string; Ts?: null | number; [key: string]: unknown; };
|
|
3701
|
+
type RoomSnapshotResponse = { RoomID?: null | string; Name?: null | string; HostUserID?: null | string; OwnerUserID?: null | string; Topology?: null | 'Mesh' | 'Host'; ChatMode?: null | 'ServerRelay' | 'P2P'; Visibility?: null | 'Private' | 'Public'; Status?: null | string; MaxPlayers?: null | number; Mode?: null | string; Members?: null | Array<RoomMemberView>; IceServers?: null | Array<IceServer>; Seq?: null | number; BannedUserIDs?: null | Array<string>; [key: string]: unknown; };
|
|
3702
|
+
type KickMemberResponse = { Removed?: null | boolean; Banned?: null | boolean; [key: string]: unknown; };
|
|
3703
|
+
type UnbanMemberResponse = { WasBanned?: null | boolean; [key: string]: unknown; };
|
|
3704
|
+
type LeaveRoomResponse = { Closed?: null | boolean; NewHostUserID?: null | string; [key: string]: unknown; };
|
|
3705
|
+
type RoomsPageResponse = { Rooms?: null | Array<RoomListItem>; Page?: null | number; PageSize?: null | number; HasMore?: null | boolean; [key: string]: unknown; };
|
|
3706
|
+
type PollResponse = { Envelopes?: null | Array<RealtimeEnvelope>; MaxSeq?: null | number; [key: string]: unknown; };
|
|
3707
|
+
type PublishResponse = { Seq?: null | number; [key: string]: unknown; };
|
|
3708
|
+
interface MultiplayerRequest extends BaseRequest {
|
|
3709
|
+
RoomID?: string;
|
|
3710
|
+
RoomName?: string;
|
|
3711
|
+
Topology?: MultiplayerTopology;
|
|
3712
|
+
ChatMode?: MultiplayerChatMode;
|
|
3713
|
+
MaxPlayers?: number;
|
|
3714
|
+
Visibility?: RoomVisibility;
|
|
3715
|
+
JoinCode?: string;
|
|
3716
|
+
/**
|
|
3717
|
+
* CreateRoom: the room's game — a client mode id (1–64 of `[a-z0-9-._:]`). The server only stores
|
|
3718
|
+
* it and returns it in the list and the snapshot, so a lobby can show one game's rooms.
|
|
3719
|
+
*/
|
|
3720
|
+
Mode?: string;
|
|
3721
|
+
TargetUserID?: string;
|
|
3722
|
+
/** "offer" / "answer" / "candidate". */
|
|
3723
|
+
SignalKind?: string;
|
|
3724
|
+
Payload?: string;
|
|
3725
|
+
/** Only meaningful when the room's ChatMode is ServerRelay. */
|
|
3726
|
+
ChatText?: string;
|
|
3727
|
+
Ready?: boolean;
|
|
3728
|
+
MemberState?: Record<string, string>;
|
|
3729
|
+
/** Poll cursor: server returns everything with seq > LastSeq. */
|
|
3730
|
+
LastSeq?: number;
|
|
3731
|
+
Page?: number;
|
|
3732
|
+
PageSize?: number;
|
|
3733
|
+
/**
|
|
3734
|
+
* LeaveRoom by the HOST: the member who becomes the new host. Games with an authoritative host
|
|
3735
|
+
* keep a shadow copy of the world at the successor — a random "first remaining" member would
|
|
3736
|
+
* start from nothing. Ignored for non-hosts and for non-members.
|
|
3737
|
+
*/
|
|
3738
|
+
SuccessorUserID?: string;
|
|
3739
|
+
/** KickMember: also ban the player from rejoining this room (survives a host change). */
|
|
3740
|
+
Ban?: boolean;
|
|
3741
|
+
}
|
|
3742
|
+
declare const MultiplayerAction: {
|
|
3743
|
+
readonly CreateRoom: "CreateRoom";
|
|
3744
|
+
readonly JoinRoom: "JoinRoom";
|
|
3745
|
+
readonly LeaveRoom: "LeaveRoom";
|
|
3746
|
+
readonly ListRooms: "ListRooms";
|
|
3747
|
+
readonly GetRoom: "GetRoom";
|
|
3748
|
+
readonly CloseRoom: "CloseRoom";
|
|
3749
|
+
readonly Poll: "Poll";
|
|
3750
|
+
readonly SendSignal: "SendSignal";
|
|
3751
|
+
readonly SendChat: "SendChat";
|
|
3752
|
+
readonly SetMemberState: "SetMemberState";
|
|
3753
|
+
readonly ClaimHost: "ClaimHost";
|
|
3754
|
+
readonly KickMember: "KickMember";
|
|
3755
|
+
readonly UnbanMember: "UnbanMember";
|
|
3756
|
+
};
|
|
3757
|
+
type MultiplayerAction = (typeof MultiplayerAction)[keyof typeof MultiplayerAction];
|
|
3758
|
+
|
|
3759
|
+
/** How the title accepts event names (`Analytics.EventNaming`). */
|
|
3760
|
+
declare const AnalyticsEventNaming: {
|
|
3761
|
+
/** Any valid name is accepted and collected into the title catalog, up to the plan limit. */
|
|
3762
|
+
readonly Open: "Open";
|
|
3763
|
+
/** Only names declared in `Analytics.Events` are recorded; the rest are dropped. */
|
|
3764
|
+
readonly Declared: "Declared";
|
|
3765
|
+
};
|
|
3766
|
+
type AnalyticsEventNaming = (typeof AnalyticsEventNaming)[keyof typeof AnalyticsEventNaming];
|
|
3767
|
+
type AnalyticsEventDefinition = { DisplayName?: null | string; Description?: null | string; Blocked?: null | boolean; [key: string]: unknown; };
|
|
3768
|
+
type AnalyticsDimensionDefinition = { ParamName?: null | string; DisplayName?: null | string; [key: string]: unknown; };
|
|
3769
|
+
type AnalyticsDefinitions = { Enabled?: null | boolean; EventNaming?: null | string; Events?: null | Record<string, AnalyticsEventDefinition>; Dimensions?: null | Array<AnalyticsDimensionDefinition>; RetentionDays?: null | number; AutomaticEvents?: null | boolean; [key: string]: unknown; };
|
|
3770
|
+
/**
|
|
3771
|
+
* Events the SDK logs by itself. The `idos_` prefix is reserved — `logEvent` refuses it, so a
|
|
3772
|
+
* game cannot fake a session or an install.
|
|
3773
|
+
*/
|
|
3774
|
+
declare const AutomaticEvent: {
|
|
3775
|
+
/** The first launch on this device. */
|
|
3776
|
+
readonly FirstOpen: "idos_first_open";
|
|
3777
|
+
/** A new session: launch, or return after 30 minutes away (the same gap as playtime). */
|
|
3778
|
+
readonly SessionStart: "idos_session_start";
|
|
3779
|
+
/** The app version changed since the previous launch. */
|
|
3780
|
+
readonly AppUpdate: "idos_app_update";
|
|
3781
|
+
/** The OS version changed since the previous launch. */
|
|
3782
|
+
readonly OsUpdate: "idos_os_update";
|
|
3783
|
+
/** `logScreenView(name)`. */
|
|
3784
|
+
readonly ScreenView: "idos_screen_view";
|
|
3785
|
+
};
|
|
3786
|
+
type AutomaticEvent = (typeof AutomaticEvent)[keyof typeof AutomaticEvent];
|
|
3787
|
+
/** The server's rules, applied by the SDK up front so an invalid event never costs a call. */
|
|
3788
|
+
declare const AnalyticsLimits: {
|
|
3789
|
+
readonly maxEventsPerBatch: 50;
|
|
3790
|
+
readonly maxParams: 25;
|
|
3791
|
+
readonly maxStringValueLength: 100;
|
|
3792
|
+
/** Events older than this are dropped by the server as `TooOld`. */
|
|
3793
|
+
readonly maxEventAgeMs: number;
|
|
3794
|
+
readonly reservedPrefixes: readonly ["idos_", "firebase_", "google_", "ga_"];
|
|
3795
|
+
};
|
|
3796
|
+
/** Event and parameter names: a letter, then letters, digits or `_`, 40 characters at most. */
|
|
3797
|
+
declare const EVENT_NAME_PATTERN: RegExp;
|
|
3798
|
+
type AnalyticsParamValue = string | number | boolean;
|
|
3799
|
+
type AnalyticsParams = Record<string, AnalyticsParamValue>;
|
|
3800
|
+
/** One event on the wire. */
|
|
3801
|
+
interface AnalyticsEventInput {
|
|
3802
|
+
Name: string;
|
|
3803
|
+
Params?: AnalyticsParams;
|
|
3804
|
+
/** A number summed by the server — revenue, score. */
|
|
3805
|
+
Value?: number;
|
|
3806
|
+
/** ISO-8601 UTC time the event happened on the client. */
|
|
3807
|
+
ClientTimeUtc?: string;
|
|
3808
|
+
}
|
|
3809
|
+
/**
|
|
3810
|
+
* What the client knows and the server does not. Platform, country, new/returning and the
|
|
3811
|
+
* acquisition source are NOT here: the server takes them from the request header, the IP and the
|
|
3812
|
+
* player's own record, and ignores anything a client claims about them.
|
|
3813
|
+
*/
|
|
3814
|
+
interface AnalyticsClientContext {
|
|
3815
|
+
AppVersion?: string;
|
|
3816
|
+
OsName?: string;
|
|
3817
|
+
OsVersion?: string;
|
|
3818
|
+
/** `phone` / `tablet` / `desktop`. */
|
|
3819
|
+
DeviceCategory?: string;
|
|
3820
|
+
DeviceModel?: string;
|
|
3821
|
+
Language?: string;
|
|
3822
|
+
SdkVersion?: string;
|
|
3823
|
+
}
|
|
3824
|
+
interface AnalyticsRequest extends BaseRequest {
|
|
3825
|
+
/** Idempotency key of the batch: a resend with the same id is not counted twice (24 h). */
|
|
3826
|
+
BatchID?: string;
|
|
3827
|
+
Events: AnalyticsEventInput[];
|
|
3828
|
+
Context?: AnalyticsClientContext;
|
|
3829
|
+
}
|
|
3830
|
+
/** Why the server dropped an event (`LogEventsResponse.Dropped[].Reason`). */
|
|
3831
|
+
declare const AnalyticsDropReason: {
|
|
3832
|
+
readonly InvalidName: "InvalidName";
|
|
3833
|
+
readonly Reserved: "Reserved";
|
|
3834
|
+
readonly NotDeclared: "NotDeclared";
|
|
3835
|
+
readonly Blocked: "Blocked";
|
|
3836
|
+
/** The title reached the event-name limit of its plan. */
|
|
3837
|
+
readonly CatalogFull: "CatalogFull";
|
|
3838
|
+
readonly TooOld: "TooOld";
|
|
3839
|
+
readonly AutomaticDisabled: "AutomaticDisabled";
|
|
3840
|
+
/** More than 1000 events from one player in one day. */
|
|
3841
|
+
readonly DailyLimit: "DailyLimit";
|
|
3842
|
+
};
|
|
3843
|
+
type DroppedEvent = { Index?: null | number; Name?: null | string; Reason?: null | string; [key: string]: unknown; };
|
|
3844
|
+
type LogEventsResponse = { Accepted?: null | number; Dropped?: null | Array<DroppedEvent>; Duplicate?: null | boolean; Disabled?: null | boolean; [key: string]: unknown; };
|
|
3845
|
+
declare const AnalyticsAction: {
|
|
3846
|
+
readonly LogEvents: "LogEvents";
|
|
3847
|
+
};
|
|
3848
|
+
type AnalyticsAction = (typeof AnalyticsAction)[keyof typeof AnalyticsAction];
|
|
3849
|
+
|
|
3850
|
+
interface TitlePublicConfigurationModel {
|
|
3851
|
+
/** Schema of the title-wide key-value store; the values live in client.titleCustomData. */
|
|
3852
|
+
TitleCustomData?: TitleCustomDataDefinitions | null;
|
|
3853
|
+
Character?: CharacterDefinitions | null;
|
|
3854
|
+
Item?: ItemDefinitions | null;
|
|
3855
|
+
Currency?: CurrencyDefinitions | null;
|
|
3856
|
+
Store?: StoreDefinitions | null;
|
|
3857
|
+
Lootbox?: LootboxDefinitions | null;
|
|
3858
|
+
Quest?: QuestDefinitions | null;
|
|
3859
|
+
TimedEvent?: TimedEventDefinitions | null;
|
|
3860
|
+
Leaderboard?: LeaderboardDefinitions | null;
|
|
3861
|
+
Season?: SeasonDefinitions | null;
|
|
3862
|
+
Reward?: RewardDefinitions | null;
|
|
3863
|
+
Collection?: CollectionDefinitions | null;
|
|
3864
|
+
Craft?: CraftDefinitions | null;
|
|
3865
|
+
DealOffer?: DealOfferDefinitions | null;
|
|
3866
|
+
Premium?: PremiumDefinitions | null;
|
|
3867
|
+
TimedBoost?: TimedBoostDefinitions | null;
|
|
3868
|
+
CoopEvent?: CoopEventDefinitions | null;
|
|
3869
|
+
GameLoop?: GameLoopDefinitions | null;
|
|
3870
|
+
Match?: MatchDefinitions | null;
|
|
3871
|
+
Experiment?: ExperimentDefinitions | null;
|
|
3872
|
+
Blockchain?: BlockchainDefinitions | null;
|
|
3873
|
+
Marketplace?: MarketplaceDefinitions | null;
|
|
3874
|
+
Multiplayer?: MultiplayerDefinitions | null;
|
|
3875
|
+
UserCustomData?: UserCustomDataDefinitions | null;
|
|
3876
|
+
Referral?: ReferralDefinitions | null;
|
|
3877
|
+
/**
|
|
3878
|
+
* Localization SETTINGS only — which locales exist, which is the fallback, the limits. The
|
|
3879
|
+
* translation TABLES are delivered separately, one file per locale; use `client.localization`
|
|
3880
|
+
* rather than reading anything out of here.
|
|
3881
|
+
*/
|
|
3882
|
+
Localization?: LocalizationDefinitions | null;
|
|
3883
|
+
/**
|
|
3884
|
+
* Custom-event settings the SDK obeys before sending: on/off, naming mode, declared and blocked
|
|
3885
|
+
* events. Use `client.analytics` to log events rather than reading this.
|
|
3886
|
+
*/
|
|
3887
|
+
Analytics?: AnalyticsDefinitions | null;
|
|
3888
|
+
/**
|
|
3889
|
+
* Comment rules for the UI (on/off, which objects, text length, links). Counters, follows and
|
|
3890
|
+
* reports work without it; use `client.social`.
|
|
3891
|
+
*/
|
|
3892
|
+
Social?: SocialDefinitions | null;
|
|
3893
|
+
/**
|
|
3894
|
+
* Platform bridge (idosgames.com account): where friends come from and whether in-game friend
|
|
3895
|
+
* requests exist at all. Use `client.social.friendRequestsAllowed()`.
|
|
3896
|
+
*/
|
|
3897
|
+
PlatformBridge?: PlatformBridgeDefinitions | null;
|
|
3898
|
+
[key: string]: unknown;
|
|
3899
|
+
}
|
|
3900
|
+
interface TitleRequest extends BaseRequest {
|
|
3901
|
+
Fields?: string[];
|
|
3902
|
+
ExcludeFields?: string[];
|
|
3903
|
+
}
|
|
3904
|
+
declare const TitleAction: {
|
|
3905
|
+
readonly GetTitlePublicConfiguration: "GetTitlePublicConfiguration";
|
|
3906
|
+
readonly GetTitlePublicConfigurationExcept: "GetTitlePublicConfigurationExcept";
|
|
3907
|
+
readonly GetCurrencyDefinitions: "GetCurrencyDefinitions";
|
|
3908
|
+
readonly GetItemDefinitions: "GetItemDefinitions";
|
|
3909
|
+
readonly GetServerTime: "GetServerTime";
|
|
3910
|
+
};
|
|
3911
|
+
type TitleAction = (typeof TitleAction)[keyof typeof TitleAction];
|
|
3912
|
+
|
|
3913
|
+
/**
|
|
3914
|
+
* Title public configuration cache (port of TitleConfig.cs). Phase 1 stores the raw config
|
|
3915
|
+
* and exposes only `itemDefinitions` (needed by the resource applier). Typed accessors and
|
|
3916
|
+
* `OnXxxUpdated` events for currencies/board/events arrive in Phase 2.
|
|
3917
|
+
*/
|
|
3918
|
+
declare class TitleConfig {
|
|
3919
|
+
private config;
|
|
3920
|
+
private readonly sections;
|
|
3921
|
+
private itemDefs;
|
|
3922
|
+
private currencyDefs;
|
|
3923
|
+
get titlePublicConfiguration(): TitlePublicConfigurationModel | null;
|
|
3924
|
+
private sectionSink;
|
|
3925
|
+
/** Store a feature's definitions blob (port of the per-feature Config.PatchXxx setters). */
|
|
3926
|
+
patchSection(key: string, data: unknown): void;
|
|
3927
|
+
/**
|
|
3928
|
+
* Sections read back from storage (see `SectionCache`): put in place only where nothing newer
|
|
3929
|
+
* was patched in this session.
|
|
3930
|
+
*/
|
|
3931
|
+
restoreSections(sections: Record<string, unknown>): void;
|
|
3932
|
+
/** Called on every `patchSection` — `UserService` keeps the sections the projection lacks. */
|
|
3933
|
+
setSectionSink(sink: ((key: string, data: unknown) => void) | null): void;
|
|
3934
|
+
/**
|
|
3935
|
+
* A section of the title config wherever it came from: fetched on its own (`patchSection`), or
|
|
3936
|
+
* with the config at login. Definitions reads are served from the config cache without a
|
|
3937
|
+
* request, so "nobody fetched it" no longer means "not loaded".
|
|
3938
|
+
*/
|
|
3939
|
+
getSection<T>(key: string): T | undefined;
|
|
3940
|
+
applyTitlePublicConfiguration(data: unknown): void;
|
|
3941
|
+
/** Item catalog view used by the cache to classify stackable vs unstackable items. */
|
|
3942
|
+
get itemDefinitions(): ItemDefinitions | undefined;
|
|
3943
|
+
applyItemDefinitions(defs: ItemDefinitions): void;
|
|
3944
|
+
/** Currency catalog view (virtual + crypto definitions). */
|
|
3945
|
+
get currencyDefinitions(): CurrencyDefinitions | undefined;
|
|
3946
|
+
applyCurrencyDefinitions(defs: CurrencyDefinitions): void;
|
|
3947
|
+
}
|
|
3948
|
+
|
|
3949
|
+
/**
|
|
3950
|
+
* Серверная ВЫБОРКА — то, что сервер считает для игрока и чего нет ни в конфиге тайтла, ни в
|
|
3951
|
+
* состоянии игрока: витрина, активные ивенты, окно сезона, прогресс лидербордов, счётчики
|
|
3952
|
+
* непрочитанного. Объявляется один раз — дальше её читают через `DataCache.view`, и кэш сам
|
|
3953
|
+
* решает, отдать копию или сходить на сервер.
|
|
3954
|
+
*/
|
|
3955
|
+
interface CachedView<T> {
|
|
3956
|
+
/** Уникальное имя выборки. Выборка с аргументом (цепочка сезона) различается ключом `args`. */
|
|
3957
|
+
readonly key: string;
|
|
3958
|
+
/** Копия живёт не дольше этого (мс). Не задано — до инвалидации. */
|
|
3959
|
+
readonly ttlMs?: number;
|
|
3960
|
+
/**
|
|
3961
|
+
* Когда данные устаревают по своему содержанию (конец окна ивента, ротация витрины) — epoch мс
|
|
3962
|
+
* или null. Время берётся из того, что прислал сервер, а не вычисляется заново на клиенте.
|
|
3963
|
+
*/
|
|
3964
|
+
expiresAt?(data: T): number | null | undefined;
|
|
3965
|
+
/**
|
|
3966
|
+
* Контейнеры состояния игрока, от которых выборка зависит: сменилась их версия (`Rev`) —
|
|
3967
|
+
* копия выборки устарела. Так покупка, сдвинувшая `Store`, сама сбрасывает витрину.
|
|
3968
|
+
*/
|
|
3969
|
+
readonly dependsOn?: readonly string[];
|
|
3970
|
+
/** События SDK, после которых копия устарела. */
|
|
3971
|
+
readonly invalidateOn?: readonly (keyof SdkEvents)[];
|
|
3972
|
+
/**
|
|
3973
|
+
* Имя выборки на сервере, если её можно получить ВМЕСТЕ со входом (`ClientState.Views`):
|
|
3974
|
+
* тогда вход приносит её сам, и отдельного запроса не будет. См. `DataCache.bindLoginView`.
|
|
3975
|
+
*/
|
|
3976
|
+
readonly login?: string;
|
|
3977
|
+
}
|
|
3978
|
+
/** Параметры выборки во входе — всё, кроме имени и ключа. */
|
|
3979
|
+
type LoginViewParams = Omit<ClientStateViewRequest, "Name" | "Key">;
|
|
3980
|
+
/**
|
|
3981
|
+
* Какие выборки просить вместе со входом:
|
|
3982
|
+
* - `"auto"` (по умолчанию) — те, что игра читала в прошлый раз: кэш помнит их сам, ничего
|
|
3983
|
+
* настраивать не нужно, а система, которую убрали из игры, сама выпадает из списка;
|
|
3984
|
+
* - `"all"` — все (`"*"`), включая варианты (каждую цепочку сезона, все лидерборды);
|
|
3985
|
+
* - `"none"` — ни одной (каждая выборка читается своим запросом, когда понадобится);
|
|
3986
|
+
* - список — ровно эти (имя или `{ Name, …параметры }`).
|
|
3987
|
+
*/
|
|
3988
|
+
type LoginViewsMode = "auto" | "all" | "none" | readonly (string | ClientStateViewRequest)[];
|
|
3989
|
+
/** Структурный тип схемы zod — без привязки к версии zod. */
|
|
3990
|
+
interface ViewSchema<T> {
|
|
3991
|
+
safeParse(data: unknown): {
|
|
3992
|
+
success: true;
|
|
3993
|
+
data: T;
|
|
3994
|
+
} | {
|
|
3995
|
+
success: false;
|
|
3996
|
+
error: unknown;
|
|
3997
|
+
};
|
|
3998
|
+
}
|
|
3999
|
+
/** Объявить выборку. Типизированный дескриптор — его передают в `read`/`peek`/`invalidate`. */
|
|
4000
|
+
declare function defineView<T>(view: CachedView<T>): CachedView<T>;
|
|
4001
|
+
/**
|
|
4002
|
+
* Правило контейнера, который сервер должен ДОСЧИТАТЬ при чтении: новый цикл квестов, ленивые
|
|
4003
|
+
* переходы туториала, герои «по умолчанию». Пока `needsServer` ложно, контейнер отдаётся из кэша
|
|
4004
|
+
* (свежесть — по `Rev`); стало истинным — один раз зовётся авторитетный эндпоинт `refresh`.
|
|
4005
|
+
*/
|
|
4006
|
+
interface StateRule {
|
|
4007
|
+
readonly needsServer: (now: number) => boolean;
|
|
4008
|
+
readonly refresh: () => Promise<OperationResult<unknown>>;
|
|
4009
|
+
}
|
|
4010
|
+
interface ReadOptions {
|
|
4011
|
+
/** Мимо кэша, на сервер — и результат кладётся в кэш. */
|
|
4012
|
+
forceRefresh?: boolean;
|
|
4013
|
+
/** Копия не старше этого (мс) — иначе перечитать. */
|
|
4014
|
+
maxAgeMs?: number;
|
|
4015
|
+
}
|
|
4016
|
+
interface EnsureStateOptions {
|
|
4017
|
+
/**
|
|
4018
|
+
* Перепроверить у сервера контейнеры, подтверждённые раньше этого (мс): так видны изменения,
|
|
4019
|
+
* сделанные НЕ этим клиентом (другое устройство, подарок другого игрока). Проверка дешёвая —
|
|
4020
|
+
* версионная выборка без изменений возвращает пустой ответ.
|
|
4021
|
+
*/
|
|
4022
|
+
maxAgeMs?: number;
|
|
4023
|
+
/** Перечитать независимо от свежести (и правил досчёта). */
|
|
4024
|
+
force?: boolean;
|
|
4025
|
+
}
|
|
4026
|
+
/** Строка `describe()` — для отладки и агентов: что лежит в кэше и насколько оно свежее. */
|
|
4027
|
+
interface CacheEntryInfo {
|
|
4028
|
+
key: string;
|
|
4029
|
+
ageMs: number;
|
|
4030
|
+
expiresInMs: number | null;
|
|
4031
|
+
}
|
|
4032
|
+
/**
|
|
4033
|
+
* ЦЕНТРАЛЬНЫЙ КЭШ клиента: единое место, которое решает, отдать данные локально или сходить на
|
|
4034
|
+
* сервер — и если сходить, то за чем именно. Модули и игры не держат своих копий и своих
|
|
4035
|
+
* таймеров перечитки: они просто читают, а кэш отвечает из памяти, пока данные свежие.
|
|
4036
|
+
*
|
|
4037
|
+
* Три вида данных — три правила свежести:
|
|
4038
|
+
*
|
|
4039
|
+
* 1. **Конфиг тайтла** (`configSection`). Свеж, пока не сменилась версия конфига: сервер сам
|
|
4040
|
+
* присылает её на входе, конфиг лежит в хранилище, секции вне клиентской проекции — тоже, под
|
|
4041
|
+
* той же версией (`SectionCache`). Сети не нужно вовсе.
|
|
4042
|
+
* 2. **Состояние игрока** (`ensureState`). Контейнер свеж, пока его `Rev` подтверждён сервером:
|
|
4043
|
+
* входом, выборкой или ответом на мутацию (версия «+1»). Устаревшие контейнеры всех, кто
|
|
4044
|
+
* спросил в одном такте, уходят ОДНИМ `User/GetUserState` с версиями — и сервер присылает
|
|
4045
|
+
* только разошедшиеся. Контейнер, который сервер должен досчитать (новый цикл квестов),
|
|
4046
|
+
* объявляет `StateRule` — тогда зовётся его авторитетный эндпоинт, и только когда надо.
|
|
4047
|
+
* 3. **Серверные выборки** (`view`). Один запрос на всех одновременно читающих, срок жизни — из
|
|
4048
|
+
* самих данных (`expiresAt`), из `ttlMs`, из версий контейнеров (`dependsOn`) и событий
|
|
4049
|
+
* (`invalidateOn`).
|
|
4050
|
+
*
|
|
4051
|
+
* Расширяемо: игра объявляет свои выборки (`defineView`) и правила своих контейнеров
|
|
4052
|
+
* (`defineStateRule`) тем же способом, что и сервисы SDK.
|
|
4053
|
+
*/
|
|
4054
|
+
declare class DataCache {
|
|
4055
|
+
private readonly emitter;
|
|
4056
|
+
private readonly config;
|
|
4057
|
+
private readonly storage;
|
|
4058
|
+
private readonly titleId;
|
|
4059
|
+
private readonly loginMode;
|
|
4060
|
+
private readonly entries;
|
|
4061
|
+
private readonly inflight;
|
|
4062
|
+
/** Поколение ключа: инвалидация во время запроса не даёт его (уже старому) ответу лечь в кэш. */
|
|
4063
|
+
private readonly generation;
|
|
4064
|
+
private readonly views;
|
|
4065
|
+
private readonly rules;
|
|
4066
|
+
private readonly ruleInflight;
|
|
4067
|
+
private state;
|
|
4068
|
+
/** Выборки, которые вход умеет приносить: имя на сервере → дескриптор, схема и применение. */
|
|
4069
|
+
private readonly loginBindings;
|
|
4070
|
+
/** Выборки, прочитанные в этой сессии, — их попросит следующий вход («auto»). */
|
|
4071
|
+
private readonly used;
|
|
4072
|
+
private usedLoaded;
|
|
4073
|
+
private session;
|
|
4074
|
+
/** Отказ выборки во входе: отдаётся первому читателю вместо повторного запроса. */
|
|
4075
|
+
private readonly loginFailures;
|
|
4076
|
+
private pending;
|
|
4077
|
+
private waiters;
|
|
4078
|
+
private batchTimer;
|
|
4079
|
+
private batchRunning;
|
|
4080
|
+
constructor(emitter: TypedEmitter<SdkEvents>, config: TitleConfig, storage?: ConfigStorage | null, titleId?: string, loginMode?: LoginViewsMode);
|
|
4081
|
+
/**
|
|
4082
|
+
* Секция конфига тайтла из кэша: дочитанная отдельно (`patchSection`) или приехавшая с
|
|
4083
|
+
* конфигом на входе. `undefined` — секции нет (или `forceRefresh`): сервис идёт на сервер.
|
|
4084
|
+
*/
|
|
4085
|
+
configSection<T>(key: string, opts?: ReadOptions): T | undefined;
|
|
4086
|
+
/** Правило досчёта для контейнера. Повторное объявление заменяет прежнее. */
|
|
4087
|
+
defineStateRule(container: string, rule: StateRule): void;
|
|
4088
|
+
/** Контейнер у клиента заведомо актуален (см. `EnsureStateOptions.maxAgeMs`). */
|
|
4089
|
+
isStateFresh(container: string, maxAgeMs?: number): boolean;
|
|
4090
|
+
/**
|
|
4091
|
+
* Гарантирует, что контейнеры состояния актуальны, и только потом отвечает. Свежие — сразу и
|
|
4092
|
+
* без сети; контейнер с правилом досчёта, которому пора, — его эндпоинтом; остальные устаревшие
|
|
4093
|
+
* — одной общей версионной выборкой на всех, кто спросил в этом такте.
|
|
4094
|
+
*/
|
|
4095
|
+
ensureState(containers: readonly string[], opts?: EnsureStateOptions): Promise<OperationResult<void>>;
|
|
4096
|
+
private runRule;
|
|
4097
|
+
private queueSlice;
|
|
4098
|
+
private flushSlices;
|
|
4099
|
+
/**
|
|
4100
|
+
* Прочитать выборку: свежая копия — из памяти, иначе `fetch` (один на всех одновременно
|
|
4101
|
+
* читающих). Неудачный ответ в кэш не кладётся и прежнюю копию не трогает.
|
|
4102
|
+
*/
|
|
4103
|
+
read<T>(view: CachedView<T>, fetch: () => Promise<OperationResult<T>>, opts?: ReadOptions & {
|
|
4104
|
+
args?: string;
|
|
4105
|
+
loginParams?: LoginViewParams;
|
|
4106
|
+
}): Promise<OperationResult<T>>;
|
|
4107
|
+
/**
|
|
4108
|
+
* Связывает выборку с её именем во входе: ответ входа проверяется той же схемой, что и её
|
|
4109
|
+
* собственный эндпоинт, и применяется тем же кодом сервиса (события, патчи состояния).
|
|
4110
|
+
*/
|
|
4111
|
+
bindLoginView<T>(view: CachedView<T>, binding: {
|
|
4112
|
+
schema: ViewSchema<T>;
|
|
4113
|
+
apply: (data: T, args?: string) => void;
|
|
4114
|
+
}): void;
|
|
4115
|
+
private noteUsed;
|
|
4116
|
+
/**
|
|
4117
|
+
* Поднимает список «auto» один раз на клиента и открывает новую сессию: выборки, которые не
|
|
4118
|
+
* читали `USED_SESSIONS` сессий подряд, выпадают (система ушла из игры), а прочитанные в этой —
|
|
4119
|
+
* помечаются её номером. Список копится, а не заменяется, — поэтому быстрая перезагрузка, когда
|
|
4120
|
+
* часть систем ещё не успела ничего прочитать, не обнуляет то, что вход должен принести.
|
|
4121
|
+
*/
|
|
4122
|
+
private loadUsed;
|
|
4123
|
+
private usedKey;
|
|
4124
|
+
private readUsed;
|
|
4125
|
+
private writeUsed;
|
|
4126
|
+
/** Копия выборки, если она есть и свежа; без сети. */
|
|
4127
|
+
peek<T>(view: CachedView<T>, args?: string): T | undefined;
|
|
4128
|
+
/**
|
|
4129
|
+
* Положить данные выборки, пришедшие другим путём (ответ действия уже несёт новое значение) —
|
|
4130
|
+
* следующему читателю не нужно идти за ними на сервер.
|
|
4131
|
+
*/
|
|
4132
|
+
put<T>(view: CachedView<T>, data: T, args?: string): void;
|
|
4133
|
+
/** Сбросить выборку (все её варианты по `args`, если `args` не задан). */
|
|
4134
|
+
invalidate(view: CachedView<unknown> | string, args?: string): void;
|
|
4135
|
+
/** Сбросить все выборки (выход из аккаунта, смена игрока). */
|
|
4136
|
+
clear(): void;
|
|
4137
|
+
/** Что лежит в кэше выборок — для отладки и агентов. */
|
|
4138
|
+
describe(): CacheEntryInfo[];
|
|
4139
|
+
private fresh;
|
|
4140
|
+
private drop;
|
|
4141
|
+
private bump;
|
|
4142
|
+
private register;
|
|
4143
|
+
private onStateChanged;
|
|
4144
|
+
}
|
|
4145
|
+
|
|
4146
|
+
/** Mailbox badge counters after any mailbox call. */
|
|
4147
|
+
interface MailboxCounters {
|
|
4148
|
+
UnreadCount: number;
|
|
4149
|
+
UnclaimedCount: number;
|
|
4150
|
+
}
|
|
4151
|
+
/**
|
|
4152
|
+
* Mailbox of the player: letters with rewards, publisher broadcasts, friend gifts and transfers,
|
|
4153
|
+
* unclaimed rewards of other modules.
|
|
4154
|
+
*
|
|
4155
|
+
* Every response that changes the mailbox carries fresh badge counters; the service re-emits them as
|
|
4156
|
+
* `mailbox:countersChanged`, so a badge never needs its own polling after an action.
|
|
4157
|
+
*/
|
|
4158
|
+
declare class MailboxService {
|
|
4159
|
+
private readonly ctx;
|
|
4160
|
+
constructor(ctx: ClientContext);
|
|
4161
|
+
private request;
|
|
4162
|
+
private emitCounters;
|
|
4163
|
+
/** The mailbox section as the client sees it (limits are not published — use getGiftStatus). */
|
|
4164
|
+
get definitions(): MailboxDefinitions | undefined;
|
|
4165
|
+
/** Is the mailbox switched on for this title (by the cached config)? */
|
|
4166
|
+
get enabled(): boolean;
|
|
4167
|
+
getDefinitions(opts?: ReadOptions): Promise<OperationResult<MailboxDefinitions>>;
|
|
4168
|
+
/**
|
|
4169
|
+
* One page of letters, newest first. The FIRST page (no cursor) also delivers broadcasts meant
|
|
4170
|
+
* for this player, returns their expired transfers to them, and carries pending module rewards
|
|
4171
|
+
* and the badge counters.
|
|
4172
|
+
*/
|
|
4173
|
+
getMessages(options?: {
|
|
4174
|
+
cursor?: string | null;
|
|
4175
|
+
pageSize?: number;
|
|
4176
|
+
category?: MailboxCategory;
|
|
4177
|
+
language?: string;
|
|
4178
|
+
}): Promise<OperationResult<GetMailboxMessagesResponse>>;
|
|
4179
|
+
/** Badge counters only. Writes nothing on the server — cheap enough for a menu badge. */
|
|
4180
|
+
/**
|
|
4181
|
+
* Unread and unclaimed counters. Mail arrives from other players and the server, so the copy
|
|
4182
|
+
* lives a minute; the player's own claim, read or gift drops it at once.
|
|
4183
|
+
*/
|
|
4184
|
+
getUnreadCount(opts?: ReadOptions): Promise<OperationResult<MailboxCountersResponse>>;
|
|
4185
|
+
private fetchUnreadCount;
|
|
4186
|
+
/** Mark letters read; `all: true` marks every unread letter. */
|
|
4187
|
+
readMessages(messageIDs: string[] | "all"): Promise<OperationResult<MailboxOperationResponse>>;
|
|
4188
|
+
/** Claim one letter or one live module reward (`live:...`). */
|
|
4189
|
+
claimReward(messageID: string): Promise<OperationResult<MailboxClaimResponse>>;
|
|
4190
|
+
/** Claim several letters in one server operation; failed ones come back in `Failed`. */
|
|
4191
|
+
claimRewards(messageIDs: string[]): Promise<OperationResult<MailboxClaimResponse>>;
|
|
4192
|
+
/** Claim everything claimable: stored letters and live module rewards. */
|
|
4193
|
+
claimAll(): Promise<OperationResult<MailboxClaimResponse>>;
|
|
4194
|
+
private afterClaim;
|
|
4195
|
+
/**
|
|
4196
|
+
* Delete letters. `"allRead"` removes every read letter without a pending reward. A letter with
|
|
4197
|
+
* an unclaimed reward needs `force` (the reward is lost); deleting a friend's pending TRANSFER
|
|
4198
|
+
* declines it and returns the resources to the friend.
|
|
4199
|
+
*/
|
|
4200
|
+
deleteMessages(messageIDs: string[] | "allRead", options?: {
|
|
4201
|
+
force?: boolean;
|
|
4202
|
+
}): Promise<OperationResult<MailboxOperationResponse>>;
|
|
4203
|
+
/**
|
|
4204
|
+
* Gift to friends: one of a kind per friend per period (a day unless the title set IntervalSeconds/AnchorUtc).
|
|
4205
|
+
* A gift with a `Cost` charges the sender per friend; not enough — `NOT_ENOUGH_RESOURCES` for the
|
|
4206
|
+
* rest, nothing charged for them.
|
|
4207
|
+
*/
|
|
4208
|
+
sendGift(giftID: string, recipientUserIDs: string[]): Promise<OperationResult<MailboxSendGiftResponse>>;
|
|
4209
|
+
/**
|
|
4210
|
+
* Send own resources to a friend. They are taken now and wait in the friend's letter; declined or
|
|
4211
|
+
* expired transfers come back. `requestID` is the idempotency key — keep it for retries of the SAME
|
|
4212
|
+
* transfer so a timeout never charges twice.
|
|
4213
|
+
*/
|
|
4214
|
+
sendTransfer(recipientUserID: string, entries: ResourceEntry[], options: {
|
|
4215
|
+
requestID: string;
|
|
4216
|
+
note?: string;
|
|
4217
|
+
}): Promise<OperationResult<MailboxSendTransferResponse>>;
|
|
4218
|
+
/** What is left of today's gift limits and who already got a gift today. */
|
|
4219
|
+
getGiftStatus(): Promise<OperationResult<MailboxGiftStatusResponse>>;
|
|
4220
|
+
}
|
|
4221
|
+
|
|
4222
|
+
declare const ChatChannelType: {
|
|
4223
|
+
/** Title-wide channel: anyone passing the write gate may post. */
|
|
4224
|
+
readonly Global: "Global";
|
|
4225
|
+
/** Publisher announcements: players read only. */
|
|
4226
|
+
readonly Announcement: "Announcement";
|
|
4227
|
+
/** Group channel (clans). Membership comes from an external provider. */
|
|
4228
|
+
readonly Group: "Group";
|
|
4229
|
+
};
|
|
4230
|
+
type ChatChannelType = (typeof ChatChannelType)[keyof typeof ChatChannelType];
|
|
4231
|
+
declare const ChatPartitioning: {
|
|
4232
|
+
readonly None: "None";
|
|
4233
|
+
/** Split by the player's language. */
|
|
4234
|
+
readonly Language: "Language";
|
|
4235
|
+
/** Split by the player's country (resolved from IP by the server). */
|
|
4236
|
+
readonly Region: "Region";
|
|
4237
|
+
};
|
|
4238
|
+
type ChatPartitioning = (typeof ChatPartitioning)[keyof typeof ChatPartitioning];
|
|
4239
|
+
declare const ChatDirectAudience: {
|
|
4240
|
+
readonly Anyone: "Anyone";
|
|
4241
|
+
/** Friends only — an accepted edge in the Social graph. */
|
|
4242
|
+
readonly Friends: "Friends";
|
|
4243
|
+
};
|
|
4244
|
+
type ChatDirectAudience = (typeof ChatDirectAudience)[keyof typeof ChatDirectAudience];
|
|
4245
|
+
declare const ChatBlockedTermAction: {
|
|
4246
|
+
readonly Reject: "Reject";
|
|
4247
|
+
/** Mask the term with asterisks and let the message through. */
|
|
4248
|
+
readonly Mask: "Mask";
|
|
4249
|
+
};
|
|
4250
|
+
type ChatBlockedTermAction = (typeof ChatBlockedTermAction)[keyof typeof ChatBlockedTermAction];
|
|
4251
|
+
declare const ChatAuthorType: {
|
|
4252
|
+
readonly Player: "Player";
|
|
4253
|
+
/** The publisher: an announcement posted from the dashboard. */
|
|
4254
|
+
readonly Publisher: "Publisher";
|
|
4255
|
+
/** The system: a service message from the engine itself. */
|
|
4256
|
+
readonly System: "System";
|
|
4257
|
+
};
|
|
4258
|
+
type ChatAuthorType = (typeof ChatAuthorType)[keyof typeof ChatAuthorType];
|
|
4259
|
+
declare const ChatReportReason: {
|
|
4260
|
+
readonly Spam: "Spam";
|
|
4261
|
+
readonly Abuse: "Abuse";
|
|
4262
|
+
readonly Scam: "Scam";
|
|
4263
|
+
readonly Inappropriate: "Inappropriate";
|
|
4264
|
+
readonly Other: "Other";
|
|
4265
|
+
};
|
|
4266
|
+
type ChatReportReason = (typeof ChatReportReason)[keyof typeof ChatReportReason];
|
|
4267
|
+
type ChatChannelIdentity = { DisplayNameKey?: null | string; SortOrder?: null | number; IconPath?: null | string; JoinedByDefault?: null | boolean; [key: string]: unknown; };
|
|
4268
|
+
type ChatChannelAvailability = { Gate?: null | SegmentGate; Schedule?: null | ScheduleSpec; [key: string]: unknown; };
|
|
4269
|
+
type ChatChannelWriteRules = { Gate?: null | SegmentGate; Limits?: null | LimitSpec; MaxLength?: null | number; [key: string]: unknown; };
|
|
4270
|
+
type ChatChannelRetention = { HotTailSize?: null | number; HistoryHours?: null | number; [key: string]: unknown; };
|
|
4271
|
+
type ChatChannelPresetBindings = { Availability?: null | PresetBinding; Write?: null | PresetBinding; Retention?: null | PresetBinding; [key: string]: unknown; };
|
|
4272
|
+
type ChatChannelDefinition = { ChannelID?: null | string; Identity?: null | ChatChannelIdentity; Type?: null | 'Group' | 'Global' | 'Announcement'; GroupSource?: null | string; Partitioning?: null | 'None' | 'Language' | 'Region'; Capacity?: null | number; Availability?: null | ChatChannelAvailability; Write?: null | ChatChannelWriteRules; Retention?: null | ChatChannelRetention; Presets?: null | ChatChannelPresetBindings; [key: string]: unknown; };
|
|
4273
|
+
type DirectMessageSettings = { IsEnabled?: null | boolean; Gate?: null | SegmentGate; WhoCanMessage?: null | 'Friends' | 'Anyone'; Limits?: null | LimitSpec; MaxLength?: null | number; HistoryHours?: null | number; MaxConversations?: null | number; [key: string]: unknown; };
|
|
4274
|
+
type ChatModerationSettings = { BlockedTerms?: null | Array<string>; BlockedTermAction?: null | 'Reject' | 'Mask'; MaxIgnoreListSize?: null | number; ReportsEnabled?: null | boolean; ReportLimits?: null | LimitSpec; [key: string]: unknown; };
|
|
4275
|
+
type ChatPollingSettings = { MinIntervalSeconds?: null | number; MaxMessagesPerPoll?: null | number; MaxHistoryPageSize?: null | number; [key: string]: unknown; };
|
|
4276
|
+
type ChatPresetRegistry = { Availability?: null | Record<string, ChatChannelAvailability>; Write?: null | Record<string, ChatChannelWriteRules>; Retention?: null | Record<string, ChatChannelRetention>; [key: string]: unknown; };
|
|
4277
|
+
type ChatDefinitions = { IsEnabled?: null | boolean; Channels?: null | Record<string, ChatChannelDefinition>; Direct?: null | DirectMessageSettings; Moderation?: null | ChatModerationSettings; Polling?: null | ChatPollingSettings; Presets?: null | ChatPresetRegistry; [key: string]: unknown; };
|
|
4278
|
+
type UserChatChannelState = { LastReadAt?: null | string; LastReadMessageID?: null | string; Left?: null | boolean; [key: string]: unknown; };
|
|
4279
|
+
type UserChatLimitState = { LastAt?: null | string; DailyCount?: null | number; DailyResetUtc?: null | string; TotalCount?: null | number; LastTextHash?: null | string; [key: string]: unknown; };
|
|
4280
|
+
type UserChatState = { MutedUntil?: null | string; MuteReason?: null | string; Ignored?: null | Array<string>; Channels?: null | Record<string, UserChatChannelState>; Limits?: null | Record<string, UserChatLimitState>; ReportLimits?: null | UserChatLimitState; [key: string]: unknown; };
|
|
4281
|
+
type ChatCursor = { RoomID?: null | string; SentAt?: null | string; MessageID?: null | string; [key: string]: unknown; };
|
|
4282
|
+
type ChatMessageView = { RoomID?: null | string; ChannelID?: null | string; MessageID?: null | string; SenderUserID?: null | string; SenderProfile?: null | UserPublicDataModel; AuthorType?: null | 'System' | 'Player' | 'Publisher'; Text?: null | string; SentAt?: null | string; [key: string]: unknown; };
|
|
4283
|
+
type ChatChannelView = { ChannelID?: null | string; RoomID?: null | string; DisplayNameKey?: null | string; IconPath?: null | string; SortOrder?: null | number; Type?: null | 'Group' | 'Global' | 'Announcement'; CanWrite?: null | boolean; WriteBlockedReason?: null | string; SlowModeSeconds?: null | number; MaxLength?: null | number; UnreadCount?: null | number; LastReadAt?: null | string; [key: string]: unknown; };
|
|
4284
|
+
type ChatChannelsResponse = { Channels?: null | Array<ChatChannelView>; PollIntervalSeconds?: null | number; MutedUntil?: null | string; MuteReason?: null | string; [key: string]: unknown; };
|
|
4285
|
+
type ChatRoomUpdate = { RoomID?: null | string; Messages?: null | Array<ChatMessageView>; NextCursor?: null | ChatCursor; UnreadCount?: null | number; ServedFromDatabase?: null | boolean; [key: string]: unknown; };
|
|
4286
|
+
type ChatPollResponse = { Rooms?: null | Array<ChatRoomUpdate>; PollIntervalSeconds?: null | number; [key: string]: unknown; };
|
|
4287
|
+
type ChatHistoryResponse = { RoomID?: null | string; Messages?: null | Array<ChatMessageView>; NextBefore?: null | ChatCursor; [key: string]: unknown; };
|
|
4288
|
+
type ChatSendResponse = { Message?: null | ChatMessageView; Moderated?: null | boolean; [key: string]: unknown; };
|
|
4289
|
+
type ChatDirectChannelResponse = { RoomID?: null | string; PeerUserID?: null | string; PeerProfile?: null | UserPublicDataModel; MaxLength?: null | number; [key: string]: unknown; };
|
|
4290
|
+
type ChatConversationView = { RoomID?: null | string; PeerUserID?: null | string; PeerProfile?: null | UserPublicDataModel; LastMessage?: null | ChatMessageView; UnreadCount?: null | number; LastReadAt?: null | string; [key: string]: unknown; };
|
|
4291
|
+
type ChatConversationsResponse = { Conversations?: null | Array<ChatConversationView>; [key: string]: unknown; };
|
|
4292
|
+
type ChatStateResponse = { Ignored?: null | Array<string>; Cursor?: null | ChatCursor; Joined?: null | boolean; [key: string]: unknown; };
|
|
4293
|
+
type ChatReportResponse = { ReportID?: null | string; AlreadyReported?: null | boolean; [key: string]: unknown; };
|
|
4294
|
+
interface ChatRequest extends BaseRequest {
|
|
4295
|
+
ChannelID?: string;
|
|
4296
|
+
/** Full room address — used for direct conversations and already-opened rooms. */
|
|
4297
|
+
RoomID?: string;
|
|
4298
|
+
TargetUserID?: string;
|
|
4299
|
+
Text?: string;
|
|
4300
|
+
/**
|
|
4301
|
+
* Client locale, needed by language-partitioned channels. It is validated against the
|
|
4302
|
+
* title's configured locales server-side, so it can never invent a room.
|
|
4303
|
+
*/
|
|
4304
|
+
Locale?: string;
|
|
4305
|
+
Cursors?: ChatCursor[];
|
|
4306
|
+
Before?: ChatCursor;
|
|
4307
|
+
Limit?: number;
|
|
4308
|
+
MessageID?: string;
|
|
4309
|
+
Reason?: ChatReportReason;
|
|
4310
|
+
Comment?: string;
|
|
4311
|
+
}
|
|
4312
|
+
declare const ChatAction: {
|
|
4313
|
+
readonly GetChatDefinitions: "GetChatDefinitions";
|
|
4314
|
+
readonly GetChannels: "GetChannels";
|
|
4315
|
+
readonly Poll: "Poll";
|
|
4316
|
+
readonly GetHistory: "GetHistory";
|
|
4317
|
+
readonly GetConversations: "GetConversations";
|
|
4318
|
+
readonly SendMessage: "SendMessage";
|
|
4319
|
+
readonly OpenDirectChannel: "OpenDirectChannel";
|
|
4320
|
+
readonly MarkRead: "MarkRead";
|
|
4321
|
+
readonly JoinChannel: "JoinChannel";
|
|
4322
|
+
readonly LeaveChannel: "LeaveChannel";
|
|
4323
|
+
readonly ReportMessage: "ReportMessage";
|
|
4324
|
+
readonly IgnoreUser: "IgnoreUser";
|
|
4325
|
+
readonly UnignoreUser: "UnignoreUser";
|
|
4326
|
+
};
|
|
4327
|
+
type ChatAction = (typeof ChatAction)[keyof typeof ChatAction];
|
|
4328
|
+
|
|
4329
|
+
/** How a notification reaches the device. */
|
|
4330
|
+
declare const PushTransport: {
|
|
4331
|
+
/** Browser Web Push (RFC 8291). The only one a web build ever uses. */
|
|
4332
|
+
readonly WebPush: "WebPush";
|
|
4333
|
+
/** Firebase Cloud Messaging — native Android builds. */
|
|
4334
|
+
readonly Fcm: "Fcm";
|
|
4335
|
+
/** Apple Push Notification service — native iOS builds. */
|
|
4336
|
+
readonly Apns: "Apns";
|
|
4337
|
+
};
|
|
3444
4338
|
type PushTransport = (typeof PushTransport)[keyof typeof PushTransport];
|
|
3445
4339
|
/**
|
|
3446
4340
|
* Topic names. ⚠ A CROSS-REPOSITORY CONTRACT: one side writes the row, another queries by it.
|
|
@@ -3624,12 +4518,12 @@ interface WorkshopAccessOptionInput {
|
|
|
3624
4518
|
type WorkshopFileRole = { AllowedMimeTypes?: null | Array<string>; MaxBytes?: null | number; MaxCount?: null | number; Required?: null | boolean; [key: string]: unknown; };
|
|
3625
4519
|
type WorkshopContentType = { DisplayName?: null | string; Enabled?: null | boolean; Files?: null | Record<string, WorkshopFileRole>; ThumbnailRequired?: null | boolean; AllowedAccessModes?: null | Array<'Price' | 'Free' | 'Holding'>; PricePolicy?: null | MarketplacePricePolicy; PublishGate?: null | SegmentGate; PublishFeeOptions?: null | PriceOptions; TagVocabulary?: null | Array<string>; MaxPublishedPerPlayer?: null | number; DailyPublishCap?: null | number; [key: string]: unknown; };
|
|
3626
4520
|
type WorkshopHoldingPolicy = { Allowed?: null | Array<{ Kind?: null | 'Item' | 'VirtualCurrency' | 'EventToken'; CurrencyID?: null | string; CatalogID?: null | string; ItemID?: null | string; TokenType?: null | 'TimedEvent' | 'Quest' | 'Leaderboard' | 'CoopEvent' | 'Season'; EntityID?: null | string; MinAmount?: null | number; MaxAmount?: null | number; [key: string]: unknown; }>; MaxRequirements?: null | number; [key: string]: unknown; };
|
|
3627
|
-
type WorkshopModerationSettings = { AutoHideReportThreshold?: null | number; RequireApproval?: null | boolean; [key: string]: unknown; };
|
|
4521
|
+
type WorkshopModerationSettings = { AutoHideReportThreshold?: null | number; RequireApproval?: null | boolean; BlockedTerms?: null | Array<string>; [key: string]: unknown; };
|
|
3628
4522
|
type WorkshopLimits = { MaxTitleLength?: null | number; MaxDescriptionLength?: null | number; MaxTags?: null | number; MaxTagLength?: null | number; MaxMetadataKeys?: null | number; MaxMetadataValueLength?: null | number; MaxAccessOptions?: null | number; ThumbnailMaxBytes?: null | number; [key: string]: unknown; };
|
|
3629
4523
|
type WorkshopCollection = { CollectionID?: null | string; Name?: null | string; Description?: null | string; ContentIDs?: null | Array<string>; Schedule?: null | ScheduleSpec; Gate?: null | SegmentGate; Order?: null | number; [key: string]: unknown; };
|
|
3630
4524
|
type WorkshopDefinitions = { Enabled?: null | boolean; Gate?: null | SegmentGate; Schedule?: null | ScheduleSpec; ContentTypes?: null | Record<string, WorkshopContentType>; PricePolicy?: null | MarketplacePricePolicy; Commission?: null | MarketplaceCommissionPolicy; HoldingPolicy?: null | WorkshopHoldingPolicy; Moderation?: null | WorkshopModerationSettings; Limits?: null | WorkshopLimits; Featured?: null | Array<WorkshopCollection>; [key: string]: unknown; };
|
|
3631
4525
|
type WorkshopContentStats = { Acquisitions?: null | number; Downloads?: null | number; Likes?: null | number; Favorites?: null | number; ReportCount?: null | number; [key: string]: unknown; };
|
|
3632
|
-
type WorkshopContentView = { ContentID?: null | string; ContentType?: null | string; CreatorUserID?: null | string; IsOfficial?: null | boolean; CreatorPublicData?: null | UserPublicDataModel; Title?: null | string; Description?: null | string; Tags?: null | Array<string>; Metadata?: null | Record<string, string>; ThumbnailUrl?: null | string; Visibility?: null | 'Friends' | 'Public' | 'Unlisted'; Access?: null | Array<WorkshopAccessOption>; Status?: null | 'Hidden' | '
|
|
4526
|
+
type WorkshopContentView = { ContentID?: null | string; ContentType?: null | string; CreatorUserID?: null | string; IsOfficial?: null | boolean; CreatorPublicData?: null | UserPublicDataModel; Title?: null | string; Description?: null | string; Tags?: null | Array<string>; Metadata?: null | Record<string, string>; ThumbnailUrl?: null | string; Visibility?: null | 'Friends' | 'Public' | 'Unlisted'; Access?: null | Array<WorkshopAccessOption>; Status?: null | 'Hidden' | 'Removed' | 'Uploading' | 'PendingReview' | 'Published'; ModerationNote?: null | string; Stats?: null | WorkshopContentStats; Revision?: null | number; FileCount?: null | number; TotalBytes?: null | number; CreatedAt?: null | string; UpdatedAt?: null | string; PublishedAt?: null | string; IsMine?: null | boolean; Owned?: null | boolean; Liked?: null | boolean; Favorited?: null | boolean; [key: string]: unknown; };
|
|
3633
4527
|
type WorkshopAccessState = { OptionID?: null | string; Mode?: null | 'Price' | 'Free' | 'Holding'; Available?: null | boolean; [key: string]: unknown; };
|
|
3634
4528
|
type WorkshopCollectionView = { CollectionID?: null | string; Name?: null | string; Description?: null | string; ContentIDs?: null | Array<string>; Order?: null | number; [key: string]: unknown; };
|
|
3635
4529
|
type WorkshopDefinitionsResponse = { Definitions?: null | WorkshopDefinitions; IsOpenNow?: null | boolean; GatePassed?: null | boolean; CanPublish?: null | Record<string, boolean>; Collections?: null | Array<WorkshopCollectionView>; [key: string]: unknown; };
|
|
@@ -3699,102 +4593,9 @@ declare const WorkshopAction: {
|
|
|
3699
4593
|
readonly GetMyFavorites: "GetMyFavorites";
|
|
3700
4594
|
};
|
|
3701
4595
|
type WorkshopAction = (typeof WorkshopAction)[keyof typeof WorkshopAction];
|
|
3702
|
-
|
|
3703
|
-
/** enum MultiplayerTopology — p2p connection topology within a room. */
|
|
3704
|
-
declare const MultiplayerTopology: {
|
|
3705
|
-
readonly Mesh: "Mesh";
|
|
3706
|
-
readonly Host: "Host";
|
|
3707
|
-
};
|
|
3708
|
-
type MultiplayerTopology = (typeof MultiplayerTopology)[keyof typeof MultiplayerTopology];
|
|
3709
|
-
/** enum MultiplayerChatMode — whether chat is server-relayed or p2p-only over the DataChannel. */
|
|
3710
|
-
declare const MultiplayerChatMode: {
|
|
3711
|
-
readonly ServerRelay: "ServerRelay";
|
|
3712
|
-
readonly P2P: "P2P";
|
|
3713
|
-
};
|
|
3714
|
-
type MultiplayerChatMode = (typeof MultiplayerChatMode)[keyof typeof MultiplayerChatMode];
|
|
3715
|
-
/** enum RoomVisibility — whether a room appears in the public ListRooms listing. */
|
|
3716
|
-
declare const RoomVisibility: {
|
|
3717
|
-
readonly Public: "Public";
|
|
3718
|
-
readonly Private: "Private";
|
|
3719
|
-
};
|
|
3720
|
-
type RoomVisibility = (typeof RoomVisibility)[keyof typeof RoomVisibility];
|
|
3721
|
-
/** enum EnvelopeType — kind of realtime envelope delivered via Poll. */
|
|
3722
|
-
declare const EnvelopeType: {
|
|
3723
|
-
readonly Signal: "Signal";
|
|
3724
|
-
readonly Chat: "Chat";
|
|
3725
|
-
readonly PlayerJoined: "PlayerJoined";
|
|
3726
|
-
readonly PlayerLeft: "PlayerLeft";
|
|
3727
|
-
readonly HostChanged: "HostChanged";
|
|
3728
|
-
readonly RoomClosed: "RoomClosed";
|
|
3729
|
-
readonly MemberState: "MemberState";
|
|
3730
|
-
};
|
|
3731
|
-
type EnvelopeType = (typeof EnvelopeType)[keyof typeof EnvelopeType];
|
|
3732
|
-
type IceServer = { Urls?: null | string; Username?: null | string; Credential?: null | string; [key: string]: unknown; };
|
|
3733
|
-
type MultiplayerSystemState = { Enabled?: null | boolean; [key: string]: unknown; };
|
|
3734
|
-
type MultiplayerDefinitions = { SystemState?: null | MultiplayerSystemState; DefaultTopology?: null | 'Mesh' | 'Host'; AllowCreatorTopologyOverride?: null | boolean; DefaultChatMode?: null | 'ServerRelay' | 'P2P'; AllowCreatorChatOverride?: null | boolean; MaxPlayersPerRoom?: null | number; RoomTtlSeconds?: null | number; HeartbeatIntervalMs?: null | number; MemberTimeoutMs?: null | number; MaxSignalPayloadBytes?: null | number; MaxChatTextLength?: null | number; RoomLogCap?: null | number; IceServers?: null | Array<IceServer>; [key: string]: unknown; };
|
|
3735
|
-
type RoomMemberView = { UserID?: null | string; Username?: null | string; AvatarUrl?: null | string; Level?: null | number; Power?: null | number; Ready?: null | boolean; State?: null | Record<string, string>; JoinedAt?: null | number; IsHost?: null | boolean; LastSeenMs?: null | number; [key: string]: unknown; };
|
|
3736
|
-
type RoomListItem = { RoomID?: null | string; Name?: null | string; HostUserID?: null | string; Topology?: null | 'Mesh' | 'Host'; ChatMode?: null | 'ServerRelay' | 'P2P'; MaxPlayers?: null | number; Mode?: null | string; MemberCount?: null | number; CreatedAt?: null | number; [key: string]: unknown; };
|
|
3737
|
-
type RealtimeEnvelope = { Seq?: null | number; Type?: null | 'Signal' | 'Chat' | 'PlayerJoined' | 'PlayerLeft' | 'HostChanged' | 'RoomClosed' | 'MemberState'; FromUserID?: null | string; ToUserID?: null | string; Kind?: null | string; Payload?: null | string; Ts?: null | number; [key: string]: unknown; };
|
|
3738
|
-
type RoomSnapshotResponse = { RoomID?: null | string; Name?: null | string; HostUserID?: null | string; OwnerUserID?: null | string; Topology?: null | 'Mesh' | 'Host'; ChatMode?: null | 'ServerRelay' | 'P2P'; Visibility?: null | 'Private' | 'Public'; Status?: null | string; MaxPlayers?: null | number; Mode?: null | string; Members?: null | Array<RoomMemberView>; IceServers?: null | Array<IceServer>; Seq?: null | number; BannedUserIDs?: null | Array<string>; [key: string]: unknown; };
|
|
3739
|
-
type KickMemberResponse = { Removed?: null | boolean; Banned?: null | boolean; [key: string]: unknown; };
|
|
3740
|
-
type UnbanMemberResponse = { WasBanned?: null | boolean; [key: string]: unknown; };
|
|
3741
|
-
type LeaveRoomResponse = { Closed?: null | boolean; NewHostUserID?: null | string; [key: string]: unknown; };
|
|
3742
|
-
type RoomsPageResponse = { Rooms?: null | Array<RoomListItem>; Page?: null | number; PageSize?: null | number; HasMore?: null | boolean; [key: string]: unknown; };
|
|
3743
|
-
type PollResponse = { Envelopes?: null | Array<RealtimeEnvelope>; MaxSeq?: null | number; [key: string]: unknown; };
|
|
3744
|
-
type PublishResponse = { Seq?: null | number; [key: string]: unknown; };
|
|
3745
|
-
interface MultiplayerRequest extends BaseRequest {
|
|
3746
|
-
RoomID?: string;
|
|
3747
|
-
RoomName?: string;
|
|
3748
|
-
Topology?: MultiplayerTopology;
|
|
3749
|
-
ChatMode?: MultiplayerChatMode;
|
|
3750
|
-
MaxPlayers?: number;
|
|
3751
|
-
Visibility?: RoomVisibility;
|
|
3752
|
-
JoinCode?: string;
|
|
3753
|
-
/**
|
|
3754
|
-
* CreateRoom: the room's game — a client mode id (1–64 of `[a-z0-9-._:]`). The server only stores
|
|
3755
|
-
* it and returns it in the list and the snapshot, so a lobby can show one game's rooms.
|
|
3756
|
-
*/
|
|
3757
|
-
Mode?: string;
|
|
3758
|
-
TargetUserID?: string;
|
|
3759
|
-
/** "offer" / "answer" / "candidate". */
|
|
3760
|
-
SignalKind?: string;
|
|
3761
|
-
Payload?: string;
|
|
3762
|
-
/** Only meaningful when the room's ChatMode is ServerRelay. */
|
|
3763
|
-
ChatText?: string;
|
|
3764
|
-
Ready?: boolean;
|
|
3765
|
-
MemberState?: Record<string, string>;
|
|
3766
|
-
/** Poll cursor: server returns everything with seq > LastSeq. */
|
|
3767
|
-
LastSeq?: number;
|
|
3768
|
-
Page?: number;
|
|
3769
|
-
PageSize?: number;
|
|
3770
|
-
/**
|
|
3771
|
-
* LeaveRoom by the HOST: the member who becomes the new host. Games with an authoritative host
|
|
3772
|
-
* keep a shadow copy of the world at the successor — a random "first remaining" member would
|
|
3773
|
-
* start from nothing. Ignored for non-hosts and for non-members.
|
|
3774
|
-
*/
|
|
3775
|
-
SuccessorUserID?: string;
|
|
3776
|
-
/** KickMember: also ban the player from rejoining this room (survives a host change). */
|
|
3777
|
-
Ban?: boolean;
|
|
3778
|
-
}
|
|
3779
|
-
declare const MultiplayerAction: {
|
|
3780
|
-
readonly CreateRoom: "CreateRoom";
|
|
3781
|
-
readonly JoinRoom: "JoinRoom";
|
|
3782
|
-
readonly LeaveRoom: "LeaveRoom";
|
|
3783
|
-
readonly ListRooms: "ListRooms";
|
|
3784
|
-
readonly GetRoom: "GetRoom";
|
|
3785
|
-
readonly CloseRoom: "CloseRoom";
|
|
3786
|
-
readonly Poll: "Poll";
|
|
3787
|
-
readonly SendSignal: "SendSignal";
|
|
3788
|
-
readonly SendChat: "SendChat";
|
|
3789
|
-
readonly SetMemberState: "SetMemberState";
|
|
3790
|
-
readonly ClaimHost: "ClaimHost";
|
|
3791
|
-
readonly KickMember: "KickMember";
|
|
3792
|
-
readonly UnbanMember: "UnbanMember";
|
|
3793
|
-
};
|
|
3794
|
-
type MultiplayerAction = (typeof MultiplayerAction)[keyof typeof MultiplayerAction];
|
|
3795
4596
|
type PlatformLoginResponse = { TitleUserID: string; TitleClientSessionTicket: string; TitleClientSessionTicketExpiration: string; PlatformUserID?: null | string; PlatformAuthToken?: null | string; PlatformAuthTokenExpiration?: null | string; PlayAccess?: null | PlayAccessStatus; RefreshToken?: null | string; RefreshTokenExpiration?: null | string; };
|
|
3796
4597
|
type RefreshSessionResponse = { TitleUserID: string; TitleClientSessionTicket: string; TitleClientSessionTicketExpiration: string; RefreshToken: string; RefreshTokenExpiration?: null | string; PlayAccess?: null | PlayAccessStatus; };
|
|
3797
|
-
type AuthOptionsResponse = { Google?: null | { Enabled?: null | boolean; WebClientID?: null | string; AndroidClientID?: null | string; IosClientID?: null | string; DesktopClientID?: null | string; [key: string]: unknown; }; Apple?: null | { Enabled?: null | boolean; BundleID?: null | string; ServiceID?: null | string; [key: string]: unknown; }; PlayAccessMode?: null | 'Open' | 'AnyWithLinkedWallet' | 'WalletOnly'; WalletLoginNetworks?: null | Array<{ NetworkID?: null | string; Type?: null | string; [key: string]: unknown; }>; [key: string]: unknown; };
|
|
4598
|
+
type AuthOptionsResponse = { Google?: null | { Enabled?: null | boolean; WebClientID?: null | string; AndroidClientID?: null | string; IosClientID?: null | string; DesktopClientID?: null | string; [key: string]: unknown; }; Apple?: null | { Enabled?: null | boolean; BundleID?: null | string; ServiceID?: null | string; [key: string]: unknown; }; PlayAccessMode?: null | 'Open' | 'AnyWithLinkedWallet' | 'WalletOnly'; WalletLoginNetworks?: null | Array<{ NetworkID?: null | string; Type?: null | string; [key: string]: unknown; }>; NativeSso?: null | { ReturnMode?: null | string; UrlScheme?: null | string; UserCodeSupported?: null | boolean; PollIntervalSeconds?: null | number; [key: string]: unknown; }; [key: string]: unknown; };
|
|
3798
4599
|
type WalletLinkResponse = { Linked?: null | boolean; Challenge?: null | string; ExpiresAt?: null | string; NetworkID?: null | string; Address?: null | string; PlayAccess?: null | PlayAccessStatus; [key: string]: unknown; };
|
|
3799
4600
|
type WalletUnlinkResponse = { NetworkID?: null | string; Address?: null | string; CooldownUntil?: null | string; PlayAccess?: null | PlayAccessStatus; [key: string]: unknown; };
|
|
3800
4601
|
type EmailRegistrationResponse = { CodeTtlMinutes?: null | number; ResendCooldownSeconds?: null | number; };
|
|
@@ -3904,82 +4705,20 @@ declare const AuthenticationAction: {
|
|
|
3904
4705
|
* called exactly when the ticket is no longer valid; the token itself proves who is asking.
|
|
3905
4706
|
*/
|
|
3906
4707
|
readonly RefreshSession: "RefreshSession";
|
|
3907
|
-
/**
|
|
3908
|
-
* Attach a wallet to the logged-in account by signature (two steps: challenge, then signature).
|
|
3909
|
-
* Authenticated — the only action here that carries a session.
|
|
3910
|
-
*/
|
|
3911
|
-
readonly LinkWallet: "LinkWallet";
|
|
3912
|
-
/**
|
|
3913
|
-
* Take a wallet off the logged-in account (authenticated, like `LinkWallet`). The wallet an
|
|
3914
|
-
* account signs in with cannot be taken off — `WALLET_IS_LOGIN_WALLET`.
|
|
3915
|
-
*/
|
|
3916
|
-
readonly UnlinkWallet: "UnlinkWallet";
|
|
3917
|
-
readonly ForgotPassword: "ForgotPassword";
|
|
3918
|
-
readonly ResetPassword: "ResetPassword";
|
|
3919
|
-
};
|
|
3920
|
-
type AuthenticationAction = (typeof AuthenticationAction)[keyof typeof AuthenticationAction];
|
|
3921
|
-
type FodderConsumedEntry = { ItemInstanceID: string; Units: number; Level: number; };
|
|
3922
|
-
type UpgradeItemLevelResponse = { ServerTimeUtc: string; ItemInstanceID: string; ItemID: string; Level: number; CatalogID?: null | string; Resources?: null | ResourceOperation; FodderConsumed?: null | Array<FodderConsumedEntry>; };
|
|
3923
|
-
type UpgradeLevelsBatchResponse = Array<{ Id: string; Success: boolean; Error?: null | string; Data?: null | UpgradeItemLevelResponse; }>;
|
|
3924
|
-
/** One instance's upgrade in a batch (with optional multi-level Levels/TargetLevel). */
|
|
3925
|
-
interface ItemUpgradeRef {
|
|
3926
|
-
ItemInstanceID?: string;
|
|
3927
|
-
Levels?: number;
|
|
3928
|
-
TargetLevel?: number;
|
|
3929
|
-
FodderInstanceIDs?: string[];
|
|
3930
|
-
}
|
|
3931
|
-
interface ItemRequest extends BaseRequest {
|
|
3932
|
-
ItemInstanceID?: string;
|
|
3933
|
-
/**
|
|
3934
|
-
* Chosen way to pay (`PriceOption.OptionID`). Empty = the first option available on this
|
|
3935
|
-
* player's platform, which keeps single-price entities working unchanged.
|
|
4708
|
+
/**
|
|
4709
|
+
* Attach a wallet to the logged-in account by signature (two steps: challenge, then signature).
|
|
4710
|
+
* Authenticated — the only action here that carries a session.
|
|
3936
4711
|
*/
|
|
3937
|
-
|
|
3938
|
-
Levels?: number;
|
|
3939
|
-
TargetLevel?: number;
|
|
3940
|
-
FodderInstanceIDs?: string[];
|
|
3941
|
-
/** UpgradeLevelsBatch: per-instance upgrades (deduped by ItemInstanceID). */
|
|
3942
|
-
Upgrades?: ItemUpgradeRef[];
|
|
3943
|
-
}
|
|
3944
|
-
declare const ItemAction: {
|
|
3945
|
-
readonly UpgradeLevel: "UpgradeLevel";
|
|
3946
|
-
readonly UpgradeLevelsBatch: "UpgradeLevelsBatch";
|
|
3947
|
-
};
|
|
3948
|
-
type ItemAction = (typeof ItemAction)[keyof typeof ItemAction];
|
|
3949
|
-
declare const FodderValuationMode: {
|
|
3950
|
-
readonly FlatCount: "FlatCount";
|
|
3951
|
-
readonly Merge: "Merge";
|
|
3952
|
-
readonly InvestmentRefund: "InvestmentRefund";
|
|
3953
|
-
};
|
|
3954
|
-
type FodderValuationMode = (typeof FodderValuationMode)[keyof typeof FodderValuationMode];
|
|
3955
|
-
declare const FodderSelectionMode: {
|
|
3956
|
-
readonly ProtectLeveled: "ProtectLeveled";
|
|
3957
|
-
readonly CheapestFirst: "CheapestFirst";
|
|
3958
|
-
readonly ClientSelected: "ClientSelected";
|
|
4712
|
+
readonly LinkWallet: "LinkWallet";
|
|
3959
4713
|
/**
|
|
3960
|
-
*
|
|
3961
|
-
*
|
|
3962
|
-
* вовсе, поэтому прокачанная не может сгореть «в счёт» дешёвой, а перерасхода не бывает.
|
|
4714
|
+
* Take a wallet off the logged-in account (authenticated, like `LinkWallet`). The wallet an
|
|
4715
|
+
* account signs in with cannot be taken off — `WALLET_IS_LOGIN_WALLET`.
|
|
3963
4716
|
*/
|
|
3964
|
-
readonly
|
|
4717
|
+
readonly UnlinkWallet: "UnlinkWallet";
|
|
4718
|
+
readonly ForgotPassword: "ForgotPassword";
|
|
4719
|
+
readonly ResetPassword: "ResetPassword";
|
|
3965
4720
|
};
|
|
3966
|
-
type
|
|
3967
|
-
type NFTNetworkBinding = { ContractAddress?: null | string; TokenID?: null | string; TokenStandard?: null | string; [key: string]: unknown; };
|
|
3968
|
-
type NFTModel = { Networks?: null | Record<string, NFTNetworkBinding>; MetadataUrl?: null | string; [key: string]: unknown; };
|
|
3969
|
-
type ItemStats = { FlatBonuses?: null | Record<string, number>; PercentBonuses?: null | Record<string, number>; Power?: null | number; [key: string]: unknown; };
|
|
3970
|
-
type ItemEquipment = { MinCharacterLevel?: null | number; UseRequirements?: null | Record<string, number>; AllowedCharacterIDs?: null | Array<string>; AllowedSlotIDs?: null | Array<string>; [key: string]: unknown; };
|
|
3971
|
-
type ItemUpgradeFodder = { ValuationMode?: null | 'FlatCount' | 'Merge' | 'InvestmentRefund'; WeightCurve?: null | { Base?: null | number; Shape?: null | 'Flat' | 'PerStep' | 'PerStepRate' | 'Geometric' | 'Table' | 'TableAbsolute'; PerStep?: null | number; PerStepRate?: null | number; GrowthRate?: null | number; Points?: null | Array<{ AtStep?: null | number; Value?: null | number; [key: string]: unknown; }>; Interpolation?: null | 'Geometric' | 'Step' | 'Linear'; TailGrowthRate?: null | number; MinResult?: null | number; MaxResult?: null | number; [key: string]: unknown; }; Selection?: null | 'ProtectLeveled' | 'CheapestFirst' | 'ClientSelected' | 'SameLevelOnly'; [key: string]: unknown; };
|
|
3972
|
-
type ItemUpgrade = { MaxLevel?: null | number; PriceOptions?: null | PriceOptions; CostCurve?: null | { Base?: null | number; Shape?: null | 'Flat' | 'PerStep' | 'PerStepRate' | 'Geometric' | 'Table' | 'TableAbsolute'; PerStep?: null | number; PerStepRate?: null | number; GrowthRate?: null | number; Points?: null | Array<{ AtStep?: null | number; Value?: null | number; [key: string]: unknown; }>; Interpolation?: null | 'Geometric' | 'Step' | 'Linear'; TailGrowthRate?: null | number; MinResult?: null | number; MaxResult?: null | number; [key: string]: unknown; }; FlatBonusCurve?: null | { Base?: null | number; Shape?: null | 'Flat' | 'PerStep' | 'PerStepRate' | 'Geometric' | 'Table' | 'TableAbsolute'; PerStep?: null | number; PerStepRate?: null | number; GrowthRate?: null | number; Points?: null | Array<{ AtStep?: null | number; Value?: null | number; [key: string]: unknown; }>; Interpolation?: null | 'Geometric' | 'Step' | 'Linear'; TailGrowthRate?: null | number; MinResult?: null | number; MaxResult?: null | number; [key: string]: unknown; }; PercentBonusCurve?: null | { Base?: null | number; Shape?: null | 'Flat' | 'PerStep' | 'PerStepRate' | 'Geometric' | 'Table' | 'TableAbsolute'; PerStep?: null | number; PerStepRate?: null | number; GrowthRate?: null | number; Points?: null | Array<{ AtStep?: null | number; Value?: null | number; [key: string]: unknown; }>; Interpolation?: null | 'Geometric' | 'Step' | 'Linear'; TailGrowthRate?: null | number; MinResult?: null | number; MaxResult?: null | number; [key: string]: unknown; }; PowerCurve?: null | { Base?: null | number; Shape?: null | 'Flat' | 'PerStep' | 'PerStepRate' | 'Geometric' | 'Table' | 'TableAbsolute'; PerStep?: null | number; PerStepRate?: null | number; GrowthRate?: null | number; Points?: null | Array<{ AtStep?: null | number; Value?: null | number; [key: string]: unknown; }>; Interpolation?: null | 'Geometric' | 'Step' | 'Linear'; TailGrowthRate?: null | number; MinResult?: null | number; MaxResult?: null | number; [key: string]: unknown; }; Fodder?: null | ItemUpgradeFodder; [key: string]: unknown; };
|
|
3973
|
-
type ItemMetadata = { RarityID?: null | string; CollectionID?: null | string; AuthorID?: null | string; [key: string]: unknown; };
|
|
3974
|
-
type ItemDefinition = { ItemID: string; CatalogID: string; ItemClass?: null | string; DisplayName?: null | string; Description?: null | string; Tags?: null | Array<string>; CustomData?: null | Record<string, string>; IsStackable?: null | boolean; IsTradable?: null | boolean; Weight?: null | number; AssetPaths?: null | Record<string, string>; NFT?: null | NFTModel; Stats?: null | ItemStats; Equipment?: null | ItemEquipment; Upgrade?: null | ItemUpgrade; Metadata?: null | ItemMetadata; ExpirationDurationSeconds?: null | number; [key: string]: unknown; };
|
|
3975
|
-
/** Catalog: a set of items of one thematic group. Key of `Items` is ItemID. */
|
|
3976
|
-
interface ItemCatalog {
|
|
3977
|
-
Items?: Record<string, ItemDefinition> | null;
|
|
3978
|
-
}
|
|
3979
|
-
/** Root container for all item catalogs of a title. Key of `Catalogs` is CatalogID. */
|
|
3980
|
-
interface ItemDefinitions {
|
|
3981
|
-
Catalogs?: Record<string, ItemCatalog> | null;
|
|
3982
|
-
}
|
|
4721
|
+
type AuthenticationAction = (typeof AuthenticationAction)[keyof typeof AuthenticationAction];
|
|
3983
4722
|
|
|
3984
4723
|
declare const CommunityParticipationMode: {
|
|
3985
4724
|
/** Anyone who passes the gate is in, immediately. */
|
|
@@ -4026,243 +4765,36 @@ declare const CommunityMarketingAction: {
|
|
|
4026
4765
|
readonly Claim: "Claim";
|
|
4027
4766
|
/** Crypto rewards only — see {@link CommunityPayoutCurrencyKind.CryptoCurrency}. */
|
|
4028
4767
|
readonly WithdrawCryptoReward: "WithdrawCryptoReward";
|
|
4029
|
-
/** Evaluate the publisher's join requirements and, on success, join. */
|
|
4030
|
-
readonly CheckJoinEligibility: "CheckJoinEligibility";
|
|
4031
|
-
};
|
|
4032
|
-
type CommunityMarketingAction = (typeof CommunityMarketingAction)[keyof typeof CommunityMarketingAction];
|
|
4033
|
-
interface CommunityMarketingRequest extends BaseRequest {
|
|
4034
|
-
/** Campaign to read or to claim. */
|
|
4035
|
-
CampaignID?: string;
|
|
4036
|
-
/** Payout history page size. 0 = module default. */
|
|
4037
|
-
Limit?: number;
|
|
4038
|
-
/**
|
|
4039
|
-
* Crypto withdrawal only: how much to send. Empty = everything approved and not yet paid.
|
|
4040
|
-
*
|
|
4041
|
-
* ⚠ A STRING, in the invariant culture — same as an ordinary token withdrawal. A `decimal` in
|
|
4042
|
-
* JSON is parsed differently by locale, and "12.5" would arrive as 125.
|
|
4043
|
-
*/
|
|
4044
|
-
Amount?: string;
|
|
4045
|
-
/** Crypto withdrawal only: the wallet the reward is sent to. */
|
|
4046
|
-
WalletAddress?: string;
|
|
4047
|
-
}
|
|
4048
|
-
type CommunityCampaignSummary = z.output<typeof zCommunityCampaignSummary>;
|
|
4049
|
-
type CommunityMarketingState = z.output<typeof zCommunityMarketingState>;
|
|
4050
|
-
type CommunityAccrualLine = z.output<typeof zCommunityAccrualLine>;
|
|
4051
|
-
type CommunityEarningsLine = z.output<typeof zCommunityEarningsLine>;
|
|
4052
|
-
type CommunityPayoutSummary = z.output<typeof zCommunityPayoutSummary>;
|
|
4053
|
-
type CommunityEarningsResponse = z.output<typeof zCommunityEarningsResponse>;
|
|
4054
|
-
type CommunityClaimResponse = z.output<typeof zCommunityClaimResponse>;
|
|
4055
|
-
type CommunityEligibilityCondition = z.output<typeof zCommunityEligibilityCondition>;
|
|
4056
|
-
type CommunityEligibilityResponse = z.output<typeof zCommunityEligibilityResponse>;
|
|
4057
|
-
type CommunitySolanaWithdrawalSignature = z.output<typeof zCommunitySolanaWithdrawalSignature>;
|
|
4058
|
-
type CommunityWithdrawalResponse = z.output<typeof zCommunityWithdrawalResponse>;
|
|
4059
|
-
type BonusWindowConfig = { Schedule?: null | Array<{ Order?: null | number; Type?: null | string; DurationSec?: null | number; BonusMultiplier?: null | number; [key: string]: unknown; }>; RepeatCycle?: null | boolean; MaxCycles?: null | number; [key: string]: unknown; };
|
|
4060
|
-
type BonusWindowState = { IsActive?: null | boolean; CurrentPhaseEndUtc?: null | string; NextBonusStartUtc?: null | string; CurrentCycleIndex?: null | number; CurrentPhaseIndex?: null | number; ActiveBonusMultiplier?: null | number; [key: string]: unknown; };
|
|
4061
|
-
/**
|
|
4062
|
-
* Container of preset wiring for event content — one PresetBinding per block. Inline data
|
|
4063
|
-
* (Milestones) lives on EventContent. null = presets unused.
|
|
4064
|
-
*/
|
|
4065
|
-
interface TimedEventPresetBindings {
|
|
4066
|
-
Milestones?: PresetBinding | null;
|
|
4067
|
-
}
|
|
4068
|
-
/** Event content: display, token, sources, rewards, milestones, bonus window. */
|
|
4069
|
-
interface EventContent {
|
|
4070
|
-
DisplayName?: string | null;
|
|
4071
|
-
Description?: string | null;
|
|
4072
|
-
AssetPaths?: Record<string, string> | null;
|
|
4073
|
-
Category?: string | null;
|
|
4074
|
-
Token?: EventTokenDefinition | null;
|
|
4075
|
-
TokenSources?: TriggerSource[] | null;
|
|
4076
|
-
ClaimMode?: string | null;
|
|
4077
|
-
Milestones?: Record<string, MilestoneDefinition> | null;
|
|
4078
|
-
/** Container of content preset wiring (milestones). null = presets unused. */
|
|
4079
|
-
Presets?: TimedEventPresetBindings | null;
|
|
4080
|
-
BonusWindow?: BonusWindowConfig | null;
|
|
4081
|
-
}
|
|
4082
|
-
/** One event inside a cyclic chain (dates computed from AnchorUtc + DurationSec). */
|
|
4083
|
-
interface ChainedEventDefinition {
|
|
4084
|
-
ChainedEventID?: string | null;
|
|
4085
|
-
Order?: number | null;
|
|
4086
|
-
DurationSec?: number | null;
|
|
4087
|
-
Content?: EventContent | null;
|
|
4088
|
-
ClaimGraceHours?: number | null;
|
|
4089
|
-
CustomParams?: Record<string, string> | null;
|
|
4090
|
-
}
|
|
4091
|
-
/** Definition of a single event (Scheduled single-window or Chained phase-chain). */
|
|
4092
|
-
interface TimedEventDefinition {
|
|
4093
|
-
TimedEventID?: string | null;
|
|
4094
|
-
DisplayName?: string | null;
|
|
4095
|
-
Description?: string | null;
|
|
4096
|
-
AssetPaths?: Record<string, string> | null;
|
|
4097
|
-
Schedule?: ScheduleSpec | null;
|
|
4098
|
-
Content?: EventContent | null;
|
|
4099
|
-
Events?: ChainedEventDefinition[] | null;
|
|
4100
|
-
Gate?: SegmentGate | null;
|
|
4101
|
-
CustomParams?: Record<string, string> | null;
|
|
4102
|
-
}
|
|
4103
|
-
type LimitedTimeEventsGlobalSettings = { MaxConcurrentEvents?: null | number; [key: string]: unknown; };
|
|
4104
|
-
/** Registry of reusable event presets (milestones). Phases/events reference them via EventContent.Presets. */
|
|
4105
|
-
interface TimedEventPresetRegistry {
|
|
4106
|
-
Milestones?: Record<string, MilestoneSet> | null;
|
|
4107
|
-
}
|
|
4108
|
-
/** Root config of the limited-time events system, returned by getDefinitions(). */
|
|
4109
|
-
interface TimedEventDefinitions {
|
|
4110
|
-
Definitions?: Record<string, TimedEventDefinition> | null;
|
|
4111
|
-
Settings?: LimitedTimeEventsGlobalSettings | null;
|
|
4112
|
-
/** Registry of reusable event presets (milestones). null = unused. */
|
|
4113
|
-
Presets?: TimedEventPresetRegistry | null;
|
|
4114
|
-
}
|
|
4115
|
-
interface ActiveEventInfo {
|
|
4116
|
-
Type?: ScheduleMode;
|
|
4117
|
-
TimedEventID?: string;
|
|
4118
|
-
CurrentChainedEventID?: string | null;
|
|
4119
|
-
Content?: EventContent | null;
|
|
4120
|
-
Progress?: UserEventTokenProgress | null;
|
|
4121
|
-
ComputedStartUtc?: string | null;
|
|
4122
|
-
ComputedEndUtc?: string | null;
|
|
4123
|
-
CanEarn?: boolean | null;
|
|
4124
|
-
CanClaim?: boolean | null;
|
|
4125
|
-
NextMilestone?: MilestoneDefinition | null;
|
|
4126
|
-
BonusWindow?: BonusWindowState | null;
|
|
4127
|
-
CurrentCycleIndex?: number | null;
|
|
4128
|
-
/** Chained-mode only: this event's 1-based position within the chain. */
|
|
4129
|
-
CurrentEventOrder?: number | null;
|
|
4130
|
-
/** Chained-mode only: total number of events in the chain. */
|
|
4131
|
-
TotalEventsInChain?: number | null;
|
|
4132
|
-
}
|
|
4133
|
-
interface GetActiveEventsResponse {
|
|
4134
|
-
ActiveEvents?: ActiveEventInfo[] | null;
|
|
4135
|
-
}
|
|
4136
|
-
type UserTimedEventStateResponse = { Tokens?: null | Record<string, UserEventTokenProgress>; };
|
|
4137
|
-
type EventTokenSpendResponse = { Type?: null | 'Scheduled' | 'Cyclic' | 'Chained'; LteID?: null | string; Resources?: null | ResourceOperation; };
|
|
4138
|
-
type EventMilestoneClaimResponse = { Type?: null | 'Scheduled' | 'Cyclic' | 'Chained'; LteID?: null | string; MilestoneID?: null | string; Rewards?: null | ResourceOperation; Inventory?: null | InventoryDelta; };
|
|
4139
|
-
type EventTokenGrantResponse = { Type?: null | 'Scheduled' | 'Cyclic' | 'Chained'; LteID?: null | string; Resources?: null | ResourceOperation; };
|
|
4140
|
-
type ClaimMilestonesBatchResponse = Array<{ Id: string; Success: boolean; Error?: null | string; Data?: null | EventMilestoneClaimResponse; }>;
|
|
4141
|
-
type SpendTokensBatchResponse = Array<{ Id: string; Success: boolean; Error?: null | string; Data?: null | EventTokenSpendResponse; }>;
|
|
4142
|
-
type GrantTokensBatchResponse = Array<{ Id: string; Success: boolean; Error?: null | string; Data?: null | EventTokenGrantResponse; }>;
|
|
4143
|
-
/** Addresses one event instance in a batch request (Type+LteID, optionally CycleIndex/ChainedEventID). */
|
|
4144
|
-
interface TimedEventInstanceRef {
|
|
4145
|
-
Type?: ScheduleMode;
|
|
4146
|
-
LteID?: string;
|
|
4147
|
-
CycleIndex?: number;
|
|
4148
|
-
ChainedEventID?: string;
|
|
4149
|
-
}
|
|
4150
|
-
/** One milestone claim in a batch (for ClaimMilestonesBatch). */
|
|
4151
|
-
interface TimedEventMilestoneRef extends TimedEventInstanceRef {
|
|
4152
|
-
MilestoneID?: string;
|
|
4153
|
-
}
|
|
4154
|
-
/** One token spend in a batch (for SpendTokensBatch). */
|
|
4155
|
-
interface TimedEventSpendRef extends TimedEventInstanceRef {
|
|
4156
|
-
SpendAmount?: number;
|
|
4157
|
-
RelatedEntityID?: string;
|
|
4158
|
-
}
|
|
4159
|
-
/** One token grant in a batch (for GrantTokensBatch). */
|
|
4160
|
-
interface TimedEventGrantRef extends TimedEventInstanceRef {
|
|
4161
|
-
SourceType?: string;
|
|
4162
|
-
Outcome?: string;
|
|
4163
|
-
SourceParams?: Record<string, string>;
|
|
4164
|
-
AmountOverride?: number;
|
|
4165
|
-
RollMultiplier?: number;
|
|
4166
|
-
RelatedEntityID?: string;
|
|
4167
|
-
}
|
|
4168
|
-
interface TimedEventRequest extends BaseRequest {
|
|
4169
|
-
Type?: ScheduleMode;
|
|
4170
|
-
LteID?: string;
|
|
4171
|
-
CycleIndex?: number;
|
|
4172
|
-
ChainedEventID?: string;
|
|
4173
|
-
SourceType?: string;
|
|
4174
|
-
AmountOverride?: number;
|
|
4175
|
-
SourceParams?: Record<string, string>;
|
|
4176
|
-
SpendAmount?: number;
|
|
4177
|
-
MilestoneID?: string;
|
|
4178
|
-
Outcome?: string;
|
|
4179
|
-
RollMultiplier?: number;
|
|
4180
|
-
/** ClaimMilestonesBatch: milestones to claim (deduped by Type+LteID+instance+MilestoneID). */
|
|
4181
|
-
Milestones?: TimedEventMilestoneRef[];
|
|
4182
|
-
/** ClaimAllMilestones: event instances to sweep. Null/empty = all active events. */
|
|
4183
|
-
Events?: TimedEventInstanceRef[];
|
|
4184
|
-
/** SpendTokensBatch: spends to apply (deduped by Type+LteID+instance). */
|
|
4185
|
-
Spends?: TimedEventSpendRef[];
|
|
4186
|
-
/** GrantTokensBatch: grants to apply (deduped by event address). */
|
|
4187
|
-
Grants?: TimedEventGrantRef[];
|
|
4188
|
-
}
|
|
4189
|
-
declare const TimedEventAction: {
|
|
4190
|
-
readonly GetActiveEvents: "GetActiveEvents";
|
|
4191
|
-
readonly GrantTokens: "GrantTokens";
|
|
4192
|
-
readonly SpendTokens: "SpendTokens";
|
|
4193
|
-
readonly ClaimMilestone: "ClaimMilestone";
|
|
4194
|
-
readonly GetDefinitions: "GetDefinitions";
|
|
4195
|
-
readonly GetUserLteState: "GetUserLteState";
|
|
4196
|
-
readonly ClaimMilestonesBatch: "ClaimMilestonesBatch";
|
|
4197
|
-
readonly ClaimAllMilestones: "ClaimAllMilestones";
|
|
4198
|
-
readonly SpendTokensBatch: "SpendTokensBatch";
|
|
4199
|
-
readonly GrantTokensBatch: "GrantTokensBatch";
|
|
4200
|
-
};
|
|
4201
|
-
type TimedEventAction = (typeof TimedEventAction)[keyof typeof TimedEventAction];
|
|
4202
|
-
|
|
4203
|
-
declare const CraftType: {
|
|
4204
|
-
readonly TradeUpRarity: "TradeUpRarity";
|
|
4205
|
-
readonly TradeUpCollection: "TradeUpCollection";
|
|
4206
|
-
};
|
|
4207
|
-
type CraftType = (typeof CraftType)[keyof typeof CraftType];
|
|
4208
|
-
/** How the output level is derived from the levels of the burned inputs. */
|
|
4209
|
-
declare const CraftOutputLevelMode: {
|
|
4210
|
-
/** Input levels don't matter — the output is always level 1 (legacy). */
|
|
4211
|
-
readonly None: "None";
|
|
4212
|
-
/** Level of the weakest input of the craft. */
|
|
4213
|
-
readonly Min: "Min";
|
|
4214
|
-
/** Average of the craft's input levels, rounded DOWN. */
|
|
4215
|
-
readonly Average: "Average";
|
|
4216
|
-
/** Level of the strongest input of the craft. */
|
|
4217
|
-
readonly Max: "Max";
|
|
4218
|
-
};
|
|
4219
|
-
type CraftOutputLevelMode = (typeof CraftOutputLevelMode)[keyof typeof CraftOutputLevelMode];
|
|
4220
|
-
/** Which unstackable input instances a craft burns. */
|
|
4221
|
-
declare const CraftInputSelectionMode: {
|
|
4222
|
-
/** Only non-upgraded (Level ≤ 1) instances, oldest first (legacy). */
|
|
4223
|
-
readonly ProtectLeveled: "ProtectLeveled";
|
|
4224
|
-
/** The client names the instances via `inputInstanceIDs`; without them — ProtectLeveled. */
|
|
4225
|
-
readonly ClientSelected: "ClientSelected";
|
|
4226
|
-
/** The server picks, weakest first: upgraded copies go only when fresh ones run out. */
|
|
4227
|
-
readonly LowestLevelFirst: "LowestLevelFirst";
|
|
4228
|
-
/** The server picks, strongest first. */
|
|
4229
|
-
readonly HighestLevelFirst: "HighestLevelFirst";
|
|
4230
|
-
};
|
|
4231
|
-
type CraftInputSelectionMode = (typeof CraftInputSelectionMode)[keyof typeof CraftInputSelectionMode];
|
|
4232
|
-
/** What happens when the derived level exceeds the output item's `Upgrade.MaxLevel`. */
|
|
4233
|
-
declare const CraftOutputLevelOverflow: {
|
|
4234
|
-
/** Lower the level to the output's MaxLevel. */
|
|
4235
|
-
readonly Clamp: "Clamp";
|
|
4236
|
-
/** Refuse the craft (checked against the lowest MaxLevel of the output pool, before the roll). */
|
|
4237
|
-
readonly Reject: "Reject";
|
|
4768
|
+
/** Evaluate the publisher's join requirements and, on success, join. */
|
|
4769
|
+
readonly CheckJoinEligibility: "CheckJoinEligibility";
|
|
4238
4770
|
};
|
|
4239
|
-
type
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
interface CraftDefinitions {
|
|
4246
|
-
Definitions?: Record<string, CraftDefinition> | null;
|
|
4247
|
-
}
|
|
4248
|
-
type CraftDefinitionsResponse = { ServerTimeUtc?: null | string; CraftDefinitions?: null | CraftDefinitions; };
|
|
4249
|
-
interface CraftRequest extends BaseRequest {
|
|
4250
|
-
CraftID?: string;
|
|
4251
|
-
Count?: number;
|
|
4252
|
-
SelectedOptionID?: string;
|
|
4253
|
-
/** Template of catalog ItemIDs, exactly RequiredItemCount long; the server repeats it Count times. */
|
|
4254
|
-
InputItemIDs?: string[];
|
|
4771
|
+
type CommunityMarketingAction = (typeof CommunityMarketingAction)[keyof typeof CommunityMarketingAction];
|
|
4772
|
+
interface CommunityMarketingRequest extends BaseRequest {
|
|
4773
|
+
/** Campaign to read or to claim. */
|
|
4774
|
+
CampaignID?: string;
|
|
4775
|
+
/** Payout history page size. 0 = module default. */
|
|
4776
|
+
Limit?: number;
|
|
4255
4777
|
/**
|
|
4256
|
-
*
|
|
4257
|
-
*
|
|
4778
|
+
* Crypto withdrawal only: how much to send. Empty = everything approved and not yet paid.
|
|
4779
|
+
*
|
|
4780
|
+
* ⚠ A STRING, in the invariant culture — same as an ordinary token withdrawal. A `decimal` in
|
|
4781
|
+
* JSON is parsed differently by locale, and "12.5" would arrive as 125.
|
|
4258
4782
|
*/
|
|
4259
|
-
|
|
4783
|
+
Amount?: string;
|
|
4784
|
+
/** Crypto withdrawal only: the wallet the reward is sent to. */
|
|
4785
|
+
WalletAddress?: string;
|
|
4260
4786
|
}
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
type
|
|
4787
|
+
type CommunityCampaignSummary = z.output<typeof zCommunityCampaignSummary>;
|
|
4788
|
+
type CommunityMarketingState = z.output<typeof zCommunityMarketingState>;
|
|
4789
|
+
type CommunityAccrualLine = z.output<typeof zCommunityAccrualLine>;
|
|
4790
|
+
type CommunityEarningsLine = z.output<typeof zCommunityEarningsLine>;
|
|
4791
|
+
type CommunityPayoutSummary = z.output<typeof zCommunityPayoutSummary>;
|
|
4792
|
+
type CommunityEarningsResponse = z.output<typeof zCommunityEarningsResponse>;
|
|
4793
|
+
type CommunityClaimResponse = z.output<typeof zCommunityClaimResponse>;
|
|
4794
|
+
type CommunityEligibilityCondition = z.output<typeof zCommunityEligibilityCondition>;
|
|
4795
|
+
type CommunityEligibilityResponse = z.output<typeof zCommunityEligibilityResponse>;
|
|
4796
|
+
type CommunitySolanaWithdrawalSignature = z.output<typeof zCommunitySolanaWithdrawalSignature>;
|
|
4797
|
+
type CommunityWithdrawalResponse = z.output<typeof zCommunityWithdrawalResponse>;
|
|
4266
4798
|
|
|
4267
4799
|
/** Generation modality of a feature. Determines which generate action the feature accepts. */
|
|
4268
4800
|
declare const AIModality: {
|
|
@@ -4403,318 +4935,100 @@ interface AIMusicInput {
|
|
|
4403
4935
|
/** `"mp3"` / `"wav"`. */
|
|
4404
4936
|
Format?: string;
|
|
4405
4937
|
}
|
|
4406
|
-
interface AIThreeDInput {
|
|
4407
|
-
Prompt?: string;
|
|
4408
|
-
/** Source image for an `image-to-3d` feature. */
|
|
4409
|
-
Image?: AIInputImage;
|
|
4410
|
-
/** `"realistic"` / `"sculpture"`. */
|
|
4411
|
-
ArtStyle?: string;
|
|
4412
|
-
/** `"glb"` / `"fbx"` / `"obj"` / `"usdz"`. */
|
|
4413
|
-
Format?: string;
|
|
4414
|
-
}
|
|
4415
|
-
/** Filter + page of the player's generation history (`listGenerations`). */
|
|
4416
|
-
interface AIHistoryQuery {
|
|
4417
|
-
Modality?: AIModality;
|
|
4418
|
-
FeatureKey?: string;
|
|
4419
|
-
/** `"pending"` / `"running"` / `"completed"` / `"failed"`. Absent = all. */
|
|
4420
|
-
Status?: string;
|
|
4421
|
-
Skip?: number;
|
|
4422
|
-
/** 1..50; the server defaults to 20. */
|
|
4423
|
-
Limit?: number;
|
|
4424
|
-
}
|
|
4425
|
-
/** Request envelope of every AI action. Fields are filled per action. */
|
|
4426
|
-
interface AIRequest extends BaseRequest {
|
|
4427
|
-
/** Feature key from the title's AI config. Required by every generate action. */
|
|
4428
|
-
FeatureKey?: string;
|
|
4429
|
-
/** Payment option (`PriceOption.OptionID`) the player pays with. Absent = first available. */
|
|
4430
|
-
SelectedOptionID?: string;
|
|
4431
|
-
/**
|
|
4432
|
-
* Store receipt. Required exactly when the chosen option is paid with a store purchase (a
|
|
4433
|
-
* `Purchase` entry) — one purchase pays for exactly one generation.
|
|
4434
|
-
*/
|
|
4435
|
-
Payment?: PaymentProof;
|
|
4436
|
-
Text?: AITextInput;
|
|
4437
|
-
Image?: AIImageInput;
|
|
4438
|
-
ImageEdit?: AIImageEditInput;
|
|
4439
|
-
Video?: AIVideoInput;
|
|
4440
|
-
Audio?: AIAudioInput;
|
|
4441
|
-
Music?: AIMusicInput;
|
|
4442
|
-
ThreeD?: AIThreeDInput;
|
|
4443
|
-
/** For GetGeneration and for polling jobs (GetText / GetImage / GetAudio / GetMusic / GetVideo / GetThreeD). */
|
|
4444
|
-
GenerationID?: string;
|
|
4445
|
-
/** ListGenerations only. */
|
|
4446
|
-
Query?: AIHistoryQuery;
|
|
4447
|
-
}
|
|
4448
|
-
type AIGenerationAssetView = { Url?: null | string; ContentType?: null | string; Variant?: null | string; };
|
|
4449
|
-
type AIGenerationErrorView = { Code?: null | string; Message?: null | string; };
|
|
4450
|
-
type AIGenerationView = { GenerationID: string; Status: string; FeatureKey?: null | string; Modality?: null | 'Text' | 'Image' | 'Video' | 'Audio' | 'Music' | 'ThreeD'; Progress?: null | number; OutputText?: null | string; Assets?: null | Array<AIGenerationAssetView>; Error?: null | AIGenerationErrorView; Charge?: null | ResourceOperation; PlayerRefunded?: null | boolean; PaymentSettled?: null | boolean; CreatedAt?: null | string; UpdatedAt?: null | string; };
|
|
4451
|
-
type AIGenerationListView = { Data?: null | Array<AIGenerationView>; Skip?: null | number; Limit?: null | number; };
|
|
4452
|
-
type AIPublicFeature = { Modality?: null | 'Text' | 'Image' | 'Video' | 'Audio' | 'Music' | 'ThreeD'; Async?: null | boolean; Limits?: null | LimitSpec; PriceOptions?: null | PriceOptions; Tags?: null | Array<string>; HistoryMessages?: null | number; MaxTokens?: null | number; AllowImages?: null | boolean; MaxInputImages?: null | number; MaxInputImageBytes?: null | number; AllowedImageTypes?: null | Array<string>; MaxImages?: null | number; AllowEdit?: null | boolean; AllowReferenceImage?: null | boolean; MaxPromptChars?: null | number; LockBehavior?: null | boolean; ImageSize?: null | string; VideoSize?: null | string; VideoSeconds?: null | number; Voice?: null | string; AudioFormat?: null | string; MusicFormat?: null | string; ThreeDOperation?: null | string; ArtStyle?: null | string; ThreeDFormat?: null | string; [key: string]: unknown; };
|
|
4453
|
-
/** The title's AI features, returned by `getDefinitions()`. */
|
|
4454
|
-
interface AIPublicDefinitions {
|
|
4455
|
-
/** Master switch. `false` = every generate request fails. */
|
|
4456
|
-
Enabled?: boolean | null;
|
|
4457
|
-
/** Key = `FeatureKey`. A missing key means the feature does not exist. */
|
|
4458
|
-
Features?: Record<string, AIPublicFeature> | null;
|
|
4459
|
-
}
|
|
4460
|
-
declare const AIAction: {
|
|
4461
|
-
/** Sanitized feature list of the title. */
|
|
4462
|
-
readonly GetDefinitions: "GetDefinitions";
|
|
4463
|
-
/** Text: submits the job (status `pending`) — every generation is a job, poll `GetText`. */
|
|
4464
|
-
readonly GenerateText: "GenerateText";
|
|
4465
|
-
/** Poll a text job. */
|
|
4466
|
-
readonly GetText: "GetText";
|
|
4467
|
-
readonly GenerateImage: "GenerateImage";
|
|
4468
|
-
readonly EditImage: "EditImage";
|
|
4469
|
-
/** Video: submits the job (status `running`). */
|
|
4470
|
-
readonly GenerateVideo: "GenerateVideo";
|
|
4471
|
-
/** Poll a video job. */
|
|
4472
|
-
readonly GetVideo: "GetVideo";
|
|
4473
|
-
/** Speech from text (TTS). */
|
|
4474
|
-
readonly GenerateAudio: "GenerateAudio";
|
|
4475
|
-
readonly GenerateMusic: "GenerateMusic";
|
|
4476
|
-
/** 3D: submits the job (status `running`). */
|
|
4477
|
-
readonly GenerateThreeD: "GenerateThreeD";
|
|
4478
|
-
/** Poll a 3D job. */
|
|
4479
|
-
readonly GetThreeD: "GetThreeD";
|
|
4480
|
-
readonly ListGenerations: "ListGenerations";
|
|
4481
|
-
readonly GetGeneration: "GetGeneration";
|
|
4482
|
-
/** Poll an image job (generation and edit). */
|
|
4483
|
-
readonly GetImage: "GetImage";
|
|
4484
|
-
/** Poll a speech job. */
|
|
4485
|
-
readonly GetAudio: "GetAudio";
|
|
4486
|
-
/** Poll a music job. */
|
|
4487
|
-
readonly GetMusic: "GetMusic";
|
|
4488
|
-
};
|
|
4489
|
-
type AIAction = (typeof AIAction)[keyof typeof AIAction];
|
|
4490
|
-
|
|
4491
|
-
/** Storage scope: who may write a record and whether it is cached server-side. */
|
|
4492
|
-
declare const TitleDataScope: {
|
|
4493
|
-
/** Authored configuration. Written by the publisher / AI Coder; cached with the title config. */
|
|
4494
|
-
readonly Static: "Static";
|
|
4495
|
-
/** Mutable title state. Written only by CloudCode scripts; never cached. */
|
|
4496
|
-
readonly Runtime: "Runtime";
|
|
4497
|
-
};
|
|
4498
|
-
type TitleDataScope = (typeof TitleDataScope)[keyof typeof TitleDataScope];
|
|
4499
|
-
/** Visibility bucket. Clients never write title data — the bucket only decides who reads. */
|
|
4500
|
-
declare const TitleDataBucket: {
|
|
4501
|
-
/** Readable by game clients. */
|
|
4502
|
-
readonly Public: "Public";
|
|
4503
|
-
/** Server and CloudCode only — never returned to a client. */
|
|
4504
|
-
readonly Private: "Private";
|
|
4505
|
-
};
|
|
4506
|
-
type TitleDataBucket = (typeof TitleDataBucket)[keyof typeof TitleDataBucket];
|
|
4507
|
-
type TitleCustomDataRecord = { Value?: null | string; UpdatedAt?: null | string; Version?: null | number; LastWriter?: null | 'Client' | 'Server' | 'System'; ExpiresAt?: null | string; [key: string]: unknown; };
|
|
4508
|
-
type GetPublicTitleDataResponse = { StaticVersion?: null | number; RuntimeVersion?: null | number; Static?: null | Record<string, TitleCustomDataRecord>; Runtime?: null | Record<string, TitleCustomDataRecord>; NotModified?: null | boolean; };
|
|
4509
|
-
type TitleCustomDataKeyDefinition = { KeyID: string; Scope?: null | 'Static' | 'Runtime'; Bucket?: null | 'Private' | 'Public'; ValueType?: null | 'String' | 'Int' | 'Bool' | 'Json'; MaxValueLengthBytes?: null | number; TtlSeconds?: null | number; DefaultValue?: null | string; Description?: null | string; [key: string]: unknown; };
|
|
4510
|
-
/** Title-data schema as served to clients: public-bucket keys plus the title's limits. */
|
|
4511
|
-
interface TitleCustomDataDefinitions {
|
|
4512
|
-
Keys?: Record<string, TitleCustomDataKeyDefinition> | null;
|
|
4513
|
-
DefaultMaxValueLengthBytes?: number | null;
|
|
4514
|
-
DefaultTtlSeconds?: number | null;
|
|
4515
|
-
MaxKeysPerBucket?: number | null;
|
|
4516
|
-
MaxTotalSizeBytes?: number | null;
|
|
4517
|
-
RejectUnregisteredKeys?: boolean | null;
|
|
4518
|
-
}
|
|
4519
|
-
interface TitleCustomDataRequest extends BaseRequest {
|
|
4520
|
-
KeyIDs?: string[];
|
|
4521
|
-
KnownRuntimeVersion?: number;
|
|
4522
|
-
}
|
|
4523
|
-
declare const TitleCustomDataAction: {
|
|
4524
|
-
readonly GetTitleCustomDataDefinitions: "GetTitleCustomDataDefinitions";
|
|
4525
|
-
readonly GetPublicTitleData: "GetPublicTitleData";
|
|
4526
|
-
readonly GetPublicTitleDataKeys: "GetPublicTitleDataKeys";
|
|
4527
|
-
};
|
|
4528
|
-
type TitleCustomDataAction = (typeof TitleCustomDataAction)[keyof typeof TitleCustomDataAction];
|
|
4529
|
-
type ExperimentVariant = { VariantID?: null | string; DisplayName?: null | string; Weight?: null | number; IsControl?: null | boolean; Params?: null | Record<string, string>; [key: string]: unknown; };
|
|
4530
|
-
/** What an experiment is judged by (engine `ExperimentGoalKind`). */
|
|
4531
|
-
declare const ExperimentGoalKind: {
|
|
4532
|
-
/** Share of participants who sent `EventName` at least once. */
|
|
4533
|
-
readonly EventConversion: "EventConversion";
|
|
4534
|
-
/** `EventName` count per participant. */
|
|
4535
|
-
readonly EventCountPerUser: "EventCountPerUser";
|
|
4536
|
-
/** Sum of `EventName` Value per participant (revenue, score). */
|
|
4537
|
-
readonly EventValuePerUser: "EventValuePerUser";
|
|
4538
|
-
readonly RetentionD1: "RetentionD1";
|
|
4539
|
-
readonly RetentionD7: "RetentionD7";
|
|
4540
|
-
readonly PayerConversion: "PayerConversion";
|
|
4541
|
-
readonly Arpu: "Arpu";
|
|
4542
|
-
};
|
|
4543
|
-
type ExperimentGoalKind = (typeof ExperimentGoalKind)[keyof typeof ExperimentGoalKind];
|
|
4544
|
-
type ExperimentGoal = { MetricID?: null | string; Kind?: null | string; EventName?: null | string; IsPrimary?: null | boolean; [key: string]: unknown; };
|
|
4545
|
-
type ExperimentDefinition = { ExperimentID?: null | string; DisplayName?: null | string; Description?: null | string; IsEnabled?: null | boolean; Schedule?: null | ScheduleSpec; Gate?: null | SegmentGate; Variants?: null | Array<ExperimentVariant>; Salt?: null | string; LayerID?: null | string; StickyAssignment?: null | boolean; CustomParams?: null | Record<string, string>; Goals?: null | Array<ExperimentGoal>; ActivationEvent?: null | string; RolloutVariantID?: null | string; [key: string]: unknown; };
|
|
4546
|
-
type ExperimentDefinitions = { Experiments?: null | Record<string, ExperimentDefinition>; [key: string]: unknown; };
|
|
4547
|
-
/** State of an experiment for this player. */
|
|
4548
|
-
declare const PlayerExperimentStatus: {
|
|
4549
|
-
/** Running: the variant is the player's own sticky assignment. */
|
|
4550
|
-
readonly Running: "Running";
|
|
4551
|
-
/** Disabled, out of its schedule or not in the publisher's plan: everyone gets control. */
|
|
4552
|
-
readonly Stopped: "Stopped";
|
|
4553
|
-
/** The winner was rolled out: everyone gets it. */
|
|
4554
|
-
readonly RolledOut: "RolledOut";
|
|
4555
|
-
};
|
|
4556
|
-
type PlayerExperimentStatus = (typeof PlayerExperimentStatus)[keyof typeof PlayerExperimentStatus];
|
|
4557
|
-
type PlayerExperimentView = { ExperimentID?: null | string; VariantID?: null | string; Status?: null | string; Params?: null | Record<string, string>; [key: string]: unknown; };
|
|
4558
|
-
type GetExperimentsResponse = { Experiments?: null | Array<PlayerExperimentView>; IsAbTestingAvailable?: null | boolean; [key: string]: unknown; };
|
|
4559
|
-
type ExperimentRequest = BaseRequest;
|
|
4560
|
-
declare const ExperimentAction: {
|
|
4561
|
-
readonly GetExperiments: "GetExperiments";
|
|
4562
|
-
};
|
|
4563
|
-
type ExperimentAction = (typeof ExperimentAction)[keyof typeof ExperimentAction];
|
|
4564
|
-
|
|
4565
|
-
/** How the title accepts event names (`Analytics.EventNaming`). */
|
|
4566
|
-
declare const AnalyticsEventNaming: {
|
|
4567
|
-
/** Any valid name is accepted and collected into the title catalog, up to the plan limit. */
|
|
4568
|
-
readonly Open: "Open";
|
|
4569
|
-
/** Only names declared in `Analytics.Events` are recorded; the rest are dropped. */
|
|
4570
|
-
readonly Declared: "Declared";
|
|
4571
|
-
};
|
|
4572
|
-
type AnalyticsEventNaming = (typeof AnalyticsEventNaming)[keyof typeof AnalyticsEventNaming];
|
|
4573
|
-
type AnalyticsEventDefinition = { DisplayName?: null | string; Description?: null | string; Blocked?: null | boolean; [key: string]: unknown; };
|
|
4574
|
-
type AnalyticsDimensionDefinition = { ParamName?: null | string; DisplayName?: null | string; [key: string]: unknown; };
|
|
4575
|
-
type AnalyticsDefinitions = { Enabled?: null | boolean; EventNaming?: null | string; Events?: null | Record<string, AnalyticsEventDefinition>; Dimensions?: null | Array<AnalyticsDimensionDefinition>; RetentionDays?: null | number; AutomaticEvents?: null | boolean; [key: string]: unknown; };
|
|
4576
|
-
/**
|
|
4577
|
-
* Events the SDK logs by itself. The `idos_` prefix is reserved — `logEvent` refuses it, so a
|
|
4578
|
-
* game cannot fake a session or an install.
|
|
4579
|
-
*/
|
|
4580
|
-
declare const AutomaticEvent: {
|
|
4581
|
-
/** The first launch on this device. */
|
|
4582
|
-
readonly FirstOpen: "idos_first_open";
|
|
4583
|
-
/** A new session: launch, or return after 30 minutes away (the same gap as playtime). */
|
|
4584
|
-
readonly SessionStart: "idos_session_start";
|
|
4585
|
-
/** The app version changed since the previous launch. */
|
|
4586
|
-
readonly AppUpdate: "idos_app_update";
|
|
4587
|
-
/** The OS version changed since the previous launch. */
|
|
4588
|
-
readonly OsUpdate: "idos_os_update";
|
|
4589
|
-
/** `logScreenView(name)`. */
|
|
4590
|
-
readonly ScreenView: "idos_screen_view";
|
|
4591
|
-
};
|
|
4592
|
-
type AutomaticEvent = (typeof AutomaticEvent)[keyof typeof AutomaticEvent];
|
|
4593
|
-
/** The server's rules, applied by the SDK up front so an invalid event never costs a call. */
|
|
4594
|
-
declare const AnalyticsLimits: {
|
|
4595
|
-
readonly maxEventsPerBatch: 50;
|
|
4596
|
-
readonly maxParams: 25;
|
|
4597
|
-
readonly maxStringValueLength: 100;
|
|
4598
|
-
/** Events older than this are dropped by the server as `TooOld`. */
|
|
4599
|
-
readonly maxEventAgeMs: number;
|
|
4600
|
-
readonly reservedPrefixes: readonly ["idos_", "firebase_", "google_", "ga_"];
|
|
4601
|
-
};
|
|
4602
|
-
/** Event and parameter names: a letter, then letters, digits or `_`, 40 characters at most. */
|
|
4603
|
-
declare const EVENT_NAME_PATTERN: RegExp;
|
|
4604
|
-
type AnalyticsParamValue = string | number | boolean;
|
|
4605
|
-
type AnalyticsParams = Record<string, AnalyticsParamValue>;
|
|
4606
|
-
/** One event on the wire. */
|
|
4607
|
-
interface AnalyticsEventInput {
|
|
4608
|
-
Name: string;
|
|
4609
|
-
Params?: AnalyticsParams;
|
|
4610
|
-
/** A number summed by the server — revenue, score. */
|
|
4611
|
-
Value?: number;
|
|
4612
|
-
/** ISO-8601 UTC time the event happened on the client. */
|
|
4613
|
-
ClientTimeUtc?: string;
|
|
4614
|
-
}
|
|
4615
|
-
/**
|
|
4616
|
-
* What the client knows and the server does not. Platform, country, new/returning and the
|
|
4617
|
-
* acquisition source are NOT here: the server takes them from the request header, the IP and the
|
|
4618
|
-
* player's own record, and ignores anything a client claims about them.
|
|
4619
|
-
*/
|
|
4620
|
-
interface AnalyticsClientContext {
|
|
4621
|
-
AppVersion?: string;
|
|
4622
|
-
OsName?: string;
|
|
4623
|
-
OsVersion?: string;
|
|
4624
|
-
/** `phone` / `tablet` / `desktop`. */
|
|
4625
|
-
DeviceCategory?: string;
|
|
4626
|
-
DeviceModel?: string;
|
|
4627
|
-
Language?: string;
|
|
4628
|
-
SdkVersion?: string;
|
|
4938
|
+
interface AIThreeDInput {
|
|
4939
|
+
Prompt?: string;
|
|
4940
|
+
/** Source image for an `image-to-3d` feature. */
|
|
4941
|
+
Image?: AIInputImage;
|
|
4942
|
+
/** `"realistic"` / `"sculpture"`. */
|
|
4943
|
+
ArtStyle?: string;
|
|
4944
|
+
/** `"glb"` / `"fbx"` / `"obj"` / `"usdz"`. */
|
|
4945
|
+
Format?: string;
|
|
4629
4946
|
}
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4947
|
+
/** Filter + page of the player's generation history (`listGenerations`). */
|
|
4948
|
+
interface AIHistoryQuery {
|
|
4949
|
+
Modality?: AIModality;
|
|
4950
|
+
FeatureKey?: string;
|
|
4951
|
+
/** `"pending"` / `"running"` / `"completed"` / `"failed"`. Absent = all. */
|
|
4952
|
+
Status?: string;
|
|
4953
|
+
Skip?: number;
|
|
4954
|
+
/** 1..50; the server defaults to 20. */
|
|
4955
|
+
Limit?: number;
|
|
4635
4956
|
}
|
|
4636
|
-
/**
|
|
4637
|
-
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
/** The title reached the event-name limit of its plan. */
|
|
4643
|
-
readonly CatalogFull: "CatalogFull";
|
|
4644
|
-
readonly TooOld: "TooOld";
|
|
4645
|
-
readonly AutomaticDisabled: "AutomaticDisabled";
|
|
4646
|
-
/** More than 1000 events from one player in one day. */
|
|
4647
|
-
readonly DailyLimit: "DailyLimit";
|
|
4648
|
-
};
|
|
4649
|
-
type DroppedEvent = { Index?: null | number; Name?: null | string; Reason?: null | string; [key: string]: unknown; };
|
|
4650
|
-
type LogEventsResponse = { Accepted?: null | number; Dropped?: null | Array<DroppedEvent>; Duplicate?: null | boolean; Disabled?: null | boolean; [key: string]: unknown; };
|
|
4651
|
-
declare const AnalyticsAction: {
|
|
4652
|
-
readonly LogEvents: "LogEvents";
|
|
4653
|
-
};
|
|
4654
|
-
type AnalyticsAction = (typeof AnalyticsAction)[keyof typeof AnalyticsAction];
|
|
4655
|
-
|
|
4656
|
-
interface TitlePublicConfigurationModel {
|
|
4657
|
-
/** Schema of the title-wide key-value store; the values live in client.titleCustomData. */
|
|
4658
|
-
TitleCustomData?: TitleCustomDataDefinitions | null;
|
|
4659
|
-
Character?: CharacterDefinitions | null;
|
|
4660
|
-
Item?: ItemDefinitions | null;
|
|
4661
|
-
Currency?: CurrencyDefinitions | null;
|
|
4662
|
-
Store?: StoreDefinitions | null;
|
|
4663
|
-
Lootbox?: LootboxDefinitions | null;
|
|
4664
|
-
Quest?: QuestDefinitions | null;
|
|
4665
|
-
TimedEvent?: TimedEventDefinitions | null;
|
|
4666
|
-
Leaderboard?: LeaderboardDefinitions | null;
|
|
4667
|
-
Season?: SeasonDefinitions | null;
|
|
4668
|
-
Reward?: RewardDefinitions | null;
|
|
4669
|
-
Collection?: CollectionDefinitions | null;
|
|
4670
|
-
Craft?: CraftDefinitions | null;
|
|
4671
|
-
DealOffer?: DealOfferDefinitions | null;
|
|
4672
|
-
Premium?: PremiumDefinitions | null;
|
|
4673
|
-
TimedBoost?: TimedBoostDefinitions | null;
|
|
4674
|
-
CoopEvent?: CoopEventDefinitions | null;
|
|
4675
|
-
GameLoop?: GameLoopDefinitions | null;
|
|
4676
|
-
Match?: MatchDefinitions | null;
|
|
4677
|
-
Experiment?: ExperimentDefinitions | null;
|
|
4678
|
-
Blockchain?: BlockchainDefinitions | null;
|
|
4679
|
-
Marketplace?: MarketplaceDefinitions | null;
|
|
4680
|
-
Multiplayer?: MultiplayerDefinitions | null;
|
|
4681
|
-
UserCustomData?: UserCustomDataDefinitions | null;
|
|
4682
|
-
Referral?: ReferralDefinitions | null;
|
|
4683
|
-
/**
|
|
4684
|
-
* Localization SETTINGS only — which locales exist, which is the fallback, the limits. The
|
|
4685
|
-
* translation TABLES are delivered separately, one file per locale; use `client.localization`
|
|
4686
|
-
* rather than reading anything out of here.
|
|
4687
|
-
*/
|
|
4688
|
-
Localization?: LocalizationDefinitions | null;
|
|
4957
|
+
/** Request envelope of every AI action. Fields are filled per action. */
|
|
4958
|
+
interface AIRequest extends BaseRequest {
|
|
4959
|
+
/** Feature key from the title's AI config. Required by every generate action. */
|
|
4960
|
+
FeatureKey?: string;
|
|
4961
|
+
/** Payment option (`PriceOption.OptionID`) the player pays with. Absent = first available. */
|
|
4962
|
+
SelectedOptionID?: string;
|
|
4689
4963
|
/**
|
|
4690
|
-
*
|
|
4691
|
-
*
|
|
4964
|
+
* Store receipt. Required exactly when the chosen option is paid with a store purchase (a
|
|
4965
|
+
* `Purchase` entry) — one purchase pays for exactly one generation.
|
|
4692
4966
|
*/
|
|
4693
|
-
|
|
4967
|
+
Payment?: PaymentProof;
|
|
4968
|
+
Text?: AITextInput;
|
|
4969
|
+
Image?: AIImageInput;
|
|
4970
|
+
ImageEdit?: AIImageEditInput;
|
|
4971
|
+
Video?: AIVideoInput;
|
|
4972
|
+
Audio?: AIAudioInput;
|
|
4973
|
+
Music?: AIMusicInput;
|
|
4974
|
+
ThreeD?: AIThreeDInput;
|
|
4975
|
+
/** For GetGeneration and for polling jobs (GetText / GetImage / GetAudio / GetMusic / GetVideo / GetThreeD). */
|
|
4976
|
+
GenerationID?: string;
|
|
4977
|
+
/** ListGenerations only. */
|
|
4978
|
+
Query?: AIHistoryQuery;
|
|
4694
4979
|
/**
|
|
4695
|
-
*
|
|
4696
|
-
*
|
|
4980
|
+
* Values of the feature's prompt-template variables (`AIPublicFeature.PromptVariables[].Name` →
|
|
4981
|
+
* value). A server hook may override them.
|
|
4697
4982
|
*/
|
|
4698
|
-
|
|
4983
|
+
Variables?: Record<string, string>;
|
|
4699
4984
|
/**
|
|
4700
|
-
*
|
|
4701
|
-
*
|
|
4985
|
+
* Free-form context (e.g. `{ npcId: "guard_3" }`) stored with the generation and handed to the
|
|
4986
|
+
* feature's CloudCode handlers on completion or failure. At most 8 KB; keys without `.` and `$`.
|
|
4702
4987
|
*/
|
|
4703
|
-
|
|
4704
|
-
[key: string]: unknown;
|
|
4988
|
+
Context?: Record<string, unknown>;
|
|
4705
4989
|
}
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
ExcludeFields?: string[];
|
|
4990
|
+
type AIGenerationAssetView = { Url?: null | string; ContentType?: null | string; Variant?: null | string; };
|
|
4991
|
+
type AIGenerationErrorView = { Code?: null | string; Message?: null | string; };
|
|
4992
|
+
type AIGenerationView = { GenerationID: string; Status: string; FeatureKey?: null | string; Modality?: null | 'Text' | 'Image' | 'Video' | 'Audio' | 'Music' | 'ThreeD'; Progress?: null | number; OutputText?: null | string; OutputJson?: null | Record<string, null | string | number | Array<null | string | number | Array<null | string | number | Array<null | string | number | Array<null | string | number | Array<null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | boolean> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<null | string | number | Array<null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | boolean> | boolean> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<null | string | number | Array<null | string | number | Array<null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | boolean> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<null | string | number | Array<null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | boolean> | boolean> | boolean> | boolean> | boolean>; Assets?: null | Array<AIGenerationAssetView>; Error?: null | AIGenerationErrorView; Charge?: null | ResourceOperation; PlayerRefunded?: null | boolean; Reward?: null | ResourceOperation; Context?: null | Record<string, null | string | number | Array<null | string | number | Array<null | string | number | Array<null | string | number | Array<null | string | number | Array<null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | boolean> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<null | string | number | Array<null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | boolean> | boolean> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<null | string | number | Array<null | string | number | Array<null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | boolean> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<null | string | number | Array<null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | Record<string, null | string | number | Array<null | string | number | Array<unknown> | Record<string, unknown> | boolean> | Record<string, null | string | number | Array<unknown> | Record<string, unknown> | boolean> | boolean> | boolean> | boolean> | boolean> | boolean> | boolean>; PaymentSettled?: null | boolean; CreatedAt?: null | string; UpdatedAt?: null | string; };
|
|
4993
|
+
type AIGenerationListView = { Data?: null | Array<AIGenerationView>; Skip?: null | number; Limit?: null | number; };
|
|
4994
|
+
type AIPublicFeature = { Modality?: null | 'Text' | 'Image' | 'Video' | 'Audio' | 'Music' | 'ThreeD'; Async?: null | boolean; Limits?: null | LimitSpec; PriceOptions?: null | PriceOptions; Tags?: null | Array<string>; HistoryMessages?: null | number; MaxTokens?: null | number; AllowImages?: null | boolean; MaxInputImages?: null | number; MaxInputImageBytes?: null | number; AllowedImageTypes?: null | Array<string>; MaxImages?: null | number; AllowEdit?: null | boolean; AllowReferenceImage?: null | boolean; MaxPromptChars?: null | number; LockBehavior?: null | boolean; ImageSize?: null | string; VideoSize?: null | string; VideoSeconds?: null | number; Voice?: null | string; AudioFormat?: null | string; MusicFormat?: null | string; ThreeDOperation?: null | string; ArtStyle?: null | string; ThreeDFormat?: null | string; Reward?: null | ResourceGrant; PromptVariables?: null | Array<{ Name?: null | string; Type?: null | string; Required?: null | boolean; MaxLength?: null | number; Enum?: null | Array<string>; [key: string]: unknown; }>; AllowFreePrompt?: null | boolean; [key: string]: unknown; };
|
|
4995
|
+
/** The title's AI features, returned by `getDefinitions()`. */
|
|
4996
|
+
interface AIPublicDefinitions {
|
|
4997
|
+
/** Master switch. `false` = every generate request fails. */
|
|
4998
|
+
Enabled?: boolean | null;
|
|
4999
|
+
/** Key = `FeatureKey`. A missing key means the feature does not exist. */
|
|
5000
|
+
Features?: Record<string, AIPublicFeature> | null;
|
|
4709
5001
|
}
|
|
4710
|
-
declare const
|
|
4711
|
-
|
|
4712
|
-
readonly
|
|
4713
|
-
|
|
4714
|
-
readonly
|
|
4715
|
-
|
|
5002
|
+
declare const AIAction: {
|
|
5003
|
+
/** Sanitized feature list of the title. */
|
|
5004
|
+
readonly GetDefinitions: "GetDefinitions";
|
|
5005
|
+
/** Text: submits the job (status `pending`) — every generation is a job, poll `GetText`. */
|
|
5006
|
+
readonly GenerateText: "GenerateText";
|
|
5007
|
+
/** Poll a text job. */
|
|
5008
|
+
readonly GetText: "GetText";
|
|
5009
|
+
readonly GenerateImage: "GenerateImage";
|
|
5010
|
+
readonly EditImage: "EditImage";
|
|
5011
|
+
/** Video: submits the job (status `running`). */
|
|
5012
|
+
readonly GenerateVideo: "GenerateVideo";
|
|
5013
|
+
/** Poll a video job. */
|
|
5014
|
+
readonly GetVideo: "GetVideo";
|
|
5015
|
+
/** Speech from text (TTS). */
|
|
5016
|
+
readonly GenerateAudio: "GenerateAudio";
|
|
5017
|
+
readonly GenerateMusic: "GenerateMusic";
|
|
5018
|
+
/** 3D: submits the job (status `running`). */
|
|
5019
|
+
readonly GenerateThreeD: "GenerateThreeD";
|
|
5020
|
+
/** Poll a 3D job. */
|
|
5021
|
+
readonly GetThreeD: "GetThreeD";
|
|
5022
|
+
readonly ListGenerations: "ListGenerations";
|
|
5023
|
+
readonly GetGeneration: "GetGeneration";
|
|
5024
|
+
/** Poll an image job (generation and edit). */
|
|
5025
|
+
readonly GetImage: "GetImage";
|
|
5026
|
+
/** Poll a speech job. */
|
|
5027
|
+
readonly GetAudio: "GetAudio";
|
|
5028
|
+
/** Poll a music job. */
|
|
5029
|
+
readonly GetMusic: "GetMusic";
|
|
4716
5030
|
};
|
|
4717
|
-
type
|
|
5031
|
+
type AIAction = (typeof AIAction)[keyof typeof AIAction];
|
|
4718
5032
|
|
|
4719
5033
|
interface SdkEvents {
|
|
4720
5034
|
"transport:busy": boolean;
|
|
@@ -5120,20 +5434,6 @@ interface SdkEvents {
|
|
|
5120
5434
|
"multiplayer:memberUnbanned": UnbanMemberResponse;
|
|
5121
5435
|
}
|
|
5122
5436
|
|
|
5123
|
-
/**
|
|
5124
|
-
* Хранилище, переживающее перезапуск игры. Нужно ровно для одной вещи — держать конфиг тайтла
|
|
5125
|
-
* между сессиями, чтобы не качать его заново на каждом заходе (см. TitleConfigCache).
|
|
5126
|
-
*
|
|
5127
|
-
* Интерфейс намеренно узкий и допускает как синхронную реализацию (localStorage), так и
|
|
5128
|
-
* асинхронную (IndexedDB, файловая система, PlayerPrefs в обёртке): вызывающий всегда делает
|
|
5129
|
-
* `await`, а синхронная реализация просто вернёт значение.
|
|
5130
|
-
*/
|
|
5131
|
-
interface ConfigStorage {
|
|
5132
|
-
get(key: string): Promise<string | null> | string | null;
|
|
5133
|
-
set(key: string, value: string): Promise<void> | void;
|
|
5134
|
-
remove(key: string): Promise<void> | void;
|
|
5135
|
-
}
|
|
5136
|
-
|
|
5137
5437
|
declare const DEFAULT_BASE_URL = "https://api.idosgames.com";
|
|
5138
5438
|
interface IDosGamesSettings {
|
|
5139
5439
|
readonly titleID: string;
|
|
@@ -5300,6 +5600,12 @@ declare class UserData {
|
|
|
5300
5600
|
get state(): UserState | null;
|
|
5301
5601
|
getCachedActiveEvents(): GetActiveEventsResponse | null;
|
|
5302
5602
|
clear(): void;
|
|
5603
|
+
/**
|
|
5604
|
+
* C# `decimal` goes out as a JSON NUMBER, while the cache type (and every reader of
|
|
5605
|
+
* `getCryptoCurrencyAmount`) holds a decimal STRING — the same as after `patchCryptoCurrencyDelta`. Left as it
|
|
5606
|
+
* arrives, a balance would be a number after login and a string after the first conversion.
|
|
5607
|
+
*/
|
|
5608
|
+
private static stringifyCryptoBalances;
|
|
5303
5609
|
applyUserState(state: UserState): void;
|
|
5304
5610
|
/**
|
|
5305
5611
|
* Точечная замена перечисленных контейнеров — для адресной выборки (`getUserState`), которая
|
|
@@ -5323,7 +5629,7 @@ declare class UserData {
|
|
|
5323
5629
|
applyResourcesWithDelta(op: ResourceOperation | null | undefined, delta: InventoryDelta | null | undefined, itemDefs?: ItemDefinitions, now?: Date): void;
|
|
5324
5630
|
private emitResourceChanges;
|
|
5325
5631
|
/** Decimal-precise crypto delta (port of PatchCryptoCurrencyDelta). */
|
|
5326
|
-
patchCryptoCurrencyDelta(currencyID: string, delta: Decimal | string | number, serverTimeUtc?: string): void;
|
|
5632
|
+
patchCryptoCurrencyDelta(currencyID: string, delta: Decimal | string | number, serverTimeUtc?: string, frozenDelta?: Decimal | string | number): void;
|
|
5327
5633
|
applyStore(data: UserStoreState | null): void;
|
|
5328
5634
|
patchStorePurchase(offerID: string, count: number, serverTimeUtc: string): void;
|
|
5329
5635
|
applyLootboxPityTriggers(lootboxID: string, triggeredPity: readonly LootboxPityTriggerResponse[] | null | undefined, count: number): void;
|
|
@@ -5358,7 +5664,13 @@ declare class UserData {
|
|
|
5358
5664
|
getQuestPointsProgress(cycleID: string): UserEventTokenProgress | null;
|
|
5359
5665
|
applyActiveEvents(data: GetActiveEventsResponse | null): void;
|
|
5360
5666
|
applyUserLteState(data: UserTimedEventStateResponse | null): void;
|
|
5361
|
-
|
|
5667
|
+
/**
|
|
5668
|
+
* Marks a milestone claimed. `tokenEntityID` (the server's `TokenEntityID` of the claim) names the ONE
|
|
5669
|
+
* instance bucket it was claimed in ("MainChain:2:1"): one base event can have several instances at once
|
|
5670
|
+
* (the active phase plus ones in their grace window), and marking every instance of the base would show a
|
|
5671
|
+
* milestone as taken in a phase where it was not. Without it — an older server — every instance is marked.
|
|
5672
|
+
*/
|
|
5673
|
+
patchTimedEventMilestoneClaimed(type: ScheduleMode, lteID: string, milestoneID: string, tokenEntityID?: string | null): void;
|
|
5362
5674
|
private patchActiveEventMilestoneClaimed;
|
|
5363
5675
|
private markMilestoneClaimed;
|
|
5364
5676
|
patchLeaderboardMyProgress(cycleDocID: string, data: GetMyProgressResponse): void;
|
|
@@ -5372,6 +5684,12 @@ declare class UserData {
|
|
|
5372
5684
|
patchSeasonClaimedTier(chainID: string, tierNumber: number): void;
|
|
5373
5685
|
private ensureSeasonState;
|
|
5374
5686
|
applyPremium(data: UserPremiumState | null): void;
|
|
5687
|
+
/**
|
|
5688
|
+
* An upgrade changes the level of an instance that may be WORN. The character keeps a copy of that level
|
|
5689
|
+
* on the equipped slot (`EquippedItem.Level`, kept in step by the server on every upgrade), so the copy in
|
|
5690
|
+
* the cache is refreshed too — otherwise a hero screen would show the old level next to the new inventory.
|
|
5691
|
+
*/
|
|
5692
|
+
patchEquippedItemLevel(itemInstanceID: string, level: number): void;
|
|
5375
5693
|
applyCharacter(characters: Record<string, CharacterModel> | null): void;
|
|
5376
5694
|
patchCharacter(characterID: string, patch: (character: CharacterModel) => void): void;
|
|
5377
5695
|
patchCharacterEquipment(characterID: string, slotID: string, item: EquippedItem | null): void;
|
|
@@ -5406,6 +5724,17 @@ declare class UserData {
|
|
|
5406
5724
|
patchSocialAcceptFriend(requesterUserID: string): void;
|
|
5407
5725
|
patchSocialRemoveIncomingRequest(requesterUserID: string): void;
|
|
5408
5726
|
patchSocialRemoveFriend(friendUserID: string): void;
|
|
5727
|
+
/**
|
|
5728
|
+
* The sizes of the player's social lists AFTER a friend action, as the server counted them
|
|
5729
|
+
* (`FriendActionResponse.Counters`). The local patches above only edit the cached arrays — without
|
|
5730
|
+
* this the server-sent `IncomingCount` stayed as it was at login, and the friends badge kept
|
|
5731
|
+
* showing a request the player had already accepted or declined.
|
|
5732
|
+
*/
|
|
5733
|
+
applySocialCounters(counters: {
|
|
5734
|
+
FriendsCount?: number | null;
|
|
5735
|
+
IncomingRequestsCount?: number | null;
|
|
5736
|
+
OutgoingRequestsCount?: number | null;
|
|
5737
|
+
} | null | undefined): void;
|
|
5409
5738
|
private ensureSocial;
|
|
5410
5739
|
applyTimedBoost(data: UserTimedBoostsState | null): void;
|
|
5411
5740
|
patchActiveTimedBoost(boost: ActiveTimedBoost, policy: TimedBoostStackingPolicy): void;
|
|
@@ -5421,34 +5750,17 @@ declare class UserData {
|
|
|
5421
5750
|
clearBoardPending(): void;
|
|
5422
5751
|
private ensureBoard;
|
|
5423
5752
|
applyBlockchainState(state: UserBlockchainState | null, cryptoBalances?: Record<string, UserCryptoCurrencyState> | null): void;
|
|
5753
|
+
/**
|
|
5754
|
+
* Applies what ONE blockchain call changed, as the server reports it (`StateDelta`): the signed crypto-balance
|
|
5755
|
+
* deltas and the pending withdrawals it added or removed. The delta is empty (`null`) on an idempotent replay —
|
|
5756
|
+
* the first answer already carried it — so nothing is applied twice.
|
|
5757
|
+
*/
|
|
5758
|
+
applyBlockchainStateDelta(delta: BlockchainStateDelta | null | undefined): void;
|
|
5424
5759
|
applyMarketplaceState(state: UserMarketplaceState | null): void;
|
|
5425
5760
|
getVirtualCurrencyAmount(currencyID: string): number;
|
|
5426
5761
|
getCryptoCurrencyAmount(currencyID: string): string;
|
|
5427
5762
|
}
|
|
5428
5763
|
|
|
5429
|
-
/**
|
|
5430
|
-
* Title public configuration cache (port of TitleConfig.cs). Phase 1 stores the raw config
|
|
5431
|
-
* and exposes only `itemDefinitions` (needed by the resource applier). Typed accessors and
|
|
5432
|
-
* `OnXxxUpdated` events for currencies/board/events arrive in Phase 2.
|
|
5433
|
-
*/
|
|
5434
|
-
declare class TitleConfig {
|
|
5435
|
-
private config;
|
|
5436
|
-
private readonly sections;
|
|
5437
|
-
private itemDefs;
|
|
5438
|
-
private currencyDefs;
|
|
5439
|
-
get titlePublicConfiguration(): TitlePublicConfigurationModel | null;
|
|
5440
|
-
/** Store a feature's definitions blob (port of the per-feature Config.PatchXxx setters). */
|
|
5441
|
-
patchSection(key: string, data: unknown): void;
|
|
5442
|
-
getSection<T>(key: string): T | undefined;
|
|
5443
|
-
applyTitlePublicConfiguration(data: unknown): void;
|
|
5444
|
-
/** Item catalog view used by the cache to classify stackable vs unstackable items. */
|
|
5445
|
-
get itemDefinitions(): ItemDefinitions | undefined;
|
|
5446
|
-
applyItemDefinitions(defs: ItemDefinitions): void;
|
|
5447
|
-
/** Currency catalog view (virtual + crypto definitions). */
|
|
5448
|
-
get currencyDefinitions(): CurrencyDefinitions | undefined;
|
|
5449
|
-
applyCurrencyDefinitions(defs: CurrencyDefinitions): void;
|
|
5450
|
-
}
|
|
5451
|
-
|
|
5452
5764
|
/** Local cache root (port of static IDosGamesData). An instance, not a global singleton. */
|
|
5453
5765
|
declare class IDosGamesData {
|
|
5454
5766
|
readonly user: UserData;
|
|
@@ -5712,6 +6024,8 @@ declare class UserService {
|
|
|
5712
6024
|
private cache?;
|
|
5713
6025
|
private get localizationCache();
|
|
5714
6026
|
private locCache?;
|
|
6027
|
+
private get sectionCache();
|
|
6028
|
+
private secCache?;
|
|
5715
6029
|
private get stateStore();
|
|
5716
6030
|
private versionStore?;
|
|
5717
6031
|
/**
|
|
@@ -5767,6 +6081,19 @@ declare class UserService {
|
|
|
5767
6081
|
* refresh doesn't wipe the active board.
|
|
5768
6082
|
*/
|
|
5769
6083
|
getClientStateExcept(excludeFields?: string[], excludeTitleFields?: string[]): Promise<OperationResult<ClientState>>;
|
|
6084
|
+
/**
|
|
6085
|
+
* Секции, которых нет в клиентской проекции конфига, но которые система дочитала своим
|
|
6086
|
+
* `GetDefinitions` (бусты, рынок, PvP, ИИ): поднимаются из хранилища, если конфиг с тех пор не
|
|
6087
|
+
* менялся, — и система не идёт за ними на каждом входе. Всё, что дочитают дальше, сохраняется
|
|
6088
|
+
* под этой же версией. Секции, которые проекция и так привозит, не хранятся: они уже в конфиге.
|
|
6089
|
+
*/
|
|
6090
|
+
private restoreSections;
|
|
6091
|
+
/**
|
|
6092
|
+
* Серверные выборки, которые вход принесёт сам (`ClientState.Views`): витрина, активные ивенты,
|
|
6093
|
+
* счётчики… — какие именно, решает центральный кэш (`loginViews` клиента). Ответ раскладывается
|
|
6094
|
+
* по кэшу после применения состояния, поэтому патчи выборок (сезон, кооп) ложатся на свежее.
|
|
6095
|
+
*/
|
|
6096
|
+
private prepareLoginViews;
|
|
5770
6097
|
/**
|
|
5771
6098
|
* Прикладывает к запросу локаль и версии уже сохранённых таблиц. Сервер по ним не станет
|
|
5772
6099
|
* присылать ссылки на то, что у клиента и так свежее.
|
|
@@ -5876,7 +6203,7 @@ declare class StoreService {
|
|
|
5876
6203
|
}): Promise<OperationResult<StorePurchaseResponse>>;
|
|
5877
6204
|
/** Buy several offers in one atomic operation. Each ref is `{ OfferID, Count }`. */
|
|
5878
6205
|
purchaseBatch(purchases: StorePurchaseRef[]): Promise<OperationResult<PurchaseBatchResponse>>;
|
|
5879
|
-
getDefinitions(): Promise<OperationResult<StoreDefinitions>>;
|
|
6206
|
+
getDefinitions(opts?: ReadOptions): Promise<OperationResult<StoreDefinitions>>;
|
|
5880
6207
|
/**
|
|
5881
6208
|
* Loads the shop as this player sees it right now, and caches it.
|
|
5882
6209
|
*
|
|
@@ -5887,7 +6214,13 @@ declare class StoreService {
|
|
|
5887
6214
|
*
|
|
5888
6215
|
* ⚠ Count timers down from `ServerTimeUtc`, not from the device clock.
|
|
5889
6216
|
*/
|
|
5890
|
-
|
|
6217
|
+
/**
|
|
6218
|
+
* The storefront resolved for this player — from the central cache while it is fresh (see
|
|
6219
|
+
* `STOREFRONT`), otherwise from the server. `forceRefresh` — always from the server.
|
|
6220
|
+
*/
|
|
6221
|
+
getStorefront(opts?: ReadOptions): Promise<OperationResult<GetStorefrontResponse>>;
|
|
6222
|
+
private fetchStorefront;
|
|
6223
|
+
private applyStorefront;
|
|
5891
6224
|
/** The last storefront loaded, or null. Reload it after a purchase and on a refresh timer. */
|
|
5892
6225
|
get cachedStorefront(): GetStorefrontResponse | null;
|
|
5893
6226
|
/**
|
|
@@ -5909,10 +6242,13 @@ declare const IapProductType: {
|
|
|
5909
6242
|
};
|
|
5910
6243
|
type IapProductType = (typeof IapProductType)[keyof typeof IapProductType];
|
|
5911
6244
|
type IapProductRules = { StartUtc?: null | string; EndUtc?: null | string; Gate?: null | SegmentGate; Limits?: null | LimitSpec; [key: string]: unknown; };
|
|
5912
|
-
type IapProductDefinition = { ProductID?: null | string; Name?: null | string; Type?: null | 'Subscription' | 'Consumable' | 'NonConsumable'; Enabled?: null | boolean; StoreProductIDs?: null | Record<string, string>; Rewards?: null | ResourceGrant; PriceUsdCents?: null | number; TelegramStarsPrice?: null | number; Rules?: null | IapProductRules; Refund?: null | { ResourceAction?: null | string; RevokeEntitlement?: null | boolean; BlockFuturePurchases?: null | boolean; [key: string]: unknown; }; AssetPaths?: null | Record<string, string>; CustomParams?: null | Record<string, string>; [key: string]: unknown; };
|
|
5913
|
-
type PurchaseDefinitions = { Enabled?: null | boolean; Products?: null | Record<string, IapProductDefinition>; [key: string]: unknown; };
|
|
5914
|
-
type IapProductPurchaseState = { ProductID?: null | string; TotalPurchases?: null | number; DailyPurchases?: null | number; DailyResetUtc?: null | string; LastPurchasedAt?: null | string; Owned?: null | boolean; Refunded?: null | boolean; PurchaseBlocked?: null | boolean; [key: string]: unknown; };
|
|
5915
|
-
type UserPurchaseState = { Products?: null | Record<string, IapProductPurchaseState>; LifetimeSpendUsdCents?: null | number; [key: string]: unknown; };
|
|
6245
|
+
type IapProductDefinition = { ProductID?: null | string; Name?: null | string; Type?: null | 'Subscription' | 'Consumable' | 'NonConsumable'; Enabled?: null | boolean; StoreProductIDs?: null | Record<string, string>; Rewards?: null | ResourceGrant; PriceUsdCents?: null | number; TelegramStarsPrice?: null | number; Rules?: null | IapProductRules; Refund?: null | { ResourceAction?: null | string; RevokeEntitlement?: null | boolean; BlockFuturePurchases?: null | boolean; [key: string]: unknown; }; AssetPaths?: null | Record<string, string>; CustomParams?: null | Record<string, string>; Subscription?: null | { PremiumID?: null | string; RenewalRewards?: null | ResourceGrant; FallbackDurationDays?: null | number; RevokeOnRefund?: null | boolean; [key: string]: unknown; }; Presets?: null | { Rewards?: null | PresetBinding; Rules?: null | PresetBinding; Refund?: null | PresetBinding; [key: string]: unknown; }; [key: string]: unknown; };
|
|
6246
|
+
type PurchaseDefinitions = { Enabled?: null | boolean; Products?: null | Record<string, IapProductDefinition>; Stores?: null | Record<string, { StoreID?: null | string; Enabled?: null | boolean; PackageName?: null | string; VerificationMode?: null | string; PlayPublicKey?: null | string; RequireCertificateChain?: null | boolean; SecretName?: null | string; IssuerID?: null | string; KeyID?: null | string; AcknowledgePurchases?: null | boolean; NotificationPackageName?: null | string; [key: string]: unknown; }>; Presets?: null | { Rewards?: null | Record<string, { Rewards?: null | ResourceGrant; [key: string]: unknown; }>; Rules?: null | Record<string, { Rules?: null | IapProductRules; [key: string]: unknown; }>; Refund?: null | Record<string, { Refund?: null | { ResourceAction?: null | string; RevokeEntitlement?: null | boolean; BlockFuturePurchases?: null | boolean; [key: string]: unknown; }; [key: string]: unknown; }>; [key: string]: unknown; }; Validation?: null | { MaxPurchaseAgeDays?: null | number; AllowSandbox?: null | boolean; RequirePackageMatch?: null | boolean; MaxReceiptsPerBatch?: null | number; RefundCheckHorizonDays?: null | number; RejectCrossUserReceipts?: null | boolean; [key: string]: unknown; }; Refund?: null | { ResourceAction?: null | string; RevokeEntitlement?: null | boolean; BlockFuturePurchases?: null | boolean; [key: string]: unknown; }; [key: string]: unknown; };
|
|
6247
|
+
type IapProductPurchaseState = { ProductID?: null | string; TotalPurchases?: null | number; DailyPurchases?: null | number; DailyResetUtc?: null | string; LastPurchasedAt?: null | string; Owned?: null | boolean; Refunded?: null | boolean; PurchaseBlocked?: null | boolean; Store?: null | string; LastTransactionID?: null | string; [key: string]: unknown; };
|
|
6248
|
+
type UserPurchaseState = { Products?: null | Record<string, IapProductPurchaseState>; LifetimeSpendUsdCents?: null | number; Subscriptions?: null | Record<string, { ProductID?: null | string; PremiumID?: null | string; Store?: null | string; OriginalTransactionID?: null | string; LastTransactionID?: null | string; ExpiresAt?: null | string; AutoRenew?: null | boolean; Status?: null | string; RenewalCount?: null | number; LastStoreCheckAt?: null | string; LastStoreCheckError?: null | string; UpdatedAt?: null | string; [key: string]: unknown; }>; LastRefundCheckAt?: null | string; TotalPurchases?: null | number; FirstPurchaseAt?: null | string; LastPurchaseAt?: null | string; [key: string]: unknown; };
|
|
6249
|
+
type IapProductAvailability = { ProductID: string; Available: boolean; Owned: boolean; Blocked: boolean; Reason?: null | string; StoreProductIDs?: null | Record<string, string>; [key: string]: unknown; };
|
|
6250
|
+
type PurchaseDefinitionsResponse = { ServerTimeUtc: string; Purchase?: null | PurchaseDefinitions; Availability?: null | Array<IapProductAvailability>; };
|
|
6251
|
+
type UserPurchaseStateResponse = { ServerTimeUtc: string; Purchase?: null | UserPurchaseState; };
|
|
5916
6252
|
/** How the server treated the receipt. */
|
|
5917
6253
|
declare const IapPurchaseStatus: {
|
|
5918
6254
|
readonly Granted: "Granted";
|
|
@@ -5920,7 +6256,7 @@ declare const IapPurchaseStatus: {
|
|
|
5920
6256
|
readonly AlreadyProcessed: "AlreadyProcessed";
|
|
5921
6257
|
};
|
|
5922
6258
|
type IapPurchaseStatus = (typeof IapPurchaseStatus)[keyof typeof IapPurchaseStatus];
|
|
5923
|
-
type PurchaseValidationResponse = { ServerTimeUtc: string; Store?: null | 'GooglePlay' | 'AppleAppStore' | 'TelegramStars'; ProductID?: null | string; TransactionID?: null | string; Status?: null | 'Granted' | 'Restored' | 'AlreadyProcessed'; Granted?: null | boolean; Quantity?: null | number; Resources?: null | ResourceOperation; Inventory?: null | InventoryDelta; ProductState?: null | IapProductPurchaseState; [key: string]: unknown; };
|
|
6259
|
+
type PurchaseValidationResponse = { ServerTimeUtc: string; Store?: null | 'GooglePlay' | 'AppleAppStore' | 'TelegramStars'; ProductID?: null | string; TransactionID?: null | string; Status?: null | 'Granted' | 'Restored' | 'AlreadyProcessed'; Granted?: null | boolean; Quantity?: null | number; Resources?: null | ResourceOperation; Inventory?: null | InventoryDelta; ProductState?: null | IapProductPurchaseState; Premium?: null | UserPremiumState; Subscription?: null | { PremiumID?: null | string; PurchaseDate?: null | string; ExpirationDate?: null | string; TransactionID?: null | string; IsAutoRenewEnabled?: null | boolean; [key: string]: unknown; }; SubscriptionMirror?: null | { ProductID?: null | string; PremiumID?: null | string; Store?: null | string; OriginalTransactionID?: null | string; LastTransactionID?: null | string; ExpiresAt?: null | string; AutoRenew?: null | boolean; Status?: null | string; RenewalCount?: null | number; LastStoreCheckAt?: null | string; LastStoreCheckError?: null | string; UpdatedAt?: null | string; [key: string]: unknown; }; [key: string]: unknown; };
|
|
5924
6260
|
type TelegramInvoiceResponse = { ServerTimeUtc: string; InvoiceLink: string; ProductID?: null | string; Stars?: null | number; ExpiresAt?: null | string; [key: string]: unknown; };
|
|
5925
6261
|
type PurchaseValidationBatchResponse = { ServerTimeUtc: string; Items: Array<{ Id: string; Success: boolean; Error?: null | string; Data?: null | PurchaseValidationResponse; }>; Resources?: null | ResourceOperation; Inventory?: null | InventoryDelta; };
|
|
5926
6262
|
interface PurchaseReceiptRef {
|
|
@@ -5976,7 +6312,7 @@ declare class PurchaseService {
|
|
|
5976
6312
|
private readonly ctx;
|
|
5977
6313
|
constructor(ctx: ClientContext);
|
|
5978
6314
|
/** Product catalog with per-player availability. */
|
|
5979
|
-
getDefinitions(): Promise<OperationResult<
|
|
6315
|
+
getDefinitions(): Promise<OperationResult<PurchaseDefinitionsResponse>>;
|
|
5980
6316
|
/** Player's IAP state: per-product counters, ownership, lifetime spend. */
|
|
5981
6317
|
getUserState(): Promise<OperationResult<UserPurchaseState>>;
|
|
5982
6318
|
/**
|
|
@@ -6095,7 +6431,7 @@ declare class CheckoutService {
|
|
|
6095
6431
|
declare class LootboxService {
|
|
6096
6432
|
private readonly ctx;
|
|
6097
6433
|
constructor(ctx: ClientContext);
|
|
6098
|
-
getDefinitions(): Promise<OperationResult<LootboxDefinitionsResponse>>;
|
|
6434
|
+
getDefinitions(opts?: ReadOptions): Promise<OperationResult<LootboxDefinitionsResponse>>;
|
|
6099
6435
|
open(lootboxID: string, count: number, selectedOptionID?: string, payment?: PaymentProof): Promise<OperationResult<LootboxOpenResponse>>;
|
|
6100
6436
|
private baseRequest;
|
|
6101
6437
|
}
|
|
@@ -6108,7 +6444,7 @@ declare class RewardService {
|
|
|
6108
6444
|
constructor(ctx: ClientContext);
|
|
6109
6445
|
get milestoneRewardMultiplier(): number;
|
|
6110
6446
|
get milestoneRewardMultiplierEnabled(): boolean;
|
|
6111
|
-
getRewardDefinitions(): Promise<OperationResult<RewardDefinitionsResponse>>;
|
|
6447
|
+
getRewardDefinitions(opts?: ReadOptions): Promise<OperationResult<RewardDefinitionsResponse>>;
|
|
6112
6448
|
getUserRewardsState(): Promise<OperationResult<UserRewardsStateResponse>>;
|
|
6113
6449
|
getMilestoneRewardMultiplier(): Promise<OperationResult<GetMilestoneRewardMultiplierResponse>>;
|
|
6114
6450
|
claimDailyReward(calendarID?: string): Promise<OperationResult<ClaimDailyRewardResponse>>;
|
|
@@ -6136,14 +6472,21 @@ declare class TutorialService {
|
|
|
6136
6472
|
private readonly ctx;
|
|
6137
6473
|
constructor(ctx: ClientContext);
|
|
6138
6474
|
/** Flow and step definitions of the title (presets already resolved server-side). */
|
|
6139
|
-
getTutorialDefinitions(): Promise<OperationResult<TutorialDefinitions>>;
|
|
6475
|
+
getTutorialDefinitions(opts?: ReadOptions): Promise<OperationResult<TutorialDefinitions>>;
|
|
6140
6476
|
/**
|
|
6141
6477
|
* Player state plus everything needed to draw the current step without a second call.
|
|
6142
6478
|
*
|
|
6143
6479
|
* @param autoStart Let the server start flows marked for auto-start. Pass `false` from a
|
|
6144
6480
|
* settings screen that merely lists tutorials — otherwise opening it would begin one.
|
|
6145
6481
|
*/
|
|
6146
|
-
|
|
6482
|
+
/**
|
|
6483
|
+
* The player's flows (with the server's lazy transitions applied) — from the central cache until
|
|
6484
|
+
* the tutorial state changes (`Tutorial` `Rev`: a step, a start, a claim) or 5 minutes pass; the
|
|
6485
|
+
* login can bring it along.
|
|
6486
|
+
*/
|
|
6487
|
+
getUserTutorialState(autoStart?: boolean, opts?: ReadOptions): Promise<OperationResult<GetUserTutorialStateResponse>>;
|
|
6488
|
+
private fetchUserTutorialState;
|
|
6489
|
+
private applyUserTutorialState;
|
|
6147
6490
|
/** Start a flow explicitly. Returns the flow with its first step. */
|
|
6148
6491
|
startFlow(flowID: string): Promise<OperationResult<TutorialFlowResponse>>;
|
|
6149
6492
|
/**
|
|
@@ -6181,6 +6524,8 @@ declare class TutorialService {
|
|
|
6181
6524
|
resetFlow(flowID: string): Promise<OperationResult<TutorialFlowResponse>>;
|
|
6182
6525
|
private flowCall;
|
|
6183
6526
|
private stepCall;
|
|
6527
|
+
/** Могла ли эта операция выдать награду: потоковая AutoClaim (RewardClaimed сменился) или шаговая (Effects.Grant). */
|
|
6528
|
+
private mayHavePaid;
|
|
6184
6529
|
/**
|
|
6185
6530
|
* Fold the returned flow view into the cached player state. The view is authoritative for the
|
|
6186
6531
|
* fields it carries, so the game can read `client.data.user.state.Tutorial` right after the
|
|
@@ -6322,7 +6667,7 @@ declare class ChatService {
|
|
|
6322
6667
|
private readonly cursors;
|
|
6323
6668
|
constructor(ctx: ClientContext);
|
|
6324
6669
|
/** Channel catalog of the title (presets already resolved server-side). */
|
|
6325
|
-
getChatDefinitions(): Promise<OperationResult<ChatDefinitions>>;
|
|
6670
|
+
getChatDefinitions(opts?: ReadOptions): Promise<OperationResult<ChatDefinitions>>;
|
|
6326
6671
|
/**
|
|
6327
6672
|
* Channels this player can see, with the room each of them resolves to for HIM, whether he
|
|
6328
6673
|
* may write, and how much he has not read.
|
|
@@ -6330,7 +6675,12 @@ declare class ChatService {
|
|
|
6330
6675
|
* Call it when the chat screen opens — it is also how you learn the poll interval and whether
|
|
6331
6676
|
* the player is muted.
|
|
6332
6677
|
*/
|
|
6333
|
-
|
|
6678
|
+
/**
|
|
6679
|
+
* Channels with their unread counts — other players write, so the copy lives 30 seconds; the
|
|
6680
|
+
* player's own message or read drops it.
|
|
6681
|
+
*/
|
|
6682
|
+
getChannels(locale?: string, opts?: ReadOptions): Promise<OperationResult<ChatChannelsResponse>>;
|
|
6683
|
+
private fetchChannels;
|
|
6334
6684
|
/**
|
|
6335
6685
|
* What is new in every room since the last poll.
|
|
6336
6686
|
*
|
|
@@ -6618,7 +6968,7 @@ declare class LocalizationService {
|
|
|
6618
6968
|
declare class QuestService {
|
|
6619
6969
|
private readonly ctx;
|
|
6620
6970
|
constructor(ctx: ClientContext);
|
|
6621
|
-
getQuestDefinitions(): Promise<OperationResult<QuestDefinitions>>;
|
|
6971
|
+
getQuestDefinitions(opts?: ReadOptions): Promise<OperationResult<QuestDefinitions>>;
|
|
6622
6972
|
getUserQuestState(autoRefreshCycles?: boolean): Promise<OperationResult<GetUserQuestStateResponse>>;
|
|
6623
6973
|
refreshQuestCycles(): Promise<OperationResult<SuccessResponse>>;
|
|
6624
6974
|
claimQuestReward(questID: string, cycleID?: string): Promise<OperationResult<ClaimQuestRewardResponse>>;
|
|
@@ -6636,8 +6986,15 @@ declare class QuestService {
|
|
|
6636
6986
|
declare class TimedEventService {
|
|
6637
6987
|
private readonly ctx;
|
|
6638
6988
|
constructor(ctx: ClientContext);
|
|
6639
|
-
|
|
6640
|
-
|
|
6989
|
+
/**
|
|
6990
|
+
* Running events with this player's progress — from the central cache until an event window
|
|
6991
|
+
* ends, the player's event tokens change (`EventToken` `Rev`: a grant, a spend, a claim), or 5
|
|
6992
|
+
* minutes pass.
|
|
6993
|
+
*/
|
|
6994
|
+
getActiveEvents(opts?: ReadOptions): Promise<OperationResult<GetActiveEventsResponse>>;
|
|
6995
|
+
private fetchActiveEvents;
|
|
6996
|
+
private applyActiveEvents;
|
|
6997
|
+
getDefinitions(opts?: ReadOptions): Promise<OperationResult<TimedEventDefinitions>>;
|
|
6641
6998
|
getUserLteState(): Promise<OperationResult<UserTimedEventStateResponse>>;
|
|
6642
6999
|
grantTokens(type: ScheduleMode, lteID: string, sourceType: string, outcome?: string, amountOverride?: number, sourceParams?: Record<string, string>, rollMultiplier?: number): Promise<OperationResult<ResourceOperation>>;
|
|
6643
7000
|
spendTokens(type: ScheduleMode, lteID: string, spendAmount: number): Promise<OperationResult<EventTokenSpendResponse>>;
|
|
@@ -6661,18 +7018,28 @@ declare class LeaderboardService {
|
|
|
6661
7018
|
constructor(ctx: ClientContext);
|
|
6662
7019
|
/** Per-cycle local doc id: `{titleID}_{leaderboardID}` (mirror of BuildCycleDocID). */
|
|
6663
7020
|
private cycleDocID;
|
|
6664
|
-
getDefinitions(): Promise<OperationResult<LeaderboardDefinitions>>;
|
|
7021
|
+
getDefinitions(opts?: ReadOptions): Promise<OperationResult<LeaderboardDefinitions>>;
|
|
6665
7022
|
getLeaderboard(leaderboardID: string): Promise<OperationResult<GetLeaderboardResponse>>;
|
|
6666
7023
|
getMyProgress(leaderboardID: string): Promise<OperationResult<GetMyProgressResponse>>;
|
|
6667
7024
|
submitScore(leaderboardID: string, score: number): Promise<OperationResult<SubmitScoreResponse>>;
|
|
6668
7025
|
submitScoreFromSource(leaderboardID: string, sourceType: string, outcome?: string, params?: Record<string, string>, rollMultiplier?: number): Promise<OperationResult<SubmitScoreResponse>>;
|
|
6669
7026
|
claimCycleReward(leaderboardID: string): Promise<OperationResult<ClaimCycleRewardResponse>>;
|
|
6670
|
-
|
|
7027
|
+
/**
|
|
7028
|
+
* Claims a milestone. `cycleKey` claims it in a PAST cycle's grace window instead of the current
|
|
7029
|
+
* cycle — take it from `GetMyProgressResponse.ClaimableGraceCycles[].CycleKey`.
|
|
7030
|
+
*/
|
|
7031
|
+
claimMilestone(leaderboardID: string, milestoneID: string, cycleKey?: string): Promise<OperationResult<ClaimLeaderboardMilestoneResponse>>;
|
|
6671
7032
|
getFriendsLeaderboard(leaderboardID: string): Promise<OperationResult<GetLeaderboardResponse>>;
|
|
6672
7033
|
/** Fetch several leaderboards' top lists in one call. */
|
|
6673
7034
|
getLeaderboardsBatch(leaderboardIDs: string[]): Promise<OperationResult<GetLeaderboardsBatchResponse>>;
|
|
6674
7035
|
/** Fetch this player's progress on several leaderboards in one call. */
|
|
6675
|
-
|
|
7036
|
+
/**
|
|
7037
|
+
* This player's progress on several leaderboards — from the central cache until the player's
|
|
7038
|
+
* leaderboard state or tokens change (their `Rev`: a score, a claim) or 5 minutes pass.
|
|
7039
|
+
*/
|
|
7040
|
+
getProgressBatch(leaderboardIDs: string[], opts?: ReadOptions): Promise<OperationResult<GetProgressBatchResponse>>;
|
|
7041
|
+
private fetchProgressBatch;
|
|
7042
|
+
private applyProgressBatch;
|
|
6676
7043
|
/** Claim the cycle-end reward for several leaderboards in one atomic operation. */
|
|
6677
7044
|
claimCycleRewardsBatch(leaderboardIDs: string[]): Promise<OperationResult<ClaimCycleRewardsBatchResponse>>;
|
|
6678
7045
|
/** Claim several explicit (leaderboard, milestone) pairs in one atomic operation. */
|
|
@@ -6690,8 +7057,14 @@ declare class LeaderboardService {
|
|
|
6690
7057
|
declare class SeasonService {
|
|
6691
7058
|
private readonly ctx;
|
|
6692
7059
|
constructor(ctx: ClientContext);
|
|
6693
|
-
getDefinitions(): Promise<OperationResult<SeasonDefinitions>>;
|
|
6694
|
-
|
|
7060
|
+
getDefinitions(opts?: ReadOptions): Promise<OperationResult<SeasonDefinitions>>;
|
|
7061
|
+
/**
|
|
7062
|
+
* The running season of a chain with this player's progress — from the central cache until the
|
|
7063
|
+
* season ends, the player's season, tokens or VIP change (their `Rev`), or 5 minutes pass.
|
|
7064
|
+
*/
|
|
7065
|
+
getActiveSeason(seasonChainID: string, opts?: ReadOptions): Promise<OperationResult<ActiveSeasonInfo>>;
|
|
7066
|
+
private fetchActiveSeason;
|
|
7067
|
+
private applyActiveSeason;
|
|
6695
7068
|
getUserState(seasonChainID: string): Promise<OperationResult<UserSeasonStateResponse>>;
|
|
6696
7069
|
grantStatusTokens(seasonChainID: string, amount: number): Promise<OperationResult<GrantStatusTokensResponse>>;
|
|
6697
7070
|
claimTierReward(seasonChainID: string, tierNumber: number): Promise<OperationResult<ClaimTierRewardResponse>>;
|
|
@@ -6710,10 +7083,15 @@ declare class SeasonService {
|
|
|
6710
7083
|
declare class PremiumService {
|
|
6711
7084
|
private readonly ctx;
|
|
6712
7085
|
constructor(ctx: ClientContext);
|
|
6713
|
-
getDefinitions(): Promise<OperationResult<PremiumDefinitionsResponse>>;
|
|
7086
|
+
getDefinitions(opts?: ReadOptions): Promise<OperationResult<PremiumDefinitionsResponse>>;
|
|
6714
7087
|
getUserState(): Promise<OperationResult<PremiumStateResponse>>;
|
|
6715
7088
|
activateTrial(premiumID: string, transactionID: string): Promise<OperationResult<PremiumPurchaseResponse>>;
|
|
6716
7089
|
purchaseItemOrCurrency(premiumID: string, transactionID: string, selectedOptionID?: string, count?: number): Promise<OperationResult<PremiumPurchaseResponse>>;
|
|
7090
|
+
/**
|
|
7091
|
+
* @deprecated The engine does not route `Premium/PurchaseRealMoney` (its enum still lists the name), so
|
|
7092
|
+
* this call always comes back "Action not implemented". A real-money premium goes through the store
|
|
7093
|
+
* product bound to it (`IapProductDefinition.Subscription`) and `client.purchase.validatePurchase`.
|
|
7094
|
+
*/
|
|
6717
7095
|
purchaseRealMoney(premiumID: string, transactionID: string, store: StoreType, productID: string, receiptData: string, purchaseToken?: string, packageName?: string, appStoreEnvironment?: string): Promise<OperationResult<PremiumPurchaseResponse>>;
|
|
6718
7096
|
private baseRequest;
|
|
6719
7097
|
}
|
|
@@ -6733,7 +7111,7 @@ interface UpgradeLevelsOptions {
|
|
|
6733
7111
|
declare class CharacterService {
|
|
6734
7112
|
private readonly ctx;
|
|
6735
7113
|
constructor(ctx: ClientContext);
|
|
6736
|
-
getCharacterDefinitions(): Promise<OperationResult<CharacterDefinitions>>;
|
|
7114
|
+
getCharacterDefinitions(opts?: ReadOptions): Promise<OperationResult<CharacterDefinitions>>;
|
|
6737
7115
|
getUserCharacters(): Promise<OperationResult<GetCharactersResponse>>;
|
|
6738
7116
|
/**
|
|
6739
7117
|
* Unlocks a character.
|
|
@@ -6834,7 +7212,7 @@ declare class MatchService {
|
|
|
6834
7212
|
saveStrategy(battleStrategy: BattleStepConfig[]): Promise<OperationResult<SuccessResponse>>;
|
|
6835
7213
|
getMyMatches(page?: number, pageSize?: number, statuses?: string[]): Promise<OperationResult<MatchesPageResponse>>;
|
|
6836
7214
|
getAvailableMatches(page?: number, pageSize?: number, onlyPublic?: boolean): Promise<OperationResult<MatchesPageResponse>>;
|
|
6837
|
-
getDefinitions(): Promise<OperationResult<GetMatchDefinitionsResponse>>;
|
|
7215
|
+
getDefinitions(opts?: ReadOptions): Promise<OperationResult<GetMatchDefinitionsResponse>>;
|
|
6838
7216
|
private baseRequest;
|
|
6839
7217
|
}
|
|
6840
7218
|
|
|
@@ -6842,7 +7220,7 @@ declare class MatchService {
|
|
|
6842
7220
|
declare class CraftService {
|
|
6843
7221
|
private readonly ctx;
|
|
6844
7222
|
constructor(ctx: ClientContext);
|
|
6845
|
-
getDefinitions(): Promise<OperationResult<CraftDefinitionsResponse>>;
|
|
7223
|
+
getDefinitions(opts?: ReadOptions): Promise<OperationResult<CraftDefinitionsResponse>>;
|
|
6846
7224
|
/**
|
|
6847
7225
|
* @param inputItemIDs catalog ItemIDs — a template of exactly RequiredItemCount entries.
|
|
6848
7226
|
* @param inputInstanceIDs only for a ClientSelected recipe: which instances to burn, one per
|
|
@@ -6874,6 +7252,16 @@ interface AIGenerateOptions {
|
|
|
6874
7252
|
* receipt and a NEW `relatedEntityID` — the retry is free for the player.
|
|
6875
7253
|
*/
|
|
6876
7254
|
payment?: PaymentProof;
|
|
7255
|
+
/**
|
|
7256
|
+
* Values for the feature's prompt-template variables (`AIPublicFeature.PromptVariables`): name →
|
|
7257
|
+
* value. Absent variables fall back to the feature's defaults; a server hook may override them.
|
|
7258
|
+
*/
|
|
7259
|
+
variables?: Record<string, string>;
|
|
7260
|
+
/**
|
|
7261
|
+
* Free-form context stored with the generation and handed to the feature's CloudCode handlers on
|
|
7262
|
+
* completion or failure, e.g. `{ npcId: "guard_3" }`. At most 8 KB; keys must not contain `.` or `$`.
|
|
7263
|
+
*/
|
|
7264
|
+
context?: Record<string, unknown>;
|
|
6877
7265
|
}
|
|
6878
7266
|
/** Options of {@link AIService.waitForGeneration}. */
|
|
6879
7267
|
interface AIWaitOptions {
|
|
@@ -6917,14 +7305,21 @@ interface AIWaitOptions {
|
|
|
6917
7305
|
* history reads never touch the cache — an old generation's charge is already in the balances.
|
|
6918
7306
|
* A generation with `PlayerRefunded` is never applied; if this session applied its Charge
|
|
6919
7307
|
* earlier (an async job is charged at submit), the service re-reads the inventory.
|
|
7308
|
+
*
|
|
7309
|
+
* 5. **A feature's fixed `Reward` is granted by the server when the job completes**, so it shows
|
|
7310
|
+
* up on a poll. The service does not add it to the cache itself (a poll of an old generation
|
|
7311
|
+
* would count it twice): the first time it sees a completed generation's `Reward` it re-reads
|
|
7312
|
+
* the inventory, once per generation.
|
|
6920
7313
|
*/
|
|
6921
7314
|
declare class AIService {
|
|
6922
7315
|
private readonly ctx;
|
|
6923
7316
|
/** Generations whose `Charge` is already in the cache — a replay must not deduct it again. */
|
|
6924
7317
|
private readonly charged;
|
|
7318
|
+
/** Generations whose fixed `Reward` this session already re-read the inventory for. */
|
|
7319
|
+
private readonly rewarded;
|
|
6925
7320
|
constructor(ctx: ClientContext);
|
|
6926
7321
|
/** The title's AI features (sanitized: no model, no prompts). Cached as config section `"AI"`. */
|
|
6927
|
-
getDefinitions(): Promise<OperationResult<AIPublicDefinitions>>;
|
|
7322
|
+
getDefinitions(opts?: ReadOptions): Promise<OperationResult<AIPublicDefinitions>>;
|
|
6928
7323
|
/** Text (NPC lines, a world description from pictures…): submits a job — see {@link waitForGeneration}. */
|
|
6929
7324
|
generateText(featureKey: string, input: AITextInput, options?: AIGenerateOptions): Promise<OperationResult<AIGenerationView>>;
|
|
6930
7325
|
/** Poll a text job. */
|
|
@@ -6993,7 +7388,7 @@ declare class AIService {
|
|
|
6993
7388
|
declare class CollectionService {
|
|
6994
7389
|
private readonly ctx;
|
|
6995
7390
|
constructor(ctx: ClientContext);
|
|
6996
|
-
getDefinitions(): Promise<OperationResult<CollectionDefinitions>>;
|
|
7391
|
+
getDefinitions(opts?: ReadOptions): Promise<OperationResult<CollectionDefinitions>>;
|
|
6997
7392
|
getUserState(): Promise<OperationResult<UserCollectionState>>;
|
|
6998
7393
|
/**
|
|
6999
7394
|
* Opens `count` packs in ONE atomic operation. The cost scales with the count and each pack
|
|
@@ -7026,9 +7421,15 @@ declare class CollectionService {
|
|
|
7026
7421
|
declare class CoopEventService {
|
|
7027
7422
|
private readonly ctx;
|
|
7028
7423
|
constructor(ctx: ClientContext);
|
|
7029
|
-
getDefinitions(): Promise<OperationResult<CoopEventDefinitions>>;
|
|
7424
|
+
getDefinitions(opts?: ReadOptions): Promise<OperationResult<CoopEventDefinitions>>;
|
|
7030
7425
|
getActiveEvent(coopChainID: string): Promise<OperationResult<ActiveCoopEventInfo>>;
|
|
7031
|
-
|
|
7426
|
+
/**
|
|
7427
|
+
* The player's coop state with the group — group mates move the shared progress, so the copy
|
|
7428
|
+
* lives 30 seconds; the player's own coop state changing (`CoopEvent` `Rev`) drops it.
|
|
7429
|
+
*/
|
|
7430
|
+
getUserState(opts?: ReadOptions): Promise<OperationResult<CoopUserStateResponse>>;
|
|
7431
|
+
private fetchUserState;
|
|
7432
|
+
private applyUserState;
|
|
7032
7433
|
getGroupState(groupID: string): Promise<OperationResult<CoopGroupStateResponse>>;
|
|
7033
7434
|
joinOrCreateGroup(coopChainID: string): Promise<OperationResult<CoopGroupStateResponse>>;
|
|
7034
7435
|
/**
|
|
@@ -7051,7 +7452,12 @@ declare class DealOfferService {
|
|
|
7051
7452
|
constructor(ctx: ClientContext);
|
|
7052
7453
|
getDefinition(): Promise<OperationResult<DealOffersDefinitionResponse>>;
|
|
7053
7454
|
getUserState(): Promise<OperationResult<UserDealOffersStateResponse>>;
|
|
7054
|
-
|
|
7455
|
+
/**
|
|
7456
|
+
* Active deals of this player. Reading them is what activates new ones on the server, so the
|
|
7457
|
+
* copy lives 5 minutes at most; a purchase or a step of a deal (`DealOffer` `Rev`) drops it.
|
|
7458
|
+
*/
|
|
7459
|
+
getActiveDeals(opts?: ReadOptions): Promise<OperationResult<GetActiveDealsResponse>>;
|
|
7460
|
+
private fetchActiveDeals;
|
|
7055
7461
|
dismissDeal(slotID: string): Promise<OperationResult<DismissDealResponse>>;
|
|
7056
7462
|
/**
|
|
7057
7463
|
* Executes a node of an active deal.
|
|
@@ -7074,7 +7480,7 @@ declare class DealOfferService {
|
|
|
7074
7480
|
declare class ReferralService {
|
|
7075
7481
|
private readonly ctx;
|
|
7076
7482
|
constructor(ctx: ClientContext);
|
|
7077
|
-
getDefinitions(): Promise<OperationResult<ReferralDefinitionsResponse>>;
|
|
7483
|
+
getDefinitions(opts?: ReadOptions): Promise<OperationResult<ReferralDefinitionsResponse>>;
|
|
7078
7484
|
getUserState(): Promise<OperationResult<UserReferralStateResponse>>;
|
|
7079
7485
|
activateReferralCode(referralCode: string): Promise<OperationResult<ActivateReferralCodeResponse>>;
|
|
7080
7486
|
claimInviteReward(inviteRewardID: string): Promise<OperationResult<ClaimInviteRewardResponse>>;
|
|
@@ -7139,7 +7545,12 @@ declare class SocialService {
|
|
|
7139
7545
|
verbs?: SocialInboxVerb[];
|
|
7140
7546
|
}): Promise<OperationResult<InboxResponse>>;
|
|
7141
7547
|
/** The unread badge (capped at 100 → render "99+"), without loading the inbox. */
|
|
7142
|
-
|
|
7548
|
+
/**
|
|
7549
|
+
* The inbox badge — news come from other players, so the copy lives a minute; the player's own
|
|
7550
|
+
* social state changing (`Social` `Rev`) drops it.
|
|
7551
|
+
*/
|
|
7552
|
+
getInboxUnread(opts?: ReadOptions): Promise<OperationResult<InboxBadgeResponse>>;
|
|
7553
|
+
private fetchInboxUnread;
|
|
7143
7554
|
/** "The player looked at the inbox": moves the seen mark to now; the badge drops to 0. */
|
|
7144
7555
|
markInboxSeen(): Promise<OperationResult<InboxBadgeResponse>>;
|
|
7145
7556
|
/** Follow a player of this title (`follow("User", userID)`). Answers with the target's state. */
|
|
@@ -7156,6 +7567,7 @@ declare class SocialService {
|
|
|
7156
7567
|
Comments?: number | null | undefined;
|
|
7157
7568
|
Replies?: number | null | undefined;
|
|
7158
7569
|
Posts?: number | null | undefined;
|
|
7570
|
+
Dislikes?: number | null | undefined;
|
|
7159
7571
|
} | null | undefined;
|
|
7160
7572
|
Liked?: boolean | null | undefined;
|
|
7161
7573
|
Favorited?: boolean | null | undefined;
|
|
@@ -7176,6 +7588,7 @@ declare class SocialService {
|
|
|
7176
7588
|
Comments?: number | null | undefined;
|
|
7177
7589
|
Replies?: number | null | undefined;
|
|
7178
7590
|
Posts?: number | null | undefined;
|
|
7591
|
+
Dislikes?: number | null | undefined;
|
|
7179
7592
|
} | null | undefined;
|
|
7180
7593
|
Liked?: boolean | null | undefined;
|
|
7181
7594
|
Favorited?: boolean | null | undefined;
|
|
@@ -7196,6 +7609,7 @@ declare class SocialService {
|
|
|
7196
7609
|
Comments?: number | null | undefined;
|
|
7197
7610
|
Replies?: number | null | undefined;
|
|
7198
7611
|
Posts?: number | null | undefined;
|
|
7612
|
+
Dislikes?: number | null | undefined;
|
|
7199
7613
|
} | null | undefined;
|
|
7200
7614
|
Liked?: boolean | null | undefined;
|
|
7201
7615
|
Favorited?: boolean | null | undefined;
|
|
@@ -7215,6 +7629,7 @@ declare class SocialService {
|
|
|
7215
7629
|
Comments?: number | null | undefined;
|
|
7216
7630
|
Replies?: number | null | undefined;
|
|
7217
7631
|
Posts?: number | null | undefined;
|
|
7632
|
+
Dislikes?: number | null | undefined;
|
|
7218
7633
|
} | null | undefined;
|
|
7219
7634
|
Liked?: boolean | null | undefined;
|
|
7220
7635
|
Favorited?: boolean | null | undefined;
|
|
@@ -7303,6 +7718,7 @@ declare class SocialService {
|
|
|
7303
7718
|
Comments?: number | null | undefined;
|
|
7304
7719
|
Replies?: number | null | undefined;
|
|
7305
7720
|
Posts?: number | null | undefined;
|
|
7721
|
+
Dislikes?: number | null | undefined;
|
|
7306
7722
|
} | null | undefined;
|
|
7307
7723
|
Liked?: boolean | null | undefined;
|
|
7308
7724
|
Favorited?: boolean | null | undefined;
|
|
@@ -7322,6 +7738,7 @@ declare class SocialService {
|
|
|
7322
7738
|
Comments?: number | null | undefined;
|
|
7323
7739
|
Replies?: number | null | undefined;
|
|
7324
7740
|
Posts?: number | null | undefined;
|
|
7741
|
+
Dislikes?: number | null | undefined;
|
|
7325
7742
|
} | null | undefined;
|
|
7326
7743
|
Liked?: boolean | null | undefined;
|
|
7327
7744
|
Favorited?: boolean | null | undefined;
|
|
@@ -7341,6 +7758,7 @@ declare class SocialService {
|
|
|
7341
7758
|
Comments?: number | null | undefined;
|
|
7342
7759
|
Replies?: number | null | undefined;
|
|
7343
7760
|
Posts?: number | null | undefined;
|
|
7761
|
+
Dislikes?: number | null | undefined;
|
|
7344
7762
|
} | null | undefined;
|
|
7345
7763
|
Liked?: boolean | null | undefined;
|
|
7346
7764
|
Favorited?: boolean | null | undefined;
|
|
@@ -7360,6 +7778,7 @@ declare class SocialService {
|
|
|
7360
7778
|
Comments?: number | null | undefined;
|
|
7361
7779
|
Replies?: number | null | undefined;
|
|
7362
7780
|
Posts?: number | null | undefined;
|
|
7781
|
+
Dislikes?: number | null | undefined;
|
|
7363
7782
|
} | null | undefined;
|
|
7364
7783
|
Liked?: boolean | null | undefined;
|
|
7365
7784
|
Favorited?: boolean | null | undefined;
|
|
@@ -7404,7 +7823,7 @@ declare class SocialService {
|
|
|
7404
7823
|
declare class TimedBoostService {
|
|
7405
7824
|
private readonly ctx;
|
|
7406
7825
|
constructor(ctx: ClientContext);
|
|
7407
|
-
getDefinitions(): Promise<OperationResult<TimedBoostDefinitions>>;
|
|
7826
|
+
getDefinitions(opts?: ReadOptions): Promise<OperationResult<TimedBoostDefinitions>>;
|
|
7408
7827
|
getActive(): Promise<OperationResult<GetActiveTimedBoostsResponse>>;
|
|
7409
7828
|
getActiveWindows(): Promise<OperationResult<GetActiveBoostWindowsResponse>>;
|
|
7410
7829
|
activate(boostID: string, options?: {
|
|
@@ -7578,8 +7997,15 @@ declare class MarketplaceService {
|
|
|
7578
7997
|
getOffersByItem(itemID: string, offerTypeFilter?: MarketOfferType, continuationToken?: string, pageSize?: number): Promise<OperationResult<MarketplaceBrowseResponse>>;
|
|
7579
7998
|
getOffer(offerID: string): Promise<OperationResult<MarketplaceOfferResponse>>;
|
|
7580
7999
|
getBuyOrders(itemID?: string, continuationToken?: string, pageSize?: number): Promise<OperationResult<MarketplaceBrowseResponse>>;
|
|
7581
|
-
|
|
7582
|
-
|
|
8000
|
+
/** `bidsFilter` narrows `MyBids`: `Live` — auctions still running, `Finished` — the outcome of taking part. */
|
|
8001
|
+
/**
|
|
8002
|
+
* The player's listings, orders, bids, trades and claimables — other players buy and bid, so
|
|
8003
|
+
* the copy lives a minute; any marketplace action of the player drops it.
|
|
8004
|
+
*/
|
|
8005
|
+
getMyState(bidsFilter?: MarketplaceMyBidsFilter, opts?: ReadOptions): Promise<OperationResult<MarketplaceMyStateResponse>>;
|
|
8006
|
+
private fetchMyState;
|
|
8007
|
+
private applyMyState;
|
|
8008
|
+
getHistory(continuationToken?: string, pageSize?: number, historyFilter?: MarketplaceHistoryFilter): Promise<OperationResult<MarketplaceHistoryResponse>>;
|
|
7583
8009
|
createListing(itemID: string, catalogID: string, goodsAmount: number, priceBundle: ResourceBundle, durationHours: number, itemInstanceIDs?: string[], selectedOptionID?: string): Promise<OperationResult<MarketplaceCreateOfferResponse>>;
|
|
7584
8010
|
cancelListing(offerID: string): Promise<OperationResult<MarketplaceSettlementResponse>>;
|
|
7585
8011
|
buy(offerID: string): Promise<OperationResult<MarketplaceSettlementResponse>>;
|
|
@@ -8566,8 +8992,8 @@ declare class PurchaseApi {
|
|
|
8566
8992
|
private readonly ctx;
|
|
8567
8993
|
constructor(ctx: ClientContext);
|
|
8568
8994
|
private send;
|
|
8569
|
-
getDefinitions(request: PurchaseRequest): Promise<OperationResult<
|
|
8570
|
-
getUserState(request: PurchaseRequest): Promise<OperationResult<
|
|
8995
|
+
getDefinitions(request: PurchaseRequest): Promise<OperationResult<PurchaseDefinitionsResponse>>;
|
|
8996
|
+
getUserState(request: PurchaseRequest): Promise<OperationResult<UserPurchaseStateResponse>>;
|
|
8571
8997
|
validatePurchase(request: PurchaseRequest): Promise<OperationResult<PurchaseValidationResponse>>;
|
|
8572
8998
|
validatePurchasesBatch(request: PurchaseRequest): Promise<OperationResult<PurchaseValidationBatchResponse>>;
|
|
8573
8999
|
createTelegramInvoice(request: PurchaseRequest): Promise<OperationResult<TelegramInvoiceResponse>>;
|
|
@@ -9226,6 +9652,7 @@ declare class SocialApi {
|
|
|
9226
9652
|
Comments?: number | null | undefined;
|
|
9227
9653
|
Replies?: number | null | undefined;
|
|
9228
9654
|
Posts?: number | null | undefined;
|
|
9655
|
+
Dislikes?: number | null | undefined;
|
|
9229
9656
|
} | null | undefined;
|
|
9230
9657
|
Liked?: boolean | null | undefined;
|
|
9231
9658
|
Favorited?: boolean | null | undefined;
|
|
@@ -9245,6 +9672,7 @@ declare class SocialApi {
|
|
|
9245
9672
|
Comments?: number | null | undefined;
|
|
9246
9673
|
Replies?: number | null | undefined;
|
|
9247
9674
|
Posts?: number | null | undefined;
|
|
9675
|
+
Dislikes?: number | null | undefined;
|
|
9248
9676
|
} | null | undefined;
|
|
9249
9677
|
Liked?: boolean | null | undefined;
|
|
9250
9678
|
Favorited?: boolean | null | undefined;
|
|
@@ -9308,6 +9736,7 @@ declare class SocialApi {
|
|
|
9308
9736
|
Comments?: number | null | undefined;
|
|
9309
9737
|
Replies?: number | null | undefined;
|
|
9310
9738
|
Posts?: number | null | undefined;
|
|
9739
|
+
Dislikes?: number | null | undefined;
|
|
9311
9740
|
} | null | undefined;
|
|
9312
9741
|
Liked?: boolean | null | undefined;
|
|
9313
9742
|
Favorited?: boolean | null | undefined;
|
|
@@ -9327,6 +9756,7 @@ declare class SocialApi {
|
|
|
9327
9756
|
Comments?: number | null | undefined;
|
|
9328
9757
|
Replies?: number | null | undefined;
|
|
9329
9758
|
Posts?: number | null | undefined;
|
|
9759
|
+
Dislikes?: number | null | undefined;
|
|
9330
9760
|
} | null | undefined;
|
|
9331
9761
|
Liked?: boolean | null | undefined;
|
|
9332
9762
|
Favorited?: boolean | null | undefined;
|
|
@@ -9368,6 +9798,7 @@ declare class SocialApi {
|
|
|
9368
9798
|
Comments?: number | null | undefined;
|
|
9369
9799
|
Replies?: number | null | undefined;
|
|
9370
9800
|
Posts?: number | null | undefined;
|
|
9801
|
+
Dislikes?: number | null | undefined;
|
|
9371
9802
|
} | null | undefined;
|
|
9372
9803
|
Liked?: boolean | null | undefined;
|
|
9373
9804
|
Favorited?: boolean | null | undefined;
|
|
@@ -9387,6 +9818,7 @@ declare class SocialApi {
|
|
|
9387
9818
|
Comments?: number | null | undefined;
|
|
9388
9819
|
Replies?: number | null | undefined;
|
|
9389
9820
|
Posts?: number | null | undefined;
|
|
9821
|
+
Dislikes?: number | null | undefined;
|
|
9390
9822
|
} | null | undefined;
|
|
9391
9823
|
Liked?: boolean | null | undefined;
|
|
9392
9824
|
Favorited?: boolean | null | undefined;
|
|
@@ -9421,6 +9853,7 @@ declare class SocialApi {
|
|
|
9421
9853
|
Comments?: number | null | undefined;
|
|
9422
9854
|
Replies?: number | null | undefined;
|
|
9423
9855
|
Posts?: number | null | undefined;
|
|
9856
|
+
Dislikes?: number | null | undefined;
|
|
9424
9857
|
} | null | undefined;
|
|
9425
9858
|
Liked?: boolean | null | undefined;
|
|
9426
9859
|
Favorited?: boolean | null | undefined;
|
|
@@ -9942,6 +10375,7 @@ declare class WorkshopApi {
|
|
|
9942
10375
|
[x: string]: unknown;
|
|
9943
10376
|
AutoHideReportThreshold?: number | null | undefined;
|
|
9944
10377
|
RequireApproval?: boolean | null | undefined;
|
|
10378
|
+
BlockedTerms?: string[] | null | undefined;
|
|
9945
10379
|
} | null | undefined;
|
|
9946
10380
|
Limits?: {
|
|
9947
10381
|
[x: string]: unknown;
|
|
@@ -11641,6 +12075,20 @@ declare class DataCollectionsApi {
|
|
|
11641
12075
|
PublishItems?: boolean | undefined;
|
|
11642
12076
|
}[] | null | undefined;
|
|
11643
12077
|
AnonymousSearch?: boolean | null | undefined;
|
|
12078
|
+
Integrations?: {
|
|
12079
|
+
QuestMetricOnCreate?: string | null | undefined;
|
|
12080
|
+
QuestMetricOnUpdate?: string | null | undefined;
|
|
12081
|
+
QuestMetricOnDelete?: string | null | undefined;
|
|
12082
|
+
AnalyticsEventOnCreate?: string | null | undefined;
|
|
12083
|
+
AnalyticsEventOnUpdate?: string | null | undefined;
|
|
12084
|
+
AnalyticsEventOnDelete?: string | null | undefined;
|
|
12085
|
+
TriggerOnCreate?: string | null | undefined;
|
|
12086
|
+
TriggerOnUpdate?: string | null | undefined;
|
|
12087
|
+
TriggerOnDelete?: string | null | undefined;
|
|
12088
|
+
} | null | undefined;
|
|
12089
|
+
Moderation?: {
|
|
12090
|
+
BlockedTerms?: string[] | null | undefined;
|
|
12091
|
+
} | null | undefined;
|
|
11644
12092
|
}>;
|
|
11645
12093
|
Enabled?: boolean | undefined;
|
|
11646
12094
|
}>>;
|
|
@@ -12124,6 +12572,18 @@ interface IDosGamesClientConfig extends SettingsInput {
|
|
|
12124
12572
|
fetch?: typeof fetch;
|
|
12125
12573
|
/** Override the per-endpoint throttle window (ms). Default 600. */
|
|
12126
12574
|
throttleMs?: number;
|
|
12575
|
+
/**
|
|
12576
|
+
* Ceiling on requests this client STARTS per second (default 15; 0 — no ceiling). The engine blocks
|
|
12577
|
+
* a player for 10 s after more than 20 requests in one second, and a game with many systems sends
|
|
12578
|
+
* about that many at once right after login — the excess waits a moment instead.
|
|
12579
|
+
*/
|
|
12580
|
+
maxRequestsPerSecond?: number;
|
|
12581
|
+
/**
|
|
12582
|
+
* Which server views (storefront, active events, unread counters…) the login brings along in the
|
|
12583
|
+
* same `GetClientState`: `"auto"` (default) — the ones the game read last time; `"all"`; `"none"`;
|
|
12584
|
+
* or an explicit list. See `LoginViewsMode`.
|
|
12585
|
+
*/
|
|
12586
|
+
loginViews?: LoginViewsMode;
|
|
12127
12587
|
}
|
|
12128
12588
|
/**
|
|
12129
12589
|
* Composition root. Replaces the C# global statics (HttpService / IDosGamesData /
|
|
@@ -12149,6 +12609,8 @@ declare class ClientContext {
|
|
|
12149
12609
|
/** Platform reported to the server; services read it to filter payment options. */
|
|
12150
12610
|
readonly clientPlatform: ClientPlatform;
|
|
12151
12611
|
readonly data: IDosGamesData;
|
|
12612
|
+
/** The central cache: every read decides here between the local copy and the server. */
|
|
12613
|
+
readonly cache: DataCache;
|
|
12152
12614
|
readonly authStore: AuthStore;
|
|
12153
12615
|
readonly api: {
|
|
12154
12616
|
authentication: AuthenticationApi;
|
|
@@ -12329,6 +12791,12 @@ interface RealtimeSessionEvents {
|
|
|
12329
12791
|
removed: {
|
|
12330
12792
|
reason: string;
|
|
12331
12793
|
};
|
|
12794
|
+
/**
|
|
12795
|
+
* This side left the room itself (`leave()`, or the page closing). Whoever else holds the session —
|
|
12796
|
+
* a game that took the room from the lobby — learns here that it is over; without it a game kept
|
|
12797
|
+
* playing on a closed session and ignored the next room.
|
|
12798
|
+
*/
|
|
12799
|
+
left: Record<string, never>;
|
|
12332
12800
|
}
|
|
12333
12801
|
type Listener<T> = (e: T) => void;
|
|
12334
12802
|
/**
|
|
@@ -12466,4 +12934,4 @@ declare class RealtimeSession {
|
|
|
12466
12934
|
private leaveOnUnload;
|
|
12467
12935
|
}
|
|
12468
12936
|
|
|
12469
|
-
export { type Unsubscribe as $, AuthenticationService as A, TimedBoostService as B, type ChannelName as C, DealOfferService as D, ExperimentsService as E, UserCustomDataService as F, TitleCustomDataService as G, TitleService as H, type IceServer as I, GameLoopService as J, CloudCodeService as K, LootboxService as L, type MemberLeftKind as M, BlockchainService as N, MarketplaceService as O, PurchaseService as P, QuestService as Q, type RealtimeClient as R, StoreService as S, TutorialService as T, UserService as U, MultiplayerService as V, WorkshopService as W, DataCollectionsService as X, IDosGamesData as Y, type SdkEvents as Z, type Listener$1 as _, RealtimeSession as a, type BattleStepConfig as a$, type ConfigStorage as a0, AIAction as a1, type AIAudioInput as a2, type AIChatMessage as a3, AIErrorCode as a4, type AIGenerateOptions as a5, type AIGenerationAssetView as a6, type AIGenerationErrorView as a7, type AIGenerationListView as a8, AIGenerationStatus as a9, type AnalyticsClientContext as aA, type AnalyticsDefinitions as aB, type AnalyticsDimensionDefinition as aC, AnalyticsDropReason as aD, type AnalyticsEventDefinition as aE, type AnalyticsEventInput as aF, AnalyticsEventNaming as aG, AnalyticsLimits as aH, type AnalyticsParamValue as aI, type AnalyticsParams as aJ, type AnalyticsRequest as aK, AttackOutcome as aL, type AttackResponse as aM, type AttributionInput as aN, type AuthContext as aO, type AuthOptionsResponse as aP, AuthType as aQ, AuthenticationAction as aR, type AuthenticationRequest as aS, AutomaticEvent as aT, type BaseRequest as aU, type BatchDeleteUserCustomDataResponse as aV, type BatchGetPublicUserCustomDataResponse as aW, type BatchItemResult as aX, type BatchResponse as aY, type BatchSetUserCustomDataResponse as aZ, type BattleResult as a_, type AIGenerationView as aa, type AIHistoryQuery as ab, type AIImageEditInput as ac, type AIImageInput as ad, type AIInputImage as ae, AIModality as af, type AIMusicInput as ag, type AIPublicDefinitions as ah, type AIPublicFeature as ai, type AIRequest as aj, type AITextInput as ak, type AIThreeDInput as al, type AIVideoInput as am, type AIWaitOptions as an, type AcceptTradeOfferResponse as ao, AcquisitionCapture as ap, type ActivateReferralCodeResponse as aq, type ActivateTimedBoostResponse as ar, type ActiveBoostWindowInfo as as, type ActiveCoopEventInfo as at, type ActiveDealSlotInfo as au, type ActiveEventInfo as av, type ActiveSeasonInfo as aw, type ActiveTimedBoost as ax, type AddQuestProgressResponse as ay, AnalyticsAction as az, type RealtimeSessionEvents as b, ChatDirectAudience as b$, type BlockchainAccountSafetyPolicy as b0, BlockchainAction as b1, type BlockchainConfigResponse as b2, type BlockchainDefinitions as b3, type BlockchainNetworkDefinition as b4, BlockchainNetworkType as b5, type BlockchainNftCollectionBinding as b6, BlockchainOperationCategory as b7, type BlockchainPlayAccessPolicy as b8, type BlockchainRequest as b9, type CharacterRequest as bA, type CharacterSkinDefinition as bB, type CharacterSkinItem as bC, type CharacterSkinRequirements as bD, type CharacterSkinSale as bE, type CharacterSkinView as bF, type CharacterSkins as bG, type CharacterSkinsView as bH, type CharacterStatRef as bI, type CharacterUnequipResult as bJ, type CharacterUnlock as bK, ChatAction as bL, ChatAuthorType as bM, ChatBlockedTermAction as bN, type ChatChannelAvailability as bO, type ChatChannelDefinition as bP, type ChatChannelIdentity as bQ, type ChatChannelPresetBindings as bR, type ChatChannelRetention as bS, ChatChannelType as bT, type ChatChannelView as bU, type ChatChannelWriteRules as bV, type ChatChannelsResponse as bW, type ChatConversationView as bX, type ChatConversationsResponse as bY, type ChatCursor as bZ, type ChatDefinitions as b_, type BlockchainStats as ba, type BlockchainSystemState as bb, BlockchainTransactionStatus as bc, BlockchainTransactionType as bd, type BoardLoopDefinition as be, type BoardLoopState as bf, type BoardPendingInteraction as bg, type BoardRollResponse as bh, BodyPart as bi, type BoostTriggerCounter as bj, BoostWindowKind as bk, type BuildResponse as bl, type BuildingState as bm, type CancelMatchResponse as bn, type CancelTradeOfferResponse as bo, type ChangeUsernameResponse as bp, CharacterAction as bq, type CharacterClassification as br, type CharacterDefinition as bs, type CharacterDefinitions as bt, type CharacterEquipment as bu, type CharacterEquipmentSlot as bv, type CharacterIdentity as bw, type CharacterLevelRef as bx, type CharacterModel as by, type CharacterRankLadder as bz, type RealtimeSessionOptions as c, CommunityChestMemberStatus as c$, type ChatDirectChannelResponse as c0, type ChatHistoryResponse as c1, type ChatMessageView as c2, type ChatModerationSettings as c3, ChatPartitioning as c4, type ChatPollResponse as c5, type ChatPollingSettings as c6, type ChatPresetRegistry as c7, ChatReportReason as c8, type ChatReportResponse as c9, type ClaimTierRewardResponse as cA, type ClaimTierRewardsBatchResponse as cB, ClientPlatform as cC, type ClientState as cD, CloudCodeAction as cE, CloudCodeErrorCode as cF, type CloudCodeLogEntry as cG, CloudCodeLogLevel as cH, type CloudCodeRequest as cI, CloudCodeRevisionSelection as cJ, type CodeExecutionError as cK, type CollectIdleAccrualResponse as cL, CollectionAction as cM, type CollectionDefinitions as cN, type CollectionGlobalSettings as cO, type CollectionRequest as cP, type CollectionSetRef as cQ, type CollectionTradeOfferDocument as cR, CommissionSink as cS, type CommunityAccrualLine as cT, type CommunityCampaignSummary as cU, type CommunityChestClaimResponse as cV, type CommunityChestGroupDocument as cW, type CommunityChestGroupStateResponse as cX, type CommunityChestHistoryEntry as cY, type CommunityChestLeaveResponse as cZ, type CommunityChestMember as c_, type ChatRequest as ca, type ChatRoomUpdate as cb, type ChatSendResponse as cc, type ChatStateResponse as cd, type ClaimAllRewardsBatchResponse as ce, type ClaimAllRewardsResult as cf, type ClaimComebackRewardResponse as cg, type ClaimCycleRewardResponse as ch, type ClaimCycleRewardsBatchResponse as ci, type ClaimDailyRewardResponse as cj, type ClaimDealMilestoneResponse as ck, type ClaimDealMilestonesBatchResponse as cl, type ClaimGrandPrizeResponse as cm, type ClaimGroupCompletionRewardResponse as cn, type ClaimInviteRewardResponse as co, type ClaimInviteRewardsBatchResponse as cp, type ClaimLeaderboardMilestoneResponse as cq, type ClaimLeaderboardMilestonesBatchResponse as cr, type ClaimMilestoneRewardResponse as cs, type ClaimMilestoneRewardsBatchResponse as ct, type ClaimMilestonesBatchResponse as cu, type ClaimQuestRewardResponse as cv, type ClaimQuestRewardsBatchResponse as cw, type ClaimRewardResponse as cx, type ClaimSetRewardResponse as cy, type ClaimSetRewardsBatchResponse as cz, type IDosGamesClientConfig as d, CurrencyStatus as d$, type CommunityChestSharedState as d0, CommunityChestStatus as d1, type CommunityChestUserStateResponse as d2, type CommunityClaimResponse as d3, CommunityCreatorStatus as d4, type CommunityEarningsLine as d5, type CommunityEarningsResponse as d6, type CommunityEligibilityCondition as d7, type CommunityEligibilityResponse as d8, CommunityMarketingAction as d9, type CoopPartnerObjectState as dA, type CoopSpinResponse as dB, type CoopUserStateResponse as dC, CraftAction as dD, type CraftBurnedInstance as dE, type CraftDefinition as dF, type CraftDefinitions as dG, type CraftDefinitionsResponse as dH, CraftInputSelectionMode as dI, CraftOutputLevelMode as dJ, CraftOutputLevelOverflow as dK, type CraftRequest as dL, type CraftResponse as dM, type CraftSingleResult as dN, CraftType as dO, type CreateMatchResponse as dP, type CryptoConvertResponse as dQ, type CryptoCurrencyDefinition as dR, type CryptoCurrencyPermissions as dS, type CryptoLimits as dT, type CryptoNetworkBinding as dU, type CryptoShortfall as dV, CurrencyAction as dW, type CurrencyAudit as dX, type CurrencyConversion as dY, type CurrencyDefinitions as dZ, type CurrencyRequest as d_, type CommunityMarketingRequest as da, type CommunityMarketingState as db, CommunityMetricKind as dc, CommunityParticipationMode as dd, CommunityPayoutCurrencyKind as de, type CommunityPayoutSummary as df, type CommunitySolanaWithdrawalSignature as dg, type CommunityWithdrawalResponse as dh, type ConfirmWithdrawalResponse as di, type ConversionDailyCounter as dj, ConversionRateMode as dk, type ConversionTarget as dl, type ConvertResponse as dm, type CoopBuildObjectsMemberState as dn, type CoopBuildObjectsState as dp, type CoopClaimRewardResponse as dq, CoopEventAction as dr, type CoopEventDefinitions as ds, type CoopEventRequest as dt, type CoopGroupDocument as du, type CoopGroupMember as dv, type CoopGroupStateResponse as dw, CoopGroupStatus as dx, type CoopLeaveGroupResponse as dy, CoopMemberStatus as dz, CurrencyService as e, type DealOfferDefinitions as e$, CurrencyType as e0, CustomDataBucket as e1, CustomDataValueType as e2, CustomDataWriter as e3, type CyclicSchedule as e4, DEFAULT_BASE_URL as e5, type DailyUsageRecord as e6, DataAccessMode as e7, type DataAccessRule as e8, type DataBatchOperation as e9, type DataPublicViewsResponse as eA, type DataQueryResponse as eB, type DataQuerySpec as eC, type DataReadOptions as eD, type DataRecord as eE, DataRefKind as eF, type DataRefTarget as eG, type DataRolesResponse as eH, type DataSortKeyDefinition as eI, type DataUpdateSpec as eJ, type DataWriteResponse as eK, type DealAvailability as eL, DealComparisonOperator as eM, type DealIdentity as eN, type DealMilestoneBlock as eO, type DealMilestoneProgressInfo as eP, type DealNodeActionDefinition as eQ, type DealNodeDefinition as eR, type DealNodePresetBindings as eS, type DealNodePricing as eT, type DealNodeReward as eU, DealNodeRuntimeStatus as eV, DealNodeType as eW, type DealNodeUnlockRules as eX, DealOfferAction as eY, DealOfferActivationStatus as eZ, type DealOfferDefinition as e_, type DataBatchResponse as ea, type DataCollectionDefinition as eb, DataCollectionKind as ec, DataCollectionSchemaMode as ed, DataCollectionsAction as ee, type DataCollectionsRequest as ef, type DataCountResponse as eg, DataCounterKind as eh, type DataCounterResponse as ei, type DataDefinitionsResponse as ej, type DataDeleteResponse as ek, type DataFieldDefinition as el, DataFieldType as em, DataFieldVisibility as en, type DataFileUploadResponse as eo, type DataFileView as ep, type DataFilter as eq, type DataFilterOp as er, type DataGetManyResponse as es, type DataGetResponse as et, type DataItemView as eu, type DataOperationEconomy as ev, DataOwnerDeletedPolicy as ew, type DataPublicViewDefinition as ex, type DataPublicViewPage as ey, type DataPublicViewPointer as ez, ItemService as f, type GetActiveTimedBoostsResponse as f$, type DealOfferGraph as f0, type DealOfferPresetBindings as f1, type DealOfferPresetRegistry as f2, type DealOfferRequest as f3, type DealOffersDefinitionResponse as f4, type DealRewardedVideoActionDefinition as f5, type DealSlotBehaviour as f6, type DealSlotDefinition as f7, type DealSlotPresetBindings as f8, type DealSlotQueueEntry as f9, type EventTokenSpendResponse as fA, EventTokenType as fB, type ExecuteCloudCodeResponse as fC, type ExecuteNodeResponse as fD, ExperimentAction as fE, type ExperimentDefinition as fF, type ExperimentDefinitions as fG, type ExperimentGoal as fH, ExperimentGoalKind as fI, type ExperimentRequest as fJ, type ExperimentVariant as fK, type ExperimentVariantCondition as fL, FRIENDS_FROM_PLATFORM as fM, type FodderConsumedEntry as fN, FodderSelectionMode as fO, FodderValuationMode as fP, type FriendActionResponse as fQ, FriendActionStatus as fR, type FriendPublicProfile as fS, FriendSource as fT, type FriendsListResponse as fU, GameLoopAction as fV, type GameLoopDefinitions as fW, type GameLoopRequest as fX, type GetActiveBoostWindowsResponse as fY, type GetActiveDealsResponse as fZ, type GetActiveEventsResponse as f_, type DealTrackChange as fa, type DealTrackDefinition as fb, type DealTrackRequirement as fc, type DeclineTradeOfferResponse as fd, type DepositNFTResponse as fe, type DepositTokenResponse as ff, type DirectMessageSettings as fg, type DismissDealResponse as fh, type DonationResponse as fi, type DroppedEvent as fj, EVENT_NAME_PATTERN as fk, EnvelopeType as fl, type EquipItemsResponse as fm, type EquipSkinResponse as fn, type EquipSlotPair as fo, type EquipmentPreset as fp, type EquipmentSlot as fq, type EquippedItem as fr, type EventMap as fs, type EventMilestoneClaimResponse as ft, type EventTokenAddress as fu, type EventTokenConversion as fv, type EventTokenDefinition as fw, type EventTokenGrantResponse as fx, type EventTokenMilestoneData as fy, type EventTokenOperation as fz, CheckoutService as g, LocalizationAction as g$, type GetCharacterSkinsResponse as g0, type GetCharactersResponse as g1, type GetExperimentsResponse as g2, type GetLeaderboardResponse as g3, type GetLeaderboardsBatchResponse as g4, type GetMailboxMessagesResponse as g5, type GetMatchDefinitionsResponse as g6, type GetMilestoneRewardMultiplierResponse as g7, type GetMyProgressResponse as g8, type GetMyUserCustomDataResponse as g9, ItemAction as gA, type ItemCatalog as gB, type ItemDefinition as gC, type ItemDefinitions as gD, type ItemEquipment as gE, type ItemMetadata as gF, type ItemRequest as gG, type ItemStats as gH, type ItemTotals as gI, type ItemUpgrade as gJ, type ItemUpgradeFodder as gK, type ItemUpgradeRef as gL, type JsonValue as gM, type KickMemberResponse as gN, KycStatus as gO, KycTier as gP, LeaderboardAction as gQ, type LeaderboardDefinitions as gR, type LeaderboardMilestoneRef as gS, type LeaderboardOverview as gT, type LeaderboardRequest as gU, type LeaderboardScoreRef as gV, type LeaderboardUserEntry as gW, type LeaveRoomResponse as gX, type LevelsPreset as gY, type LimitSpec as gZ, type LinkedWalletInfo as g_, type GetOverviewBatchResponse as ga, type GetProgressBatchResponse as gb, type GetPublicTitleDataResponse as gc, type GetPublicUserCustomDataResponse as gd, type GetStorefrontResponse as ge, type GetTradeOffersResponse as gf, type GetUserQuestStateResponse as gg, type GetUserTutorialStateResponse as gh, type GrantStatusTokensResponse as gi, type GrantTokensBatchResponse as gj, type GrantedCollectible as gk, type HeistCell as gl, type IDosGamesSettings as gm, type IapProductDefinition as gn, type IapProductPurchaseState as go, type IapProductRules as gp, IapProductType as gq, IapPurchaseStatus as gr, type IapStore as gs, IapStore$1 as gt, type InboxBadgeResponse as gu, type InboxResponse as gv, type InstantBattleDefinitions as gw, type InstantBattleResponse as gx, type InstantBattleRule as gy, type InventoryDelta as gz, RewardService as h, type MarketplaceHistoryResponse as h$, type LocalizationDefinitions as h0, type LocalizationLocaleDefinition as h1, type LocalizationLocaleInfo as h2, type LocalizationManifestResponse as h3, LocalizationMissingKeyMode as h4, type LocalizationParams as h5, type LocalizationRequest as h6, type LocalizationState as h7, type LocalizationTableRef as h8, type LocalizationTableResponse as h9, type MailboxLetter as hA, MailboxLetterSource as hB, type MailboxOperationResponse as hC, type MailboxPendingReward as hD, type MailboxRequest as hE, MailboxRewardModule as hF, type MailboxSendGiftResponse as hG, type MailboxSendTransferResponse as hH, MarketGoodsType as hI, MarketOfferStatus as hJ, MarketOfferType as hK, MarketplaceAction as hL, type MarketplaceActionCounter as hM, type MarketplaceAuctionSettings as hN, type MarketplaceAuctionState as hO, type MarketplaceBidRefund as hP, type MarketplaceBrowseResponse as hQ, type MarketplaceBuyOrderSettings as hR, type MarketplaceCommissionOverride as hS, type MarketplaceCommissionPolicy as hT, type MarketplaceCreateOfferResponse as hU, type MarketplaceDefinitions as hV, type MarketplaceDirectTradeSettings as hW, type MarketplaceGetDefinitionsResponse as hX, type MarketplaceGroupedOfferView as hY, type MarketplaceGroupedOffersResponse as hZ, type MarketplaceHistoryEntryView as h_, type LogEventsResponse as ha, LootboxAction as hb, type LootboxAmountRange as hc, type LootboxDefinitions as hd, type LootboxDefinitionsResponse as he, type LootboxGlobalSettings as hf, type LootboxOpenResponse as hg, type LootboxPityRule as hh, type LootboxPityTriggerResponse as hi, type LootboxRequest as hj, type LootboxRewardRoll as hk, type LootboxRewardSlot as hl, type LootboxSupplyRule as hm, MAILBOX_COUNTER_CAP as hn, type MailLink as ho, type MailTemplateDefinition as hp, type MailText as hq, MailboxAction as hr, MailboxCategory as hs, type MailboxClaimResponse as ht, type MailboxClaimedLetter as hu, type MailboxCountersResponse as hv, type MailboxDefinitions as hw, MailboxErrors as hx, type MailboxGiftStatusResponse as hy, type MailboxItemFailure as hz, AnalyticsService as i, type PremiumStateResponse as i$, type MarketplaceListingSettings as i0, type MarketplaceMatchingSettings as i1, type MarketplaceMyStateResponse as i2, type MarketplaceOfferResponse as i3, type MarketplaceOfferView as i4, type MarketplacePlaceBidResponse as i5, type MarketplacePricePolicy as i6, type MarketplaceRequest as i7, type MarketplaceSettlementResponse as i8, type MarketplaceTradabilityPolicy as i9, type OperationFailureReason as iA, type OperationResult as iB, type OperationSuccess as iC, type PackOpenResult as iD, type PaymentProof as iE, type PaymentRequirement as iF, type PendingWithdrawalRef as iG, type PlatformBlockchainState as iH, type PlatformBridgeDefinitions as iI, PlatformFriendsMode as iJ, type PlatformLoginResponse as iK, PlatformProfileMode as iL, type PlayAccessInfoResponse as iM, PlayAccessMode as iN, type PlayAccessState as iO, type PlayAccessStatus as iP, type PlayAccessWallet as iQ, type PlayerEconomyTuningState as iR, PlayerExperimentStatus as iS, type PlayerExperimentView as iT, PlaytimeTracker as iU, type PollResponse as iV, PremiumAction as iW, type PremiumDefinitions as iX, type PremiumDefinitionsResponse as iY, type PremiumPurchaseResponse as iZ, type PremiumRequest as i_, MatchAction as ia, type MatchDefinitions as ib, type MatchRequest as ic, MatchStatus as id, type MatchesPageResponse as ie, type MilestoneClaimEntry as ig, type MilestoneClaimRef as ih, type MilestoneDefinition as ii, MultiplayerAction as ij, MultiplayerChatMode as ik, type MultiplayerDefinitions as il, type MultiplayerRequest as im, type MultiplayerSystemState as io, MultiplayerTopology as ip, type NFTModel as iq, type NFTNetworkBinding as ir, type NFTTransactionDocument as is, type NFTWithdrawalResponse as it, type NftCollectionStats as iu, type NftStatsContainer as iv, OFFER_NOT_IN_ROTATION as iw, type OpenCollectionChestResponse as ix, type OpenPackResponse as iy, type OperationFailure as iz, CommunityMarketingService as j, RewardAction as j$, type PremiumSubscription as j0, type PriceOption as j1, type PriceOptions as j2, type PublishResponse as j3, PurchaseAction as j4, type PurchaseBatchResponse as j5, type PurchaseDefinitions as j6, type PurchaseReceiptRef as j7, type PurchaseRequest as j8, type PurchaseValidationBatchResponse as j9, QuestPrerequisiteMode as jA, type QuestPresetBindings as jB, type QuestPresetRegistry as jC, type QuestProgressUpdate as jD, type QuestRequest as jE, type QuestReward as jF, QuestStatus as jG, RaidMode as jH, type RaidResponse as jI, type RealtimeEnvelope as jJ, type RechargeConfig as jK, type RecordShowResponse as jL, ReferralAction as jM, type ReferralDefinitions as jN, type ReferralDefinitionsResponse as jO, type ReferralInviteRewardState as jP, type ReferralRequest as jQ, type RelativeWindow as jR, type ResourceBundle as jS, type ResourceConsume as jT, type ResourceDualPartyResult as jU, type ResourceEntry as jV, ResourceEntryType as jW, type ResourceGrant as jX, type ResourceOperation as jY, type ResourceTransferResult as jZ, type RetryWithdrawalResponse as j_, type PurchaseValidationResponse as ja, PushAction as jb, type PushConfigResponse as jc, PushPermissionState as jd, type PushRequest as je, type PushSubscribeOptions as jf, type PushSubscribeResult as jg, type PushSubscriptionListResponse as jh, type PushSubscriptionView as ji, PushTopic as jj, type PushTopicView as jk, PushTransport as jl, type PvPMatch as jm, QuestAction as jn, type QuestAvailability as jo, type QuestClaimRef as jp, type QuestCycleDefinition as jq, type QuestDefinition as jr, type QuestDefinitions as js, type QuestGroupCompletionDefinition as jt, type QuestIdentity as ju, type QuestLinking as jv, type QuestObjectiveDefinition as jw, QuestObjectiveSource as jx, type QuestPhaseDefinition as jy, type QuestPointsTrackView as jz, ChatService as k, type StoreAvailability as k$, type RewardDefinitions as k0, type RewardDefinitionsResponse as k1, type RewardRequest as k2, type RollActionData as k3, type RoomListItem as k4, type RoomMemberView as k5, type RoomSnapshotResponse as k6, RoomVisibility as k7, type RoomsPageResponse as k8, SKIN_ALREADY_OWNED as k9, type SocialCursor as kA, type SocialDefinitions as kB, type SocialEntityState as kC, type SocialEntityStatesResponse as kD, SocialEntityType as kE, type SocialGiftDefinition as kF, type SocialInboxItem as kG, SocialInboxVerb as kH, SocialReactionKind as kI, type SocialReactionPage as kJ, type SocialReactionView as kK, SocialReportReason as kL, type SocialReportResponse as kM, type SocialRequest as kN, type SolanaWithdrawalSignature as kO, type SpecialApplyMultiplierResponse as kP, SpecialChoiceMode as kQ, type SpecialChooseResponse as kR, type SpecialClaimResponse as kS, type SpecialModeOfferData as kT, type SpecialPendingState as kU, type SpendRewardDefinition as kV, type SpendTokensBatchResponse as kW, type StatDefinition as kX, type StatRequirement as kY, type StatsPreset as kZ, StoreAction as k_, SKIN_SLOT as ka, type ScheduleChain as kb, type ScheduleChainPhase as kc, ScheduleMode as kd, type ScheduleSpec as ke, type ScheduledWindow as kf, SeasonAction as kg, type SeasonDefinitions as kh, type SeasonRequest as ki, type SeasonTierRewardBundle as kj, type SeasonTierRewardMultiplier as kk, type SeasonTierRewardSet as kl, type SegmentGate as km, type SendTradeOfferResponse as kn, type SetUserCustomDataResponse as ko, type SettingsInput as kp, SocialAction as kq, type SocialActorPage as kr, type SocialActorSnapshot as ks, type SocialActorView as kt, type SocialCommentDeleteResponse as ku, type SocialCommentPage as kv, type SocialCommentView as kw, SocialContentStatus as kx, type SocialCounters as ky, type SocialCounts as kz, PushService as l, type TutorialAvailability as l$, type StoreDefinition as l0, type StoreDefinitions as l1, type StoreIdentity as l2, type StoreLayout as l3, type StoreOfferAvailability as l4, type StoreOfferDefinition as l5, type StoreOfferPricing as l6, type StoreOfferReward as l7, type StoreOfferStateView as l8, type StorePurchaseRef as l9, type TimedEventInstanceRef as lA, type TimedEventMilestoneRef as lB, type TimedEventRequest as lC, type TimedEventSpendRef as lD, TitleAction as lE, TitleConfig as lF, TitleCustomDataAction as lG, type TitleCustomDataDefinitions as lH, type TitleCustomDataKeyDefinition as lI, type TitleCustomDataRecord as lJ, type TitleCustomDataRequest as lK, TitleDataBucket as lL, TitleDataScope as lM, type TitlePublicConfigurationModel as lN, type TitleRequest as lO, type TokenCurrencyStats as lP, type TokenStatsContainer as lQ, type TokenTransactionDocument as lR, type TokenWithdrawalResponse as lS, TradeOfferStatus as lT, TransactionDirection as lU, type TransactionHistoryResponse as lV, type TransferGiftDefinition as lW, type TransferableResource as lX, type TriggerContext as lY, type TriggerSource as lZ, TutorialAction as l_, type StorePurchaseResponse as la, type StorePurchaseState as lb, type StoreRequest as lc, StoreRotationMode as ld, type StoreRotationPurchaseState as le, type StoreSectionDefinition as lf, type StoreSlotDefinition as lg, type StoreSlotPoolEntry as lh, type StoreSlotRotation as li, StoreType as lj, type StorefrontOfferView as lk, type StorefrontPriceOptionView as ll, type StorefrontSectionView as lm, type StorefrontSlotView as ln, type StorefrontView as lo, type SubmitScoreResponse as lp, type SubmitScoresBatchResponse as lq, type SuccessResponse as lr, type TelegramInvoiceResponse as ls, TimedBoostAction as lt, type TimedBoostDefinitions as lu, type TimedBoostRequest as lv, TimedBoostStackingPolicy as lw, TimedEventAction as lx, type TimedEventDefinitions as ly, type TimedEventGrantRef as lz, LocalizationService as m, type UserCryptoCurrencyState as m$, type TutorialBlockingPolicy as m0, TutorialBoardAction as m1, type TutorialBoardScript as m2, type TutorialClaimResponse as m3, type TutorialDefinitions as m4, type TutorialFlowBatchResponse as m5, type TutorialFlowDefinition as m6, type TutorialFlowPolicy as m7, type TutorialFlowResponse as m8, TutorialFlowStatus as m9, type UnlockSkinResponse as mA, type UnstackableItemInstanceState as mB, type UpdateMatchResponse as mC, type UpgradeCharacterLevelResponse as mD, type UpgradeCharacterLevelsBatchResponse as mE, type UpgradeItemLevelResponse as mF, type UpgradeLevelsBatchResponse as mG, type UpgradeLevelsOptions as mH, type UpgradeStatLevelResponse as mI, type UpgradeStatLevelsBatchResponse as mJ, type UsagePeriodRecord as mK, type UsageReactivationEvent as mL, type UsageTimeStats as mM, type UseCollectibleJokerResponse as mN, UserAction as mO, type UserBlockchainState as mP, type UserBlockchainStateResponse as mQ, type UserCharactersState as mR, type UserChatChannelState as mS, type UserChatLimitState as mT, type UserChatState as mU, type UserClaimRewardState as mV, type UserCollectionState as mW, type UserComebackState as mX, type UserCommunityChestState as mY, type UserCoopEventState as mZ, type UserCryptoComplianceCounters as m_, type TutorialFlowView as ma, type TutorialGateCondition as mb, TutorialGateMode as mc, type TutorialGlobalSettings as md, type TutorialIdentity as me, type TutorialPresetBindings as mf, type TutorialPresetRegistry as mg, type TutorialRequest as mh, TutorialRestartPolicy as mi, type TutorialReward as mj, TutorialScriptModule as mk, type TutorialScriptedOutcome as ml, type TutorialStepCompletion as mm, TutorialStepCompletionMode as mn, type TutorialStepDefinition as mo, type TutorialStepEffects as mp, type TutorialStepIdentity as mq, type TutorialStepPolicy as mr, type TutorialStepProgress as ms, TypedEmitter as mt, type UnbanMemberResponse as mu, type UnequipAllCharactersResponse as mv, type UnequipItemsResponse as mw, type UnequipSkinResponse as mx, type UnlockCharacterResponse as my, type UnlockCharactersBatchResponse as mz, TimedEventService as n, type WalletChallengeResponse as n$, UserCustomDataAction as n0, type UserCustomDataBatchDeleteItem as n1, type UserCustomDataBatchSetItem as n2, type UserCustomDataDefinitions as n3, type UserCustomDataKeyDefinition as n4, type UserCustomDataRecord as n5, type UserCustomDataRequest as n6, type UserCustomDataState as n7, type UserDailyCalendarState as n8, type UserDailyCounters as n9, type UserQuestCycleState as nA, type UserQuestObjectiveProgress as nB, type UserQuestProgress as nC, type UserQuestState as nD, type UserReferralState as nE, type UserReferralStateResponse as nF, type UserRequest as nG, type UserRewardState as nH, type UserRewardsStateResponse as nI, type UserSeasonState as nJ, type UserSeasonStateResponse as nK, type UserSeasonsState as nL, type UserSocialState as nM, type UserState as nN, type UserStateSlice as nO, type UserStateVersions as nP, type UserStoreState as nQ, type UserTimedBoostsState as nR, type UserTimedEventStateResponse as nS, type UserTutorialFlowState as nT, type UserTutorialState as nU, type UserTutorialStepState as nV, type UserUsageState as nW, type UserVirtualCurrencyState as nX, type VirtualCurrencyDefinition as nY, type VirtualCurrencyEconomy as nZ, type VirtualCurrencyPermissions as n_, UserData as na, type UserDealNodeLifetimeCounts as nb, type UserDealNodeState as nc, type UserDealOfferActivationState as nd, type UserDealOfferHistory as ne, type UserDealOffersState as nf, type UserDealOffersStateResponse as ng, type UserDealSlotState as nh, type UserDealTrackState as ni, type UserDepositAddress as nj, type UserEventTokenProgress as nk, type UserEventTokensState as nl, type UserGameLoopsState as nm, type UserIdleAccrualState as nn, type UserInventoryState as no, type UserKycState as np, type UserLeaderboardProgress as nq, type UserLeaderboardsState as nr, type UserLootboxPityCounter as ns, type UserLootboxState as nt, type UserMarketplaceState as nu, type UserMatchCreationLimitState as nv, type UserMatchState as nw, type UserPremiumState as nx, type UserPublicDataModel as ny, type UserPurchaseState as nz, LeaderboardService as o, zPaymentProof as o$, WalletGateBalanceSource as o0, type WalletGatedBalance as o1, type WalletLinkResponse as o2, WalletLinkType as o3, type WalletPlayTokenGate as o4, type WalletUnlinkResponse as o5, type WithdrawalSignatureResponse as o6, type WithdrawalSplit as o7, WorkshopAccessMode as o8, type WorkshopAccessOption as o9, WorkshopHoldingMatch as oA, WorkshopHoldingMode as oB, type WorkshopHoldingPolicy as oC, type WorkshopHoldingRequirement as oD, type WorkshopHoldingRule as oE, WorkshopLicenseSource as oF, type WorkshopLicenseView as oG, type WorkshopLicensesResponse as oH, type WorkshopLimits as oI, type WorkshopModerationSettings as oJ, type WorkshopPublishFile as oK, type WorkshopPublishInput as oL, type WorkshopPublishResponse as oM, type WorkshopRequest as oN, WorkshopSort as oO, type WorkshopUploadTarget as oP, WorkshopVisibility as oQ, claimedMilestoneIDs as oR, grantedPremiumTiers as oS, isAIGenerationTerminal as oT, isFail as oU, isMilestoneClaimed as oV, isOk as oW, isReservedSlot as oX, normalizeBlockchainCategory as oY, parseAIErrorCode as oZ, where as o_, type WorkshopAccessOptionInput as oa, type WorkshopAccessState as ob, WorkshopAccessVia as oc, type WorkshopAcquireResponse as od, WorkshopAction as oe, type WorkshopBeginUploadResponse as of, type WorkshopBrowseQuery as og, type WorkshopBrowseResponse as oh, type WorkshopCollection as oi, type WorkshopCollectionResponse as oj, type WorkshopCollectionView as ok, type WorkshopContentMutationResponse as ol, type WorkshopContentResponse as om, type WorkshopContentStats as on, WorkshopContentStatus as oo, type WorkshopContentType as op, type WorkshopContentView as oq, type WorkshopCreatorProfileResponse as or, type WorkshopDefinitions as os, type WorkshopDefinitionsResponse as ot, type WorkshopDownloadFile as ou, type WorkshopDownloadResponse as ov, type WorkshopDownloadedFile as ow, type WorkshopFileData as ox, type WorkshopFileDeclaration as oy, type WorkshopFileRole as oz, SeasonService as p, zPriceOption as p0, zPriceOptions as p1, PremiumService as q, CharacterService as r, MatchService as s, CraftService as t, AIService as u, CollectionService as v, CoopEventService as w, ReferralService as x, MailboxService as y, SocialService as z };
|
|
12937
|
+
export { type SdkEvents as $, AuthenticationService as A, TimedBoostService as B, type ChannelName as C, DealOfferService as D, ExperimentsService as E, UserCustomDataService as F, TitleCustomDataService as G, TitleService as H, type IceServer as I, GameLoopService as J, CloudCodeService as K, LootboxService as L, type MemberLeftKind as M, BlockchainService as N, type OperationResult as O, PurchaseService as P, QuestService as Q, type RealtimeClient as R, StoreService as S, TutorialService as T, UserService as U, MarketplaceService as V, MultiplayerService as W, WorkshopService as X, DataCollectionsService as Y, IDosGamesData as Z, DataCache as _, RealtimeSession as a, type BatchSetUserCustomDataResponse as a$, type Listener$1 as a0, type Unsubscribe as a1, type ConfigStorage as a2, AIAction as a3, type AIAudioInput as a4, type AIChatMessage as a5, AIErrorCode as a6, type AIGenerateOptions as a7, type AIGenerationAssetView as a8, type AIGenerationErrorView as a9, type AddQuestProgressResponse as aA, AnalyticsAction as aB, type AnalyticsClientContext as aC, type AnalyticsDefinitions as aD, type AnalyticsDimensionDefinition as aE, AnalyticsDropReason as aF, type AnalyticsEventDefinition as aG, type AnalyticsEventInput as aH, AnalyticsEventNaming as aI, AnalyticsLimits as aJ, type AnalyticsParamValue as aK, type AnalyticsParams as aL, type AnalyticsRequest as aM, AttackOutcome as aN, type AttackResponse as aO, type AttributionInput as aP, type AuthContext as aQ, type AuthOptionsResponse as aR, AuthType as aS, AuthenticationAction as aT, type AuthenticationRequest as aU, AutomaticEvent as aV, type BaseRequest as aW, type BatchDeleteUserCustomDataResponse as aX, type BatchGetPublicUserCustomDataResponse as aY, type BatchItemResult as aZ, type BatchResponse as a_, type AIGenerationListView as aa, AIGenerationStatus as ab, type AIGenerationView as ac, type AIHistoryQuery as ad, type AIImageEditInput as ae, type AIImageInput as af, type AIInputImage as ag, AIModality as ah, type AIMusicInput as ai, type AIPublicDefinitions as aj, type AIPublicFeature as ak, type AIRequest as al, type AITextInput as am, type AIThreeDInput as an, type AIVideoInput as ao, type AIWaitOptions as ap, type AcceptTradeOfferResponse as aq, AcquisitionCapture as ar, type ActivateReferralCodeResponse as as, type ActivateTimedBoostResponse as at, type ActiveBoostWindowInfo as au, type ActiveCoopEventInfo as av, type ActiveDealSlotInfo as aw, type ActiveEventInfo as ax, type ActiveSeasonInfo as ay, type ActiveTimedBoost as az, type RealtimeSessionEvents as b, type ChatConversationView as b$, type BattleResult as b0, type BattleStepConfig as b1, type BlockchainAccountSafetyPolicy as b2, BlockchainAction as b3, type BlockchainConfigResponse as b4, type BlockchainDefinitions as b5, type BlockchainNetworkDefinition as b6, BlockchainNetworkType as b7, type BlockchainNftCollectionBinding as b8, BlockchainOperationCategory as b9, type CharacterIdentity as bA, type CharacterLevelRef as bB, type CharacterModel as bC, type CharacterRankLadder as bD, type CharacterRequest as bE, type CharacterSkinDefinition as bF, type CharacterSkinItem as bG, type CharacterSkinRequirements as bH, type CharacterSkinSale as bI, type CharacterSkinView as bJ, type CharacterSkins as bK, type CharacterSkinsView as bL, type CharacterStatRef as bM, type CharacterUnequipResult as bN, type CharacterUnlock as bO, ChatAction as bP, ChatAuthorType as bQ, ChatBlockedTermAction as bR, type ChatChannelAvailability as bS, type ChatChannelDefinition as bT, type ChatChannelIdentity as bU, type ChatChannelPresetBindings as bV, type ChatChannelRetention as bW, ChatChannelType as bX, type ChatChannelView as bY, type ChatChannelWriteRules as bZ, type ChatChannelsResponse as b_, type BlockchainPlayAccessPolicy as ba, type BlockchainRequest as bb, type BlockchainStats as bc, type BlockchainSystemState as bd, BlockchainTransactionStatus as be, BlockchainTransactionType as bf, type BoardLoopDefinition as bg, type BoardLoopState as bh, type BoardPendingInteraction as bi, type BoardRollResponse as bj, BodyPart as bk, type BoostTriggerCounter as bl, BoostWindowKind as bm, type BuildResponse as bn, type BuildingState as bo, type CacheEntryInfo as bp, type CachedView as bq, type CancelMatchResponse as br, type CancelTradeOfferResponse as bs, type ChangeUsernameResponse as bt, CharacterAction as bu, type CharacterClassification as bv, type CharacterDefinition as bw, type CharacterDefinitions as bx, type CharacterEquipment as by, type CharacterEquipmentSlot as bz, type RealtimeSessionOptions as c, type CommunityChestClaimResponse as c$, type ChatConversationsResponse as c0, type ChatCursor as c1, type ChatDefinitions as c2, ChatDirectAudience as c3, type ChatDirectChannelResponse as c4, type ChatHistoryResponse as c5, type ChatMessageView as c6, type ChatModerationSettings as c7, ChatPartitioning as c8, type ChatPollResponse as c9, type ClaimQuestRewardsBatchResponse as cA, type ClaimRewardResponse as cB, type ClaimSetRewardResponse as cC, type ClaimSetRewardsBatchResponse as cD, type ClaimTierRewardResponse as cE, type ClaimTierRewardsBatchResponse as cF, ClientPlatform as cG, type ClientState as cH, type ClientStateViewRequest as cI, type ClientStateViewResult as cJ, CloudCodeAction as cK, CloudCodeErrorCode as cL, type CloudCodeLogEntry as cM, CloudCodeLogLevel as cN, type CloudCodeRequest as cO, CloudCodeRevisionSelection as cP, type CodeExecutionError as cQ, type CollectIdleAccrualResponse as cR, CollectionAction as cS, type CollectionDefinitions as cT, type CollectionGlobalSettings as cU, type CollectionRequest as cV, type CollectionSetRef as cW, type CollectionTradeOfferDocument as cX, CommissionSink as cY, type CommunityAccrualLine as cZ, type CommunityCampaignSummary as c_, type ChatPollingSettings as ca, type ChatPresetRegistry as cb, ChatReportReason as cc, type ChatReportResponse as cd, type ChatRequest as ce, type ChatRoomUpdate as cf, type ChatSendResponse as cg, type ChatStateResponse as ch, type ClaimAllRewardsBatchResponse as ci, type ClaimAllRewardsResult as cj, type ClaimComebackRewardResponse as ck, type ClaimCycleRewardResponse as cl, type ClaimCycleRewardsBatchResponse as cm, type ClaimDailyRewardResponse as cn, type ClaimDealMilestoneResponse as co, type ClaimDealMilestonesBatchResponse as cp, type ClaimGrandPrizeResponse as cq, type ClaimGroupCompletionRewardResponse as cr, type ClaimInviteRewardResponse as cs, type ClaimInviteRewardsBatchResponse as ct, type ClaimLeaderboardMilestoneResponse as cu, type ClaimLeaderboardMilestonesBatchResponse as cv, type ClaimMilestoneRewardResponse as cw, type ClaimMilestoneRewardsBatchResponse as cx, type ClaimMilestonesBatchResponse as cy, type ClaimQuestRewardResponse as cz, type IDosGamesClientConfig as d, type CryptoShortfall as d$, type CommunityChestGroupDocument as d0, type CommunityChestGroupStateResponse as d1, type CommunityChestHistoryEntry as d2, type CommunityChestLeaveResponse as d3, type CommunityChestMember as d4, CommunityChestMemberStatus as d5, type CommunityChestSharedState as d6, CommunityChestStatus as d7, type CommunityChestUserStateResponse as d8, type CommunityClaimResponse as d9, type CoopGroupDocument as dA, type CoopGroupMember as dB, type CoopGroupStateResponse as dC, CoopGroupStatus as dD, type CoopLeaveGroupResponse as dE, CoopMemberStatus as dF, type CoopPartnerObjectState as dG, type CoopSpinResponse as dH, type CoopUserStateResponse as dI, CraftAction as dJ, type CraftBurnedInstance as dK, type CraftDefinition as dL, type CraftDefinitions as dM, type CraftDefinitionsResponse as dN, CraftInputSelectionMode as dO, CraftOutputLevelMode as dP, CraftOutputLevelOverflow as dQ, type CraftRequest as dR, type CraftResponse as dS, type CraftSingleResult as dT, CraftType as dU, type CreateMatchResponse as dV, type CryptoConvertResponse as dW, type CryptoCurrencyDefinition as dX, type CryptoCurrencyPermissions as dY, type CryptoLimits as dZ, type CryptoNetworkBinding as d_, CommunityCreatorStatus as da, type CommunityEarningsLine as db, type CommunityEarningsResponse as dc, type CommunityEligibilityCondition as dd, type CommunityEligibilityResponse as de, CommunityMarketingAction as df, type CommunityMarketingRequest as dg, type CommunityMarketingState as dh, CommunityMetricKind as di, CommunityParticipationMode as dj, CommunityPayoutCurrencyKind as dk, type CommunityPayoutSummary as dl, type CommunitySolanaWithdrawalSignature as dm, type CommunityWithdrawalResponse as dn, type ConfirmWithdrawalResponse as dp, type ConversionDailyCounter as dq, ConversionRateMode as dr, type ConversionTarget as ds, type ConvertResponse as dt, type CoopBuildObjectsMemberState as du, type CoopBuildObjectsState as dv, type CoopClaimRewardResponse as dw, CoopEventAction as dx, type CoopEventDefinitions as dy, type CoopEventRequest as dz, CurrencyService as e, DealNodeRuntimeStatus as e$, CurrencyAction as e0, type CurrencyAudit as e1, type CurrencyConversion as e2, type CurrencyDefinitions as e3, type CurrencyRequest as e4, CurrencyStatus as e5, CurrencyType as e6, CustomDataBucket as e7, CustomDataValueType as e8, CustomDataWriter as e9, type DataItemView as eA, type DataOperationEconomy as eB, DataOwnerDeletedPolicy as eC, type DataPublicViewDefinition as eD, type DataPublicViewPage as eE, type DataPublicViewPointer as eF, type DataPublicViewsResponse as eG, type DataQueryResponse as eH, type DataQuerySpec as eI, type DataReadOptions as eJ, type DataRecord as eK, DataRefKind as eL, type DataRefTarget as eM, type DataRolesResponse as eN, type DataSortKeyDefinition as eO, type DataUpdateSpec as eP, type DataWriteResponse as eQ, type DealAvailability as eR, DealComparisonOperator as eS, type DealIdentity as eT, type DealMilestoneBlock as eU, type DealMilestoneProgressInfo as eV, type DealNodeActionDefinition as eW, type DealNodeDefinition as eX, type DealNodePresetBindings as eY, type DealNodePricing as eZ, type DealNodeReward as e_, type CyclicSchedule as ea, DEFAULT_BASE_URL as eb, type DailyUsageRecord as ec, DataAccessMode as ed, type DataAccessRule as ee, type DataBatchOperation as ef, type DataBatchResponse as eg, type DataCollectionDefinition as eh, DataCollectionKind as ei, DataCollectionSchemaMode as ej, DataCollectionsAction as ek, type DataCollectionsRequest as el, type DataCountResponse as em, DataCounterKind as en, type DataCounterResponse as eo, type DataDefinitionsResponse as ep, type DataDeleteResponse as eq, type DataFieldDefinition as er, DataFieldType as es, DataFieldVisibility as et, type DataFileUploadResponse as eu, type DataFileView as ev, type DataFilter as ew, type DataFilterOp as ex, type DataGetManyResponse as ey, type DataGetResponse as ez, ItemService as f, type FriendsListResponse as f$, DealNodeType as f0, type DealNodeUnlockRules as f1, DealOfferAction as f2, DealOfferActivationStatus as f3, type DealOfferDefinition as f4, type DealOfferDefinitions as f5, type DealOfferGraph as f6, type DealOfferPresetBindings as f7, type DealOfferPresetRegistry as f8, type DealOfferRequest as f9, type EventMilestoneClaimResponse as fA, type EventTokenAddress as fB, type EventTokenConversion as fC, type EventTokenDefinition as fD, type EventTokenGrantResponse as fE, type EventTokenMilestoneData as fF, type EventTokenOperation as fG, type EventTokenSpendResponse as fH, EventTokenType as fI, type ExecuteCloudCodeResponse as fJ, type ExecuteNodeResponse as fK, ExperimentAction as fL, type ExperimentDefinition as fM, type ExperimentDefinitions as fN, type ExperimentGoal as fO, ExperimentGoalKind as fP, type ExperimentRequest as fQ, type ExperimentVariant as fR, type ExperimentVariantCondition as fS, FRIENDS_FROM_PLATFORM as fT, type FodderConsumedEntry as fU, FodderSelectionMode as fV, FodderValuationMode as fW, type FriendActionResponse as fX, FriendActionStatus as fY, type FriendPublicProfile as fZ, FriendSource as f_, type DealOffersDefinitionResponse as fa, type DealRewardedVideoActionDefinition as fb, type DealSlotBehaviour as fc, type DealSlotDefinition as fd, type DealSlotPresetBindings as fe, type DealSlotQueueEntry as ff, type DealTrackChange as fg, type DealTrackDefinition as fh, type DealTrackRequirement as fi, type DeclineTradeOfferResponse as fj, type DepositNFTResponse as fk, type DepositTokenResponse as fl, type DirectMessageSettings as fm, type DismissDealResponse as fn, type DonationResponse as fo, type DroppedEvent as fp, EVENT_NAME_PATTERN as fq, type EnsureStateOptions as fr, EnvelopeType as fs, type EquipItemsResponse as ft, type EquipSkinResponse as fu, type EquipSlotPair as fv, type EquipmentPreset as fw, type EquipmentSlot as fx, type EquippedItem as fy, type EventMap as fz, CheckoutService as g, type LeaderboardOverview as g$, GameLoopAction as g0, type GameLoopDefinitions as g1, type GameLoopRequest as g2, type GetActiveBoostWindowsResponse as g3, type GetActiveDealsResponse as g4, type GetActiveEventsResponse as g5, type GetActiveTimedBoostsResponse as g6, type GetCharacterSkinsResponse as g7, type GetCharactersResponse as g8, type GetExperimentsResponse as g9, type IapStore as gA, IapStore$1 as gB, type InboxBadgeResponse as gC, type InboxResponse as gD, type InstantBattleDefinitions as gE, type InstantBattleResponse as gF, type InstantBattleRule as gG, type InventoryDelta as gH, ItemAction as gI, type ItemCatalog as gJ, type ItemDefinition as gK, type ItemDefinitions as gL, type ItemEquipment as gM, type ItemMetadata as gN, type ItemRequest as gO, type ItemStats as gP, type ItemTotals as gQ, type ItemUpgrade as gR, type ItemUpgradeFodder as gS, type ItemUpgradeRef as gT, type JsonValue as gU, type KickMemberResponse as gV, KycStatus as gW, KycTier as gX, LeaderboardAction as gY, type LeaderboardDefinitions as gZ, type LeaderboardMilestoneRef as g_, type GetLeaderboardResponse as ga, type GetLeaderboardsBatchResponse as gb, type GetMailboxMessagesResponse as gc, type GetMatchDefinitionsResponse as gd, type GetMilestoneRewardMultiplierResponse as ge, type GetMyProgressResponse as gf, type GetMyUserCustomDataResponse as gg, type GetOverviewBatchResponse as gh, type GetProgressBatchResponse as gi, type GetPublicTitleDataResponse as gj, type GetPublicUserCustomDataResponse as gk, type GetStorefrontResponse as gl, type GetTradeOffersResponse as gm, type GetUserQuestStateResponse as gn, type GetUserTutorialStateResponse as go, type GrantStatusTokensResponse as gp, type GrantTokensBatchResponse as gq, type GrantedCollectible as gr, type HeistCell as gs, type IDosGamesSettings as gt, type IapProductAvailability as gu, type IapProductDefinition as gv, type IapProductPurchaseState as gw, type IapProductRules as gx, IapProductType as gy, IapPurchaseStatus as gz, RewardService as h, type MarketplaceBuyOrderSettings as h$, type LeaderboardRequest as h0, type LeaderboardScoreRef as h1, type LeaderboardUserEntry as h2, type LeaveRoomResponse as h3, type LevelsPreset as h4, type LimitSpec as h5, type LinkedWalletInfo as h6, LocalizationAction as h7, type LocalizationDefinitions as h8, type LocalizationLocaleDefinition as h9, type MailText as hA, MailboxAction as hB, MailboxCategory as hC, type MailboxClaimResponse as hD, type MailboxClaimedLetter as hE, type MailboxCountersResponse as hF, type MailboxDefinitions as hG, MailboxErrors as hH, type MailboxGiftStatusResponse as hI, type MailboxItemFailure as hJ, type MailboxLetter as hK, MailboxLetterSource as hL, type MailboxOperationResponse as hM, type MailboxPendingReward as hN, type MailboxRequest as hO, MailboxRewardModule as hP, type MailboxSendGiftResponse as hQ, type MailboxSendTransferResponse as hR, MarketGoodsType as hS, MarketOfferStatus as hT, MarketOfferType as hU, MarketplaceAction as hV, type MarketplaceActionCounter as hW, type MarketplaceAuctionSettings as hX, type MarketplaceAuctionState as hY, type MarketplaceBidRefund as hZ, type MarketplaceBrowseResponse as h_, type LocalizationLocaleInfo as ha, type LocalizationManifestResponse as hb, LocalizationMissingKeyMode as hc, type LocalizationParams as hd, type LocalizationRequest as he, type LocalizationState as hf, type LocalizationTableRef as hg, type LocalizationTableResponse as hh, type LogEventsResponse as hi, type LoginViewParams as hj, type LoginViewsMode as hk, LootboxAction as hl, type LootboxAmountRange as hm, type LootboxDefinitions as hn, type LootboxDefinitionsResponse as ho, type LootboxGlobalSettings as hp, type LootboxOpenResponse as hq, type LootboxPityRule as hr, type LootboxPityTriggerResponse as hs, type LootboxRequest as ht, type LootboxRewardRoll as hu, type LootboxRewardSlot as hv, type LootboxSupplyRule as hw, MAILBOX_COUNTER_CAP as hx, type MailLink as hy, type MailTemplateDefinition as hz, AnalyticsService as i, type PlayAccessWallet as i$, type MarketplaceCommissionOverride as i0, type MarketplaceCommissionPolicy as i1, type MarketplaceCreateOfferResponse as i2, type MarketplaceDefinitions as i3, type MarketplaceDirectTradeSettings as i4, type MarketplaceGetDefinitionsResponse as i5, type MarketplaceGroupedOfferView as i6, type MarketplaceGroupedOffersResponse as i7, type MarketplaceHistoryEntryView as i8, type MarketplaceHistoryFilter as i9, type MultiplayerSystemState as iA, MultiplayerTopology as iB, type NFTModel as iC, type NFTNetworkBinding as iD, type NFTTransactionDocument as iE, type NFTWithdrawalResponse as iF, type NftCollectionStats as iG, type NftStatsContainer as iH, OFFER_NOT_IN_ROTATION as iI, type OpenCollectionChestResponse as iJ, type OpenPackResponse as iK, type OperationFailure as iL, type OperationFailureReason as iM, type OperationSuccess as iN, type PackOpenResult as iO, type PaymentProof as iP, type PaymentRequirement as iQ, type PendingWithdrawalRef as iR, type PlatformBlockchainState as iS, type PlatformBridgeDefinitions as iT, PlatformFriendsMode as iU, type PlatformLoginResponse as iV, PlatformProfileMode as iW, type PlayAccessInfoResponse as iX, PlayAccessMode as iY, type PlayAccessState as iZ, type PlayAccessStatus as i_, type MarketplaceHistoryResponse as ia, type MarketplaceListingSettings as ib, type MarketplaceMatchingSettings as ic, type MarketplaceMyBidsFilter as id, type MarketplaceMyStateResponse as ie, type MarketplaceOfferResponse as ig, type MarketplaceOfferView as ih, type MarketplacePlaceBidResponse as ii, type MarketplacePricePolicy as ij, type MarketplaceRequest as ik, type MarketplaceSettlementResponse as il, type MarketplaceTradabilityPolicy as im, MatchAction as io, type MatchDefinitions as ip, type MatchRequest as iq, MatchStatus as ir, type MatchesPageResponse as is, type MilestoneClaimEntry as it, type MilestoneClaimRef as iu, type MilestoneDefinition as iv, MultiplayerAction as iw, MultiplayerChatMode as ix, type MultiplayerDefinitions as iy, type MultiplayerRequest as iz, CommunityMarketingService as j, type ReferralDefinitionsResponse as j$, type PlayerEconomyTuningState as j0, PlayerExperimentStatus as j1, type PlayerExperimentView as j2, PlaytimeTracker as j3, type PollResponse as j4, PremiumAction as j5, type PremiumDefinitions as j6, type PremiumDefinitionsResponse as j7, type PremiumPurchaseResponse as j8, type PremiumRequest as j9, type QuestAvailability as jA, type QuestClaimRef as jB, type QuestCycleDefinition as jC, type QuestDefinition as jD, type QuestDefinitions as jE, type QuestGroupCompletionDefinition as jF, type QuestIdentity as jG, type QuestLinking as jH, type QuestObjectiveDefinition as jI, QuestObjectiveSource as jJ, type QuestPhaseDefinition as jK, type QuestPointsTrackView as jL, QuestPrerequisiteMode as jM, type QuestPresetBindings as jN, type QuestPresetRegistry as jO, type QuestProgressUpdate as jP, type QuestRequest as jQ, type QuestReward as jR, QuestStatus as jS, RaidMode as jT, type RaidResponse as jU, type ReadOptions as jV, type RealtimeEnvelope as jW, type RechargeConfig as jX, type RecordShowResponse as jY, ReferralAction as jZ, type ReferralDefinitions as j_, type PremiumStateResponse as ja, type PremiumSubscription as jb, type PriceOption as jc, type PriceOptions as jd, type PublishResponse as je, PurchaseAction as jf, type PurchaseBatchResponse as jg, type PurchaseDefinitions as jh, type PurchaseDefinitionsResponse as ji, type PurchaseReceiptRef as jj, type PurchaseRequest as jk, type PurchaseValidationBatchResponse as jl, type PurchaseValidationResponse as jm, PushAction as jn, type PushConfigResponse as jo, PushPermissionState as jp, type PushRequest as jq, type PushSubscribeOptions as jr, type PushSubscribeResult as js, type PushSubscriptionListResponse as jt, type PushSubscriptionView as ju, PushTopic as jv, type PushTopicView as jw, PushTransport as jx, type PvPMatch as jy, QuestAction as jz, ChatService as k, type SolanaWithdrawalSignature as k$, type ReferralInviteRewardState as k0, type ReferralRequest as k1, type RelativeWindow as k2, type ResourceBundle as k3, type ResourceConsume as k4, type ResourceDualPartyResult as k5, type ResourceEntry as k6, ResourceEntryType as k7, type ResourceGrant as k8, type ResourceOperation as k9, type SendTradeOfferResponse as kA, type SetUserCustomDataResponse as kB, type SettingsInput as kC, SocialAction as kD, type SocialActorPage as kE, type SocialActorSnapshot as kF, type SocialActorView as kG, type SocialCommentDeleteResponse as kH, type SocialCommentPage as kI, type SocialCommentView as kJ, SocialContentStatus as kK, type SocialCounters as kL, type SocialCounts as kM, type SocialCursor as kN, type SocialDefinitions as kO, type SocialEntityState as kP, type SocialEntityStatesResponse as kQ, SocialEntityType as kR, type SocialGiftDefinition as kS, type SocialInboxItem as kT, SocialInboxVerb as kU, SocialReactionKind as kV, type SocialReactionPage as kW, type SocialReactionView as kX, SocialReportReason as kY, type SocialReportResponse as kZ, type SocialRequest as k_, type ResourceTransferResult as ka, type RetryWithdrawalResponse as kb, RewardAction as kc, type RewardDefinitions as kd, type RewardDefinitionsResponse as ke, type RewardRequest as kf, type RollActionData as kg, type RoomListItem as kh, type RoomMemberView as ki, type RoomSnapshotResponse as kj, RoomVisibility as kk, type RoomsPageResponse as kl, SKIN_ALREADY_OWNED as km, SKIN_SLOT as kn, type ScheduleChain as ko, type ScheduleChainPhase as kp, ScheduleMode as kq, type ScheduleSpec as kr, type ScheduledWindow as ks, SeasonAction as kt, type SeasonDefinitions as ku, type SeasonRequest as kv, type SeasonTierRewardBundle as kw, type SeasonTierRewardMultiplier as kx, type SeasonTierRewardSet as ky, type SegmentGate as kz, PushService as l, type TitlePublicConfigurationModel as l$, type SpecialApplyMultiplierResponse as l0, SpecialChoiceMode as l1, type SpecialChooseResponse as l2, type SpecialClaimResponse as l3, type SpecialModeOfferData as l4, type SpecialPendingState as l5, type SpendRewardDefinition as l6, type SpendTokensBatchResponse as l7, type StatDefinition as l8, type StatRequirement as l9, type StorefrontSectionView as lA, type StorefrontSlotView as lB, type StorefrontView as lC, type SubmitScoreResponse as lD, type SubmitScoresBatchResponse as lE, type SuccessResponse as lF, type TelegramInvoiceResponse as lG, TimedBoostAction as lH, type TimedBoostDefinitions as lI, type TimedBoostRequest as lJ, TimedBoostStackingPolicy as lK, TimedEventAction as lL, type TimedEventDefinitions as lM, type TimedEventGrantRef as lN, type TimedEventInstanceRef as lO, type TimedEventMilestoneRef as lP, type TimedEventRequest as lQ, type TimedEventSpendRef as lR, TitleAction as lS, TitleConfig as lT, TitleCustomDataAction as lU, type TitleCustomDataDefinitions as lV, type TitleCustomDataKeyDefinition as lW, type TitleCustomDataRecord as lX, type TitleCustomDataRequest as lY, TitleDataBucket as lZ, TitleDataScope as l_, type StateRule as la, type StatsPreset as lb, StoreAction as lc, type StoreAvailability as ld, type StoreDefinition as le, type StoreDefinitions as lf, type StoreIdentity as lg, type StoreLayout as lh, type StoreOfferAvailability as li, type StoreOfferDefinition as lj, type StoreOfferPricing as lk, type StoreOfferReward as ll, type StoreOfferStateView as lm, type StorePurchaseRef as ln, type StorePurchaseResponse as lo, type StorePurchaseState as lp, type StoreRequest as lq, StoreRotationMode as lr, type StoreRotationPurchaseState as ls, type StoreSectionDefinition as lt, type StoreSlotDefinition as lu, type StoreSlotPoolEntry as lv, type StoreSlotRotation as lw, StoreType as lx, type StorefrontOfferView as ly, type StorefrontPriceOptionView as lz, LocalizationService as m, type UseCollectibleJokerResponse as m$, type TitleRequest as m0, type TokenCurrencyStats as m1, type TokenStatsContainer as m2, type TokenTransactionDocument as m3, type TokenWithdrawalResponse as m4, TradeOfferStatus as m5, TransactionDirection as m6, type TransactionHistoryResponse as m7, type TransferGiftDefinition as m8, type TransferableResource as m9, type TutorialStepCompletion as mA, TutorialStepCompletionMode as mB, type TutorialStepDefinition as mC, type TutorialStepEffects as mD, type TutorialStepIdentity as mE, type TutorialStepPolicy as mF, type TutorialStepProgress as mG, TypedEmitter as mH, type UnbanMemberResponse as mI, type UnequipAllCharactersResponse as mJ, type UnequipItemsResponse as mK, type UnequipSkinResponse as mL, type UnlockCharacterResponse as mM, type UnlockCharactersBatchResponse as mN, type UnlockSkinResponse as mO, type UnstackableItemInstanceState as mP, type UpdateMatchResponse as mQ, type UpgradeCharacterLevelResponse as mR, type UpgradeCharacterLevelsBatchResponse as mS, type UpgradeItemLevelResponse as mT, type UpgradeLevelsBatchResponse as mU, type UpgradeLevelsOptions as mV, type UpgradeStatLevelResponse as mW, type UpgradeStatLevelsBatchResponse as mX, type UsagePeriodRecord as mY, type UsageReactivationEvent as mZ, type UsageTimeStats as m_, type TriggerContext as ma, type TriggerSource as mb, TutorialAction as mc, type TutorialAvailability as md, type TutorialBlockingPolicy as me, TutorialBoardAction as mf, type TutorialBoardScript as mg, type TutorialClaimResponse as mh, type TutorialDefinitions as mi, type TutorialFlowBatchResponse as mj, type TutorialFlowDefinition as mk, type TutorialFlowPolicy as ml, type TutorialFlowResponse as mm, TutorialFlowStatus as mn, type TutorialFlowView as mo, type TutorialGateCondition as mp, TutorialGateMode as mq, type TutorialGlobalSettings as mr, type TutorialIdentity as ms, type TutorialPresetBindings as mt, type TutorialPresetRegistry as mu, type TutorialRequest as mv, TutorialRestartPolicy as mw, type TutorialReward as mx, TutorialScriptModule as my, type TutorialScriptedOutcome as mz, TimedEventService as n, type UserState as n$, UserAction as n0, type UserBlockchainState as n1, type UserBlockchainStateResponse as n2, type UserCharactersState as n3, type UserChatChannelState as n4, type UserChatLimitState as n5, type UserChatState as n6, type UserClaimRewardState as n7, type UserCollectionState as n8, type UserComebackState as n9, type UserGameLoopsState as nA, type UserIdleAccrualState as nB, type UserInventoryState as nC, type UserKycState as nD, type UserLeaderboardProgress as nE, type UserLeaderboardsState as nF, type UserLootboxPityCounter as nG, type UserLootboxState as nH, type UserMarketplaceState as nI, type UserMatchCreationLimitState as nJ, type UserMatchState as nK, type UserPremiumState as nL, type UserPublicDataModel as nM, type UserPurchaseState as nN, type UserQuestCycleState as nO, type UserQuestObjectiveProgress as nP, type UserQuestProgress as nQ, type UserQuestState as nR, type UserReferralState as nS, type UserReferralStateResponse as nT, type UserRequest as nU, type UserRewardState as nV, type UserRewardsStateResponse as nW, type UserSeasonState as nX, type UserSeasonStateResponse as nY, type UserSeasonsState as nZ, type UserSocialState as n_, type UserCommunityChestState as na, type UserCoopEventState as nb, type UserCryptoComplianceCounters as nc, type UserCryptoCurrencyState as nd, UserCustomDataAction as ne, type UserCustomDataBatchDeleteItem as nf, type UserCustomDataBatchSetItem as ng, type UserCustomDataDefinitions as nh, type UserCustomDataKeyDefinition as ni, type UserCustomDataRecord as nj, type UserCustomDataRequest as nk, type UserCustomDataState as nl, type UserDailyCalendarState as nm, type UserDailyCounters as nn, UserData as no, type UserDealNodeLifetimeCounts as np, type UserDealNodeState as nq, type UserDealOfferActivationState as nr, type UserDealOfferHistory as ns, type UserDealOffersState as nt, type UserDealOffersStateResponse as nu, type UserDealSlotState as nv, type UserDealTrackState as nw, type UserDepositAddress as nx, type UserEventTokenProgress as ny, type UserEventTokensState as nz, LeaderboardService as o, type WorkshopPublishResponse as o$, type UserStateSlice as o0, type UserStateVersions as o1, type UserStoreState as o2, type UserTimedBoostsState as o3, type UserTimedEventStateResponse as o4, type UserTutorialFlowState as o5, type UserTutorialState as o6, type UserTutorialStepState as o7, type UserUsageState as o8, type UserVirtualCurrencyState as o9, type WorkshopContentMutationResponse as oA, type WorkshopContentResponse as oB, type WorkshopContentStats as oC, WorkshopContentStatus as oD, type WorkshopContentType as oE, type WorkshopContentView as oF, type WorkshopCreatorProfileResponse as oG, type WorkshopDefinitions as oH, type WorkshopDefinitionsResponse as oI, type WorkshopDownloadFile as oJ, type WorkshopDownloadResponse as oK, type WorkshopDownloadedFile as oL, type WorkshopFileData as oM, type WorkshopFileDeclaration as oN, type WorkshopFileRole as oO, WorkshopHoldingMatch as oP, WorkshopHoldingMode as oQ, type WorkshopHoldingPolicy as oR, type WorkshopHoldingRequirement as oS, type WorkshopHoldingRule as oT, WorkshopLicenseSource as oU, type WorkshopLicenseView as oV, type WorkshopLicensesResponse as oW, type WorkshopLimits as oX, type WorkshopModerationSettings as oY, type WorkshopPublishFile as oZ, type WorkshopPublishInput as o_, type ViewSchema as oa, type VirtualCurrencyDefinition as ob, type VirtualCurrencyEconomy as oc, type VirtualCurrencyPermissions as od, type WalletChallengeResponse as oe, WalletGateBalanceSource as of, type WalletGatedBalance as og, type WalletLinkResponse as oh, WalletLinkType as oi, type WalletPlayTokenGate as oj, type WalletUnlinkResponse as ok, type WithdrawalSignatureResponse as ol, type WithdrawalSplit as om, WorkshopAccessMode as on, type WorkshopAccessOption as oo, type WorkshopAccessOptionInput as op, type WorkshopAccessState as oq, WorkshopAccessVia as or, type WorkshopAcquireResponse as os, WorkshopAction as ot, type WorkshopBeginUploadResponse as ou, type WorkshopBrowseQuery as ov, type WorkshopBrowseResponse as ow, type WorkshopCollection as ox, type WorkshopCollectionResponse as oy, type WorkshopCollectionView as oz, SeasonService as p, type WorkshopRequest as p0, WorkshopSort as p1, type WorkshopUploadTarget as p2, WorkshopVisibility as p3, claimedMilestoneIDs as p4, defineView as p5, grantedPremiumTiers as p6, isAIGenerationTerminal as p7, isFail as p8, isMilestoneClaimed as p9, isOk as pa, isReservedSlot as pb, normalizeBlockchainCategory as pc, parseAIErrorCode as pd, where as pe, zPaymentProof as pf, zPriceOption as pg, zPriceOptions as ph, PremiumService as q, CharacterService as r, MatchService as s, CraftService as t, AIService as u, CollectionService as v, CoopEventService as w, ReferralService as x, MailboxService as y, SocialService as z };
|