@idosgames/core 0.20.0 → 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.
@@ -1219,6 +1219,8 @@ declare const MatchStatus: {
1219
1219
  readonly InProgress: "InProgress";
1220
1220
  readonly Cancelled: "Cancelled";
1221
1221
  readonly Completed: "Completed";
1222
+ /** The offer outlived `MatchCreationSettings.OfferLifetimeSeconds`; the engine refunded the creator's entry. */
1223
+ readonly Expired: "Expired";
1222
1224
  };
1223
1225
  type MatchStatus = (typeof MatchStatus)[keyof typeof MatchStatus];
1224
1226
  type BattleStepConfig = { AttackTarget: 'Head' | 'Torso' | 'Legs'; DefenseTarget: 'Head' | 'Torso' | 'Legs'; };
@@ -1233,10 +1235,10 @@ interface UserMatchState {
1233
1235
  CreationLimits?: UserMatchCreationLimitState | null;
1234
1236
  }
1235
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; };
1236
- 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; };
1237
- 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; };
1238
1240
  type UpdateMatchResponse = { Match?: null | PvPMatch; };
1239
- 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; };
1240
1242
  type InstantBattleResponse = { Battle?: null | BattleResult; Resources?: null | ResourceOperation; ResourcesDual?: null | ResourceDualPartyResult; };
1241
1243
  type MatchesPageResponse = { Matches?: null | Array<PvPMatch>; Page?: null | number; PageSize?: null | number; HasMore?: null | boolean; };
1242
1244
  interface MatchRequest extends BaseRequest {
@@ -1273,7 +1275,7 @@ type MatchAction = (typeof MatchAction)[keyof typeof MatchAction];
1273
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; };
1274
1276
  type MatchEconomySettings = { BurnRate?: null | number; [key: string]: unknown; };
1275
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; };
1276
- 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; };
1277
1279
  /** One instant-battle rule, keyed by RuleID in InstantBattleDefinitions.Rules. */
1278
1280
  interface InstantBattleRule {
1279
1281
  RuleID?: string | null;
@@ -2875,6 +2877,8 @@ interface ClientState {
2875
2877
  * кладёт в локальное хранилище и отдаёт `client.localization`.
2876
2878
  */
2877
2879
  Localization?: LocalizationState | null;
2880
+ /** Server views the request asked for (`UserRequest.Views`); absent when none were asked. */
2881
+ Views?: ClientStateViewResult[] | null;
2878
2882
  [k: string]: unknown;
2879
2883
  }
2880
2884
  /**
@@ -2935,6 +2939,36 @@ interface UserRequest extends BaseRequest {
2935
2939
  * устареть они могут независимо: правка английского не трогает версию русского.
2936
2940
  */
2937
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;
2938
2972
  }
2939
2973
  declare const UserAction: {
2940
2974
  readonly GetClientState: "GetClientState";
@@ -3066,18 +3100,18 @@ type PlayAccessWallet = { NetworkID?: null | string; Address?: null | string; Ca
3066
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; };
3067
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; };
3068
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; };
3069
- 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; [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; };
3070
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; };
3071
3105
  type WithdrawalSplit = { To?: null | string; Amount?: null | string | number; [key: string]: unknown; };
3072
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; };
3073
- 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; SigIxIndex?: null | number; Ed25519PublicKey?: null | string; Ed25519Message?: null | string; UserID?: null | string; TitleID?: null | string; Category?: null | string; [key: string]: unknown; };
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; };
3074
3108
  type BlockchainConfigResponse = { Blockchain?: null | BlockchainDefinitions; CryptoCurrencies?: null | Record<string, CryptoCurrencyDefinition>; [key: string]: unknown; };
3075
3109
  type UserBlockchainStateResponse = { State?: null | UserBlockchainState; CryptoBalances?: null | Record<string, UserCryptoCurrencyState>; [key: string]: unknown; };
3076
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; };
3077
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; };
3078
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; };
3079
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; };
3080
- type TransactionHistoryResponse = { TokenTransactions?: null | Array<TokenTransactionDocument>; NFTTransactions?: null | Array<NFTTransactionDocument>; [key: string]: unknown; };
3114
+ type TransactionHistoryResponse = { TokenTransactions?: null | Array<TokenTransactionDocument>; NFTTransactions?: null | Array<NFTTransactionDocument>; RefundedIDs?: null | Array<string>; [key: string]: unknown; };
3081
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; };
3082
3116
  type RetryWithdrawalResponse = { TitleTransactionID?: null | string; Kind?: null | 'Token' | 'Nft'; EvmSignature?: null | WithdrawalSignatureResponse; SolanaSignature?: null | SolanaWithdrawalSignature; [key: string]: unknown; };
3083
3117
  type ConfirmWithdrawalResponse = { TitleTransactionID?: null | string; OnChainTxHash?: null | string; Status?: null | 'Completed' | 'Expired' | 'Pending' | 'Failed' | 'Abandoned'; StateDelta?: null | BlockchainStateDelta; [key: string]: unknown; };
@@ -3270,197 +3304,1041 @@ type OperationResult<T> = OperationSuccess<T> | OperationFailure;
3270
3304
  declare function isOk<T>(result: OperationResult<T>): result is OperationSuccess<T>;
3271
3305
  declare function isFail<T>(result: OperationResult<T>): result is OperationFailure;
3272
3306
 
3273
- /** Mailbox badge counters after any mailbox call. */
3274
- interface MailboxCounters {
3275
- UnreadCount: number;
3276
- UnclaimedCount: number;
3277
- }
3278
3307
  /**
3279
- * Mailbox of the player: letters with rewards, publisher broadcasts, friend gifts and transfers,
3280
- * unclaimed rewards of other modules.
3308
+ * Хранилище, переживающее перезапуск игры. Нужно ровно для одной вещи — держать конфиг тайтла
3309
+ * между сессиями, чтобы не качать его заново на каждом заходе (см. TitleConfigCache).
3281
3310
  *
3282
- * Every response that changes the mailbox carries fresh badge counters; the service re-emits them as
3283
- * `mailbox:countersChanged`, so a badge never needs its own polling after an action.
3311
+ * Интерфейс намеренно узкий и допускает как синхронную реализацию (localStorage), так и
3312
+ * асинхронную (IndexedDB, файловая система, PlayerPrefs в обёртке): вызывающий всегда делает
3313
+ * `await`, а синхронная реализация просто вернёт значение.
3284
3314
  */
3285
- declare class MailboxService {
3286
- private readonly ctx;
3287
- constructor(ctx: ClientContext);
3288
- private request;
3289
- private emitCounters;
3290
- /** The mailbox section as the client sees it (limits are not published — use getGiftStatus). */
3291
- get definitions(): MailboxDefinitions | undefined;
3292
- /** Is the mailbox switched on for this title (by the cached config)? */
3293
- get enabled(): boolean;
3294
- getDefinitions(): Promise<OperationResult<MailboxDefinitions>>;
3295
- /**
3296
- * One page of letters, newest first. The FIRST page (no cursor) also delivers broadcasts meant
3297
- * for this player, returns their expired transfers to them, and carries pending module rewards
3298
- * and the badge counters.
3299
- */
3300
- getMessages(options?: {
3301
- cursor?: string | null;
3302
- pageSize?: number;
3303
- category?: MailboxCategory;
3304
- language?: string;
3305
- }): Promise<OperationResult<GetMailboxMessagesResponse>>;
3306
- /** Badge counters only. Writes nothing on the server — cheap enough for a menu badge. */
3307
- getUnreadCount(): Promise<OperationResult<MailboxCountersResponse>>;
3308
- /** Mark letters read; `all: true` marks every unread letter. */
3309
- readMessages(messageIDs: string[] | "all"): Promise<OperationResult<MailboxOperationResponse>>;
3310
- /** Claim one letter or one live module reward (`live:...`). */
3311
- claimReward(messageID: string): Promise<OperationResult<MailboxClaimResponse>>;
3312
- /** Claim several letters in one server operation; failed ones come back in `Failed`. */
3313
- claimRewards(messageIDs: string[]): Promise<OperationResult<MailboxClaimResponse>>;
3314
- /** Claim everything claimable: stored letters and live module rewards. */
3315
- claimAll(): Promise<OperationResult<MailboxClaimResponse>>;
3316
- private afterClaim;
3317
- /**
3318
- * Delete letters. `"allRead"` removes every read letter without a pending reward. A letter with
3319
- * an unclaimed reward needs `force` (the reward is lost); deleting a friend's pending TRANSFER
3320
- * declines it and returns the resources to the friend.
3321
- */
3322
- deleteMessages(messageIDs: string[] | "allRead", options?: {
3323
- force?: boolean;
3324
- }): Promise<OperationResult<MailboxOperationResponse>>;
3325
- /**
3326
- * Gift to friends: one of a kind per friend per period (a day unless the title set IntervalSeconds/AnchorUtc).
3327
- * A gift with a `Cost` charges the sender per friend; not enough — `NOT_ENOUGH_RESOURCES` for the
3328
- * rest, nothing charged for them.
3329
- */
3330
- 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;
3331
3332
  /**
3332
- * Send own resources to a friend. They are taken now and wait in the friend's letter; declined or
3333
- * expired transfers come back. `requestID` is the idempotency key — keep it for retries of the SAME
3334
- * 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.
3335
3335
  */
3336
- sendTransfer(recipientUserID: string, entries: ResourceEntry[], options: {
3337
- requestID: string;
3338
- note?: string;
3339
- }): Promise<OperationResult<MailboxSendTransferResponse>>;
3340
- /** What is left of today's gift limits and who already got a gift today. */
3341
- getGiftStatus(): Promise<OperationResult<MailboxGiftStatusResponse>>;
3336
+ SelectedOptionID?: string;
3337
+ Levels?: number;
3338
+ TargetLevel?: number;
3339
+ FodderInstanceIDs?: string[];
3340
+ /** UpgradeLevelsBatch: per-instance upgrades (deduped by ItemInstanceID). */
3341
+ Upgrades?: ItemUpgradeRef[];
3342
3342
  }
3343
-
3344
- declare const ChatChannelType: {
3345
- /** Title-wide channel: anyone passing the write gate may post. */
3346
- readonly Global: "Global";
3347
- /** Publisher announcements: players read only. */
3348
- readonly Announcement: "Announcement";
3349
- /** Group channel (clans). Membership comes from an external provider. */
3350
- readonly Group: "Group";
3351
- };
3352
- type ChatChannelType = (typeof ChatChannelType)[keyof typeof ChatChannelType];
3353
- declare const ChatPartitioning: {
3354
- readonly None: "None";
3355
- /** Split by the player's language. */
3356
- readonly Language: "Language";
3357
- /** Split by the player's country (resolved from IP by the server). */
3358
- readonly Region: "Region";
3359
- };
3360
- type ChatPartitioning = (typeof ChatPartitioning)[keyof typeof ChatPartitioning];
3361
- declare const ChatDirectAudience: {
3362
- readonly Anyone: "Anyone";
3363
- /** Friends only — an accepted edge in the Social graph. */
3364
- readonly Friends: "Friends";
3365
- };
3366
- type ChatDirectAudience = (typeof ChatDirectAudience)[keyof typeof ChatDirectAudience];
3367
- declare const ChatBlockedTermAction: {
3368
- readonly Reject: "Reject";
3369
- /** Mask the term with asterisks and let the message through. */
3370
- readonly Mask: "Mask";
3371
- };
3372
- type ChatBlockedTermAction = (typeof ChatBlockedTermAction)[keyof typeof ChatBlockedTermAction];
3373
- declare const ChatAuthorType: {
3374
- readonly Player: "Player";
3375
- /** The publisher: an announcement posted from the dashboard. */
3376
- readonly Publisher: "Publisher";
3377
- /** The system: a service message from the engine itself. */
3378
- readonly System: "System";
3343
+ declare const ItemAction: {
3344
+ readonly UpgradeLevel: "UpgradeLevel";
3345
+ readonly UpgradeLevelsBatch: "UpgradeLevelsBatch";
3379
3346
  };
3380
- type ChatAuthorType = (typeof ChatAuthorType)[keyof typeof ChatAuthorType];
3381
- declare const ChatReportReason: {
3382
- readonly Spam: "Spam";
3383
- readonly Abuse: "Abuse";
3384
- readonly Scam: "Scam";
3385
- readonly Inappropriate: "Inappropriate";
3386
- 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";
3387
3352
  };
3388
- type ChatReportReason = (typeof ChatReportReason)[keyof typeof ChatReportReason];
3389
- type ChatChannelIdentity = { DisplayNameKey?: null | string; SortOrder?: null | number; IconPath?: null | string; JoinedByDefault?: null | boolean; [key: string]: unknown; };
3390
- type ChatChannelAvailability = { Gate?: null | SegmentGate; Schedule?: null | ScheduleSpec; [key: string]: unknown; };
3391
- type ChatChannelWriteRules = { Gate?: null | SegmentGate; Limits?: null | LimitSpec; MaxLength?: null | number; [key: string]: unknown; };
3392
- type ChatChannelRetention = { HotTailSize?: null | number; HistoryHours?: null | number; [key: string]: unknown; };
3393
- type ChatChannelPresetBindings = { Availability?: null | PresetBinding; Write?: null | PresetBinding; Retention?: null | PresetBinding; [key: string]: unknown; };
3394
- 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; };
3395
- 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; };
3396
- type ChatModerationSettings = { BlockedTerms?: null | Array<string>; BlockedTermAction?: null | 'Reject' | 'Mask'; MaxIgnoreListSize?: null | number; ReportsEnabled?: null | boolean; ReportLimits?: null | LimitSpec; [key: string]: unknown; };
3397
- type ChatPollingSettings = { MinIntervalSeconds?: null | number; MaxMessagesPerPoll?: null | number; MaxHistoryPageSize?: null | number; [key: string]: unknown; };
3398
- type ChatPresetRegistry = { Availability?: null | Record<string, ChatChannelAvailability>; Write?: null | Record<string, ChatChannelWriteRules>; Retention?: null | Record<string, ChatChannelRetention>; [key: string]: unknown; };
3399
- 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; };
3400
- type UserChatChannelState = { LastReadAt?: null | string; LastReadMessageID?: null | string; Left?: null | boolean; [key: string]: unknown; };
3401
- type UserChatLimitState = { LastAt?: null | string; DailyCount?: null | number; DailyResetUtc?: null | string; TotalCount?: null | number; LastTextHash?: null | string; [key: string]: unknown; };
3402
- 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; };
3403
- type ChatCursor = { RoomID?: null | string; SentAt?: null | string; MessageID?: null | string; [key: string]: unknown; };
3404
- 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; };
3405
- 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; };
3406
- type ChatChannelsResponse = { Channels?: null | Array<ChatChannelView>; PollIntervalSeconds?: null | number; MutedUntil?: null | string; MuteReason?: null | string; [key: string]: unknown; };
3407
- type ChatRoomUpdate = { RoomID?: null | string; Messages?: null | Array<ChatMessageView>; NextCursor?: null | ChatCursor; UnreadCount?: null | number; ServedFromDatabase?: null | boolean; [key: string]: unknown; };
3408
- type ChatPollResponse = { Rooms?: null | Array<ChatRoomUpdate>; PollIntervalSeconds?: null | number; [key: string]: unknown; };
3409
- type ChatHistoryResponse = { RoomID?: null | string; Messages?: null | Array<ChatMessageView>; NextBefore?: null | ChatCursor; [key: string]: unknown; };
3410
- type ChatSendResponse = { Message?: null | ChatMessageView; Moderated?: null | boolean; [key: string]: unknown; };
3411
- type ChatDirectChannelResponse = { RoomID?: null | string; PeerUserID?: null | string; PeerProfile?: null | UserPublicDataModel; MaxLength?: null | number; [key: string]: unknown; };
3412
- type ChatConversationView = { RoomID?: null | string; PeerUserID?: null | string; PeerProfile?: null | UserPublicDataModel; LastMessage?: null | ChatMessageView; UnreadCount?: null | number; LastReadAt?: null | string; [key: string]: unknown; };
3413
- type ChatConversationsResponse = { Conversations?: null | Array<ChatConversationView>; [key: string]: unknown; };
3414
- type ChatStateResponse = { Ignored?: null | Array<string>; Cursor?: null | ChatCursor; Joined?: null | boolean; [key: string]: unknown; };
3415
- type ChatReportResponse = { ReportID?: null | string; AlreadyReported?: null | boolean; [key: string]: unknown; };
3416
- interface ChatRequest extends BaseRequest {
3417
- ChannelID?: string;
3418
- /** Full room address — used for direct conversations and already-opened rooms. */
3419
- RoomID?: string;
3420
- TargetUserID?: string;
3421
- 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";
3422
3358
  /**
3423
- * Client locale, needed by language-partitioned channels. It is validated against the
3424
- * title's configured locales server-side, so it can never invent a room.
3359
+ * Кормом идут только копии ТОГО ЖЕ уровня, что и прокачиваемый предмет: на 2-й уровень —
3360
+ * первые, на 3-й — вторые. Классическое слияние по тирам: копия другого уровня не кандидат
3361
+ * вовсе, поэтому прокачанная не может сгореть «в счёт» дешёвой, а перерасхода не бывает.
3425
3362
  */
3426
- Locale?: string;
3427
- Cursors?: ChatCursor[];
3428
- Before?: ChatCursor;
3429
- Limit?: number;
3430
- MessageID?: string;
3431
- Reason?: ChatReportReason;
3432
- Comment?: string;
3433
- }
3434
- declare const ChatAction: {
3435
- readonly GetChatDefinitions: "GetChatDefinitions";
3436
- readonly GetChannels: "GetChannels";
3437
- readonly Poll: "Poll";
3438
- readonly GetHistory: "GetHistory";
3439
- readonly GetConversations: "GetConversations";
3440
- readonly SendMessage: "SendMessage";
3441
- readonly OpenDirectChannel: "OpenDirectChannel";
3442
- readonly MarkRead: "MarkRead";
3443
- readonly JoinChannel: "JoinChannel";
3444
- readonly LeaveChannel: "LeaveChannel";
3445
- readonly ReportMessage: "ReportMessage";
3446
- readonly IgnoreUser: "IgnoreUser";
3447
- readonly UnignoreUser: "UnignoreUser";
3363
+ readonly SameLevelOnly: "SameLevelOnly";
3448
3364
  };
3449
- type ChatAction = (typeof ChatAction)[keyof typeof ChatAction];
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
+ }
3450
3382
 
3451
- /** How a notification reaches the device. */
3452
- declare const PushTransport: {
3453
- /** Browser Web Push (RFC 8291). The only one a web build ever uses. */
3454
- readonly WebPush: "WebPush";
3455
- /** Firebase Cloud Messaging — native Android builds. */
3456
- readonly Fcm: "Fcm";
3457
- /** Apple Push Notification service — native iOS builds. */
3458
- readonly Apns: "Apns";
3459
- };
3460
- type PushTransport = (typeof PushTransport)[keyof typeof PushTransport];
3461
- /**
3462
- * Topic names. ⚠ A CROSS-REPOSITORY CONTRACT: one side writes the row, another queries by it.
3463
- * These strings are not labels — do not invent new ones on the client.
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
+ };
4338
+ type PushTransport = (typeof PushTransport)[keyof typeof PushTransport];
4339
+ /**
4340
+ * Topic names. ⚠ A CROSS-REPOSITORY CONTRACT: one side writes the row, another queries by it.
4341
+ * These strings are not labels — do not invent new ones on the client.
3464
4342
  */
3465
4343
  declare const PushTopic: {
3466
4344
  /** Game events of this title. What a player subscribes for. */
@@ -3645,7 +4523,7 @@ type WorkshopLimits = { MaxTitleLength?: null | number; MaxDescriptionLength?: n
3645
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; };
3646
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; };
3647
4525
  type WorkshopContentStats = { Acquisitions?: null | number; Downloads?: null | number; Likes?: null | number; Favorites?: null | number; ReportCount?: null | number; [key: string]: unknown; };
3648
- 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' | 'Uploading' | 'PendingReview' | 'Published' | 'Removed'; 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; };
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; };
3649
4527
  type WorkshopAccessState = { OptionID?: null | string; Mode?: null | 'Price' | 'Free' | 'Holding'; Available?: null | boolean; [key: string]: unknown; };
3650
4528
  type WorkshopCollectionView = { CollectionID?: null | string; Name?: null | string; Description?: null | string; ContentIDs?: null | Array<string>; Order?: null | number; [key: string]: unknown; };
3651
4529
  type WorkshopDefinitionsResponse = { Definitions?: null | WorkshopDefinitions; IsOpenNow?: null | boolean; GatePassed?: null | boolean; CanPublish?: null | Record<string, boolean>; Collections?: null | Array<WorkshopCollectionView>; [key: string]: unknown; };
@@ -3715,99 +4593,6 @@ declare const WorkshopAction: {
3715
4593
  readonly GetMyFavorites: "GetMyFavorites";
3716
4594
  };
3717
4595
  type WorkshopAction = (typeof WorkshopAction)[keyof typeof WorkshopAction];
3718
-
3719
- /** enum MultiplayerTopology — p2p connection topology within a room. */
3720
- declare const MultiplayerTopology: {
3721
- readonly Mesh: "Mesh";
3722
- readonly Host: "Host";
3723
- };
3724
- type MultiplayerTopology = (typeof MultiplayerTopology)[keyof typeof MultiplayerTopology];
3725
- /** enum MultiplayerChatMode — whether chat is server-relayed or p2p-only over the DataChannel. */
3726
- declare const MultiplayerChatMode: {
3727
- readonly ServerRelay: "ServerRelay";
3728
- readonly P2P: "P2P";
3729
- };
3730
- type MultiplayerChatMode = (typeof MultiplayerChatMode)[keyof typeof MultiplayerChatMode];
3731
- /** enum RoomVisibility — whether a room appears in the public ListRooms listing. */
3732
- declare const RoomVisibility: {
3733
- readonly Public: "Public";
3734
- readonly Private: "Private";
3735
- };
3736
- type RoomVisibility = (typeof RoomVisibility)[keyof typeof RoomVisibility];
3737
- /** enum EnvelopeType — kind of realtime envelope delivered via Poll. */
3738
- declare const EnvelopeType: {
3739
- readonly Signal: "Signal";
3740
- readonly Chat: "Chat";
3741
- readonly PlayerJoined: "PlayerJoined";
3742
- readonly PlayerLeft: "PlayerLeft";
3743
- readonly HostChanged: "HostChanged";
3744
- readonly RoomClosed: "RoomClosed";
3745
- readonly MemberState: "MemberState";
3746
- };
3747
- type EnvelopeType = (typeof EnvelopeType)[keyof typeof EnvelopeType];
3748
- type IceServer = { Urls?: null | string; Username?: null | string; Credential?: null | string; [key: string]: unknown; };
3749
- type MultiplayerSystemState = { Enabled?: null | boolean; [key: string]: unknown; };
3750
- 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; };
3751
- 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; };
3752
- 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; };
3753
- 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; };
3754
- 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; };
3755
- type KickMemberResponse = { Removed?: null | boolean; Banned?: null | boolean; [key: string]: unknown; };
3756
- type UnbanMemberResponse = { WasBanned?: null | boolean; [key: string]: unknown; };
3757
- type LeaveRoomResponse = { Closed?: null | boolean; NewHostUserID?: null | string; [key: string]: unknown; };
3758
- type RoomsPageResponse = { Rooms?: null | Array<RoomListItem>; Page?: null | number; PageSize?: null | number; HasMore?: null | boolean; [key: string]: unknown; };
3759
- type PollResponse = { Envelopes?: null | Array<RealtimeEnvelope>; MaxSeq?: null | number; [key: string]: unknown; };
3760
- type PublishResponse = { Seq?: null | number; [key: string]: unknown; };
3761
- interface MultiplayerRequest extends BaseRequest {
3762
- RoomID?: string;
3763
- RoomName?: string;
3764
- Topology?: MultiplayerTopology;
3765
- ChatMode?: MultiplayerChatMode;
3766
- MaxPlayers?: number;
3767
- Visibility?: RoomVisibility;
3768
- JoinCode?: string;
3769
- /**
3770
- * CreateRoom: the room's game — a client mode id (1–64 of `[a-z0-9-._:]`). The server only stores
3771
- * it and returns it in the list and the snapshot, so a lobby can show one game's rooms.
3772
- */
3773
- Mode?: string;
3774
- TargetUserID?: string;
3775
- /** "offer" / "answer" / "candidate". */
3776
- SignalKind?: string;
3777
- Payload?: string;
3778
- /** Only meaningful when the room's ChatMode is ServerRelay. */
3779
- ChatText?: string;
3780
- Ready?: boolean;
3781
- MemberState?: Record<string, string>;
3782
- /** Poll cursor: server returns everything with seq > LastSeq. */
3783
- LastSeq?: number;
3784
- Page?: number;
3785
- PageSize?: number;
3786
- /**
3787
- * LeaveRoom by the HOST: the member who becomes the new host. Games with an authoritative host
3788
- * keep a shadow copy of the world at the successor — a random "first remaining" member would
3789
- * start from nothing. Ignored for non-hosts and for non-members.
3790
- */
3791
- SuccessorUserID?: string;
3792
- /** KickMember: also ban the player from rejoining this room (survives a host change). */
3793
- Ban?: boolean;
3794
- }
3795
- declare const MultiplayerAction: {
3796
- readonly CreateRoom: "CreateRoom";
3797
- readonly JoinRoom: "JoinRoom";
3798
- readonly LeaveRoom: "LeaveRoom";
3799
- readonly ListRooms: "ListRooms";
3800
- readonly GetRoom: "GetRoom";
3801
- readonly CloseRoom: "CloseRoom";
3802
- readonly Poll: "Poll";
3803
- readonly SendSignal: "SendSignal";
3804
- readonly SendChat: "SendChat";
3805
- readonly SetMemberState: "SetMemberState";
3806
- readonly ClaimHost: "ClaimHost";
3807
- readonly KickMember: "KickMember";
3808
- readonly UnbanMember: "UnbanMember";
3809
- };
3810
- type MultiplayerAction = (typeof MultiplayerAction)[keyof typeof MultiplayerAction];
3811
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; };
3812
4597
  type RefreshSessionResponse = { TitleUserID: string; TitleClientSessionTicket: string; TitleClientSessionTicketExpiration: string; RefreshToken: string; RefreshTokenExpiration?: null | string; PlayAccess?: null | PlayAccessStatus; };
3813
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; };
@@ -3917,85 +4702,23 @@ declare const AuthenticationAction: {
3917
4702
  readonly GetAuthOptions: "GetAuthOptions";
3918
4703
  /**
3919
4704
  * Extend the session by the refresh token: new ticket, new refresh token. Anonymous — it is
3920
- * called exactly when the ticket is no longer valid; the token itself proves who is asking.
3921
- */
3922
- readonly RefreshSession: "RefreshSession";
3923
- /**
3924
- * Attach a wallet to the logged-in account by signature (two steps: challenge, then signature).
3925
- * Authenticated — the only action here that carries a session.
3926
- */
3927
- readonly LinkWallet: "LinkWallet";
3928
- /**
3929
- * Take a wallet off the logged-in account (authenticated, like `LinkWallet`). The wallet an
3930
- * account signs in with cannot be taken off — `WALLET_IS_LOGIN_WALLET`.
3931
- */
3932
- readonly UnlinkWallet: "UnlinkWallet";
3933
- readonly ForgotPassword: "ForgotPassword";
3934
- readonly ResetPassword: "ResetPassword";
3935
- };
3936
- type AuthenticationAction = (typeof AuthenticationAction)[keyof typeof AuthenticationAction];
3937
- type FodderConsumedEntry = { ItemInstanceID: string; Units: number; Level: number; };
3938
- type UpgradeItemLevelResponse = { ServerTimeUtc: string; ItemInstanceID: string; ItemID: string; Level: number; CatalogID?: null | string; Resources?: null | ResourceOperation; FodderConsumed?: null | Array<FodderConsumedEntry>; };
3939
- type UpgradeLevelsBatchResponse = Array<{ Id: string; Success: boolean; Error?: null | string; Data?: null | UpgradeItemLevelResponse; }>;
3940
- /** One instance's upgrade in a batch (with optional multi-level Levels/TargetLevel). */
3941
- interface ItemUpgradeRef {
3942
- ItemInstanceID?: string;
3943
- Levels?: number;
3944
- TargetLevel?: number;
3945
- FodderInstanceIDs?: string[];
3946
- }
3947
- interface ItemRequest extends BaseRequest {
3948
- ItemInstanceID?: string;
3949
- /**
3950
- * Chosen way to pay (`PriceOption.OptionID`). Empty = the first option available on this
3951
- * player's platform, which keeps single-price entities working unchanged.
3952
- */
3953
- SelectedOptionID?: string;
3954
- Levels?: number;
3955
- TargetLevel?: number;
3956
- FodderInstanceIDs?: string[];
3957
- /** UpgradeLevelsBatch: per-instance upgrades (deduped by ItemInstanceID). */
3958
- Upgrades?: ItemUpgradeRef[];
3959
- }
3960
- declare const ItemAction: {
3961
- readonly UpgradeLevel: "UpgradeLevel";
3962
- readonly UpgradeLevelsBatch: "UpgradeLevelsBatch";
3963
- };
3964
- type ItemAction = (typeof ItemAction)[keyof typeof ItemAction];
3965
- declare const FodderValuationMode: {
3966
- readonly FlatCount: "FlatCount";
3967
- readonly Merge: "Merge";
3968
- readonly InvestmentRefund: "InvestmentRefund";
3969
- };
3970
- type FodderValuationMode = (typeof FodderValuationMode)[keyof typeof FodderValuationMode];
3971
- declare const FodderSelectionMode: {
3972
- readonly ProtectLeveled: "ProtectLeveled";
3973
- readonly CheapestFirst: "CheapestFirst";
3974
- readonly ClientSelected: "ClientSelected";
4705
+ * called exactly when the ticket is no longer valid; the token itself proves who is asking.
4706
+ */
4707
+ readonly RefreshSession: "RefreshSession";
3975
4708
  /**
3976
- * Кормом идут только копии ТОГО ЖЕ уровня, что и прокачиваемый предмет: на 2-й уровень —
3977
- * первые, на 3-й — вторые. Классическое слияние по тирам: копия другого уровня не кандидат
3978
- * вовсе, поэтому прокачанная не может сгореть «в счёт» дешёвой, а перерасхода не бывает.
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.
3979
4711
  */
3980
- readonly SameLevelOnly: "SameLevelOnly";
4712
+ readonly LinkWallet: "LinkWallet";
4713
+ /**
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`.
4716
+ */
4717
+ readonly UnlinkWallet: "UnlinkWallet";
4718
+ readonly ForgotPassword: "ForgotPassword";
4719
+ readonly ResetPassword: "ResetPassword";
3981
4720
  };
3982
- type FodderSelectionMode = (typeof FodderSelectionMode)[keyof typeof FodderSelectionMode];
3983
- type NFTNetworkBinding = { ContractAddress?: null | string; TokenID?: null | string; TokenStandard?: null | string; MaxLevel?: null | number; [key: string]: unknown; };
3984
- type NFTModel = { Networks?: null | Record<string, NFTNetworkBinding>; MetadataUrl?: null | string; [key: string]: unknown; };
3985
- type ItemStats = { FlatBonuses?: null | Record<string, number>; PercentBonuses?: null | Record<string, number>; Power?: null | number; [key: string]: unknown; };
3986
- type ItemEquipment = { MinCharacterLevel?: null | number; UseRequirements?: null | Record<string, number>; AllowedCharacterIDs?: null | Array<string>; AllowedSlotIDs?: null | Array<string>; IdleRateBonus?: null | number; [key: string]: unknown; };
3987
- 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; };
3988
- 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; };
3989
- type ItemMetadata = { RarityID?: null | string; CollectionID?: null | string; AuthorID?: null | string; [key: string]: unknown; };
3990
- 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; };
3991
- /** Catalog: a set of items of one thematic group. Key of `Items` is ItemID. */
3992
- interface ItemCatalog {
3993
- Items?: Record<string, ItemDefinition> | null;
3994
- }
3995
- /** Root container for all item catalogs of a title. Key of `Catalogs` is CatalogID. */
3996
- interface ItemDefinitions {
3997
- Catalogs?: Record<string, ItemCatalog> | null;
3998
- }
4721
+ type AuthenticationAction = (typeof AuthenticationAction)[keyof typeof AuthenticationAction];
3999
4722
 
4000
4723
  declare const CommunityParticipationMode: {
4001
4724
  /** Anyone who passes the gate is in, immediately. */
@@ -4051,236 +4774,27 @@ interface CommunityMarketingRequest extends BaseRequest {
4051
4774
  CampaignID?: string;
4052
4775
  /** Payout history page size. 0 = module default. */
4053
4776
  Limit?: number;
4054
- /**
4055
- * Crypto withdrawal only: how much to send. Empty = everything approved and not yet paid.
4056
- *
4057
- * ⚠ A STRING, in the invariant culture — same as an ordinary token withdrawal. A `decimal` in
4058
- * JSON is parsed differently by locale, and "12.5" would arrive as 125.
4059
- */
4060
- Amount?: string;
4061
- /** Crypto withdrawal only: the wallet the reward is sent to. */
4062
- WalletAddress?: string;
4063
- }
4064
- type CommunityCampaignSummary = z.output<typeof zCommunityCampaignSummary>;
4065
- type CommunityMarketingState = z.output<typeof zCommunityMarketingState>;
4066
- type CommunityAccrualLine = z.output<typeof zCommunityAccrualLine>;
4067
- type CommunityEarningsLine = z.output<typeof zCommunityEarningsLine>;
4068
- type CommunityPayoutSummary = z.output<typeof zCommunityPayoutSummary>;
4069
- type CommunityEarningsResponse = z.output<typeof zCommunityEarningsResponse>;
4070
- type CommunityClaimResponse = z.output<typeof zCommunityClaimResponse>;
4071
- type CommunityEligibilityCondition = z.output<typeof zCommunityEligibilityCondition>;
4072
- type CommunityEligibilityResponse = z.output<typeof zCommunityEligibilityResponse>;
4073
- type CommunitySolanaWithdrawalSignature = z.output<typeof zCommunitySolanaWithdrawalSignature>;
4074
- type CommunityWithdrawalResponse = z.output<typeof zCommunityWithdrawalResponse>;
4075
- 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; };
4076
- type BonusWindowState = { IsActive?: null | boolean; CurrentPhaseEndUtc?: null | string; NextBonusStartUtc?: null | string; CurrentCycleIndex?: null | number; CurrentPhaseIndex?: null | number; ActiveBonusMultiplier?: null | number; [key: string]: unknown; };
4077
- /**
4078
- * Container of preset wiring for event content — one PresetBinding per block. Inline data
4079
- * (Milestones) lives on EventContent. null = presets unused.
4080
- */
4081
- interface TimedEventPresetBindings {
4082
- Milestones?: PresetBinding | null;
4083
- }
4084
- /** Event content: display, token, sources, rewards, milestones, bonus window. */
4085
- interface EventContent {
4086
- DisplayName?: string | null;
4087
- Description?: string | null;
4088
- AssetPaths?: Record<string, string> | null;
4089
- Category?: string | null;
4090
- Token?: EventTokenDefinition | null;
4091
- TokenSources?: TriggerSource[] | null;
4092
- ClaimMode?: string | null;
4093
- Milestones?: Record<string, MilestoneDefinition> | null;
4094
- /** Container of content preset wiring (milestones). null = presets unused. */
4095
- Presets?: TimedEventPresetBindings | null;
4096
- BonusWindow?: BonusWindowConfig | null;
4097
- }
4098
- /** One event inside a cyclic chain (dates computed from AnchorUtc + DurationSec). */
4099
- interface ChainedEventDefinition {
4100
- ChainedEventID?: string | null;
4101
- Order?: number | null;
4102
- DurationSec?: number | null;
4103
- Content?: EventContent | null;
4104
- ClaimGraceHours?: number | null;
4105
- CustomParams?: Record<string, string> | null;
4106
- }
4107
- /** Definition of a single event (Scheduled single-window or Chained phase-chain). */
4108
- interface TimedEventDefinition {
4109
- TimedEventID?: string | null;
4110
- DisplayName?: string | null;
4111
- Description?: string | null;
4112
- AssetPaths?: Record<string, string> | null;
4113
- Schedule?: ScheduleSpec | null;
4114
- Content?: EventContent | null;
4115
- Events?: ChainedEventDefinition[] | null;
4116
- Gate?: SegmentGate | null;
4117
- CustomParams?: Record<string, string> | null;
4118
- }
4119
- type LimitedTimeEventsGlobalSettings = { MaxConcurrentEvents?: null | number; [key: string]: unknown; };
4120
- /** Registry of reusable event presets (milestones). Phases/events reference them via EventContent.Presets. */
4121
- interface TimedEventPresetRegistry {
4122
- Milestones?: Record<string, MilestoneSet> | null;
4123
- }
4124
- /** Root config of the limited-time events system, returned by getDefinitions(). */
4125
- interface TimedEventDefinitions {
4126
- Definitions?: Record<string, TimedEventDefinition> | null;
4127
- Settings?: LimitedTimeEventsGlobalSettings | null;
4128
- /** Registry of reusable event presets (milestones). null = unused. */
4129
- Presets?: TimedEventPresetRegistry | null;
4130
- }
4131
- interface ActiveEventInfo {
4132
- Type?: ScheduleMode;
4133
- TimedEventID?: string;
4134
- CurrentChainedEventID?: string | null;
4135
- Content?: EventContent | null;
4136
- Progress?: UserEventTokenProgress | null;
4137
- ComputedStartUtc?: string | null;
4138
- ComputedEndUtc?: string | null;
4139
- CanEarn?: boolean | null;
4140
- CanClaim?: boolean | null;
4141
- NextMilestone?: MilestoneDefinition | null;
4142
- BonusWindow?: BonusWindowState | null;
4143
- CurrentCycleIndex?: number | null;
4144
- /** Chained-mode only: this event's 1-based position within the chain. */
4145
- CurrentEventOrder?: number | null;
4146
- /** Chained-mode only: total number of events in the chain. */
4147
- TotalEventsInChain?: number | null;
4148
- /** Composite EntityID of this instance's token bucket ("MainChain:2:1"). */
4149
- TokenEntityID?: string | null;
4150
- }
4151
- interface GetActiveEventsResponse {
4152
- ActiveEvents?: ActiveEventInfo[] | null;
4153
- }
4154
- type UserTimedEventStateResponse = { Tokens?: null | Record<string, UserEventTokenProgress>; };
4155
- type EventTokenSpendResponse = { Type?: null | 'Scheduled' | 'Cyclic' | 'Relative' | 'AlwaysOn' | 'Chained' | 'Triggered'; LteID?: null | string; Resources?: null | ResourceOperation; };
4156
- 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; };
4157
- type EventTokenGrantResponse = { Type?: null | 'Scheduled' | 'Cyclic' | 'Relative' | 'AlwaysOn' | 'Chained' | 'Triggered'; LteID?: null | string; Resources?: null | ResourceOperation; };
4158
- type ClaimMilestonesBatchResponse = Array<{ Id: string; Success: boolean; Error?: null | string; Data?: null | EventMilestoneClaimResponse; }>;
4159
- type SpendTokensBatchResponse = Array<{ Id: string; Success: boolean; Error?: null | string; Data?: null | EventTokenSpendResponse; }>;
4160
- type GrantTokensBatchResponse = Array<{ Id: string; Success: boolean; Error?: null | string; Data?: null | EventTokenGrantResponse; }>;
4161
- /** Addresses one event instance in a batch request (Type+LteID, optionally CycleIndex/ChainedEventID). */
4162
- interface TimedEventInstanceRef {
4163
- Type?: ScheduleMode;
4164
- LteID?: string;
4165
- CycleIndex?: number;
4166
- ChainedEventID?: string;
4167
- }
4168
- /** One milestone claim in a batch (for ClaimMilestonesBatch). */
4169
- interface TimedEventMilestoneRef extends TimedEventInstanceRef {
4170
- MilestoneID?: string;
4171
- }
4172
- /** One token spend in a batch (for SpendTokensBatch). */
4173
- interface TimedEventSpendRef extends TimedEventInstanceRef {
4174
- SpendAmount?: number;
4175
- RelatedEntityID?: string;
4176
- }
4177
- /** One token grant in a batch (for GrantTokensBatch). */
4178
- interface TimedEventGrantRef extends TimedEventInstanceRef {
4179
- SourceType?: string;
4180
- Outcome?: string;
4181
- SourceParams?: Record<string, string>;
4182
- AmountOverride?: number;
4183
- RollMultiplier?: number;
4184
- RelatedEntityID?: string;
4185
- }
4186
- interface TimedEventRequest extends BaseRequest {
4187
- Type?: ScheduleMode;
4188
- LteID?: string;
4189
- CycleIndex?: number;
4190
- ChainedEventID?: string;
4191
- SourceType?: string;
4192
- AmountOverride?: number;
4193
- SourceParams?: Record<string, string>;
4194
- SpendAmount?: number;
4195
- MilestoneID?: string;
4196
- Outcome?: string;
4197
- RollMultiplier?: number;
4198
- /** ClaimMilestonesBatch: milestones to claim (deduped by Type+LteID+instance+MilestoneID). */
4199
- Milestones?: TimedEventMilestoneRef[];
4200
- /** ClaimAllMilestones: event instances to sweep. Null/empty = all active events. */
4201
- Events?: TimedEventInstanceRef[];
4202
- /** SpendTokensBatch: spends to apply (deduped by Type+LteID+instance). */
4203
- Spends?: TimedEventSpendRef[];
4204
- /** GrantTokensBatch: grants to apply (deduped by event address). */
4205
- Grants?: TimedEventGrantRef[];
4206
- }
4207
- declare const TimedEventAction: {
4208
- readonly GetActiveEvents: "GetActiveEvents";
4209
- readonly GrantTokens: "GrantTokens";
4210
- readonly SpendTokens: "SpendTokens";
4211
- readonly ClaimMilestone: "ClaimMilestone";
4212
- readonly GetDefinitions: "GetDefinitions";
4213
- readonly GetUserLteState: "GetUserLteState";
4214
- readonly ClaimMilestonesBatch: "ClaimMilestonesBatch";
4215
- readonly ClaimAllMilestones: "ClaimAllMilestones";
4216
- readonly SpendTokensBatch: "SpendTokensBatch";
4217
- readonly GrantTokensBatch: "GrantTokensBatch";
4218
- };
4219
- type TimedEventAction = (typeof TimedEventAction)[keyof typeof TimedEventAction];
4220
-
4221
- declare const CraftType: {
4222
- readonly TradeUpRarity: "TradeUpRarity";
4223
- readonly TradeUpCollection: "TradeUpCollection";
4224
- };
4225
- type CraftType = (typeof CraftType)[keyof typeof CraftType];
4226
- /** How the output level is derived from the levels of the burned inputs. */
4227
- declare const CraftOutputLevelMode: {
4228
- /** Input levels don't matter — the output is always level 1 (legacy). */
4229
- readonly None: "None";
4230
- /** Level of the weakest input of the craft. */
4231
- readonly Min: "Min";
4232
- /** Average of the craft's input levels, rounded DOWN. */
4233
- readonly Average: "Average";
4234
- /** Level of the strongest input of the craft. */
4235
- readonly Max: "Max";
4236
- };
4237
- type CraftOutputLevelMode = (typeof CraftOutputLevelMode)[keyof typeof CraftOutputLevelMode];
4238
- /** Which unstackable input instances a craft burns. */
4239
- declare const CraftInputSelectionMode: {
4240
- /** Only non-upgraded (Level ≤ 1) instances, oldest first (legacy). */
4241
- readonly ProtectLeveled: "ProtectLeveled";
4242
- /** The client names the instances via `inputInstanceIDs`; without them — ProtectLeveled. */
4243
- readonly ClientSelected: "ClientSelected";
4244
- /** The server picks, weakest first: upgraded copies go only when fresh ones run out. */
4245
- readonly LowestLevelFirst: "LowestLevelFirst";
4246
- /** The server picks, strongest first. */
4247
- readonly HighestLevelFirst: "HighestLevelFirst";
4248
- };
4249
- type CraftInputSelectionMode = (typeof CraftInputSelectionMode)[keyof typeof CraftInputSelectionMode];
4250
- /** What happens when the derived level exceeds the output item's `Upgrade.MaxLevel`. */
4251
- declare const CraftOutputLevelOverflow: {
4252
- /** Lower the level to the output's MaxLevel. */
4253
- readonly Clamp: "Clamp";
4254
- /** Refuse the craft (checked against the lowest MaxLevel of the output pool, before the roll). */
4255
- readonly Reject: "Reject";
4256
- };
4257
- type CraftOutputLevelOverflow = (typeof CraftOutputLevelOverflow)[keyof typeof CraftOutputLevelOverflow];
4258
- type CraftBurnedInstance = { ItemInstanceID?: null | string; ItemID?: null | string; Level?: null | number; Units?: null | number; };
4259
- 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>; };
4260
- 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>; };
4261
- 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 | 'Reject' | 'Clamp'; [key: string]: unknown; };
4262
- /** The title's craft catalog (config), returned by getDefinitions(). */
4263
- interface CraftDefinitions {
4264
- Definitions?: Record<string, CraftDefinition> | null;
4265
- }
4266
- type CraftDefinitionsResponse = { ServerTimeUtc?: null | string; CraftDefinitions?: null | CraftDefinitions; };
4267
- interface CraftRequest extends BaseRequest {
4268
- CraftID?: string;
4269
- Count?: number;
4270
- SelectedOptionID?: string;
4271
- /** Template of catalog ItemIDs, exactly RequiredItemCount long; the server repeats it Count times. */
4272
- InputItemIDs?: string[];
4273
- /**
4274
- * Only for a ClientSelected recipe: one instance id per UNSTACKABLE input of the expanded list
4275
- * (template × Count), in order; stackable inputs take no slot. A bundle id may repeat once per unit.
4777
+ /**
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.
4276
4782
  */
4277
- InputInstanceIDs?: string[];
4783
+ Amount?: string;
4784
+ /** Crypto withdrawal only: the wallet the reward is sent to. */
4785
+ WalletAddress?: string;
4278
4786
  }
4279
- declare const CraftAction: {
4280
- readonly GetDefinitions: "GetDefinitions";
4281
- readonly Craft: "Craft";
4282
- };
4283
- type CraftAction = (typeof CraftAction)[keyof typeof CraftAction];
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>;
4284
4798
 
4285
4799
  /** Generation modality of a feature. Determines which generate action the feature accepts. */
4286
4800
  declare const AIModality: {
@@ -4409,340 +4923,112 @@ interface AIVideoInput {
4409
4923
  /** Reference frame — only when the feature has `AllowReferenceImage`. */
4410
4924
  ReferenceImage?: AIInputImage;
4411
4925
  }
4412
- /** Speech from text (TTS). */
4413
- interface AIAudioInput {
4414
- Text?: string;
4415
- Voice?: string;
4416
- /** `"mp3"` / `"wav"` / `"opus"`. */
4417
- Format?: string;
4418
- }
4419
- interface AIMusicInput {
4420
- Prompt?: string;
4421
- /** `"mp3"` / `"wav"`. */
4422
- Format?: string;
4423
- }
4424
- interface AIThreeDInput {
4425
- Prompt?: string;
4426
- /** Source image for an `image-to-3d` feature. */
4427
- Image?: AIInputImage;
4428
- /** `"realistic"` / `"sculpture"`. */
4429
- ArtStyle?: string;
4430
- /** `"glb"` / `"fbx"` / `"obj"` / `"usdz"`. */
4431
- Format?: string;
4432
- }
4433
- /** Filter + page of the player's generation history (`listGenerations`). */
4434
- interface AIHistoryQuery {
4435
- Modality?: AIModality;
4436
- FeatureKey?: string;
4437
- /** `"pending"` / `"running"` / `"completed"` / `"failed"`. Absent = all. */
4438
- Status?: string;
4439
- Skip?: number;
4440
- /** 1..50; the server defaults to 20. */
4441
- Limit?: number;
4442
- }
4443
- /** Request envelope of every AI action. Fields are filled per action. */
4444
- interface AIRequest extends BaseRequest {
4445
- /** Feature key from the title's AI config. Required by every generate action. */
4446
- FeatureKey?: string;
4447
- /** Payment option (`PriceOption.OptionID`) the player pays with. Absent = first available. */
4448
- SelectedOptionID?: string;
4449
- /**
4450
- * Store receipt. Required exactly when the chosen option is paid with a store purchase (a
4451
- * `Purchase` entry) — one purchase pays for exactly one generation.
4452
- */
4453
- Payment?: PaymentProof;
4454
- Text?: AITextInput;
4455
- Image?: AIImageInput;
4456
- ImageEdit?: AIImageEditInput;
4457
- Video?: AIVideoInput;
4458
- Audio?: AIAudioInput;
4459
- Music?: AIMusicInput;
4460
- ThreeD?: AIThreeDInput;
4461
- /** For GetGeneration and for polling jobs (GetText / GetImage / GetAudio / GetMusic / GetVideo / GetThreeD). */
4462
- GenerationID?: string;
4463
- /** ListGenerations only. */
4464
- Query?: AIHistoryQuery;
4465
- /**
4466
- * Values of the feature's prompt-template variables (`AIPublicFeature.PromptVariables[].Name` →
4467
- * value). A server hook may override them.
4468
- */
4469
- Variables?: Record<string, string>;
4470
- /**
4471
- * Free-form context (e.g. `{ npcId: "guard_3" }`) stored with the generation and handed to the
4472
- * feature's CloudCode handlers on completion or failure. At most 8 KB; keys without `.` and `$`.
4473
- */
4474
- Context?: Record<string, unknown>;
4475
- }
4476
- type AIGenerationAssetView = { Url?: null | string; ContentType?: null | string; Variant?: null | string; };
4477
- type AIGenerationErrorView = { Code?: null | string; Message?: null | string; };
4478
- 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; };
4479
- type AIGenerationListView = { Data?: null | Array<AIGenerationView>; Skip?: null | number; Limit?: null | number; };
4480
- 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; };
4481
- /** The title's AI features, returned by `getDefinitions()`. */
4482
- interface AIPublicDefinitions {
4483
- /** Master switch. `false` = every generate request fails. */
4484
- Enabled?: boolean | null;
4485
- /** Key = `FeatureKey`. A missing key means the feature does not exist. */
4486
- Features?: Record<string, AIPublicFeature> | null;
4487
- }
4488
- declare const AIAction: {
4489
- /** Sanitized feature list of the title. */
4490
- readonly GetDefinitions: "GetDefinitions";
4491
- /** Text: submits the job (status `pending`) — every generation is a job, poll `GetText`. */
4492
- readonly GenerateText: "GenerateText";
4493
- /** Poll a text job. */
4494
- readonly GetText: "GetText";
4495
- readonly GenerateImage: "GenerateImage";
4496
- readonly EditImage: "EditImage";
4497
- /** Video: submits the job (status `running`). */
4498
- readonly GenerateVideo: "GenerateVideo";
4499
- /** Poll a video job. */
4500
- readonly GetVideo: "GetVideo";
4501
- /** Speech from text (TTS). */
4502
- readonly GenerateAudio: "GenerateAudio";
4503
- readonly GenerateMusic: "GenerateMusic";
4504
- /** 3D: submits the job (status `running`). */
4505
- readonly GenerateThreeD: "GenerateThreeD";
4506
- /** Poll a 3D job. */
4507
- readonly GetThreeD: "GetThreeD";
4508
- readonly ListGenerations: "ListGenerations";
4509
- readonly GetGeneration: "GetGeneration";
4510
- /** Poll an image job (generation and edit). */
4511
- readonly GetImage: "GetImage";
4512
- /** Poll a speech job. */
4513
- readonly GetAudio: "GetAudio";
4514
- /** Poll a music job. */
4515
- readonly GetMusic: "GetMusic";
4516
- };
4517
- type AIAction = (typeof AIAction)[keyof typeof AIAction];
4518
-
4519
- /** Storage scope: who may write a record and whether it is cached server-side. */
4520
- declare const TitleDataScope: {
4521
- /** Authored configuration. Written by the publisher / AI Coder; cached with the title config. */
4522
- readonly Static: "Static";
4523
- /** Mutable title state. Written only by CloudCode scripts; never cached. */
4524
- readonly Runtime: "Runtime";
4525
- };
4526
- type TitleDataScope = (typeof TitleDataScope)[keyof typeof TitleDataScope];
4527
- /** Visibility bucket. Clients never write title data — the bucket only decides who reads. */
4528
- declare const TitleDataBucket: {
4529
- /** Readable by game clients. */
4530
- readonly Public: "Public";
4531
- /** Server and CloudCode only — never returned to a client. */
4532
- readonly Private: "Private";
4533
- };
4534
- type TitleDataBucket = (typeof TitleDataBucket)[keyof typeof TitleDataBucket];
4535
- type TitleCustomDataRecord = { Value?: null | string; UpdatedAt?: null | string; Version?: null | number; LastWriter?: null | 'Client' | 'Server' | 'System'; ExpiresAt?: null | string; [key: string]: unknown; };
4536
- type GetPublicTitleDataResponse = { StaticVersion?: null | number; RuntimeVersion?: null | number; Static?: null | Record<string, TitleCustomDataRecord>; Runtime?: null | Record<string, TitleCustomDataRecord>; NotModified?: null | boolean; };
4537
- 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; };
4538
- /** Title-data schema as served to clients: public-bucket keys plus the title's limits. */
4539
- interface TitleCustomDataDefinitions {
4540
- Keys?: Record<string, TitleCustomDataKeyDefinition> | null;
4541
- DefaultMaxValueLengthBytes?: number | null;
4542
- DefaultTtlSeconds?: number | null;
4543
- MaxKeysPerBucket?: number | null;
4544
- MaxTotalSizeBytes?: number | null;
4545
- RejectUnregisteredKeys?: boolean | null;
4546
- }
4547
- interface TitleCustomDataRequest extends BaseRequest {
4548
- KeyIDs?: string[];
4549
- KnownRuntimeVersion?: number;
4550
- }
4551
- declare const TitleCustomDataAction: {
4552
- readonly GetTitleCustomDataDefinitions: "GetTitleCustomDataDefinitions";
4553
- readonly GetPublicTitleData: "GetPublicTitleData";
4554
- readonly GetPublicTitleDataKeys: "GetPublicTitleDataKeys";
4555
- };
4556
- type TitleCustomDataAction = (typeof TitleCustomDataAction)[keyof typeof TitleCustomDataAction];
4557
- type ExperimentVariant = { VariantID?: null | string; DisplayName?: null | string; Weight?: null | number; IsControl?: null | boolean; Params?: null | Record<string, string>; [key: string]: unknown; };
4558
- /** What an experiment is judged by (engine `ExperimentGoalKind`). */
4559
- declare const ExperimentGoalKind: {
4560
- /** Share of participants who sent `EventName` at least once. */
4561
- readonly EventConversion: "EventConversion";
4562
- /** `EventName` count per participant. */
4563
- readonly EventCountPerUser: "EventCountPerUser";
4564
- /** Sum of `EventName` Value per participant (revenue, score). */
4565
- readonly EventValuePerUser: "EventValuePerUser";
4566
- readonly RetentionD1: "RetentionD1";
4567
- readonly RetentionD7: "RetentionD7";
4568
- readonly PayerConversion: "PayerConversion";
4569
- readonly Arpu: "Arpu";
4570
- };
4571
- type ExperimentGoalKind = (typeof ExperimentGoalKind)[keyof typeof ExperimentGoalKind];
4572
- type ExperimentGoal = { MetricID?: null | string; Kind?: null | string; EventName?: null | string; IsPrimary?: null | boolean; [key: string]: unknown; };
4573
- 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; };
4574
- type ExperimentDefinitions = { Experiments?: null | Record<string, ExperimentDefinition>; [key: string]: unknown; };
4575
- /** State of an experiment for this player. */
4576
- declare const PlayerExperimentStatus: {
4577
- /** Running: the variant is the player's own sticky assignment. */
4578
- readonly Running: "Running";
4579
- /** Disabled, out of its schedule or not in the publisher's plan: everyone gets control. */
4580
- readonly Stopped: "Stopped";
4581
- /** The winner was rolled out: everyone gets it. */
4582
- readonly RolledOut: "RolledOut";
4583
- };
4584
- type PlayerExperimentStatus = (typeof PlayerExperimentStatus)[keyof typeof PlayerExperimentStatus];
4585
- type PlayerExperimentView = { ExperimentID?: null | string; VariantID?: null | string; Status?: null | string; Params?: null | Record<string, string>; [key: string]: unknown; };
4586
- type GetExperimentsResponse = { Experiments?: null | Array<PlayerExperimentView>; IsAbTestingAvailable?: null | boolean; [key: string]: unknown; };
4587
- type ExperimentRequest = BaseRequest;
4588
- declare const ExperimentAction: {
4589
- readonly GetExperiments: "GetExperiments";
4590
- };
4591
- type ExperimentAction = (typeof ExperimentAction)[keyof typeof ExperimentAction];
4592
-
4593
- /** How the title accepts event names (`Analytics.EventNaming`). */
4594
- declare const AnalyticsEventNaming: {
4595
- /** Any valid name is accepted and collected into the title catalog, up to the plan limit. */
4596
- readonly Open: "Open";
4597
- /** Only names declared in `Analytics.Events` are recorded; the rest are dropped. */
4598
- readonly Declared: "Declared";
4599
- };
4600
- type AnalyticsEventNaming = (typeof AnalyticsEventNaming)[keyof typeof AnalyticsEventNaming];
4601
- type AnalyticsEventDefinition = { DisplayName?: null | string; Description?: null | string; Blocked?: null | boolean; [key: string]: unknown; };
4602
- type AnalyticsDimensionDefinition = { ParamName?: null | string; DisplayName?: null | string; [key: string]: unknown; };
4603
- 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; };
4604
- /**
4605
- * Events the SDK logs by itself. The `idos_` prefix is reserved — `logEvent` refuses it, so a
4606
- * game cannot fake a session or an install.
4607
- */
4608
- declare const AutomaticEvent: {
4609
- /** The first launch on this device. */
4610
- readonly FirstOpen: "idos_first_open";
4611
- /** A new session: launch, or return after 30 minutes away (the same gap as playtime). */
4612
- readonly SessionStart: "idos_session_start";
4613
- /** The app version changed since the previous launch. */
4614
- readonly AppUpdate: "idos_app_update";
4615
- /** The OS version changed since the previous launch. */
4616
- readonly OsUpdate: "idos_os_update";
4617
- /** `logScreenView(name)`. */
4618
- readonly ScreenView: "idos_screen_view";
4619
- };
4620
- type AutomaticEvent = (typeof AutomaticEvent)[keyof typeof AutomaticEvent];
4621
- /** The server's rules, applied by the SDK up front so an invalid event never costs a call. */
4622
- declare const AnalyticsLimits: {
4623
- readonly maxEventsPerBatch: 50;
4624
- readonly maxParams: 25;
4625
- readonly maxStringValueLength: 100;
4626
- /** Events older than this are dropped by the server as `TooOld`. */
4627
- readonly maxEventAgeMs: number;
4628
- readonly reservedPrefixes: readonly ["idos_", "firebase_", "google_", "ga_"];
4629
- };
4630
- /** Event and parameter names: a letter, then letters, digits or `_`, 40 characters at most. */
4631
- declare const EVENT_NAME_PATTERN: RegExp;
4632
- type AnalyticsParamValue = string | number | boolean;
4633
- type AnalyticsParams = Record<string, AnalyticsParamValue>;
4634
- /** One event on the wire. */
4635
- interface AnalyticsEventInput {
4636
- Name: string;
4637
- Params?: AnalyticsParams;
4638
- /** A number summed by the server — revenue, score. */
4639
- Value?: number;
4640
- /** ISO-8601 UTC time the event happened on the client. */
4641
- ClientTimeUtc?: string;
4642
- }
4643
- /**
4644
- * What the client knows and the server does not. Platform, country, new/returning and the
4645
- * acquisition source are NOT here: the server takes them from the request header, the IP and the
4646
- * player's own record, and ignores anything a client claims about them.
4647
- */
4648
- interface AnalyticsClientContext {
4649
- AppVersion?: string;
4650
- OsName?: string;
4651
- OsVersion?: string;
4652
- /** `phone` / `tablet` / `desktop`. */
4653
- DeviceCategory?: string;
4654
- DeviceModel?: string;
4655
- Language?: string;
4656
- SdkVersion?: string;
4926
+ /** Speech from text (TTS). */
4927
+ interface AIAudioInput {
4928
+ Text?: string;
4929
+ Voice?: string;
4930
+ /** `"mp3"` / `"wav"` / `"opus"`. */
4931
+ Format?: string;
4657
4932
  }
4658
- interface AnalyticsRequest extends BaseRequest {
4659
- /** Idempotency key of the batch: a resend with the same id is not counted twice (24 h). */
4660
- BatchID?: string;
4661
- Events: AnalyticsEventInput[];
4662
- Context?: AnalyticsClientContext;
4933
+ interface AIMusicInput {
4934
+ Prompt?: string;
4935
+ /** `"mp3"` / `"wav"`. */
4936
+ Format?: string;
4663
4937
  }
4664
- /** Why the server dropped an event (`LogEventsResponse.Dropped[].Reason`). */
4665
- declare const AnalyticsDropReason: {
4666
- readonly InvalidName: "InvalidName";
4667
- readonly Reserved: "Reserved";
4668
- readonly NotDeclared: "NotDeclared";
4669
- readonly Blocked: "Blocked";
4670
- /** The title reached the event-name limit of its plan. */
4671
- readonly CatalogFull: "CatalogFull";
4672
- readonly TooOld: "TooOld";
4673
- readonly AutomaticDisabled: "AutomaticDisabled";
4674
- /** More than 1000 events from one player in one day. */
4675
- readonly DailyLimit: "DailyLimit";
4676
- };
4677
- type DroppedEvent = { Index?: null | number; Name?: null | string; Reason?: null | string; [key: string]: unknown; };
4678
- type LogEventsResponse = { Accepted?: null | number; Dropped?: null | Array<DroppedEvent>; Duplicate?: null | boolean; Disabled?: null | boolean; [key: string]: unknown; };
4679
- declare const AnalyticsAction: {
4680
- readonly LogEvents: "LogEvents";
4681
- };
4682
- type AnalyticsAction = (typeof AnalyticsAction)[keyof typeof AnalyticsAction];
4683
-
4684
- interface TitlePublicConfigurationModel {
4685
- /** Schema of the title-wide key-value store; the values live in client.titleCustomData. */
4686
- TitleCustomData?: TitleCustomDataDefinitions | null;
4687
- Character?: CharacterDefinitions | null;
4688
- Item?: ItemDefinitions | null;
4689
- Currency?: CurrencyDefinitions | null;
4690
- Store?: StoreDefinitions | null;
4691
- Lootbox?: LootboxDefinitions | null;
4692
- Quest?: QuestDefinitions | null;
4693
- TimedEvent?: TimedEventDefinitions | null;
4694
- Leaderboard?: LeaderboardDefinitions | null;
4695
- Season?: SeasonDefinitions | null;
4696
- Reward?: RewardDefinitions | null;
4697
- Collection?: CollectionDefinitions | null;
4698
- Craft?: CraftDefinitions | null;
4699
- DealOffer?: DealOfferDefinitions | null;
4700
- Premium?: PremiumDefinitions | null;
4701
- TimedBoost?: TimedBoostDefinitions | null;
4702
- CoopEvent?: CoopEventDefinitions | null;
4703
- GameLoop?: GameLoopDefinitions | null;
4704
- Match?: MatchDefinitions | null;
4705
- Experiment?: ExperimentDefinitions | null;
4706
- Blockchain?: BlockchainDefinitions | null;
4707
- Marketplace?: MarketplaceDefinitions | null;
4708
- Multiplayer?: MultiplayerDefinitions | null;
4709
- UserCustomData?: UserCustomDataDefinitions | null;
4710
- Referral?: ReferralDefinitions | null;
4711
- /**
4712
- * Localization SETTINGS only — which locales exist, which is the fallback, the limits. The
4713
- * translation TABLES are delivered separately, one file per locale; use `client.localization`
4714
- * rather than reading anything out of here.
4715
- */
4716
- Localization?: LocalizationDefinitions | null;
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;
4946
+ }
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;
4956
+ }
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;
4717
4963
  /**
4718
- * Custom-event settings the SDK obeys before sending: on/off, naming mode, declared and blocked
4719
- * events. Use `client.analytics` to log events rather than reading this.
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.
4720
4966
  */
4721
- Analytics?: AnalyticsDefinitions | null;
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;
4722
4979
  /**
4723
- * Comment rules for the UI (on/off, which objects, text length, links). Counters, follows and
4724
- * reports work without it; use `client.social`.
4980
+ * Values of the feature's prompt-template variables (`AIPublicFeature.PromptVariables[].Name` →
4981
+ * value). A server hook may override them.
4725
4982
  */
4726
- Social?: SocialDefinitions | null;
4983
+ Variables?: Record<string, string>;
4727
4984
  /**
4728
- * Platform bridge (idosgames.com account): where friends come from and whether in-game friend
4729
- * requests exist at all. Use `client.social.friendRequestsAllowed()`.
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 `$`.
4730
4987
  */
4731
- PlatformBridge?: PlatformBridgeDefinitions | null;
4732
- [key: string]: unknown;
4988
+ Context?: Record<string, unknown>;
4733
4989
  }
4734
- interface TitleRequest extends BaseRequest {
4735
- Fields?: string[];
4736
- 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;
4737
5001
  }
4738
- declare const TitleAction: {
4739
- readonly GetTitlePublicConfiguration: "GetTitlePublicConfiguration";
4740
- readonly GetTitlePublicConfigurationExcept: "GetTitlePublicConfigurationExcept";
4741
- readonly GetCurrencyDefinitions: "GetCurrencyDefinitions";
4742
- readonly GetItemDefinitions: "GetItemDefinitions";
4743
- readonly GetServerTime: "GetServerTime";
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";
4744
5030
  };
4745
- type TitleAction = (typeof TitleAction)[keyof typeof TitleAction];
5031
+ type AIAction = (typeof AIAction)[keyof typeof AIAction];
4746
5032
 
4747
5033
  interface SdkEvents {
4748
5034
  "transport:busy": boolean;
@@ -5148,20 +5434,6 @@ interface SdkEvents {
5148
5434
  "multiplayer:memberUnbanned": UnbanMemberResponse;
5149
5435
  }
5150
5436
 
5151
- /**
5152
- * Хранилище, переживающее перезапуск игры. Нужно ровно для одной вещи — держать конфиг тайтла
5153
- * между сессиями, чтобы не качать его заново на каждом заходе (см. TitleConfigCache).
5154
- *
5155
- * Интерфейс намеренно узкий и допускает как синхронную реализацию (localStorage), так и
5156
- * асинхронную (IndexedDB, файловая система, PlayerPrefs в обёртке): вызывающий всегда делает
5157
- * `await`, а синхронная реализация просто вернёт значение.
5158
- */
5159
- interface ConfigStorage {
5160
- get(key: string): Promise<string | null> | string | null;
5161
- set(key: string, value: string): Promise<void> | void;
5162
- remove(key: string): Promise<void> | void;
5163
- }
5164
-
5165
5437
  declare const DEFAULT_BASE_URL = "https://api.idosgames.com";
5166
5438
  interface IDosGamesSettings {
5167
5439
  readonly titleID: string;
@@ -5452,6 +5724,17 @@ declare class UserData {
5452
5724
  patchSocialAcceptFriend(requesterUserID: string): void;
5453
5725
  patchSocialRemoveIncomingRequest(requesterUserID: string): void;
5454
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;
5455
5738
  private ensureSocial;
5456
5739
  applyTimedBoost(data: UserTimedBoostsState | null): void;
5457
5740
  patchActiveTimedBoost(boost: ActiveTimedBoost, policy: TimedBoostStackingPolicy): void;
@@ -5478,29 +5761,6 @@ declare class UserData {
5478
5761
  getCryptoCurrencyAmount(currencyID: string): string;
5479
5762
  }
5480
5763
 
5481
- /**
5482
- * Title public configuration cache (port of TitleConfig.cs). Phase 1 stores the raw config
5483
- * and exposes only `itemDefinitions` (needed by the resource applier). Typed accessors and
5484
- * `OnXxxUpdated` events for currencies/board/events arrive in Phase 2.
5485
- */
5486
- declare class TitleConfig {
5487
- private config;
5488
- private readonly sections;
5489
- private itemDefs;
5490
- private currencyDefs;
5491
- get titlePublicConfiguration(): TitlePublicConfigurationModel | null;
5492
- /** Store a feature's definitions blob (port of the per-feature Config.PatchXxx setters). */
5493
- patchSection(key: string, data: unknown): void;
5494
- getSection<T>(key: string): T | undefined;
5495
- applyTitlePublicConfiguration(data: unknown): void;
5496
- /** Item catalog view used by the cache to classify stackable vs unstackable items. */
5497
- get itemDefinitions(): ItemDefinitions | undefined;
5498
- applyItemDefinitions(defs: ItemDefinitions): void;
5499
- /** Currency catalog view (virtual + crypto definitions). */
5500
- get currencyDefinitions(): CurrencyDefinitions | undefined;
5501
- applyCurrencyDefinitions(defs: CurrencyDefinitions): void;
5502
- }
5503
-
5504
5764
  /** Local cache root (port of static IDosGamesData). An instance, not a global singleton. */
5505
5765
  declare class IDosGamesData {
5506
5766
  readonly user: UserData;
@@ -5764,6 +6024,8 @@ declare class UserService {
5764
6024
  private cache?;
5765
6025
  private get localizationCache();
5766
6026
  private locCache?;
6027
+ private get sectionCache();
6028
+ private secCache?;
5767
6029
  private get stateStore();
5768
6030
  private versionStore?;
5769
6031
  /**
@@ -5819,6 +6081,19 @@ declare class UserService {
5819
6081
  * refresh doesn't wipe the active board.
5820
6082
  */
5821
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;
5822
6097
  /**
5823
6098
  * Прикладывает к запросу локаль и версии уже сохранённых таблиц. Сервер по ним не станет
5824
6099
  * присылать ссылки на то, что у клиента и так свежее.
@@ -5928,7 +6203,7 @@ declare class StoreService {
5928
6203
  }): Promise<OperationResult<StorePurchaseResponse>>;
5929
6204
  /** Buy several offers in one atomic operation. Each ref is `{ OfferID, Count }`. */
5930
6205
  purchaseBatch(purchases: StorePurchaseRef[]): Promise<OperationResult<PurchaseBatchResponse>>;
5931
- getDefinitions(): Promise<OperationResult<StoreDefinitions>>;
6206
+ getDefinitions(opts?: ReadOptions): Promise<OperationResult<StoreDefinitions>>;
5932
6207
  /**
5933
6208
  * Loads the shop as this player sees it right now, and caches it.
5934
6209
  *
@@ -5939,7 +6214,13 @@ declare class StoreService {
5939
6214
  *
5940
6215
  * ⚠ Count timers down from `ServerTimeUtc`, not from the device clock.
5941
6216
  */
5942
- getStorefront(): Promise<OperationResult<GetStorefrontResponse>>;
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;
5943
6224
  /** The last storefront loaded, or null. Reload it after a purchase and on a refresh timer. */
5944
6225
  get cachedStorefront(): GetStorefrontResponse | null;
5945
6226
  /**
@@ -6150,7 +6431,7 @@ declare class CheckoutService {
6150
6431
  declare class LootboxService {
6151
6432
  private readonly ctx;
6152
6433
  constructor(ctx: ClientContext);
6153
- getDefinitions(): Promise<OperationResult<LootboxDefinitionsResponse>>;
6434
+ getDefinitions(opts?: ReadOptions): Promise<OperationResult<LootboxDefinitionsResponse>>;
6154
6435
  open(lootboxID: string, count: number, selectedOptionID?: string, payment?: PaymentProof): Promise<OperationResult<LootboxOpenResponse>>;
6155
6436
  private baseRequest;
6156
6437
  }
@@ -6163,7 +6444,7 @@ declare class RewardService {
6163
6444
  constructor(ctx: ClientContext);
6164
6445
  get milestoneRewardMultiplier(): number;
6165
6446
  get milestoneRewardMultiplierEnabled(): boolean;
6166
- getRewardDefinitions(): Promise<OperationResult<RewardDefinitionsResponse>>;
6447
+ getRewardDefinitions(opts?: ReadOptions): Promise<OperationResult<RewardDefinitionsResponse>>;
6167
6448
  getUserRewardsState(): Promise<OperationResult<UserRewardsStateResponse>>;
6168
6449
  getMilestoneRewardMultiplier(): Promise<OperationResult<GetMilestoneRewardMultiplierResponse>>;
6169
6450
  claimDailyReward(calendarID?: string): Promise<OperationResult<ClaimDailyRewardResponse>>;
@@ -6191,14 +6472,21 @@ declare class TutorialService {
6191
6472
  private readonly ctx;
6192
6473
  constructor(ctx: ClientContext);
6193
6474
  /** Flow and step definitions of the title (presets already resolved server-side). */
6194
- getTutorialDefinitions(): Promise<OperationResult<TutorialDefinitions>>;
6475
+ getTutorialDefinitions(opts?: ReadOptions): Promise<OperationResult<TutorialDefinitions>>;
6195
6476
  /**
6196
6477
  * Player state plus everything needed to draw the current step without a second call.
6197
6478
  *
6198
6479
  * @param autoStart Let the server start flows marked for auto-start. Pass `false` from a
6199
6480
  * settings screen that merely lists tutorials — otherwise opening it would begin one.
6200
6481
  */
6201
- getUserTutorialState(autoStart?: boolean): Promise<OperationResult<GetUserTutorialStateResponse>>;
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;
6202
6490
  /** Start a flow explicitly. Returns the flow with its first step. */
6203
6491
  startFlow(flowID: string): Promise<OperationResult<TutorialFlowResponse>>;
6204
6492
  /**
@@ -6379,7 +6667,7 @@ declare class ChatService {
6379
6667
  private readonly cursors;
6380
6668
  constructor(ctx: ClientContext);
6381
6669
  /** Channel catalog of the title (presets already resolved server-side). */
6382
- getChatDefinitions(): Promise<OperationResult<ChatDefinitions>>;
6670
+ getChatDefinitions(opts?: ReadOptions): Promise<OperationResult<ChatDefinitions>>;
6383
6671
  /**
6384
6672
  * Channels this player can see, with the room each of them resolves to for HIM, whether he
6385
6673
  * may write, and how much he has not read.
@@ -6387,7 +6675,12 @@ declare class ChatService {
6387
6675
  * Call it when the chat screen opens — it is also how you learn the poll interval and whether
6388
6676
  * the player is muted.
6389
6677
  */
6390
- getChannels(locale?: string): Promise<OperationResult<ChatChannelsResponse>>;
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;
6391
6684
  /**
6392
6685
  * What is new in every room since the last poll.
6393
6686
  *
@@ -6675,7 +6968,7 @@ declare class LocalizationService {
6675
6968
  declare class QuestService {
6676
6969
  private readonly ctx;
6677
6970
  constructor(ctx: ClientContext);
6678
- getQuestDefinitions(): Promise<OperationResult<QuestDefinitions>>;
6971
+ getQuestDefinitions(opts?: ReadOptions): Promise<OperationResult<QuestDefinitions>>;
6679
6972
  getUserQuestState(autoRefreshCycles?: boolean): Promise<OperationResult<GetUserQuestStateResponse>>;
6680
6973
  refreshQuestCycles(): Promise<OperationResult<SuccessResponse>>;
6681
6974
  claimQuestReward(questID: string, cycleID?: string): Promise<OperationResult<ClaimQuestRewardResponse>>;
@@ -6693,8 +6986,15 @@ declare class QuestService {
6693
6986
  declare class TimedEventService {
6694
6987
  private readonly ctx;
6695
6988
  constructor(ctx: ClientContext);
6696
- getActiveEvents(): Promise<OperationResult<GetActiveEventsResponse>>;
6697
- getDefinitions(): Promise<OperationResult<TimedEventDefinitions>>;
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>>;
6698
6998
  getUserLteState(): Promise<OperationResult<UserTimedEventStateResponse>>;
6699
6999
  grantTokens(type: ScheduleMode, lteID: string, sourceType: string, outcome?: string, amountOverride?: number, sourceParams?: Record<string, string>, rollMultiplier?: number): Promise<OperationResult<ResourceOperation>>;
6700
7000
  spendTokens(type: ScheduleMode, lteID: string, spendAmount: number): Promise<OperationResult<EventTokenSpendResponse>>;
@@ -6718,7 +7018,7 @@ declare class LeaderboardService {
6718
7018
  constructor(ctx: ClientContext);
6719
7019
  /** Per-cycle local doc id: `{titleID}_{leaderboardID}` (mirror of BuildCycleDocID). */
6720
7020
  private cycleDocID;
6721
- getDefinitions(): Promise<OperationResult<LeaderboardDefinitions>>;
7021
+ getDefinitions(opts?: ReadOptions): Promise<OperationResult<LeaderboardDefinitions>>;
6722
7022
  getLeaderboard(leaderboardID: string): Promise<OperationResult<GetLeaderboardResponse>>;
6723
7023
  getMyProgress(leaderboardID: string): Promise<OperationResult<GetMyProgressResponse>>;
6724
7024
  submitScore(leaderboardID: string, score: number): Promise<OperationResult<SubmitScoreResponse>>;
@@ -6733,7 +7033,13 @@ declare class LeaderboardService {
6733
7033
  /** Fetch several leaderboards' top lists in one call. */
6734
7034
  getLeaderboardsBatch(leaderboardIDs: string[]): Promise<OperationResult<GetLeaderboardsBatchResponse>>;
6735
7035
  /** Fetch this player's progress on several leaderboards in one call. */
6736
- getProgressBatch(leaderboardIDs: string[]): Promise<OperationResult<GetProgressBatchResponse>>;
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;
6737
7043
  /** Claim the cycle-end reward for several leaderboards in one atomic operation. */
6738
7044
  claimCycleRewardsBatch(leaderboardIDs: string[]): Promise<OperationResult<ClaimCycleRewardsBatchResponse>>;
6739
7045
  /** Claim several explicit (leaderboard, milestone) pairs in one atomic operation. */
@@ -6751,8 +7057,14 @@ declare class LeaderboardService {
6751
7057
  declare class SeasonService {
6752
7058
  private readonly ctx;
6753
7059
  constructor(ctx: ClientContext);
6754
- getDefinitions(): Promise<OperationResult<SeasonDefinitions>>;
6755
- getActiveSeason(seasonChainID: string): Promise<OperationResult<ActiveSeasonInfo>>;
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;
6756
7068
  getUserState(seasonChainID: string): Promise<OperationResult<UserSeasonStateResponse>>;
6757
7069
  grantStatusTokens(seasonChainID: string, amount: number): Promise<OperationResult<GrantStatusTokensResponse>>;
6758
7070
  claimTierReward(seasonChainID: string, tierNumber: number): Promise<OperationResult<ClaimTierRewardResponse>>;
@@ -6771,7 +7083,7 @@ declare class SeasonService {
6771
7083
  declare class PremiumService {
6772
7084
  private readonly ctx;
6773
7085
  constructor(ctx: ClientContext);
6774
- getDefinitions(): Promise<OperationResult<PremiumDefinitionsResponse>>;
7086
+ getDefinitions(opts?: ReadOptions): Promise<OperationResult<PremiumDefinitionsResponse>>;
6775
7087
  getUserState(): Promise<OperationResult<PremiumStateResponse>>;
6776
7088
  activateTrial(premiumID: string, transactionID: string): Promise<OperationResult<PremiumPurchaseResponse>>;
6777
7089
  purchaseItemOrCurrency(premiumID: string, transactionID: string, selectedOptionID?: string, count?: number): Promise<OperationResult<PremiumPurchaseResponse>>;
@@ -6799,7 +7111,7 @@ interface UpgradeLevelsOptions {
6799
7111
  declare class CharacterService {
6800
7112
  private readonly ctx;
6801
7113
  constructor(ctx: ClientContext);
6802
- getCharacterDefinitions(): Promise<OperationResult<CharacterDefinitions>>;
7114
+ getCharacterDefinitions(opts?: ReadOptions): Promise<OperationResult<CharacterDefinitions>>;
6803
7115
  getUserCharacters(): Promise<OperationResult<GetCharactersResponse>>;
6804
7116
  /**
6805
7117
  * Unlocks a character.
@@ -6900,7 +7212,7 @@ declare class MatchService {
6900
7212
  saveStrategy(battleStrategy: BattleStepConfig[]): Promise<OperationResult<SuccessResponse>>;
6901
7213
  getMyMatches(page?: number, pageSize?: number, statuses?: string[]): Promise<OperationResult<MatchesPageResponse>>;
6902
7214
  getAvailableMatches(page?: number, pageSize?: number, onlyPublic?: boolean): Promise<OperationResult<MatchesPageResponse>>;
6903
- getDefinitions(): Promise<OperationResult<GetMatchDefinitionsResponse>>;
7215
+ getDefinitions(opts?: ReadOptions): Promise<OperationResult<GetMatchDefinitionsResponse>>;
6904
7216
  private baseRequest;
6905
7217
  }
6906
7218
 
@@ -6908,7 +7220,7 @@ declare class MatchService {
6908
7220
  declare class CraftService {
6909
7221
  private readonly ctx;
6910
7222
  constructor(ctx: ClientContext);
6911
- getDefinitions(): Promise<OperationResult<CraftDefinitionsResponse>>;
7223
+ getDefinitions(opts?: ReadOptions): Promise<OperationResult<CraftDefinitionsResponse>>;
6912
7224
  /**
6913
7225
  * @param inputItemIDs catalog ItemIDs — a template of exactly RequiredItemCount entries.
6914
7226
  * @param inputInstanceIDs only for a ClientSelected recipe: which instances to burn, one per
@@ -7007,7 +7319,7 @@ declare class AIService {
7007
7319
  private readonly rewarded;
7008
7320
  constructor(ctx: ClientContext);
7009
7321
  /** The title's AI features (sanitized: no model, no prompts). Cached as config section `"AI"`. */
7010
- getDefinitions(): Promise<OperationResult<AIPublicDefinitions>>;
7322
+ getDefinitions(opts?: ReadOptions): Promise<OperationResult<AIPublicDefinitions>>;
7011
7323
  /** Text (NPC lines, a world description from pictures…): submits a job — see {@link waitForGeneration}. */
7012
7324
  generateText(featureKey: string, input: AITextInput, options?: AIGenerateOptions): Promise<OperationResult<AIGenerationView>>;
7013
7325
  /** Poll a text job. */
@@ -7076,7 +7388,7 @@ declare class AIService {
7076
7388
  declare class CollectionService {
7077
7389
  private readonly ctx;
7078
7390
  constructor(ctx: ClientContext);
7079
- getDefinitions(): Promise<OperationResult<CollectionDefinitions>>;
7391
+ getDefinitions(opts?: ReadOptions): Promise<OperationResult<CollectionDefinitions>>;
7080
7392
  getUserState(): Promise<OperationResult<UserCollectionState>>;
7081
7393
  /**
7082
7394
  * Opens `count` packs in ONE atomic operation. The cost scales with the count and each pack
@@ -7109,9 +7421,15 @@ declare class CollectionService {
7109
7421
  declare class CoopEventService {
7110
7422
  private readonly ctx;
7111
7423
  constructor(ctx: ClientContext);
7112
- getDefinitions(): Promise<OperationResult<CoopEventDefinitions>>;
7424
+ getDefinitions(opts?: ReadOptions): Promise<OperationResult<CoopEventDefinitions>>;
7113
7425
  getActiveEvent(coopChainID: string): Promise<OperationResult<ActiveCoopEventInfo>>;
7114
- getUserState(): Promise<OperationResult<CoopUserStateResponse>>;
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;
7115
7433
  getGroupState(groupID: string): Promise<OperationResult<CoopGroupStateResponse>>;
7116
7434
  joinOrCreateGroup(coopChainID: string): Promise<OperationResult<CoopGroupStateResponse>>;
7117
7435
  /**
@@ -7134,7 +7452,12 @@ declare class DealOfferService {
7134
7452
  constructor(ctx: ClientContext);
7135
7453
  getDefinition(): Promise<OperationResult<DealOffersDefinitionResponse>>;
7136
7454
  getUserState(): Promise<OperationResult<UserDealOffersStateResponse>>;
7137
- getActiveDeals(): Promise<OperationResult<GetActiveDealsResponse>>;
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;
7138
7461
  dismissDeal(slotID: string): Promise<OperationResult<DismissDealResponse>>;
7139
7462
  /**
7140
7463
  * Executes a node of an active deal.
@@ -7157,7 +7480,7 @@ declare class DealOfferService {
7157
7480
  declare class ReferralService {
7158
7481
  private readonly ctx;
7159
7482
  constructor(ctx: ClientContext);
7160
- getDefinitions(): Promise<OperationResult<ReferralDefinitionsResponse>>;
7483
+ getDefinitions(opts?: ReadOptions): Promise<OperationResult<ReferralDefinitionsResponse>>;
7161
7484
  getUserState(): Promise<OperationResult<UserReferralStateResponse>>;
7162
7485
  activateReferralCode(referralCode: string): Promise<OperationResult<ActivateReferralCodeResponse>>;
7163
7486
  claimInviteReward(inviteRewardID: string): Promise<OperationResult<ClaimInviteRewardResponse>>;
@@ -7222,7 +7545,12 @@ declare class SocialService {
7222
7545
  verbs?: SocialInboxVerb[];
7223
7546
  }): Promise<OperationResult<InboxResponse>>;
7224
7547
  /** The unread badge (capped at 100 → render "99+"), without loading the inbox. */
7225
- getInboxUnread(): Promise<OperationResult<InboxBadgeResponse>>;
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;
7226
7554
  /** "The player looked at the inbox": moves the seen mark to now; the badge drops to 0. */
7227
7555
  markInboxSeen(): Promise<OperationResult<InboxBadgeResponse>>;
7228
7556
  /** Follow a player of this title (`follow("User", userID)`). Answers with the target's state. */
@@ -7495,7 +7823,7 @@ declare class SocialService {
7495
7823
  declare class TimedBoostService {
7496
7824
  private readonly ctx;
7497
7825
  constructor(ctx: ClientContext);
7498
- getDefinitions(): Promise<OperationResult<TimedBoostDefinitions>>;
7826
+ getDefinitions(opts?: ReadOptions): Promise<OperationResult<TimedBoostDefinitions>>;
7499
7827
  getActive(): Promise<OperationResult<GetActiveTimedBoostsResponse>>;
7500
7828
  getActiveWindows(): Promise<OperationResult<GetActiveBoostWindowsResponse>>;
7501
7829
  activate(boostID: string, options?: {
@@ -7670,7 +7998,13 @@ declare class MarketplaceService {
7670
7998
  getOffer(offerID: string): Promise<OperationResult<MarketplaceOfferResponse>>;
7671
7999
  getBuyOrders(itemID?: string, continuationToken?: string, pageSize?: number): Promise<OperationResult<MarketplaceBrowseResponse>>;
7672
8000
  /** `bidsFilter` narrows `MyBids`: `Live` — auctions still running, `Finished` — the outcome of taking part. */
7673
- getMyState(bidsFilter?: MarketplaceMyBidsFilter): Promise<OperationResult<MarketplaceMyStateResponse>>;
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;
7674
8008
  getHistory(continuationToken?: string, pageSize?: number, historyFilter?: MarketplaceHistoryFilter): Promise<OperationResult<MarketplaceHistoryResponse>>;
7675
8009
  createListing(itemID: string, catalogID: string, goodsAmount: number, priceBundle: ResourceBundle, durationHours: number, itemInstanceIDs?: string[], selectedOptionID?: string): Promise<OperationResult<MarketplaceCreateOfferResponse>>;
7676
8010
  cancelListing(offerID: string): Promise<OperationResult<MarketplaceSettlementResponse>>;
@@ -12238,6 +12572,18 @@ interface IDosGamesClientConfig extends SettingsInput {
12238
12572
  fetch?: typeof fetch;
12239
12573
  /** Override the per-endpoint throttle window (ms). Default 600. */
12240
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;
12241
12587
  }
12242
12588
  /**
12243
12589
  * Composition root. Replaces the C# global statics (HttpService / IDosGamesData /
@@ -12263,6 +12609,8 @@ declare class ClientContext {
12263
12609
  /** Platform reported to the server; services read it to filter payment options. */
12264
12610
  readonly clientPlatform: ClientPlatform;
12265
12611
  readonly data: IDosGamesData;
12612
+ /** The central cache: every read decides here between the local copy and the server. */
12613
+ readonly cache: DataCache;
12266
12614
  readonly authStore: AuthStore;
12267
12615
  readonly api: {
12268
12616
  authentication: AuthenticationApi;
@@ -12443,6 +12791,12 @@ interface RealtimeSessionEvents {
12443
12791
  removed: {
12444
12792
  reason: string;
12445
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>;
12446
12800
  }
12447
12801
  type Listener<T> = (e: T) => void;
12448
12802
  /**
@@ -12580,4 +12934,4 @@ declare class RealtimeSession {
12580
12934
  private leaveOnUnload;
12581
12935
  }
12582
12936
 
12583
- export { type Listener$1 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, type SdkEvents as _, RealtimeSession as a, type BattleResult as a$, type Unsubscribe as a0, type ConfigStorage as a1, AIAction as a2, type AIAudioInput as a3, type AIChatMessage as a4, AIErrorCode as a5, type AIGenerateOptions as a6, type AIGenerationAssetView as a7, type AIGenerationErrorView as a8, type AIGenerationListView as a9, AnalyticsAction as aA, type AnalyticsClientContext as aB, type AnalyticsDefinitions as aC, type AnalyticsDimensionDefinition as aD, AnalyticsDropReason as aE, type AnalyticsEventDefinition as aF, type AnalyticsEventInput as aG, AnalyticsEventNaming as aH, AnalyticsLimits as aI, type AnalyticsParamValue as aJ, type AnalyticsParams as aK, type AnalyticsRequest as aL, AttackOutcome as aM, type AttackResponse as aN, type AttributionInput as aO, type AuthContext as aP, type AuthOptionsResponse as aQ, AuthType as aR, AuthenticationAction as aS, type AuthenticationRequest as aT, AutomaticEvent as aU, type BaseRequest as aV, type BatchDeleteUserCustomDataResponse as aW, type BatchGetPublicUserCustomDataResponse as aX, type BatchItemResult as aY, type BatchResponse as aZ, type BatchSetUserCustomDataResponse as a_, AIGenerationStatus as aa, type AIGenerationView as ab, type AIHistoryQuery as ac, type AIImageEditInput as ad, type AIImageInput as ae, type AIInputImage as af, AIModality as ag, type AIMusicInput as ah, type AIPublicDefinitions as ai, type AIPublicFeature as aj, type AIRequest as ak, type AITextInput as al, type AIThreeDInput as am, type AIVideoInput as an, type AIWaitOptions as ao, type AcceptTradeOfferResponse as ap, AcquisitionCapture as aq, type ActivateReferralCodeResponse as ar, type ActivateTimedBoostResponse as as, type ActiveBoostWindowInfo as at, type ActiveCoopEventInfo as au, type ActiveDealSlotInfo as av, type ActiveEventInfo as aw, type ActiveSeasonInfo as ax, type ActiveTimedBoost as ay, type AddQuestProgressResponse as az, type RealtimeSessionEvents as b, type ChatDefinitions as b$, type BattleStepConfig as b0, type BlockchainAccountSafetyPolicy as b1, BlockchainAction as b2, type BlockchainConfigResponse as b3, type BlockchainDefinitions as b4, type BlockchainNetworkDefinition as b5, BlockchainNetworkType as b6, type BlockchainNftCollectionBinding as b7, BlockchainOperationCategory as b8, type BlockchainPlayAccessPolicy as b9, type CharacterRankLadder as bA, type CharacterRequest as bB, type CharacterSkinDefinition as bC, type CharacterSkinItem as bD, type CharacterSkinRequirements as bE, type CharacterSkinSale as bF, type CharacterSkinView as bG, type CharacterSkins as bH, type CharacterSkinsView as bI, type CharacterStatRef as bJ, type CharacterUnequipResult as bK, type CharacterUnlock as bL, ChatAction as bM, ChatAuthorType as bN, ChatBlockedTermAction as bO, type ChatChannelAvailability as bP, type ChatChannelDefinition as bQ, type ChatChannelIdentity as bR, type ChatChannelPresetBindings as bS, type ChatChannelRetention as bT, ChatChannelType as bU, type ChatChannelView as bV, type ChatChannelWriteRules as bW, type ChatChannelsResponse as bX, type ChatConversationView as bY, type ChatConversationsResponse as bZ, type ChatCursor as b_, type BlockchainRequest as ba, type BlockchainStats as bb, type BlockchainSystemState as bc, BlockchainTransactionStatus as bd, BlockchainTransactionType as be, type BoardLoopDefinition as bf, type BoardLoopState as bg, type BoardPendingInteraction as bh, type BoardRollResponse as bi, BodyPart as bj, type BoostTriggerCounter as bk, BoostWindowKind as bl, type BuildResponse as bm, type BuildingState as bn, type CancelMatchResponse as bo, type CancelTradeOfferResponse as bp, type ChangeUsernameResponse as bq, CharacterAction as br, type CharacterClassification as bs, type CharacterDefinition as bt, type CharacterDefinitions as bu, type CharacterEquipment as bv, type CharacterEquipmentSlot as bw, type CharacterIdentity as bx, type CharacterLevelRef as by, type CharacterModel as bz, type RealtimeSessionOptions as c, type CommunityChestMember as c$, ChatDirectAudience as c0, type ChatDirectChannelResponse as c1, type ChatHistoryResponse as c2, type ChatMessageView as c3, type ChatModerationSettings as c4, ChatPartitioning as c5, type ChatPollResponse as c6, type ChatPollingSettings as c7, type ChatPresetRegistry as c8, ChatReportReason as c9, type ClaimSetRewardsBatchResponse as cA, type ClaimTierRewardResponse as cB, type ClaimTierRewardsBatchResponse as cC, ClientPlatform as cD, type ClientState as cE, CloudCodeAction as cF, CloudCodeErrorCode as cG, type CloudCodeLogEntry as cH, CloudCodeLogLevel as cI, type CloudCodeRequest as cJ, CloudCodeRevisionSelection as cK, type CodeExecutionError as cL, type CollectIdleAccrualResponse as cM, CollectionAction as cN, type CollectionDefinitions as cO, type CollectionGlobalSettings as cP, type CollectionRequest as cQ, type CollectionSetRef as cR, type CollectionTradeOfferDocument as cS, CommissionSink as cT, type CommunityAccrualLine as cU, type CommunityCampaignSummary as cV, type CommunityChestClaimResponse as cW, type CommunityChestGroupDocument as cX, type CommunityChestGroupStateResponse as cY, type CommunityChestHistoryEntry as cZ, type CommunityChestLeaveResponse as c_, type ChatReportResponse as ca, type ChatRequest as cb, type ChatRoomUpdate as cc, type ChatSendResponse as cd, type ChatStateResponse as ce, type ClaimAllRewardsBatchResponse as cf, type ClaimAllRewardsResult as cg, type ClaimComebackRewardResponse as ch, type ClaimCycleRewardResponse as ci, type ClaimCycleRewardsBatchResponse as cj, type ClaimDailyRewardResponse as ck, type ClaimDealMilestoneResponse as cl, type ClaimDealMilestonesBatchResponse as cm, type ClaimGrandPrizeResponse as cn, type ClaimGroupCompletionRewardResponse as co, type ClaimInviteRewardResponse as cp, type ClaimInviteRewardsBatchResponse as cq, type ClaimLeaderboardMilestoneResponse as cr, type ClaimLeaderboardMilestonesBatchResponse as cs, type ClaimMilestoneRewardResponse as ct, type ClaimMilestoneRewardsBatchResponse as cu, type ClaimMilestonesBatchResponse as cv, type ClaimQuestRewardResponse as cw, type ClaimQuestRewardsBatchResponse as cx, type ClaimRewardResponse as cy, type ClaimSetRewardResponse as cz, type IDosGamesClientConfig as d, type CurrencyRequest as d$, CommunityChestMemberStatus as d0, type CommunityChestSharedState as d1, CommunityChestStatus as d2, type CommunityChestUserStateResponse as d3, type CommunityClaimResponse as d4, CommunityCreatorStatus as d5, type CommunityEarningsLine as d6, type CommunityEarningsResponse as d7, type CommunityEligibilityCondition as d8, type CommunityEligibilityResponse as d9, CoopMemberStatus as dA, type CoopPartnerObjectState as dB, type CoopSpinResponse as dC, type CoopUserStateResponse as dD, CraftAction as dE, type CraftBurnedInstance as dF, type CraftDefinition as dG, type CraftDefinitions as dH, type CraftDefinitionsResponse as dI, CraftInputSelectionMode as dJ, CraftOutputLevelMode as dK, CraftOutputLevelOverflow as dL, type CraftRequest as dM, type CraftResponse as dN, type CraftSingleResult as dO, CraftType as dP, type CreateMatchResponse as dQ, type CryptoConvertResponse as dR, type CryptoCurrencyDefinition as dS, type CryptoCurrencyPermissions as dT, type CryptoLimits as dU, type CryptoNetworkBinding as dV, type CryptoShortfall as dW, CurrencyAction as dX, type CurrencyAudit as dY, type CurrencyConversion as dZ, type CurrencyDefinitions as d_, CommunityMarketingAction as da, type CommunityMarketingRequest as db, type CommunityMarketingState as dc, CommunityMetricKind as dd, CommunityParticipationMode as de, CommunityPayoutCurrencyKind as df, type CommunityPayoutSummary as dg, type CommunitySolanaWithdrawalSignature as dh, type CommunityWithdrawalResponse as di, type ConfirmWithdrawalResponse as dj, type ConversionDailyCounter as dk, ConversionRateMode as dl, type ConversionTarget as dm, type ConvertResponse as dn, type CoopBuildObjectsMemberState as dp, type CoopBuildObjectsState as dq, type CoopClaimRewardResponse as dr, CoopEventAction as ds, type CoopEventDefinitions as dt, type CoopEventRequest as du, type CoopGroupDocument as dv, type CoopGroupMember as dw, type CoopGroupStateResponse as dx, CoopGroupStatus as dy, type CoopLeaveGroupResponse as dz, CurrencyService as e, type DealOfferDefinition as e$, CurrencyStatus as e0, CurrencyType as e1, CustomDataBucket as e2, CustomDataValueType as e3, CustomDataWriter as e4, type CyclicSchedule as e5, DEFAULT_BASE_URL as e6, type DailyUsageRecord as e7, DataAccessMode as e8, type DataAccessRule as e9, type DataPublicViewPointer as eA, type DataPublicViewsResponse as eB, type DataQueryResponse as eC, type DataQuerySpec as eD, type DataReadOptions as eE, type DataRecord as eF, DataRefKind as eG, type DataRefTarget as eH, type DataRolesResponse as eI, type DataSortKeyDefinition as eJ, type DataUpdateSpec as eK, type DataWriteResponse as eL, type DealAvailability as eM, DealComparisonOperator as eN, type DealIdentity as eO, type DealMilestoneBlock as eP, type DealMilestoneProgressInfo as eQ, type DealNodeActionDefinition as eR, type DealNodeDefinition as eS, type DealNodePresetBindings as eT, type DealNodePricing as eU, type DealNodeReward as eV, DealNodeRuntimeStatus as eW, DealNodeType as eX, type DealNodeUnlockRules as eY, DealOfferAction as eZ, DealOfferActivationStatus as e_, type DataBatchOperation as ea, type DataBatchResponse as eb, type DataCollectionDefinition as ec, DataCollectionKind as ed, DataCollectionSchemaMode as ee, DataCollectionsAction as ef, type DataCollectionsRequest as eg, type DataCountResponse as eh, DataCounterKind as ei, type DataCounterResponse as ej, type DataDefinitionsResponse as ek, type DataDeleteResponse as el, type DataFieldDefinition as em, DataFieldType as en, DataFieldVisibility as eo, type DataFileUploadResponse as ep, type DataFileView as eq, type DataFilter as er, type DataFilterOp as es, type DataGetManyResponse as et, type DataGetResponse as eu, type DataItemView as ev, type DataOperationEconomy as ew, DataOwnerDeletedPolicy as ex, type DataPublicViewDefinition as ey, type DataPublicViewPage as ez, ItemService as f, type GetActiveEventsResponse as f$, type DealOfferDefinitions as f0, type DealOfferGraph as f1, type DealOfferPresetBindings as f2, type DealOfferPresetRegistry as f3, type DealOfferRequest as f4, type DealOffersDefinitionResponse as f5, type DealRewardedVideoActionDefinition as f6, type DealSlotBehaviour as f7, type DealSlotDefinition as f8, type DealSlotPresetBindings as f9, type EventTokenOperation as fA, type EventTokenSpendResponse as fB, EventTokenType as fC, type ExecuteCloudCodeResponse as fD, type ExecuteNodeResponse as fE, ExperimentAction as fF, type ExperimentDefinition as fG, type ExperimentDefinitions as fH, type ExperimentGoal as fI, ExperimentGoalKind as fJ, type ExperimentRequest as fK, type ExperimentVariant as fL, type ExperimentVariantCondition as fM, FRIENDS_FROM_PLATFORM as fN, type FodderConsumedEntry as fO, FodderSelectionMode as fP, FodderValuationMode as fQ, type FriendActionResponse as fR, FriendActionStatus as fS, type FriendPublicProfile as fT, FriendSource as fU, type FriendsListResponse as fV, GameLoopAction as fW, type GameLoopDefinitions as fX, type GameLoopRequest as fY, type GetActiveBoostWindowsResponse as fZ, type GetActiveDealsResponse as f_, type DealSlotQueueEntry as fa, type DealTrackChange as fb, type DealTrackDefinition as fc, type DealTrackRequirement as fd, type DeclineTradeOfferResponse as fe, type DepositNFTResponse as ff, type DepositTokenResponse as fg, type DirectMessageSettings as fh, type DismissDealResponse as fi, type DonationResponse as fj, type DroppedEvent as fk, EVENT_NAME_PATTERN as fl, EnvelopeType as fm, type EquipItemsResponse as fn, type EquipSkinResponse as fo, type EquipSlotPair as fp, type EquipmentPreset as fq, type EquipmentSlot as fr, type EquippedItem as fs, type EventMap as ft, type EventMilestoneClaimResponse as fu, type EventTokenAddress as fv, type EventTokenConversion as fw, type EventTokenDefinition as fx, type EventTokenGrantResponse as fy, type EventTokenMilestoneData as fz, CheckoutService as g, type LimitSpec as g$, type GetActiveTimedBoostsResponse as g0, type GetCharacterSkinsResponse as g1, type GetCharactersResponse as g2, type GetExperimentsResponse as g3, type GetLeaderboardResponse as g4, type GetLeaderboardsBatchResponse as g5, type GetMailboxMessagesResponse as g6, type GetMatchDefinitionsResponse as g7, type GetMilestoneRewardMultiplierResponse as g8, type GetMyProgressResponse as g9, type InstantBattleRule as gA, type InventoryDelta as gB, ItemAction as gC, type ItemCatalog as gD, type ItemDefinition as gE, type ItemDefinitions as gF, type ItemEquipment as gG, type ItemMetadata as gH, type ItemRequest as gI, type ItemStats as gJ, type ItemTotals as gK, type ItemUpgrade as gL, type ItemUpgradeFodder as gM, type ItemUpgradeRef as gN, type JsonValue as gO, type KickMemberResponse as gP, KycStatus as gQ, KycTier as gR, LeaderboardAction as gS, type LeaderboardDefinitions as gT, type LeaderboardMilestoneRef as gU, type LeaderboardOverview as gV, type LeaderboardRequest as gW, type LeaderboardScoreRef as gX, type LeaderboardUserEntry as gY, type LeaveRoomResponse as gZ, type LevelsPreset as g_, type GetMyUserCustomDataResponse as ga, type GetOverviewBatchResponse as gb, type GetProgressBatchResponse as gc, type GetPublicTitleDataResponse as gd, type GetPublicUserCustomDataResponse as ge, type GetStorefrontResponse as gf, type GetTradeOffersResponse as gg, type GetUserQuestStateResponse as gh, type GetUserTutorialStateResponse as gi, type GrantStatusTokensResponse as gj, type GrantTokensBatchResponse as gk, type GrantedCollectible as gl, type HeistCell as gm, type IDosGamesSettings as gn, type IapProductAvailability as go, type IapProductDefinition as gp, type IapProductPurchaseState as gq, type IapProductRules as gr, IapProductType as gs, IapPurchaseStatus as gt, type IapStore as gu, IapStore$1 as gv, type InboxBadgeResponse as gw, type InboxResponse as gx, type InstantBattleDefinitions as gy, type InstantBattleResponse as gz, RewardService as h, type MarketplaceGroupedOffersResponse as h$, type LinkedWalletInfo as h0, LocalizationAction as h1, type LocalizationDefinitions as h2, type LocalizationLocaleDefinition as h3, type LocalizationLocaleInfo as h4, type LocalizationManifestResponse as h5, LocalizationMissingKeyMode as h6, type LocalizationParams as h7, type LocalizationRequest as h8, type LocalizationState as h9, type MailboxGiftStatusResponse as hA, type MailboxItemFailure as hB, type MailboxLetter as hC, MailboxLetterSource as hD, type MailboxOperationResponse as hE, type MailboxPendingReward as hF, type MailboxRequest as hG, MailboxRewardModule as hH, type MailboxSendGiftResponse as hI, type MailboxSendTransferResponse as hJ, MarketGoodsType as hK, MarketOfferStatus as hL, MarketOfferType as hM, MarketplaceAction as hN, type MarketplaceActionCounter as hO, type MarketplaceAuctionSettings as hP, type MarketplaceAuctionState as hQ, type MarketplaceBidRefund as hR, type MarketplaceBrowseResponse as hS, type MarketplaceBuyOrderSettings as hT, type MarketplaceCommissionOverride as hU, type MarketplaceCommissionPolicy as hV, type MarketplaceCreateOfferResponse as hW, type MarketplaceDefinitions as hX, type MarketplaceDirectTradeSettings as hY, type MarketplaceGetDefinitionsResponse as hZ, type MarketplaceGroupedOfferView as h_, type LocalizationTableRef as ha, type LocalizationTableResponse as hb, type LogEventsResponse as hc, LootboxAction as hd, type LootboxAmountRange as he, type LootboxDefinitions as hf, type LootboxDefinitionsResponse as hg, type LootboxGlobalSettings as hh, type LootboxOpenResponse as hi, type LootboxPityRule as hj, type LootboxPityTriggerResponse as hk, type LootboxRequest as hl, type LootboxRewardRoll as hm, type LootboxRewardSlot as hn, type LootboxSupplyRule as ho, MAILBOX_COUNTER_CAP as hp, type MailLink as hq, type MailTemplateDefinition as hr, type MailText as hs, MailboxAction as ht, MailboxCategory as hu, type MailboxClaimResponse as hv, type MailboxClaimedLetter as hw, type MailboxCountersResponse as hx, type MailboxDefinitions as hy, MailboxErrors as hz, AnalyticsService as i, type PremiumDefinitionsResponse as i$, type MarketplaceHistoryEntryView as i0, type MarketplaceHistoryFilter as i1, type MarketplaceHistoryResponse as i2, type MarketplaceListingSettings as i3, type MarketplaceMatchingSettings as i4, type MarketplaceMyBidsFilter as i5, type MarketplaceMyStateResponse as i6, type MarketplaceOfferResponse as i7, type MarketplaceOfferView as i8, type MarketplacePlaceBidResponse as i9, OFFER_NOT_IN_ROTATION as iA, type OpenCollectionChestResponse as iB, type OpenPackResponse as iC, type OperationFailure as iD, type OperationFailureReason as iE, type OperationSuccess as iF, type PackOpenResult as iG, type PaymentProof as iH, type PaymentRequirement as iI, type PendingWithdrawalRef as iJ, type PlatformBlockchainState as iK, type PlatformBridgeDefinitions as iL, PlatformFriendsMode as iM, type PlatformLoginResponse as iN, PlatformProfileMode as iO, type PlayAccessInfoResponse as iP, PlayAccessMode as iQ, type PlayAccessState as iR, type PlayAccessStatus as iS, type PlayAccessWallet as iT, type PlayerEconomyTuningState as iU, PlayerExperimentStatus as iV, type PlayerExperimentView as iW, PlaytimeTracker as iX, type PollResponse as iY, PremiumAction as iZ, type PremiumDefinitions as i_, type MarketplacePricePolicy as ia, type MarketplaceRequest as ib, type MarketplaceSettlementResponse as ic, type MarketplaceTradabilityPolicy as id, MatchAction as ie, type MatchDefinitions as ig, type MatchRequest as ih, MatchStatus as ii, type MatchesPageResponse as ij, type MilestoneClaimEntry as ik, type MilestoneClaimRef as il, type MilestoneDefinition as im, MultiplayerAction as io, MultiplayerChatMode as ip, type MultiplayerDefinitions as iq, type MultiplayerRequest as ir, type MultiplayerSystemState as is, MultiplayerTopology as it, type NFTModel as iu, type NFTNetworkBinding as iv, type NFTTransactionDocument as iw, type NFTWithdrawalResponse as ix, type NftCollectionStats as iy, type NftStatsContainer as iz, CommunityMarketingService as j, type ResourceGrant as j$, type PremiumPurchaseResponse as j0, type PremiumRequest as j1, type PremiumStateResponse as j2, type PremiumSubscription as j3, type PriceOption as j4, type PriceOptions as j5, type PublishResponse as j6, PurchaseAction as j7, type PurchaseBatchResponse as j8, type PurchaseDefinitions as j9, type QuestObjectiveDefinition as jA, QuestObjectiveSource as jB, type QuestPhaseDefinition as jC, type QuestPointsTrackView as jD, QuestPrerequisiteMode as jE, type QuestPresetBindings as jF, type QuestPresetRegistry as jG, type QuestProgressUpdate as jH, type QuestRequest as jI, type QuestReward as jJ, QuestStatus as jK, RaidMode as jL, type RaidResponse as jM, type RealtimeEnvelope as jN, type RechargeConfig as jO, type RecordShowResponse as jP, ReferralAction as jQ, type ReferralDefinitions as jR, type ReferralDefinitionsResponse as jS, type ReferralInviteRewardState as jT, type ReferralRequest as jU, type RelativeWindow as jV, type ResourceBundle as jW, type ResourceConsume as jX, type ResourceDualPartyResult as jY, type ResourceEntry as jZ, ResourceEntryType as j_, type PurchaseDefinitionsResponse as ja, type PurchaseReceiptRef as jb, type PurchaseRequest as jc, type PurchaseValidationBatchResponse as jd, type PurchaseValidationResponse as je, PushAction as jf, type PushConfigResponse as jg, PushPermissionState as jh, type PushRequest as ji, type PushSubscribeOptions as jj, type PushSubscribeResult as jk, type PushSubscriptionListResponse as jl, type PushSubscriptionView as jm, PushTopic as jn, type PushTopicView as jo, PushTransport as jp, type PvPMatch as jq, QuestAction as jr, type QuestAvailability as js, type QuestClaimRef as jt, type QuestCycleDefinition as ju, type QuestDefinition as jv, type QuestDefinitions as jw, type QuestGroupCompletionDefinition as jx, type QuestIdentity as jy, type QuestLinking as jz, ChatService as k, type StatDefinition as k$, type ResourceOperation as k0, type ResourceTransferResult as k1, type RetryWithdrawalResponse as k2, RewardAction as k3, type RewardDefinitions as k4, type RewardDefinitionsResponse as k5, type RewardRequest as k6, type RollActionData as k7, type RoomListItem as k8, type RoomMemberView as k9, type SocialCommentView as kA, SocialContentStatus as kB, type SocialCounters as kC, type SocialCounts as kD, type SocialCursor as kE, type SocialDefinitions as kF, type SocialEntityState as kG, type SocialEntityStatesResponse as kH, SocialEntityType as kI, type SocialGiftDefinition as kJ, type SocialInboxItem as kK, SocialInboxVerb as kL, SocialReactionKind as kM, type SocialReactionPage as kN, type SocialReactionView as kO, SocialReportReason as kP, type SocialReportResponse as kQ, type SocialRequest as kR, type SolanaWithdrawalSignature as kS, type SpecialApplyMultiplierResponse as kT, SpecialChoiceMode as kU, type SpecialChooseResponse as kV, type SpecialClaimResponse as kW, type SpecialModeOfferData as kX, type SpecialPendingState as kY, type SpendRewardDefinition as kZ, type SpendTokensBatchResponse as k_, type RoomSnapshotResponse as ka, RoomVisibility as kb, type RoomsPageResponse as kc, SKIN_ALREADY_OWNED as kd, SKIN_SLOT as ke, type ScheduleChain as kf, type ScheduleChainPhase as kg, ScheduleMode as kh, type ScheduleSpec as ki, type ScheduledWindow as kj, SeasonAction as kk, type SeasonDefinitions as kl, type SeasonRequest as km, type SeasonTierRewardBundle as kn, type SeasonTierRewardMultiplier as ko, type SeasonTierRewardSet as kp, type SegmentGate as kq, type SendTradeOfferResponse as kr, type SetUserCustomDataResponse as ks, type SettingsInput as kt, SocialAction as ku, type SocialActorPage as kv, type SocialActorSnapshot as kw, type SocialActorView as kx, type SocialCommentDeleteResponse as ky, type SocialCommentPage as kz, PushService as l, type TransferableResource as l$, type StatRequirement as l0, type StatsPreset as l1, StoreAction as l2, type StoreAvailability as l3, type StoreDefinition as l4, type StoreDefinitions as l5, type StoreIdentity as l6, type StoreLayout as l7, type StoreOfferAvailability as l8, type StoreOfferDefinition as l9, TimedBoostStackingPolicy as lA, TimedEventAction as lB, type TimedEventDefinitions as lC, type TimedEventGrantRef as lD, type TimedEventInstanceRef as lE, type TimedEventMilestoneRef as lF, type TimedEventRequest as lG, type TimedEventSpendRef as lH, TitleAction as lI, TitleConfig as lJ, TitleCustomDataAction as lK, type TitleCustomDataDefinitions as lL, type TitleCustomDataKeyDefinition as lM, type TitleCustomDataRecord as lN, type TitleCustomDataRequest as lO, TitleDataBucket as lP, TitleDataScope as lQ, type TitlePublicConfigurationModel as lR, type TitleRequest as lS, type TokenCurrencyStats as lT, type TokenStatsContainer as lU, type TokenTransactionDocument as lV, type TokenWithdrawalResponse as lW, TradeOfferStatus as lX, TransactionDirection as lY, type TransactionHistoryResponse as lZ, type TransferGiftDefinition as l_, type StoreOfferPricing as la, type StoreOfferReward as lb, type StoreOfferStateView as lc, type StorePurchaseRef as ld, type StorePurchaseResponse as le, type StorePurchaseState as lf, type StoreRequest as lg, StoreRotationMode as lh, type StoreRotationPurchaseState as li, type StoreSectionDefinition as lj, type StoreSlotDefinition as lk, type StoreSlotPoolEntry as ll, type StoreSlotRotation as lm, StoreType as ln, type StorefrontOfferView as lo, type StorefrontPriceOptionView as lp, type StorefrontSectionView as lq, type StorefrontSlotView as lr, type StorefrontView as ls, type SubmitScoreResponse as lt, type SubmitScoresBatchResponse as lu, type SuccessResponse as lv, type TelegramInvoiceResponse as lw, TimedBoostAction as lx, type TimedBoostDefinitions as ly, type TimedBoostRequest as lz, LocalizationService as m, type UserComebackState as m$, type TriggerContext as m0, type TriggerSource as m1, TutorialAction as m2, type TutorialAvailability as m3, type TutorialBlockingPolicy as m4, TutorialBoardAction as m5, type TutorialBoardScript as m6, type TutorialClaimResponse as m7, type TutorialDefinitions as m8, type TutorialFlowBatchResponse as m9, type UnequipItemsResponse as mA, type UnequipSkinResponse as mB, type UnlockCharacterResponse as mC, type UnlockCharactersBatchResponse as mD, type UnlockSkinResponse as mE, type UnstackableItemInstanceState as mF, type UpdateMatchResponse as mG, type UpgradeCharacterLevelResponse as mH, type UpgradeCharacterLevelsBatchResponse as mI, type UpgradeItemLevelResponse as mJ, type UpgradeLevelsBatchResponse as mK, type UpgradeLevelsOptions as mL, type UpgradeStatLevelResponse as mM, type UpgradeStatLevelsBatchResponse as mN, type UsagePeriodRecord as mO, type UsageReactivationEvent as mP, type UsageTimeStats as mQ, type UseCollectibleJokerResponse as mR, UserAction as mS, type UserBlockchainState as mT, type UserBlockchainStateResponse as mU, type UserCharactersState as mV, type UserChatChannelState as mW, type UserChatLimitState as mX, type UserChatState as mY, type UserClaimRewardState as mZ, type UserCollectionState as m_, type TutorialFlowDefinition as ma, type TutorialFlowPolicy as mb, type TutorialFlowResponse as mc, TutorialFlowStatus as md, type TutorialFlowView as me, type TutorialGateCondition as mf, TutorialGateMode as mg, type TutorialGlobalSettings as mh, type TutorialIdentity as mi, type TutorialPresetBindings as mj, type TutorialPresetRegistry as mk, type TutorialRequest as ml, TutorialRestartPolicy as mm, type TutorialReward as mn, TutorialScriptModule as mo, type TutorialScriptedOutcome as mp, type TutorialStepCompletion as mq, TutorialStepCompletionMode as mr, type TutorialStepDefinition as ms, type TutorialStepEffects as mt, type TutorialStepIdentity as mu, type TutorialStepPolicy as mv, type TutorialStepProgress as mw, TypedEmitter as mx, type UnbanMemberResponse as my, type UnequipAllCharactersResponse as mz, TimedEventService as n, type UserVirtualCurrencyState as n$, type UserCommunityChestState as n0, type UserCoopEventState as n1, type UserCryptoComplianceCounters as n2, type UserCryptoCurrencyState as n3, UserCustomDataAction as n4, type UserCustomDataBatchDeleteItem as n5, type UserCustomDataBatchSetItem as n6, type UserCustomDataDefinitions as n7, type UserCustomDataKeyDefinition as n8, type UserCustomDataRecord as n9, type UserMatchState as nA, type UserPremiumState as nB, type UserPublicDataModel as nC, type UserPurchaseState as nD, type UserQuestCycleState as nE, type UserQuestObjectiveProgress as nF, type UserQuestProgress as nG, type UserQuestState as nH, type UserReferralState as nI, type UserReferralStateResponse as nJ, type UserRequest as nK, type UserRewardState as nL, type UserRewardsStateResponse as nM, type UserSeasonState as nN, type UserSeasonStateResponse as nO, type UserSeasonsState as nP, type UserSocialState as nQ, type UserState as nR, type UserStateSlice as nS, type UserStateVersions as nT, type UserStoreState as nU, type UserTimedBoostsState as nV, type UserTimedEventStateResponse as nW, type UserTutorialFlowState as nX, type UserTutorialState as nY, type UserTutorialStepState as nZ, type UserUsageState as n_, type UserCustomDataRequest as na, type UserCustomDataState as nb, type UserDailyCalendarState as nc, type UserDailyCounters as nd, UserData as ne, type UserDealNodeLifetimeCounts as nf, type UserDealNodeState as ng, type UserDealOfferActivationState as nh, type UserDealOfferHistory as ni, type UserDealOffersState as nj, type UserDealOffersStateResponse as nk, type UserDealSlotState as nl, type UserDealTrackState as nm, type UserDepositAddress as nn, type UserEventTokenProgress as no, type UserEventTokensState as np, type UserGameLoopsState as nq, type UserIdleAccrualState as nr, type UserInventoryState as ns, type UserKycState as nt, type UserLeaderboardProgress as nu, type UserLeaderboardsState as nv, type UserLootboxPityCounter as nw, type UserLootboxState as nx, type UserMarketplaceState as ny, type UserMatchCreationLimitState as nz, LeaderboardService as o, isReservedSlot as o$, type VirtualCurrencyDefinition as o0, type VirtualCurrencyEconomy as o1, type VirtualCurrencyPermissions as o2, type WalletChallengeResponse as o3, WalletGateBalanceSource as o4, type WalletGatedBalance as o5, type WalletLinkResponse as o6, WalletLinkType as o7, type WalletPlayTokenGate as o8, type WalletUnlinkResponse as o9, type WorkshopDownloadedFile as oA, type WorkshopFileData as oB, type WorkshopFileDeclaration as oC, type WorkshopFileRole as oD, WorkshopHoldingMatch as oE, WorkshopHoldingMode as oF, type WorkshopHoldingPolicy as oG, type WorkshopHoldingRequirement as oH, type WorkshopHoldingRule as oI, WorkshopLicenseSource as oJ, type WorkshopLicenseView as oK, type WorkshopLicensesResponse as oL, type WorkshopLimits as oM, type WorkshopModerationSettings as oN, type WorkshopPublishFile as oO, type WorkshopPublishInput as oP, type WorkshopPublishResponse as oQ, type WorkshopRequest as oR, WorkshopSort as oS, type WorkshopUploadTarget as oT, WorkshopVisibility as oU, claimedMilestoneIDs as oV, grantedPremiumTiers as oW, isAIGenerationTerminal as oX, isFail as oY, isMilestoneClaimed as oZ, isOk as o_, type WithdrawalSignatureResponse as oa, type WithdrawalSplit as ob, WorkshopAccessMode as oc, type WorkshopAccessOption as od, type WorkshopAccessOptionInput as oe, type WorkshopAccessState as of, WorkshopAccessVia as og, type WorkshopAcquireResponse as oh, WorkshopAction as oi, type WorkshopBeginUploadResponse as oj, type WorkshopBrowseQuery as ok, type WorkshopBrowseResponse as ol, type WorkshopCollection as om, type WorkshopCollectionResponse as on, type WorkshopCollectionView as oo, type WorkshopContentMutationResponse as op, type WorkshopContentResponse as oq, type WorkshopContentStats as or, WorkshopContentStatus as os, type WorkshopContentType as ot, type WorkshopContentView as ou, type WorkshopCreatorProfileResponse as ov, type WorkshopDefinitions as ow, type WorkshopDefinitionsResponse as ox, type WorkshopDownloadFile as oy, type WorkshopDownloadResponse as oz, SeasonService as p, normalizeBlockchainCategory as p0, parseAIErrorCode as p1, where as p2, zPaymentProof as p3, zPriceOption as p4, zPriceOptions as p5, 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 };