@idosgames/core 0.10.1 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -136,10 +136,10 @@ type VirtualCurrencyEconomy = { ValueInUSD?: null | string; ValueInUSDUpdatedAt?
136
136
  type RechargeConfig = { Rate?: null | number; Max?: null | number; Period?: null | number; [key: string]: unknown; };
137
137
  type VirtualCurrencyPermissions = { IsTradable?: null | boolean; IsPurchasable?: null | boolean; IsRefundable?: null | boolean; [key: string]: unknown; };
138
138
  type ConversionTarget = { TargetCurrencyID: string; TargetCurrencyType?: null | 'Virtual' | 'Crypto'; Rate?: null | string; MinAmount?: null | number; MaxAmount?: null | number; DailyLimit?: null | number; [key: string]: unknown; };
139
- type CurrencyConversion = { Enabled?: null | boolean; RateMode?: null | 'Automatic' | 'Manual'; FeePercent?: null | string; Targets?: null | Array<ConversionTarget>; [key: string]: unknown; };
139
+ type CurrencyConversion = { Enabled?: null | boolean; RateMode?: null | 'Automatic' | 'Manual'; Fee?: null | number; Targets?: null | Array<ConversionTarget>; [key: string]: unknown; };
140
140
  type CurrencyAudit = { CreatedAt?: null | string; UpdatedAt?: null | string; [key: string]: unknown; };
141
141
  type VirtualCurrencyDefinition = { CurrencyID: string; DisplayName?: null | string; AssetPaths?: null | Record<string, string>; Economy?: null | VirtualCurrencyEconomy; Recharge?: null | RechargeConfig; Conversion?: null | CurrencyConversion; Permissions?: null | VirtualCurrencyPermissions; Audit?: null | CurrencyAudit; Status?: null | 'Active' | 'Hidden' | 'Deprecated' | 'Maintenance'; [key: string]: unknown; };
142
- type CryptoNetworkBinding = { NetworkID: string; ContractAddress?: null | string; Decimals?: null | number; MinDeposit?: null | string; MinWithdraw?: null | string; WithdrawFee?: null | string; DepositsEnabled?: null | boolean; WithdrawalsEnabled?: null | boolean; [key: string]: unknown; };
142
+ type CryptoNetworkBinding = { NetworkID: string; ContractAddress?: null | string; Decimals?: null | number; MinWithdraw?: null | string; DepositsEnabled?: null | boolean; WithdrawalsEnabled?: null | boolean; [key: string]: unknown; };
143
143
  type CryptoLimits = { DailyWithdrawUsd?: null | string; MonthlyWithdrawUsd?: null | string; KycRequiredAboveUsd?: null | string; [key: string]: unknown; };
144
144
  type CryptoCurrencyPermissions = { DepositsEnabled?: null | boolean; WithdrawalsEnabled?: null | boolean; SpendableInGame?: null | boolean; ConvertibleToVirtual?: null | boolean; [key: string]: unknown; };
145
145
  type CryptoCurrencyDefinition = { CurrencyID: string; DisplayName?: null | string; AssetPaths?: null | Record<string, string>; DisplayDecimals?: null | number; ValueInUSD?: null | string; ValueInUSDUpdatedAt?: null | string; DeveloperDepositSharePercent?: null | string; CommunityMarketingDepositSharePercent?: null | string; WithdrawalBurnPercent?: null | string; Networks?: null | Array<CryptoNetworkBinding>; Limits?: null | CryptoLimits; Permissions?: null | CryptoCurrencyPermissions; Conversion?: null | CurrencyConversion; Audit?: null | CurrencyAudit; Status?: null | 'Active' | 'Hidden' | 'Deprecated' | 'Maintenance'; [key: string]: unknown; };
@@ -204,6 +204,221 @@ declare const CloudCodeAction: {
204
204
  };
205
205
  type CloudCodeAction = (typeof CloudCodeAction)[keyof typeof CloudCodeAction];
206
206
 
207
+ declare const ChatChannelType: {
208
+ /** Title-wide channel: anyone passing the write gate may post. */
209
+ readonly Global: "Global";
210
+ /** Publisher announcements: players read only. */
211
+ readonly Announcement: "Announcement";
212
+ /** Group channel (clans). Membership comes from an external provider. */
213
+ readonly Group: "Group";
214
+ };
215
+ type ChatChannelType = (typeof ChatChannelType)[keyof typeof ChatChannelType];
216
+ declare const ChatPartitioning: {
217
+ readonly None: "None";
218
+ /** Split by the player's language. */
219
+ readonly Language: "Language";
220
+ /** Split by the player's country (resolved from IP by the server). */
221
+ readonly Region: "Region";
222
+ };
223
+ type ChatPartitioning = (typeof ChatPartitioning)[keyof typeof ChatPartitioning];
224
+ declare const ChatDirectAudience: {
225
+ readonly Anyone: "Anyone";
226
+ /** Friends only — an accepted edge in the Social graph. */
227
+ readonly Friends: "Friends";
228
+ };
229
+ type ChatDirectAudience = (typeof ChatDirectAudience)[keyof typeof ChatDirectAudience];
230
+ declare const ChatBlockedTermAction: {
231
+ readonly Reject: "Reject";
232
+ /** Mask the term with asterisks and let the message through. */
233
+ readonly Mask: "Mask";
234
+ };
235
+ type ChatBlockedTermAction = (typeof ChatBlockedTermAction)[keyof typeof ChatBlockedTermAction];
236
+ declare const ChatAuthorType: {
237
+ readonly Player: "Player";
238
+ /** The publisher: an announcement posted from the dashboard. */
239
+ readonly Publisher: "Publisher";
240
+ /** The system: a service message from the engine itself. */
241
+ readonly System: "System";
242
+ };
243
+ type ChatAuthorType = (typeof ChatAuthorType)[keyof typeof ChatAuthorType];
244
+ declare const ChatReportReason: {
245
+ readonly Spam: "Spam";
246
+ readonly Abuse: "Abuse";
247
+ readonly Scam: "Scam";
248
+ readonly Inappropriate: "Inappropriate";
249
+ readonly Other: "Other";
250
+ };
251
+ type ChatReportReason = (typeof ChatReportReason)[keyof typeof ChatReportReason];
252
+ type ChatChannelIdentity = { DisplayNameKey?: null | string; SortOrder?: null | number; IconPath?: null | string; JoinedByDefault?: null | boolean; [key: string]: unknown; };
253
+ type ChatChannelAvailability = { Gate?: null | SegmentGate; Schedule?: null | ScheduleSpec; [key: string]: unknown; };
254
+ type ChatChannelWriteRules = { Gate?: null | SegmentGate; Limits?: null | LimitSpec; MaxLength?: null | number; [key: string]: unknown; };
255
+ type ChatChannelRetention = { HotTailSize?: null | number; HistoryHours?: null | number; [key: string]: unknown; };
256
+ type ChatChannelPresetBindings = { Availability?: null | PresetBinding; Write?: null | PresetBinding; Retention?: null | PresetBinding; [key: string]: unknown; };
257
+ type ChatChannelDefinition = { ChannelID?: null | string; Identity?: null | ChatChannelIdentity; Type?: null | 'Global' | 'Announcement' | 'Group'; 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; };
258
+ type DirectMessageSettings = { IsEnabled?: null | boolean; Gate?: null | SegmentGate; WhoCanMessage?: null | 'Anyone' | 'Friends'; Limits?: null | LimitSpec; MaxLength?: null | number; HistoryHours?: null | number; MaxConversations?: null | number; [key: string]: unknown; };
259
+ type ChatModerationSettings = { BlockedTerms?: null | Array<string>; BlockedTermAction?: null | 'Reject' | 'Mask'; MaxIgnoreListSize?: null | number; ReportsEnabled?: null | boolean; ReportLimits?: null | LimitSpec; [key: string]: unknown; };
260
+ type ChatPollingSettings = { MinIntervalSeconds?: null | number; MaxMessagesPerPoll?: null | number; MaxHistoryPageSize?: null | number; [key: string]: unknown; };
261
+ type ChatPresetRegistry = { Availability?: null | Record<string, ChatChannelAvailability>; Write?: null | Record<string, ChatChannelWriteRules>; Retention?: null | Record<string, ChatChannelRetention>; [key: string]: unknown; };
262
+ 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; };
263
+ type UserChatChannelState = { LastReadAt?: null | string; LastReadMessageID?: null | string; Left?: null | boolean; [key: string]: unknown; };
264
+ type UserChatLimitState = { LastAt?: null | string; DailyCount?: null | number; DailyResetUtc?: null | string; TotalCount?: null | number; LastTextHash?: null | string; [key: string]: unknown; };
265
+ 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; };
266
+ type ChatCursor = { RoomID?: null | string; SentAt?: null | string; MessageID?: null | string; [key: string]: unknown; };
267
+ type ChatMessageView = { RoomID?: null | string; ChannelID?: null | string; MessageID?: null | string; SenderUserID?: null | string; SenderProfile?: null | UserPublicDataModel; AuthorType?: null | 'Player' | 'Publisher' | 'System'; Text?: null | string; SentAt?: null | string; [key: string]: unknown; };
268
+ type ChatChannelView = { ChannelID?: null | string; RoomID?: null | string; DisplayNameKey?: null | string; IconPath?: null | string; SortOrder?: null | number; Type?: null | 'Global' | 'Announcement' | 'Group'; CanWrite?: null | boolean; WriteBlockedReason?: null | string; SlowModeSeconds?: null | number; MaxLength?: null | number; UnreadCount?: null | number; LastReadAt?: null | string; [key: string]: unknown; };
269
+ type ChatChannelsResponse = { Channels?: null | Array<ChatChannelView>; PollIntervalSeconds?: null | number; MutedUntil?: null | string; MuteReason?: null | string; [key: string]: unknown; };
270
+ type ChatRoomUpdate = { RoomID?: null | string; Messages?: null | Array<ChatMessageView>; NextCursor?: null | ChatCursor; UnreadCount?: null | number; ServedFromDatabase?: null | boolean; [key: string]: unknown; };
271
+ type ChatPollResponse = { Rooms?: null | Array<ChatRoomUpdate>; PollIntervalSeconds?: null | number; [key: string]: unknown; };
272
+ type ChatHistoryResponse = { RoomID?: null | string; Messages?: null | Array<ChatMessageView>; NextBefore?: null | ChatCursor; [key: string]: unknown; };
273
+ type ChatSendResponse = { Message?: null | ChatMessageView; Moderated?: null | boolean; [key: string]: unknown; };
274
+ type ChatDirectChannelResponse = { RoomID?: null | string; PeerUserID?: null | string; PeerProfile?: null | UserPublicDataModel; MaxLength?: null | number; [key: string]: unknown; };
275
+ type ChatConversationView = { RoomID?: null | string; PeerUserID?: null | string; PeerProfile?: null | UserPublicDataModel; LastMessage?: null | ChatMessageView; UnreadCount?: null | number; LastReadAt?: null | string; [key: string]: unknown; };
276
+ type ChatConversationsResponse = { Conversations?: null | Array<ChatConversationView>; [key: string]: unknown; };
277
+ type ChatStateResponse = { Ignored?: null | Array<string>; Cursor?: null | ChatCursor; Joined?: null | boolean; [key: string]: unknown; };
278
+ type ChatReportResponse = { ReportID?: null | string; AlreadyReported?: null | boolean; [key: string]: unknown; };
279
+ interface ChatRequest extends BaseRequest {
280
+ ChannelID?: string;
281
+ /** Full room address — used for direct conversations and already-opened rooms. */
282
+ RoomID?: string;
283
+ TargetUserID?: string;
284
+ Text?: string;
285
+ /**
286
+ * Client locale, needed by language-partitioned channels. It is validated against the
287
+ * title's configured locales server-side, so it can never invent a room.
288
+ */
289
+ Locale?: string;
290
+ Cursors?: ChatCursor[];
291
+ Before?: ChatCursor;
292
+ Limit?: number;
293
+ MessageID?: string;
294
+ Reason?: ChatReportReason;
295
+ Comment?: string;
296
+ }
297
+ declare const ChatAction: {
298
+ readonly GetChatDefinitions: "GetChatDefinitions";
299
+ readonly GetChannels: "GetChannels";
300
+ readonly Poll: "Poll";
301
+ readonly GetHistory: "GetHistory";
302
+ readonly GetConversations: "GetConversations";
303
+ readonly SendMessage: "SendMessage";
304
+ readonly OpenDirectChannel: "OpenDirectChannel";
305
+ readonly MarkRead: "MarkRead";
306
+ readonly JoinChannel: "JoinChannel";
307
+ readonly LeaveChannel: "LeaveChannel";
308
+ readonly ReportMessage: "ReportMessage";
309
+ readonly IgnoreUser: "IgnoreUser";
310
+ readonly UnignoreUser: "UnignoreUser";
311
+ };
312
+ type ChatAction = (typeof ChatAction)[keyof typeof ChatAction];
313
+
314
+ /** How a notification reaches the device. */
315
+ declare const PushTransport: {
316
+ /** Browser Web Push (RFC 8291). The only one a web build ever uses. */
317
+ readonly WebPush: "WebPush";
318
+ /** Firebase Cloud Messaging — native Android builds. */
319
+ readonly Fcm: "Fcm";
320
+ /** Apple Push Notification service — native iOS builds. */
321
+ readonly Apns: "Apns";
322
+ };
323
+ type PushTransport = (typeof PushTransport)[keyof typeof PushTransport];
324
+ /**
325
+ * Topic names. ⚠ A CROSS-REPOSITORY CONTRACT: one side writes the row, another queries by it.
326
+ * These strings are not labels — do not invent new ones on the client.
327
+ */
328
+ declare const PushTopic: {
329
+ /** Game events of this title. What a player subscribes for. */
330
+ readonly Player: "player";
331
+ /** "Follow this game" from the public site. */
332
+ readonly Title: "title";
333
+ /** Creator-portal events. */
334
+ readonly Creator: "creator";
335
+ };
336
+ type PushTopic = (typeof PushTopic)[keyof typeof PushTopic];
337
+ declare const PushAction: {
338
+ readonly GetPushConfig: "GetPushConfig";
339
+ readonly SubscribePush: "SubscribePush";
340
+ readonly UnsubscribePush: "UnsubscribePush";
341
+ readonly GetPushSubscriptions: "GetPushSubscriptions";
342
+ };
343
+ type PushAction = (typeof PushAction)[keyof typeof PushAction];
344
+ interface PushRequest extends BaseRequest {
345
+ /** Push-service URL from `PushSubscription.endpoint`. */
346
+ PushEndpoint?: string;
347
+ /** `keys.p256dh` — 65 bytes, base64url. */
348
+ PushP256dh?: string;
349
+ /** `keys.auth` — 16 bytes, base64url. */
350
+ PushAuth?: string;
351
+ /**
352
+ * Server-issued id of a device row, for when the endpoint itself is no longer at hand
353
+ * (unsubscribing from a list of "my devices").
354
+ */
355
+ PushEndpointHash?: string;
356
+ /**
357
+ * The device's language.
358
+ *
359
+ * ⚠ Captured HERE and refreshed on every subscribe, because the server stores no locale for a
360
+ * player anywhere. A push reaches someone who is not in the game — there is nobody to ask.
361
+ */
362
+ PushLocale?: string;
363
+ /**
364
+ * Minutes the device is offset from UTC (Moscow = 180).
365
+ *
366
+ * ⚠ Separate from the locale on purpose: a language says nothing about a timezone (Portuguese
367
+ * is spoken in Lisbon and in São Paulo). Without it the publisher's quiet hours would have to
368
+ * be computed in server time, i.e. would wake half the audience. Send
369
+ * `-new Date().getTimezoneOffset()` — the browser reports "minutes to subtract", not the offset.
370
+ */
371
+ PushTimezoneOffsetMinutes?: number;
372
+ /** Native builds only: the FCM/APNs device token. */
373
+ PushDeviceToken?: string;
374
+ /** `WebPush` (default), `Fcm` or `Apns`. */
375
+ PushTransport?: PushTransport;
376
+ }
377
+ type PushConfigResponse = z.output<typeof zPushConfigResponse>;
378
+ type PushTopicView = z.output<typeof zPushTopicView>;
379
+ type PushSubscriptionView = z.output<typeof zPushSubscriptionView>;
380
+ type PushSubscriptionListResponse = z.output<typeof zPushSubscriptionListResponse>;
381
+ /**
382
+ * What the UI needs to decide what to draw. Everything except `subscribed` means "no button", but
383
+ * for different reasons — and a couple of them are worth saying out loud to the player.
384
+ */
385
+ declare const PushPermissionState: {
386
+ /** Not configured, or the browser has no Push API (any iOS browser before 16.4, for one). */
387
+ readonly Unsupported: "unsupported";
388
+ /** Available, nobody has been asked yet. This is the only state where a button makes sense. */
389
+ readonly Idle: "idle";
390
+ /** This browser is subscribed and the server knows about it. */
391
+ readonly Subscribed: "subscribed";
392
+ /**
393
+ * The person said no — or Chrome said it for them after a few dismissals.
394
+ *
395
+ * ⚠ IRREVERSIBLE from code. Asking again does nothing; only the browser's own site settings can
396
+ * undo it. That is exactly why the first prompt must follow a deliberate tap and never a page
397
+ * load.
398
+ */
399
+ readonly Blocked: "blocked";
400
+ /**
401
+ * The game is running inside the portal's cross-origin iframe, where the permission prompt is
402
+ * blocked by the browser. Not an error and not something to retry: on that page the SITE owns
403
+ * the subscription, and the engine still does the sending.
404
+ */
405
+ readonly Embedded: "embedded";
406
+ };
407
+ type PushPermissionState = (typeof PushPermissionState)[keyof typeof PushPermissionState];
408
+ /** Where a successful {@link PushService.subscribe} actually created the subscription. */
409
+ interface PushSubscribeResult {
410
+ /**
411
+ * `"game"` — this origin subscribed itself, and `Subscription` describes the row.
412
+ *
413
+ * `"portal"` — the game is embedded on idosgames.com and the WEBSITE subscribed on the
414
+ * player's behalf, on its own top-level document. `Subscription` is `null` there: the row
415
+ * belongs to the site's origin and the game never sees its keys. The engine still does the
416
+ * sending, and the player's game id reaches the row on their next platform sign-in.
417
+ */
418
+ Where: "game" | "portal";
419
+ Subscription: PushSubscriptionView | null;
420
+ }
421
+
207
422
  interface EventTokenBalanceData {
208
423
  Current: number;
209
424
  TotalEarned: number;
@@ -262,6 +477,34 @@ interface UserEventTokensState {
262
477
  type PriceOption = { OptionID?: null | string; Name?: null | string; Cost?: null | ResourceConsume; AllowedPlatforms?: null | Array<'Unknown' | 'Web' | 'Android' | 'Ios'>; AssetPaths?: null | Record<string, string>; [key: string]: unknown; };
263
478
  type PriceOptions = Record<string, PriceOption>;
264
479
  type PaymentProof = { Store: 'GooglePlay' | 'AppleAppStore'; Receipt: string; Signature?: null | string; [key: string]: unknown; };
480
+ type ResourceEntry = { Type?: null | 'Item' | 'VirtualCurrency' | 'CryptoCurrency' | 'RewardedVideoCredit' | 'Purchase'; CurrencyID?: null | string; Amount?: null | number; CatalogID?: null | string; ItemID?: null | string; ProductID?: null | string; };
481
+ type EventTokenAddress = { EntityID: string; Type?: null | 'TimedEvent' | 'Quest' | 'Leaderboard' | 'CoopEvent' | 'Season'; };
482
+ type EventTokenOperation = { Address?: null | EventTokenAddress; Amount?: null | number; Source?: null | string; };
483
+ type ResourceBundle = { Entries?: null | Array<ResourceEntry>; EventTokens?: null | Array<EventTokenOperation>; };
484
+ type ResourceGrant = { Standard?: null | ResourceBundle; PremiumBonuses?: null | Array<unknown>; PremiumTiers?: null | Array<{ MinPremiumTier?: null | number; RequiredPremiumID?: null | string; Resources?: null | ResourceBundle; }>; };
485
+ type ResourceConsume = { Standard?: null | ResourceBundle; PremiumDiscounts?: null | Array<unknown>; PremiumTiers?: null | Array<{ MinPremiumTier?: null | number; RequiredPremiumID?: null | string; Resources?: null | ResourceBundle; }>; };
486
+ type ResourceOperation = { Grant?: null | ResourceGrant; Consume?: null | ResourceConsume; };
487
+ type ResourceDualPartyResult = { FromUserID?: null | string; ToUserID?: null | string; FromResult?: null | ResourceOperation; ToResult?: null | ResourceOperation; };
488
+ type ResourceTransferResult = { FromUserID?: null | string; ToUserID?: null | string; Transferred?: null | ResourceBundle; };
489
+ type ExperimentVariantCondition = { ExperimentID?: null | string; Variants?: null | Array<string>; [key: string]: unknown; };
490
+ /** What a TutorialGateCondition checks about the player's onboarding progress. */
491
+ declare const TutorialGateMode: {
492
+ readonly Completed: "Completed";
493
+ readonly Started: "Started";
494
+ readonly StepReached: "StepReached";
495
+ };
496
+ type TutorialGateMode = (typeof TutorialGateMode)[keyof typeof TutorialGateMode];
497
+ type TutorialGateCondition = { FlowIDs?: null | Array<string>; Mode?: null | 'Completed' | 'Started' | 'StepReached'; StepID?: null | string; Negate?: null | boolean; SkippedCountsAsCompleted?: null | boolean; [key: string]: unknown; };
498
+ type SegmentGate = { Segments?: null | Array<string>; MinPremiumTier?: null | number; RequiredPremiumIDs?: null | Array<string>; MinLevel?: null | number; MaxLevel?: null | number; Countries?: null | Array<string>; RegisteredWithinDays?: null | number; ActiveWithinDays?: null | number; Experiment?: null | ExperimentVariantCondition; Tutorial?: null | TutorialGateCondition; Platforms?: null | Array<'Unknown' | 'Web' | 'Android' | 'Ios'>; [key: string]: unknown; };
499
+ type RelativeWindow = { OffsetSecondsFromParentStart?: null | number; DurationSeconds?: null | number; AllowEarningAfterEnd?: null | boolean; ClaimGraceHours?: null | number; [key: string]: unknown; };
500
+ type ScheduledWindow = { StartUtc?: null | string; EndUtc?: null | string; AllowEarningAfterEnd?: null | boolean; ClaimGraceHours?: null | number; [key: string]: unknown; };
501
+ type ScheduleChain = { AnchorUtc?: null | string; MaxCycles?: null | number; PauseBetweenPhasesSec?: null | number; PauseBetweenCyclesSec?: null | number; [key: string]: unknown; };
502
+ type ScheduleChainPhase = { PhaseID?: null | string; Order?: null | number; DurationSec?: null | number; ClaimGraceHours?: null | number; [key: string]: unknown; };
503
+ type CyclicSchedule = { Reset?: null | string; IntervalSeconds?: null | number; AnchorUtc?: null | string; PauseBetweenCyclesSec?: null | number; ClaimGraceHours?: null | number; [key: string]: unknown; };
504
+ type TriggerContext = { SourceType?: null | string; TileType?: null | string; TileIndex?: null | number; ChanceOutcomeID?: null | string; Outcome?: null | string; Params?: null | Record<string, string>; [key: string]: unknown; };
505
+ type TriggerSource = { SourceType?: null | string; BaseWeight?: null | number; ScaleWithRollMultiplier?: null | boolean; TileTypeFilter?: null | Array<string>; TileIndexFilter?: null | Array<number>; ChanceOutcomeFilter?: null | Array<string>; OutcomeFilter?: null | Array<string>; Params?: null | Record<string, string>; Limits?: null | LimitSpec; [key: string]: unknown; };
506
+ type ScheduleSpec = { Mode?: null | string; IsActive?: null | boolean; Scheduled?: null | ScheduledWindow; Chain?: null | ScheduleChain; Cyclic?: null | CyclicSchedule; ActivationTriggers?: null | Array<TriggerSource>; Relative?: null | RelativeWindow; [key: string]: unknown; };
507
+ type LimitSpec = { TotalCap?: null | number; DailyCap?: null | number; DailyWeightCap?: null | number; PerActivationCap?: null | number; CooldownSeconds?: null | number; MaxPerWindow?: null | number; WindowSeconds?: null | number; [key: string]: unknown; };
265
508
 
266
509
  interface StorePurchaseState {
267
510
  OfferID: string;
@@ -270,24 +513,86 @@ interface StorePurchaseState {
270
513
  DailyResetUtc: string;
271
514
  LastPurchasedAt: string;
272
515
  }
516
+ /** Purchases made from one slot inside the current rotation window. */
517
+ interface StoreRotationPurchaseState {
518
+ SlotKey: string;
519
+ InstanceKey: string;
520
+ OfferID?: string;
521
+ Purchases: number;
522
+ LastPurchasedAt: string;
523
+ }
273
524
  interface UserStoreState {
274
525
  Purchases?: Record<string, StorePurchaseState>;
526
+ /** Keyed by the slot address `"{storeID}:{sectionID}:{slotID}"`. */
527
+ Rotations?: Record<string, StoreRotationPurchaseState>;
275
528
  }
276
- type StorePurchaseResponse = { ServerTimeUtc: string; OfferID: string; Count: number; Resources?: null | ResourceOperation; };
529
+ type StorePurchaseResponse = { ServerTimeUtc: string; OfferID: string; Count: number; Resources?: null | ResourceOperation; Inventory?: null | InventoryDelta; };
277
530
  type PurchaseBatchResponse = Array<{ Id: string; Success: boolean; Error?: null | string; Data?: null | StorePurchaseResponse; }>;
278
- type StoreDefinition = { StoreID: string; Type?: null | string; Name?: null | string; Description?: null | string; Rules?: null | { StartUtc?: null | string; EndUtc?: null | string; RequiredFlags?: null | Array<string>; [key: string]: unknown; }; AssetPaths?: null | Record<string, string>; [key: string]: unknown; };
279
- type StoreOfferDefinition = { OfferID: string; StoreIDs?: null | Array<string>; Name?: null | string; PriceOptions?: null | PriceOptions; Rewards?: null | ResourceGrant; Rules?: null | { StartUtc?: null | string; EndUtc?: null | string; Gate?: null | SegmentGate; Limits?: null | LimitSpec; [key: string]: unknown; }; AssetPaths?: null | Record<string, string>; [key: string]: unknown; };
531
+ type StoreIdentity = { DisplayName?: null | string; Description?: null | string; SortOrder?: null | number; Tags?: null | Array<string>; AssetPaths?: null | Record<string, string>; CustomParams?: null | Record<string, string>; [key: string]: unknown; };
532
+ type StoreAvailability = { Schedule?: null | ScheduleSpec; Gate?: null | SegmentGate; [key: string]: unknown; };
533
+ /** How the slot decides what stands in it. */
534
+ declare const StoreRotationMode: {
535
+ /** A pinned product: an ordinary shelf, no randomness. */
536
+ readonly Fixed: "Fixed";
537
+ /** One roll for the whole title — everybody sees the same thing. */
538
+ readonly Title: "Title";
539
+ /** A personal roll: every player gets their own shelf. */
540
+ readonly Player: "Player";
541
+ };
542
+ type StoreRotationMode = (typeof StoreRotationMode)[keyof typeof StoreRotationMode];
543
+ type StoreSlotPoolEntry = { OfferID?: null | string; Weight?: null | number; Gate?: null | SegmentGate; [key: string]: unknown; };
544
+ type StoreSlotRotation = { Mode?: null | string; OfferID?: null | string; Pool?: null | Array<StoreSlotPoolEntry>; Salt?: null | string; PerInstanceCap?: null | number; [key: string]: unknown; };
545
+ type StoreSlotDefinition = { SlotID?: null | string; Identity?: null | StoreIdentity; Availability?: null | StoreAvailability; Rotation?: null | StoreSlotRotation; [key: string]: unknown; };
546
+ type StoreSectionDefinition = { SectionID?: null | string; Identity?: null | StoreIdentity; Availability?: null | StoreAvailability; Slots?: null | Record<string, StoreSlotDefinition>; UniqueOffersInSection?: null | boolean; [key: string]: unknown; };
547
+ type StoreLayout = { Sections?: null | Record<string, StoreSectionDefinition>; [key: string]: unknown; };
548
+ /** A single storefront (main / event / VIP). Its layout is what makes offers buyable. */
549
+ interface StoreDefinition {
550
+ StoreID?: string | null;
551
+ Identity?: StoreIdentity | null;
552
+ Availability?: StoreAvailability | null;
553
+ Layout?: StoreLayout | null;
554
+ }
555
+ type StoreOfferPricing = { Options?: null | PriceOptions; CompareAt?: null | Record<string, ResourceConsume>; [key: string]: unknown; };
556
+ type StoreOfferReward = { Grant?: null | ResourceGrant; [key: string]: unknown; };
557
+ type StoreOfferAvailability = { Schedule?: null | ScheduleSpec; Gate?: null | SegmentGate; Limits?: null | LimitSpec; [key: string]: unknown; };
558
+ /** A single product. It is bought through a SLOT — there is no store list on the product. */
559
+ interface StoreOfferDefinition {
560
+ OfferID?: string | null;
561
+ Identity?: StoreIdentity | null;
562
+ Pricing?: StoreOfferPricing | null;
563
+ Reward?: StoreOfferReward | null;
564
+ Availability?: StoreOfferAvailability | null;
565
+ }
280
566
  /** The title's shop system (config), returned by getStoreDefinitions(). */
281
567
  interface StoreDefinitions {
282
568
  Stores?: Record<string, StoreDefinition> | null;
283
569
  StoreOffers?: Record<string, StoreOfferDefinition> | null;
284
570
  }
571
+ type StoreOfferStateView = { PurchasedTotal: number; PurchasedToday: number; PurchasedThisRotation: number; IsFirstPurchaseAvailable: boolean; SoldOut: boolean; RemainingTotal?: null | number; RemainingToday?: null | number; AvailableAtUtc?: null | string; [key: string]: unknown; };
572
+ type StorefrontPriceOptionView = { OptionID: string; IsFree: boolean; IsAdPaid: boolean; IsStorePaid: boolean; Name?: null | string; Cost?: null | ResourceConsume; CompareAtCost?: null | ResourceConsume; DiscountPercent?: null | number; AssetPaths?: null | Record<string, string>; [key: string]: unknown; };
573
+ type StorefrontOfferView = { OfferID: string; Identity?: null | StoreIdentity; PriceOptions?: null | Array<StorefrontPriceOptionView>; Rewards?: null | ResourceGrant; State?: null | StoreOfferStateView; [key: string]: unknown; };
574
+ type StorefrontSlotView = { SlotID: string; SortOrder: number; Identity?: null | StoreIdentity; RotationMode?: null | string; RotationInstanceKey?: null | string; RefreshesAtUtc?: null | string; RemainingThisRotation?: null | number; Offer?: null | StorefrontOfferView; [key: string]: unknown; };
575
+ type StorefrontSectionView = { SectionID: string; SortOrder: number; Identity?: null | StoreIdentity; Slots?: null | Array<StorefrontSlotView>; [key: string]: unknown; };
576
+ type StorefrontView = { StoreID: string; SortOrder: number; Identity?: null | StoreIdentity; ScheduleInstanceKey?: null | string; ExpiresAtUtc?: null | string; Sections?: null | Array<StorefrontSectionView>; [key: string]: unknown; };
577
+ /** The shop as this player sees it right now. */
578
+ interface GetStorefrontResponse {
579
+ /** Server time — count down from THIS, not from the device clock. */
580
+ ServerTimeUtc: string;
581
+ /** Storefronts open to the player now. Gated ones are absent entirely. */
582
+ Stores?: StorefrontView[] | null;
583
+ /** Rewarded-video credits: decides whether a card shows "Watch" or "Buy". */
584
+ AdCreditBalance: number;
585
+ }
285
586
  /** One offer + count in a batch purchase (deduped by OfferID). */
286
587
  interface StorePurchaseRef {
287
588
  OfferID?: string;
288
589
  Count?: number;
289
590
  /** Chosen payment option. Empty = first one available on this platform. */
290
591
  SelectedOptionID?: string;
592
+ /** Slot address; see `StoreRequest.StoreID`. */
593
+ StoreID?: string;
594
+ SectionID?: string;
595
+ SlotID?: string;
291
596
  }
292
597
  interface StoreRequest extends BaseRequest {
293
598
  OfferID?: string;
@@ -301,14 +606,30 @@ interface StoreRequest extends BaseRequest {
301
606
  Payment?: PaymentProof;
302
607
  /** PurchaseBatch: per-offer purchase counts (deduped by OfferID). */
303
608
  Purchases?: StorePurchaseRef[];
609
+ /**
610
+ * The slot the purchase is made from: storefront, section, slot.
611
+ *
612
+ * Optional as a WHOLE (all three or none): with no address the server finds the slot itself
613
+ * — the first one, in its deterministic walk order, that currently holds this product. The
614
+ * roll is re-checked either way, so a product that rolled for the player nowhere cannot be
615
+ * bought with or without an address. Sending it is still worth it: for a pooled product it
616
+ * removes the ambiguity of which slot's per-window cap applies.
617
+ */
618
+ StoreID?: string;
619
+ SectionID?: string;
620
+ SlotID?: string;
304
621
  }
305
622
  declare const StoreAction: {
306
623
  readonly Purchase: "Purchase";
307
624
  readonly GetDefinitions: "GetDefinitions";
308
625
  readonly GetUserState: "GetUserState";
309
626
  readonly PurchaseBatch: "PurchaseBatch";
627
+ /** The shop resolved for this player: rotation rolled, gates applied, timers filled in. */
628
+ readonly GetStorefront: "GetStorefront";
310
629
  };
311
630
  type StoreAction = (typeof StoreAction)[keyof typeof StoreAction];
631
+ /** Refused when the product does not stand in any slot the player can currently see. */
632
+ declare const OFFER_NOT_IN_ROTATION = "OFFER_NOT_IN_ROTATION";
312
633
  type LootboxAmountRange = { Min?: null | number; Max?: null | number; [key: string]: unknown; };
313
634
  type LootboxRewardRoll = { Reward?: null | ResourceGrant; Weight?: null | number; AmountRange?: null | LootboxAmountRange; [key: string]: unknown; };
314
635
  type LootboxRewardSlot = { SlotID?: null | string; MinRolls?: null | number; MaxRolls?: null | number; Pool?: null | Array<LootboxRewardRoll>; [key: string]: unknown; };
@@ -332,7 +653,7 @@ type PresetBinding = { PresetID?: null | string; Remove?: null | Array<string>;
332
653
  type SeasonTierRewardBundle = { SeasonChainID?: null | string; MinSeasonTier?: null | number; Rewards?: null | ResourceGrant; [key: string]: unknown; };
333
654
  type SeasonTierRewardMultiplier = { SeasonChainID?: null | string; MinSeasonTier?: null | number; Multiplier?: null | number; [key: string]: unknown; };
334
655
  type SeasonTierRewardSet = { Bundles?: null | Array<SeasonTierRewardBundle>; Multipliers?: null | Array<SeasonTierRewardMultiplier>; [key: string]: unknown; };
335
- type RewardProgressionMultiplierSpec = { Source?: null | 'BoardStageLevel' | 'BoardRank' | 'BoardCyclesCompleted' | 'CharacterLevel' | 'SeasonTier' | 'EventTokenTotalEarned' | 'VirtualCurrencyBalance' | 'PlayerLevel'; SourceKey?: null | string; Curve?: null | ScalarCurveSpec; Anchor?: null | number; IncludeRewards?: null | ResourceBundle; ExcludeRewards?: null | ResourceBundle; [key: string]: unknown; };
656
+ type RewardProgressionMultiplierSpec = { Source?: null | 'BoardRank' | 'BoardStageLevel' | 'BoardCyclesCompleted' | 'CharacterLevel' | 'SeasonTier' | 'EventTokenTotalEarned' | 'VirtualCurrencyBalance' | 'PlayerLevel'; SourceKey?: null | string; Curve?: null | ScalarCurveSpec; Anchor?: null | number; IncludeRewards?: null | ResourceBundle; ExcludeRewards?: null | ResourceBundle; [key: string]: unknown; };
336
657
  type MilestoneDefinition = { MilestoneID?: null | string; DisplayName?: null | string; AssetPaths?: null | Record<string, string>; RequiredProgress?: null | number; Rewards?: null | ResourceGrant; BonusRewards?: null | ResourceGrant; SeasonTierRewards?: null | SeasonTierRewardSet; SortOrder?: null | number; IsFeatured?: null | boolean; [key: string]: unknown; };
337
658
  /**
338
659
  * Thin wrapper for a reusable milestone set (port of Core/Milestone/Models/MilestoneSet.cs,
@@ -432,10 +753,10 @@ interface UserRewardState {
432
753
  Comebacks?: Record<string, UserComebackState>;
433
754
  Claims?: Record<string, UserClaimRewardState>;
434
755
  }
435
- type ClaimDailyRewardResponse = { ServerTimeUtc: string; CalendarID: string; DailyState: UserDailyCalendarState; DayNumber?: null | number; Resources?: null | ResourceOperation; };
436
- type CollectIdleAccrualResponse = { ServerTimeUtc: string; AccrualID: string; IdleState: UserIdleAccrualState; AccruedSeconds?: null | number; AppliedRatePerSecond?: null | number; Resources?: null | ResourceOperation; };
437
- type ClaimComebackRewardResponse = { ServerTimeUtc: string; ComebackID: string; ComebackState: UserComebackState; ClaimedTierIndex?: null | number; Resources?: null | ResourceOperation; };
438
- type ClaimRewardResponse = { ServerTimeUtc: string; ClaimID: string; ClaimState: UserClaimRewardState; Resources?: null | ResourceOperation; };
756
+ type ClaimDailyRewardResponse = { ServerTimeUtc: string; CalendarID: string; DailyState: UserDailyCalendarState; DayNumber?: null | number; Resources?: null | ResourceOperation; Inventory?: null | InventoryDelta; };
757
+ type CollectIdleAccrualResponse = { ServerTimeUtc: string; AccrualID: string; IdleState: UserIdleAccrualState; AccruedSeconds?: null | number; AppliedRatePerSecond?: null | number; Resources?: null | ResourceOperation; Inventory?: null | InventoryDelta; };
758
+ type ClaimComebackRewardResponse = { ServerTimeUtc: string; ComebackID: string; ComebackState: UserComebackState; ClaimedTierIndex?: null | number; Resources?: null | ResourceOperation; Inventory?: null | InventoryDelta; };
759
+ type ClaimRewardResponse = { ServerTimeUtc: string; ClaimID: string; ClaimState: UserClaimRewardState; Resources?: null | ResourceOperation; Inventory?: null | InventoryDelta; };
439
760
  type GetMilestoneRewardMultiplierResponse = { Enabled: boolean; Multiplier?: null | number; Progress?: null | number; Source?: null | string; SourceKey?: null | string; };
440
761
  type TierRewardSettings = { RewardMode?: null | string; RewardStackLowerTiers?: null | boolean; [key: string]: unknown; };
441
762
  type DailyCalendarDefinition = { CalendarID?: null | string; DisplayName?: null | string; Description?: null | string; AssetPaths?: null | Record<string, string>; Days?: null | Array<{ DayNumber?: null | number; Rewards?: null | ResourceGrant; IsMilestone?: null | boolean; AssetPaths?: null | Record<string, string>; [key: string]: unknown; }>; IsLooping?: null | boolean; MissBehavior?: null | string; ResetByDays?: null | number; MissThresholdMultiplier?: null | number; ClaimMode?: null | string; ClaimCooldownSeconds?: null | number; Gate?: null | SegmentGate; AvailableFromUtc?: null | string; AvailableUntilUtc?: null | string; [key: string]: unknown; };
@@ -470,24 +791,6 @@ declare const RewardAction: {
470
791
  readonly GetMilestoneRewardMultiplier: "GetMilestoneRewardMultiplier";
471
792
  };
472
793
  type RewardAction = (typeof RewardAction)[keyof typeof RewardAction];
473
- type ExperimentVariantCondition = { ExperimentID?: null | string; Variants?: null | Array<string>; [key: string]: unknown; };
474
- /** What a TutorialGateCondition checks about the player's onboarding progress. */
475
- declare const TutorialGateMode: {
476
- readonly Completed: "Completed";
477
- readonly Started: "Started";
478
- readonly StepReached: "StepReached";
479
- };
480
- type TutorialGateMode = (typeof TutorialGateMode)[keyof typeof TutorialGateMode];
481
- type TutorialGateCondition = { FlowIDs?: null | Array<string>; Mode?: null | 'Completed' | 'Started' | 'StepReached'; StepID?: null | string; Negate?: null | boolean; SkippedCountsAsCompleted?: null | boolean; [key: string]: unknown; };
482
- type SegmentGate = { Segments?: null | Array<string>; MinPremiumTier?: null | number; RequiredPremiumIDs?: null | Array<string>; MinLevel?: null | number; MaxLevel?: null | number; Countries?: null | Array<string>; RegisteredWithinDays?: null | number; ActiveWithinDays?: null | number; Experiment?: null | ExperimentVariantCondition; Tutorial?: null | TutorialGateCondition; Platforms?: null | Array<'Unknown' | 'Web' | 'Android' | 'Ios'>; [key: string]: unknown; };
483
- type RelativeWindow = { OffsetSecondsFromParentStart?: null | number; DurationSeconds?: null | number; AllowEarningAfterEnd?: null | boolean; ClaimGraceHours?: null | number; [key: string]: unknown; };
484
- type ScheduledWindow = { StartUtc?: null | string; EndUtc?: null | string; AllowEarningAfterEnd?: null | boolean; ClaimGraceHours?: null | number; [key: string]: unknown; };
485
- type ScheduleChain = { AnchorUtc?: null | string; MaxCycles?: null | number; PauseBetweenPhasesSec?: null | number; PauseBetweenCyclesSec?: null | number; [key: string]: unknown; };
486
- type ScheduleChainPhase = { PhaseID?: null | string; Order?: null | number; DurationSec?: null | number; ClaimGraceHours?: null | number; [key: string]: unknown; };
487
- type CyclicSchedule = { Reset?: null | string; IntervalSeconds?: null | number; AnchorUtc?: null | string; PauseBetweenCyclesSec?: null | number; ClaimGraceHours?: null | number; [key: string]: unknown; };
488
- type TriggerContext = { SourceType?: null | string; TileType?: null | string; TileIndex?: null | number; ChanceOutcomeID?: null | string; Outcome?: null | string; Params?: null | Record<string, string>; [key: string]: unknown; };
489
- type TriggerSource = { SourceType?: null | string; BaseWeight?: null | number; ScaleWithRollMultiplier?: null | boolean; TileTypeFilter?: null | Array<string>; TileIndexFilter?: null | Array<number>; ChanceOutcomeFilter?: null | Array<string>; OutcomeFilter?: null | Array<string>; Params?: null | Record<string, string>; Limits?: null | LimitSpec; [key: string]: unknown; };
490
- type ScheduleSpec = { Mode?: null | string; IsActive?: null | boolean; Scheduled?: null | ScheduledWindow; Chain?: null | ScheduleChain; Cyclic?: null | CyclicSchedule; ActivationTriggers?: null | Array<TriggerSource>; Relative?: null | RelativeWindow; [key: string]: unknown; };
491
794
  type EventTokenConversion = { TargetCurrencyID?: null | string; Rate?: null | number; MaxConvertAmount?: null | number; [key: string]: unknown; };
492
795
  type EventTokenDefinition = { DisplayName?: null | string; AssetPaths?: null | Record<string, string>; MaxBalance?: null | number; MaxPerGrant?: null | number; DailyEarnCap?: null | number; BurnOnEventEnd?: null | boolean; BurnConversion?: null | EventTokenConversion; [key: string]: unknown; };
493
796
 
@@ -527,9 +830,9 @@ interface UserQuestState {
527
830
  type QuestPointsTrackView = { CycleID: string; InstanceKey?: null | string; PhaseID?: null | string; CycleIndex?: null | number; CycleStartUtc?: null | string; CycleEndUtc?: null | string; PointsTotalEarned?: null | number; PointsCurrent?: null | number; ClaimedPointMilestoneIDs?: null | Array<string>; };
528
831
  type QuestProgressUpdate = { QuestID: string; Status: 'Active' | 'Completed' | 'Claimed' | 'Expired'; CycleID?: null | string; ObjectiveID?: null | string; NewValue?: null | number; ObjectiveCompleted?: null | boolean; };
529
832
  type GetUserQuestStateResponse = { State?: null | UserQuestState; PointsTracks?: null | Record<string, QuestPointsTrackView>; };
530
- type ClaimQuestRewardResponse = { ServerTimeUtc: string; QuestID: string; CycleID?: null | string; NewStatus?: null | 'Active' | 'Completed' | 'Claimed' | 'Expired'; Resources?: null | ResourceOperation; };
531
- type ClaimMilestoneRewardResponse = { ServerTimeUtc: string; CycleID: string; MilestoneID: string; PointsTotalEarned?: null | number; Resources?: null | ResourceOperation; };
532
- type ClaimGroupCompletionRewardResponse = { ServerTimeUtc: string; CycleID: string; GroupCompletionID: string; GroupID?: null | string; CompletedGroupQuests?: null | number; RequiredGroupQuests?: null | number; Resources?: null | ResourceOperation; };
833
+ type ClaimQuestRewardResponse = { ServerTimeUtc: string; QuestID: string; CycleID?: null | string; NewStatus?: null | 'Active' | 'Completed' | 'Claimed' | 'Expired'; Resources?: null | ResourceOperation; Inventory?: null | InventoryDelta; };
834
+ type ClaimMilestoneRewardResponse = { ServerTimeUtc: string; CycleID: string; MilestoneID: string; PointsTotalEarned?: null | number; Resources?: null | ResourceOperation; Inventory?: null | InventoryDelta; };
835
+ type ClaimGroupCompletionRewardResponse = { ServerTimeUtc: string; CycleID: string; GroupCompletionID: string; GroupID?: null | string; CompletedGroupQuests?: null | number; RequiredGroupQuests?: null | number; Resources?: null | ResourceOperation; Inventory?: null | InventoryDelta; };
533
836
  type AddQuestProgressResponse = { MetricID: string; Updates?: null | Array<QuestProgressUpdate>; };
534
837
  type ClaimQuestRewardsBatchResponse = Array<{ Id: string; Success: boolean; Error?: null | string; Data?: null | ClaimQuestRewardResponse; }>;
535
838
  type ClaimMilestoneRewardsBatchResponse = Array<{ Id: string; Success: boolean; Error?: null | string; Data?: null | ClaimMilestoneRewardResponse; }>;
@@ -725,15 +1028,7 @@ declare const TutorialAction: {
725
1028
  readonly ResetFlow: "ResetFlow";
726
1029
  };
727
1030
  type TutorialAction = (typeof TutorialAction)[keyof typeof TutorialAction];
728
- type ResourceEntry = { Type?: null | 'Item' | 'VirtualCurrency' | 'CryptoCurrency' | 'RewardedVideoCredit' | 'Purchase'; CurrencyID?: null | string; Amount?: null | number; CatalogID?: null | string; ItemID?: null | string; ProductID?: null | string; };
729
- type EventTokenAddress = { EntityID: string; Type?: null | 'TimedEvent' | 'Quest' | 'Leaderboard' | 'CoopEvent' | 'Season'; };
730
- type EventTokenOperation = { Address?: null | EventTokenAddress; Amount?: null | number; Source?: null | string; };
731
- type ResourceBundle = { Entries?: null | Array<ResourceEntry>; EventTokens?: null | Array<EventTokenOperation>; };
732
- type ResourceGrant = { Standard?: null | ResourceBundle; PremiumBonuses?: null | Array<unknown>; PremiumTiers?: null | Array<{ MinPremiumTier?: null | number; RequiredPremiumID?: null | string; Resources?: null | ResourceBundle; }>; };
733
- type ResourceConsume = { Standard?: null | ResourceBundle; PremiumDiscounts?: null | Array<unknown>; PremiumTiers?: null | Array<{ MinPremiumTier?: null | number; RequiredPremiumID?: null | string; Resources?: null | ResourceBundle; }>; };
734
- type ResourceOperation = { Grant?: null | ResourceGrant; Consume?: null | ResourceConsume; };
735
- type ResourceDualPartyResult = { FromUserID?: null | string; ToUserID?: null | string; FromResult?: null | ResourceOperation; ToResult?: null | ResourceOperation; };
736
- type ResourceTransferResult = { FromUserID?: null | string; ToUserID?: null | string; Transferred?: null | ResourceBundle; };
1031
+ type InventoryDelta = { ChangedInstances?: null | Record<string, UnstackableItemInstanceState>; RemovedInstanceIDs?: null | Array<string>; };
737
1032
 
738
1033
  /** One element of a batch action result. */
739
1034
  interface BatchItemResult<T> {
@@ -749,6 +1044,9 @@ interface BatchItemResult<T> {
749
1044
  * Wrapper of a batch action result (port of `BatchResponse<T>`). The batch runs as one atomic
750
1045
  * backend operation, so the merged consumed/granted `Resources` container is carried ONCE here
751
1046
  * at the top level — per-item `Data.Resources` is null to avoid double-counting on the client.
1047
+ *
1048
+ * Exception: `Purchase/ValidatePurchasesBatch` — every receipt is its own transaction, so each
1049
+ * item carries its own `Resources` + `Inventory` and the envelope `Resources` is empty.
752
1050
  */
753
1051
  interface BatchResponse<T> {
754
1052
  /** Server execution time of the batch (UTC). */
@@ -757,6 +1055,11 @@ interface BatchResponse<T> {
757
1055
  Items: BatchItemResult<T>[];
758
1056
  /** Merged ResourceOperation for the whole atomic operation. Empty if nothing applied. */
759
1057
  Resources?: ResourceOperation | null;
1058
+ /**
1059
+ * Real non-stackable instances the whole batch granted/consumed (shared delta; per-item `Data`
1060
+ * carries none). Apply together with `Resources` via `UserData.applyResourcesWithDelta`.
1061
+ */
1062
+ Inventory?: InventoryDelta | null;
760
1063
  }
761
1064
 
762
1065
  interface UserLeaderboardProgress {
@@ -777,8 +1080,8 @@ type LeaderboardUserEntry = { UserID: string; Score?: null | number; Rank?: null
777
1080
  type GetLeaderboardResponse = { LeaderboardID: string; CycleVersion?: null | number; TotalParticipants?: null | number; CycleEndUtc?: null | string; TopUsers?: null | Array<LeaderboardUserEntry>; BracketID?: null | string; };
778
1081
  type GetMyProgressResponse = { LeaderboardID: string; CurrentScore?: null | number; LastKnownRank?: null | number; HasUnclaimedReward?: null | boolean; ScoreEarnedThisCycle?: null | number; MilestoneTokensEarned?: null | number; NextMilestone?: null | MilestoneDefinition; HasUnclaimedMilestone?: null | boolean; ClaimableGraceCycles?: null | Array<{ CycleKey?: null | string; CycleEndUtc?: null | string; ClaimDeadlineUtc?: null | string; MilestoneTokensEarned?: null | number; ClaimableMilestoneIDs?: null | Array<string>; CycleIndex?: null | number; ChainedEventID?: null | string; [key: string]: unknown; }>; };
779
1082
  type SubmitScoreResponse = { LeaderboardID: string; NewScore: number; CycleVersion: number; };
780
- type ClaimCycleRewardResponse = { ServerTimeUtc: string; LeaderboardID: string; Rank?: null | number; Resources?: null | ResourceOperation; };
781
- type ClaimLeaderboardMilestoneResponse = { ServerTimeUtc: string; LeaderboardID: string; MilestoneID: string; Resources?: null | ResourceOperation; };
1083
+ type ClaimCycleRewardResponse = { ServerTimeUtc: string; LeaderboardID: string; Rank?: null | number; Resources?: null | ResourceOperation; Inventory?: null | InventoryDelta; };
1084
+ type ClaimLeaderboardMilestoneResponse = { ServerTimeUtc: string; LeaderboardID: string; MilestoneID: string; Resources?: null | ResourceOperation; Inventory?: null | InventoryDelta; };
782
1085
  type GetLeaderboardsBatchResponse = Array<{ Id: string; Success: boolean; Error?: null | string; Data?: null | GetLeaderboardResponse; }>;
783
1086
  type GetProgressBatchResponse = Array<{ Id: string; Success: boolean; Error?: null | string; Data?: null | GetMyProgressResponse; }>;
784
1087
  type ClaimCycleRewardsBatchResponse = Array<{ Id: string; Success: boolean; Error?: null | string; Data?: null | ClaimCycleRewardResponse; }>;
@@ -898,8 +1201,8 @@ interface UserSeasonsState {
898
1201
  type UserSeasonStateResponse = UserSeasonState;
899
1202
  type ActiveSeasonInfo = { SeasonChainID: string; CycleIndex?: null | number; Season?: null | { SeasonID?: null | string; Order?: null | number; DurationSec?: null | number; DisplayName?: null | string; Description?: null | string; AssetPaths?: null | Record<string, string>; Tiers?: null | Array<{ Tier?: null | number; DisplayName?: null | string; AssetPaths?: null | Record<string, string>; RequiredTokens?: null | number; TierReachedReward?: null | ResourceGrant; [key: string]: unknown; }>; LinkedCollectionID?: null | string; CustomParams?: null | Record<string, string>; [key: string]: unknown; }; ComputedStartUtc?: null | string; ComputedEndUtc?: null | string; SecondsRemaining?: null | number; UserState?: null | UserSeasonState; NextTier?: null | { Tier?: null | number; DisplayName?: null | string; AssetPaths?: null | Record<string, string>; RequiredTokens?: null | number; TierReachedReward?: null | ResourceGrant; [key: string]: unknown; }; [key: string]: unknown; };
900
1203
  type GrantStatusTokensResponse = { SeasonChainID: string; NewTier: number; CurrentSeasonID?: null | string; AmountGranted?: null | number; NewStatusTokens?: null | number; OldTier?: null | number; TierUp?: null | boolean; };
901
- type ClaimTierRewardResponse = { SeasonChainID: string; TierNumber: number; CurrentSeasonID?: null | string; Resources?: null | ResourceOperation; };
902
- type ClaimTierRewardsBatchResponse = { ServerTimeUtc: string; Items: Array<{ Id: string; Success: boolean; Error?: null | string; Data?: null | ClaimTierRewardResponse; }>; Resources?: null | ResourceOperation; };
1204
+ type ClaimTierRewardResponse = { SeasonChainID: string; TierNumber: number; CurrentSeasonID?: null | string; Resources?: null | ResourceOperation; Inventory?: null | InventoryDelta; };
1205
+ type ClaimTierRewardsBatchResponse = { ServerTimeUtc: string; Items: Array<{ Id: string; Success: boolean; Error?: null | string; Data?: null | ClaimTierRewardResponse; }>; Resources?: null | ResourceOperation; Inventory?: null | InventoryDelta; };
903
1206
  type SeasonChainDefinition = { SeasonChainID?: null | string; DisplayName?: null | string; Schedule?: null | ScheduleSpec; Seasons?: null | Array<{ SeasonID?: null | string; Order?: null | number; DurationSec?: null | number; DisplayName?: null | string; Description?: null | string; AssetPaths?: null | Record<string, string>; Tiers?: null | Array<{ Tier?: null | number; DisplayName?: null | string; AssetPaths?: null | Record<string, string>; RequiredTokens?: null | number; TierReachedReward?: null | ResourceGrant; [key: string]: unknown; }>; LinkedCollectionID?: null | string; CustomParams?: null | Record<string, string>; [key: string]: unknown; }>; GrantTokensAccessMode?: null | string; Gate?: null | SegmentGate; [key: string]: unknown; };
904
1207
  /** Root configuration of the title's season system, returned by getDefinitions(). */
905
1208
  interface SeasonDefinitions {
@@ -980,7 +1283,6 @@ interface EquipmentSlot {
980
1283
  CharacterID?: string;
981
1284
  SlotID?: string;
982
1285
  }
983
- type InventoryDelta = { ChangedInstances?: null | Record<string, UnstackableItemInstanceState>; RemovedInstanceIDs?: null | Array<string>; };
984
1286
  type GetCharactersResponse = { Characters?: null | Record<string, CharacterModel>; };
985
1287
  type UpgradeStatLevelResponse = { ServerTimeUtc: string; CharacterID: string; StatID: string; StatLevel: number; Power?: null | number; Resources?: null | ResourceOperation; };
986
1288
  type UpgradeCharacterLevelResponse = { ServerTimeUtc: string; CharacterID: string; NewLevel: number; Power?: null | number; Resources?: null | ResourceOperation; };
@@ -989,9 +1291,15 @@ type UnequipItemsResponse = { ServerTimeUtc: string; CharacterID: string; Cleare
989
1291
  type CharacterUnequipResult = { ClearedSlotIDs?: null | Array<string>; Power?: null | number; };
990
1292
  type UnequipAllCharactersResponse = { ServerTimeUtc: string; Characters?: null | Record<string, CharacterUnequipResult>; Inventory?: null | InventoryDelta; };
991
1293
  type UnlockCharacterResponse = { ServerTimeUtc: string; CharacterID: string; Power?: null | number; Resources?: null | ResourceOperation; };
992
- type UnlockCharactersBatchResponse = { ServerTimeUtc: string; Items: Array<{ Id: string; Success: boolean; Error?: null | string; Data?: null | UnlockCharacterResponse; }>; Resources?: null | ResourceOperation; };
993
- type UpgradeCharacterLevelsBatchResponse = { ServerTimeUtc: string; Items: Array<{ Id: string; Success: boolean; Error?: null | string; Data?: null | UpgradeCharacterLevelResponse; }>; Resources?: null | ResourceOperation; };
994
- type UpgradeStatLevelsBatchResponse = { ServerTimeUtc: string; Items: Array<{ Id: string; Success: boolean; Error?: null | string; Data?: null | UpgradeStatLevelResponse; }>; Resources?: null | ResourceOperation; };
1294
+ type UnlockSkinResponse = { ServerTimeUtc: string; CharacterID: string; SkinID: string; Resources?: null | ResourceOperation; Inventory?: null | InventoryDelta; Equipped?: null | boolean; EquipError?: null | string; Equipment?: null | EquippedItem; Power?: null | number; ReplacedInstanceIDs?: null | Array<string>; };
1295
+ type EquipSkinResponse = { ServerTimeUtc: string; CharacterID: string; SkinID: string; Equipped?: null | EquippedItem; ReplacedInstanceIDs?: null | Array<string>; Power?: null | number; Inventory?: null | InventoryDelta; };
1296
+ type UnequipSkinResponse = { ServerTimeUtc: string; CharacterID: string; Cleared?: null | boolean; Power?: null | number; Inventory?: null | InventoryDelta; };
1297
+ type CharacterSkinView = { SkinID: string; IsDefault?: null | boolean; Misconfigured?: null | string; Owned?: null | boolean; OwnedCopies?: null | number; IsWorn?: null | boolean; MeetsRequirements?: null | boolean; SoldDirectly?: null | boolean; OnSale?: null | boolean; SaleEndsAtUtc?: null | string; GateOpen?: null | boolean; Purchasable?: null | boolean; PriceOptions?: null | PriceOptions; };
1298
+ type CharacterSkinsView = { CharacterID: string; CharacterOpen?: null | boolean; DefaultSkinID?: null | string; WornSkinID?: null | string; Skins?: null | Array<CharacterSkinView>; };
1299
+ type GetCharacterSkinsResponse = { ServerTimeUtc: string; Characters?: null | Record<string, CharacterSkinsView>; };
1300
+ type UnlockCharactersBatchResponse = { ServerTimeUtc: string; Items: Array<{ Id: string; Success: boolean; Error?: null | string; Data?: null | UnlockCharacterResponse; }>; Resources?: null | ResourceOperation; Inventory?: null | InventoryDelta; };
1301
+ type UpgradeCharacterLevelsBatchResponse = { ServerTimeUtc: string; Items: Array<{ Id: string; Success: boolean; Error?: null | string; Data?: null | UpgradeCharacterLevelResponse; }>; Resources?: null | ResourceOperation; Inventory?: null | InventoryDelta; };
1302
+ type UpgradeStatLevelsBatchResponse = { ServerTimeUtc: string; Items: Array<{ Id: string; Success: boolean; Error?: null | string; Data?: null | UpgradeStatLevelResponse; }>; Resources?: null | ResourceOperation; Inventory?: null | InventoryDelta; };
995
1303
  type StatRequirement = { RequiredStatID: string; RequiredLevel: number; [key: string]: unknown; };
996
1304
  type StatDefinition = { StatID: string; TypeID?: null | string; DisplayName?: null | string; Description?: null | string; MaxLevel?: null | number; Weight?: null | number; PriceOptions?: null | PriceOptions; CostCurve?: null | ScalarCurveSpec; BaseStatValue?: null | number; ValueCurve?: null | ScalarCurveSpec; RankCurve?: null | ScalarCurveSpec; Requirements?: null | Array<StatRequirement>; AssetPaths?: null | Record<string, string>; [key: string]: unknown; };
997
1305
  type CharacterEquipmentSlot = { SlotID: string; MinCharacterLevel?: null | number; StatRequirements?: null | Array<StatRequirement>; AllowedRarityIDs?: null | Array<string>; AllowedItemTags?: null | Array<string>; MinItemLevel?: null | number; MaxItemLevel?: null | number; [key: string]: unknown; };
@@ -1000,7 +1308,23 @@ type CharacterIdentity = { DisplayName?: null | string; Description?: null | str
1000
1308
  type CharacterClassification = { ClassID?: null | string; RarityID?: null | string; Tags?: null | Array<string>; [key: string]: unknown; };
1001
1309
  type CharacterUnlock = { UnlockedByDefault?: null | boolean; PriceOptions?: null | PriceOptions; [key: string]: unknown; };
1002
1310
  type CharacterRankLadder = { MaxRank?: null | number; FirstPaidRank?: null | number; PriceOptions?: null | PriceOptions; CostCurve?: null | ScalarCurveSpec; [key: string]: unknown; };
1003
- type CharacterDefinition = { CharacterID: string; Identity?: null | CharacterIdentity; Classification?: null | CharacterClassification; Unlock?: null | CharacterUnlock; Presets?: null | { Stats?: null | PresetBinding; Levels?: null | PresetBinding; Equipment?: null | PresetBinding; [key: string]: unknown; }; Equipment?: null | CharacterEquipment; Stats?: null | Record<string, StatDefinition>; RankLadder?: null | CharacterRankLadder; RankStatCurve?: null | ScalarCurveSpec; StatMaxLevelCurve?: null | ScalarCurveSpec; [key: string]: unknown; };
1311
+ /**
1312
+ * Equipment key of the worn skin. A skin is an ITEM: wearing it binds a copy of that item to
1313
+ * this reserved slot, so every reader of `Equipment` (Power, battle, sale protection) sees it
1314
+ * without special-casing.
1315
+ *
1316
+ * ⚠ Filter it out of gear-slot UIs (`isReservedSlot`), but NOT out of Power calculations — a
1317
+ * skin's item Stats count toward Power exactly like gear.
1318
+ */
1319
+ declare const SKIN_SLOT = "@skin";
1320
+ /** True for engine-reserved equipment keys (prefix "@"). Never render them as gear slots. */
1321
+ declare function isReservedSlot(slotID: string | null | undefined): boolean;
1322
+ type CharacterSkinItem = { ItemID: string; CatalogID?: null | string; [key: string]: unknown; };
1323
+ type CharacterSkinSale = { PriceOptions?: null | PriceOptions; Schedule?: null | ScheduleSpec; Gate?: null | SegmentGate; [key: string]: unknown; };
1324
+ type CharacterSkinRequirements = { MinCharacterLevel?: null | number; StatRequirements?: null | Array<StatRequirement>; [key: string]: unknown; };
1325
+ type CharacterSkinDefinition = { SkinID?: null | string; Identity?: null | CharacterIdentity; Item?: null | CharacterSkinItem; Sale?: null | CharacterSkinSale; Requirements?: null | CharacterSkinRequirements; [key: string]: unknown; };
1326
+ type CharacterSkins = { DefaultSkinID?: null | string; Definitions?: null | Record<string, CharacterSkinDefinition>; [key: string]: unknown; };
1327
+ type CharacterDefinition = { CharacterID: string; Identity?: null | CharacterIdentity; Classification?: null | CharacterClassification; Unlock?: null | CharacterUnlock; Presets?: null | { Stats?: null | PresetBinding; Levels?: null | PresetBinding; Equipment?: null | PresetBinding; [key: string]: unknown; }; Equipment?: null | CharacterEquipment; Stats?: null | Record<string, StatDefinition>; RankLadder?: null | CharacterRankLadder; RankStatCurve?: null | ScalarCurveSpec; StatMaxLevelCurve?: null | ScalarCurveSpec; Skins?: null | CharacterSkins; [key: string]: unknown; };
1004
1328
  type StatsPreset = { Stats?: null | Record<string, StatDefinition>; [key: string]: unknown; };
1005
1329
  type LevelsPreset = { RankLadder?: null | CharacterRankLadder; [key: string]: unknown; };
1006
1330
  type EquipmentPreset = { Equipment?: null | CharacterEquipment; [key: string]: unknown; };
@@ -1060,7 +1384,15 @@ interface CharacterRequest extends BaseRequest {
1060
1384
  LevelUpgrades?: CharacterLevelRef[];
1061
1385
  /** UpgradeStatLevelsBatch: per-stat upgrades (deduped by CharacterID+StatID). */
1062
1386
  StatUpgrades?: CharacterStatRef[];
1387
+ /** UnlockSkin / EquipSkin: the skin (key of `CharacterDefinition.Skins.Definitions`). */
1388
+ SkinID?: string;
1389
+ /** EquipSkin: a specific copy to wear. Empty = the server picks the best free copy. */
1390
+ ItemInstanceID?: string;
1391
+ /** UnlockSkin: wear the bought skin in the same request. A failed wear keeps the purchase. */
1392
+ AutoEquip?: boolean;
1063
1393
  }
1394
+ /** Refusal code of UnlockSkin: the player already owns a copy — hide the buy button. */
1395
+ declare const SKIN_ALREADY_OWNED = "SKIN_ALREADY_OWNED";
1064
1396
  declare const CharacterAction: {
1065
1397
  readonly GetCharacterDefinitions: "GetCharacterDefinitions";
1066
1398
  readonly GetUserCharacters: "GetUserCharacters";
@@ -1073,6 +1405,10 @@ declare const CharacterAction: {
1073
1405
  readonly UnlockCharactersBatch: "UnlockCharactersBatch";
1074
1406
  readonly UpgradeCharacterLevelsBatch: "UpgradeCharacterLevelsBatch";
1075
1407
  readonly UpgradeStatLevelsBatch: "UpgradeStatLevelsBatch";
1408
+ readonly UnlockSkin: "UnlockSkin";
1409
+ readonly EquipSkin: "EquipSkin";
1410
+ readonly UnequipSkin: "UnequipSkin";
1411
+ readonly GetCharacterSkins: "GetCharacterSkins";
1076
1412
  };
1077
1413
  type CharacterAction = (typeof CharacterAction)[keyof typeof CharacterAction];
1078
1414
 
@@ -1197,12 +1533,12 @@ interface UserCollectionState {
1197
1533
  }
1198
1534
  type GrantedCollectible = { CollectibleID: string; Rarity?: null | number; IsSpecial?: null | boolean; IsDuplicate?: null | boolean; CollectionCurrencyConverted?: null | number; };
1199
1535
  type PackOpenResult = { GrantedCollectibles?: null | Array<GrantedCollectible>; DuplicateCollectibles?: null | Array<GrantedCollectible>; CollectionCurrencyEarned?: null | number; };
1200
- type OpenPackResponse = { OpenedCount?: null | number; Packs?: null | Array<PackOpenResult>; GrantedCollectibles?: null | Array<GrantedCollectible>; DuplicateCollectibles?: null | Array<GrantedCollectible>; CollectionCurrencyEarned?: null | number; NewCollectionCurrencyBalance?: null | number; NewlyCompletedSetIDs?: null | Array<string>; CollectionJustCompleted?: null | boolean; Resources?: null | ResourceOperation; TriggeredPity?: null | Array<unknown>; };
1201
- type OpenCollectionChestResponse = { OpenedCount?: null | number; Chests?: null | Array<PackOpenResult>; GrantedCollectibles?: null | Array<GrantedCollectible>; DuplicateCollectibles?: null | Array<GrantedCollectible>; CollectionCurrencyEarned?: null | number; NewCollectionCurrencyBalance?: null | number; Resources?: null | ResourceOperation; TriggeredPity?: null | Array<unknown>; };
1202
- type UseCollectibleJokerResponse = { GrantedCollectibleID?: null | string; NewlyCompletedSetID?: null | string; CollectionJustCompleted?: null | boolean; Resources?: null | ResourceOperation; };
1203
- type ClaimSetRewardResponse = { SetID: string; Resources?: null | ResourceOperation; };
1536
+ type OpenPackResponse = { OpenedCount?: null | number; Packs?: null | Array<PackOpenResult>; GrantedCollectibles?: null | Array<GrantedCollectible>; DuplicateCollectibles?: null | Array<GrantedCollectible>; CollectionCurrencyEarned?: null | number; NewCollectionCurrencyBalance?: null | number; NewlyCompletedSetIDs?: null | Array<string>; CollectionJustCompleted?: null | boolean; Resources?: null | ResourceOperation; Inventory?: null | InventoryDelta; TriggeredPity?: null | Array<unknown>; };
1537
+ type OpenCollectionChestResponse = { OpenedCount?: null | number; Chests?: null | Array<PackOpenResult>; GrantedCollectibles?: null | Array<GrantedCollectible>; DuplicateCollectibles?: null | Array<GrantedCollectible>; CollectionCurrencyEarned?: null | number; NewCollectionCurrencyBalance?: null | number; Resources?: null | ResourceOperation; Inventory?: null | InventoryDelta; TriggeredPity?: null | Array<unknown>; };
1538
+ type UseCollectibleJokerResponse = { GrantedCollectibleID?: null | string; NewlyCompletedSetID?: null | string; CollectionJustCompleted?: null | boolean; Resources?: null | ResourceOperation; Inventory?: null | InventoryDelta; };
1539
+ type ClaimSetRewardResponse = { SetID: string; Resources?: null | ResourceOperation; Inventory?: null | InventoryDelta; };
1204
1540
  type ClaimSetRewardsBatchResponse = Array<{ Id: string; Success: boolean; Error?: null | string; Data?: null | ClaimSetRewardResponse; }>;
1205
- type ClaimGrandPrizeResponse = { Resources?: null | ResourceOperation; };
1541
+ type ClaimGrandPrizeResponse = { Resources?: null | ResourceOperation; Inventory?: null | InventoryDelta; };
1206
1542
  type CollectionTradeOfferDocument = { OfferID: string; TitleID?: null | string; CollectionID?: null | string; SenderUserID?: null | string; SenderPublicData?: null | UserPublicDataModel; OfferedCollectibleID?: null | string; OfferedCollectibleIsSpecial?: null | boolean; ReceiverUserID?: null | string; RequestedCollectibleID?: null | string; RequestedCollectibleIsSpecial?: null | boolean; Status?: null | 'Expired' | 'Cancelled' | 'Pending' | 'Accepted' | 'Declined'; CreatedAtUtc?: null | string; ExpiresAtUtc?: null | string; RespondedAtUtc?: null | string; DeclineReason?: null | string; IsSpecialTradeEvent?: null | boolean; SpecialTradeEventID?: null | string; [key: string]: unknown; };
1207
1543
  type SendTradeOfferResponse = { OfferID: string; ExpiresAtUtc?: null | string; Resources?: null | ResourceOperation; };
1208
1544
  type CancelTradeOfferResponse = { OfferID: string; Resources?: null | ResourceOperation; };
@@ -1334,7 +1670,7 @@ interface CoopEventChainDefinition {
1334
1670
  type CoopUserStateResponse = { ServerTimeUtc?: null | string; UserState?: null | UserCoopEventState; ActiveGroup?: null | CoopGroupDocument; };
1335
1671
  type CoopGroupStateResponse = { ServerTimeUtc?: null | string; Group?: null | CoopGroupDocument; SecondsRemaining?: null | number; };
1336
1672
  type CoopSpinResponse = { ServerTimeUtc?: null | string; GroupID?: null | string; Resources?: null | ResourceOperation; ObjectIndex?: null | number; Sector?: null | { DisplayName?: null | string; AssetPaths?: null | Record<string, string>; Weight?: null | number; MinProgress?: null | number; MaxProgress?: null | number; [key: string]: unknown; }; RequestedSpins?: null | number; SpinsUsed?: null | number; Sectors?: null | Array<{ DisplayName?: null | string; AssetPaths?: null | Record<string, string>; Weight?: null | number; MinProgress?: null | number; MaxProgress?: null | number; [key: string]: unknown; }>; ProgressDelta?: null | number; NewProgress?: null | number; MaxProgress?: null | number; ObjectCompleted?: null | boolean; AllObjectsCompleted?: null | boolean; };
1337
- type CoopClaimRewardResponse = { ServerTimeUtc?: null | string; GroupID?: null | string; RewardType?: null | string; Resources?: null | ResourceOperation; };
1673
+ type CoopClaimRewardResponse = { ServerTimeUtc?: null | string; GroupID?: null | string; RewardType?: null | string; Resources?: null | ResourceOperation; Inventory?: null | InventoryDelta; };
1338
1674
  type CoopLeaveGroupResponse = { ServerTimeUtc?: null | string; GroupID?: null | string; Success?: null | boolean; };
1339
1675
  /** Root config of the title's cooperative events system. Plugs into TitlePublicConfig as CoopEvent. */
1340
1676
  interface CoopEventDefinitions {
@@ -1368,7 +1704,6 @@ declare const CoopEventAction: {
1368
1704
  readonly LeaveGroup: "LeaveGroup";
1369
1705
  };
1370
1706
  type CoopEventAction = (typeof CoopEventAction)[keyof typeof CoopEventAction];
1371
- type LimitSpec = { TotalCap?: null | number; DailyCap?: null | number; DailyWeightCap?: null | number; PerActivationCap?: null | number; CooldownSeconds?: null | number; MaxPerWindow?: null | number; WindowSeconds?: null | number; [key: string]: unknown; };
1372
1707
 
1373
1708
  /** enum DealOfferActivationStatus — Active | Exhausted | Expired | Dismissed. */
1374
1709
  declare const DealOfferActivationStatus: {
@@ -1399,70 +1734,137 @@ interface UserDealOffersState {
1399
1734
  OfferHistory?: Record<string, UserDealOfferHistory> | null;
1400
1735
  LastUpdatedUtc?: string | null;
1401
1736
  }
1402
- type DealSlotDefinition = { SlotID?: null | string; Enabled?: null | boolean; SortOrder?: null | number; Queue?: null | Array<{ Order?: null | number; OfferID?: null | string; DurationSec?: null | number; DelayBeforeActivationSec?: null | number; [key: string]: unknown; }>; Schedule?: null | ScheduleSpec; Gate?: null | SegmentGate; AllowDismissSkip?: null | boolean; DismissSkipDelaySec?: null | number; [key: string]: unknown; };
1403
- type DealNodeActionDefinition = { Purchase?: null | { StoreOfferID?: null | string; BillingProductID?: null | string; PriceOptions?: null | PriceOptions; UseExternalRewards?: null | boolean; [key: string]: unknown; }; RewardedVideo?: null | { AdPlacementID?: null | string; ViewsRequiredToComplete?: null | number; MaxViewsPerActivation?: null | number; CooldownSecondsBetweenViews?: null | number; RequireServerVerification?: null | boolean; GrantRewardsPerView?: null | boolean; [key: string]: unknown; }; [key: string]: unknown; };
1737
+ /** enum DealNodeType — Purchase | FreeClaim | RewardedVideo | Info. */
1738
+ declare const DealNodeType: {
1739
+ readonly Purchase: "Purchase";
1740
+ readonly FreeClaim: "FreeClaim";
1741
+ readonly RewardedVideo: "RewardedVideo";
1742
+ readonly Info: "Info";
1743
+ };
1744
+ type DealNodeType = (typeof DealNodeType)[keyof typeof DealNodeType];
1745
+ /** enum DealComparisonOperator — Eq | Gte | Lte. */
1746
+ declare const DealComparisonOperator: {
1747
+ readonly Eq: "Eq";
1748
+ readonly Gte: "Gte";
1749
+ readonly Lte: "Lte";
1750
+ };
1751
+ type DealComparisonOperator = (typeof DealComparisonOperator)[keyof typeof DealComparisonOperator];
1752
+ type DealSlotQueueEntry = { Order?: null | number; OfferID?: null | string; DurationSec?: null | number; DelayBeforeActivationSec?: null | number; [key: string]: unknown; };
1753
+ type DealIdentity = { DisplayName?: null | string; Description?: null | string; SortOrder?: null | number; Tags?: null | Array<string>; AssetPaths?: null | Record<string, string>; CustomParams?: null | Record<string, string>; [key: string]: unknown; };
1754
+ type DealAvailability = { Schedule?: null | ScheduleSpec; Gate?: null | SegmentGate; [key: string]: unknown; };
1755
+ type DealSlotBehaviour = { AllowDismissSkip?: null | boolean; DismissSkipDelaySec?: null | number; [key: string]: unknown; };
1756
+ type DealSlotPresetBindings = { Identity?: null | PresetBinding; Availability?: null | PresetBinding; Behaviour?: null | PresetBinding; [key: string]: unknown; };
1757
+ type DealSlotDefinition = { SlotID?: null | string; Enabled?: null | boolean; Identity?: null | DealIdentity; Availability?: null | DealAvailability; Behaviour?: null | DealSlotBehaviour; Queue?: null | Array<DealSlotQueueEntry>; Presets?: null | DealSlotPresetBindings; [key: string]: unknown; };
1758
+ type DealRewardedVideoActionDefinition = { ViewsRequiredToComplete?: null | number; MaxViewsPerActivation?: null | number; GrantRewardsPerView?: null | boolean; [key: string]: unknown; };
1759
+ type DealNodeActionDefinition = { RewardedVideo?: null | DealRewardedVideoActionDefinition; [key: string]: unknown; };
1760
+ type DealTrackRequirement = { TrackID?: null | string; Operator?: null | string; Value?: null | number; [key: string]: unknown; };
1404
1761
  /**
1405
- * Container of preset wiring for an offer — one PresetBinding per block. Inline data (Milestones)
1406
- * lives on DealOfferDefinition. null = presets unused.
1762
+ * Container of preset wiring for an offer — one independent PresetBinding per block.
1763
+ * null = presets unused.
1407
1764
  */
1408
1765
  interface DealOfferPresetBindings {
1766
+ Identity?: PresetBinding | null;
1767
+ Graph?: PresetBinding | null;
1409
1768
  Milestones?: PresetBinding | null;
1410
1769
  }
1770
+ /** Node preset bindings — one independent binding per block. */
1771
+ interface DealNodePresetBindings {
1772
+ Identity?: PresetBinding | null;
1773
+ Pricing?: PresetBinding | null;
1774
+ Reward?: PresetBinding | null;
1775
+ }
1411
1776
  type DealTrackChange = { TrackID?: null | string; Amount?: null | number; RespectBounds?: null | boolean; [key: string]: unknown; };
1412
1777
  type DealTrackDefinition = { TrackID?: null | string; DisplayName?: null | string; StartValue?: null | number; MinValue?: null | number; MaxValue?: null | number; ClampToMin?: null | boolean; ClampToMax?: null | boolean; HiddenFromUI?: null | boolean; [key: string]: unknown; };
1413
- type DealNodeUnlockRules = { RequiredCompletedNodeIDs?: null | Array<string>; RequiredAnyCompletedNodeIDs?: null | Array<string>; RequiredTracks?: null | Array<{ TrackID?: null | string; Operator?: null | string; Value?: null | number; [key: string]: unknown; }>; VisibleWhileLocked?: null | boolean; [key: string]: unknown; };
1778
+ type DealNodeUnlockRules = { RequiredCompletedNodeIDs?: null | Array<string>; RequiredAnyCompletedNodeIDs?: null | Array<string>; RequiredTracks?: null | Array<DealTrackRequirement>; VisibleWhileLocked?: null | boolean; [key: string]: unknown; };
1414
1779
  /**
1415
1780
  * A single offer node — an atomic player action (purchase / free claim / watch ad).
1416
1781
  * Hand-written interface + annotated schema to avoid TS7056 (inferred type too long).
1417
1782
  */
1783
+ /**
1784
+ * Node pricing.
1785
+ *
1786
+ * The single place a price is declared, for EVERY node type including RewardedVideo. An entry
1787
+ * can be resources, crypto, a store product (real money, needs a receipt), an ad credit
1788
+ * (`RewardedVideoCredit` — only the server grants those, which is what makes the ad check
1789
+ * structural rather than a flag), or nothing at all, which means FREE.
1790
+ */
1791
+ interface DealNodePricing {
1792
+ Options?: PriceOptions | null;
1793
+ }
1794
+ /** What the node GIVES: reward, offer-local track changes and milestone-bar points. */
1795
+ interface DealNodeReward {
1796
+ Grants?: ResourceGrant | null;
1797
+ TrackChanges?: DealTrackChange[] | null;
1798
+ MilestonePoints?: number | null;
1799
+ }
1418
1800
  interface DealNodeDefinition {
1419
1801
  NodeID?: string | null;
1420
- SortOrder?: number | null;
1421
1802
  Type?: string | null;
1803
+ Identity?: DealIdentity | null;
1804
+ Pricing?: DealNodePricing | null;
1805
+ Reward?: DealNodeReward | null;
1422
1806
  Action?: DealNodeActionDefinition | null;
1423
- Grants?: ResourceGrant | null;
1424
- TrackChanges?: DealTrackChange[] | null;
1425
- MilestonePoints?: number | null;
1426
1807
  UnlockRules?: DealNodeUnlockRules | null;
1427
1808
  NextNodeIDs?: string[] | null;
1428
1809
  ChoiceGroupID?: string | null;
1429
1810
  Limits?: LimitSpec | null;
1430
1811
  HideWhenCompleted?: boolean | null;
1431
1812
  ExhaustOfferOnComplete?: boolean | null;
1432
- AssetPaths?: Record<string, string> | null;
1433
- Metadata?: Record<string, string> | null;
1813
+ Presets?: DealNodePresetBindings | null;
1434
1814
  [key: string]: unknown;
1435
1815
  }
1436
1816
  /**
1437
1817
  * Definition of a single offer — a graph of nodes with rewards, costs and unlock rules.
1438
1818
  * Hand-written interface + annotated schema to avoid TS7056.
1439
1819
  */
1440
- interface DealOfferDefinition {
1441
- OfferID?: string | null;
1442
- Version?: number | null;
1443
- Enabled?: boolean | null;
1444
- GraphMode?: string | null;
1445
- Name?: string | null;
1446
- Description?: string | null;
1820
+ /**
1821
+ * The offer graph — nodes, roots, offer-local tracks and the exhaustion rule.
1822
+ *
1823
+ * There is no declared graph MODE. The shape (single, chain, branching, choice, metered) is
1824
+ * whatever `RootNodeIDs`, node `NextNodeIDs`, `ChoiceGroupID` and `UnlockRules` describe. Derive
1825
+ * the label if your UI wants one; a declared mode could contradict how the offer really behaves.
1826
+ */
1827
+ interface DealOfferGraph {
1447
1828
  RootNodeIDs?: string[] | null;
1448
1829
  Nodes?: DealNodeDefinition[] | null;
1449
1830
  Tracks?: DealTrackDefinition[] | null;
1831
+ ExhaustedWhenAllTerminalNodesCompleted?: boolean | null;
1832
+ }
1833
+ /**
1834
+ * The offer milestone bar as a WHOLE: tier set, claim mode and points token.
1835
+ *
1836
+ * The three live in one block deliberately. Presetting only the tier dictionary silently lost
1837
+ * the claim mode and the point caps — a shared ladder came back as Instant and uncapped.
1838
+ */
1839
+ interface DealMilestoneBlock {
1450
1840
  Milestones?: Record<string, MilestoneDefinition> | null;
1451
- /** Container of offer preset wiring (currently milestones). null = presets unused. */
1841
+ ClaimMode?: string | null;
1842
+ Token?: EventTokenDefinition | null;
1843
+ }
1844
+ interface DealOfferDefinition {
1845
+ OfferID?: string | null;
1846
+ Version?: number | null;
1847
+ Enabled?: boolean | null;
1848
+ Identity?: DealIdentity | null;
1849
+ Graph?: DealOfferGraph | null;
1850
+ Milestones?: DealMilestoneBlock | null;
1851
+ /** Per-block preset bindings. null = presets unused. */
1452
1852
  Presets?: DealOfferPresetBindings | null;
1453
- MilestoneClaimMode?: string | null;
1454
- MilestoneToken?: EventTokenDefinition | null;
1455
- ExhaustedWhenAllTerminalNodesCompleted?: boolean | null;
1456
- AssetPaths?: Record<string, string> | null;
1457
- Metadata?: Record<string, string> | null;
1458
1853
  [key: string]: unknown;
1459
1854
  }
1460
1855
  /**
1461
1856
  * Root config of the Deal Offers system — slot list + offer library.
1462
1857
  * Hand-written interface + annotated schema to avoid TS7056.
1463
1858
  */
1859
+ /** Preset registry — MIRRORS the block names. Resolved server-side when the config is built. */
1464
1860
  interface DealOfferPresetRegistry {
1465
- Milestones?: Record<string, MilestoneSet> | null;
1861
+ Identity?: Record<string, DealIdentity> | null;
1862
+ Availability?: Record<string, DealAvailability> | null;
1863
+ Behaviour?: Record<string, DealSlotBehaviour> | null;
1864
+ Graph?: Record<string, DealOfferGraph> | null;
1865
+ Milestones?: Record<string, DealMilestoneBlock> | null;
1866
+ Pricing?: Record<string, DealNodePricing> | null;
1867
+ Reward?: Record<string, DealNodeReward> | null;
1466
1868
  }
1467
1869
  interface DealOfferDefinitions {
1468
1870
  Slots?: Record<string, DealSlotDefinition> | null;
@@ -1491,11 +1893,11 @@ interface ActiveDealSlotInfo {
1491
1893
  Milestone?: DealMilestoneProgressInfo | null;
1492
1894
  }
1493
1895
  type GetActiveDealsResponse = { Slots?: null | Array<ActiveDealSlotInfo>; };
1494
- type ExecuteNodeResponse = { ServerTimeUtc?: null | string; SlotID?: null | string; NodeID?: null | string; NodeCompleted?: null | boolean; OfferExhausted?: null | boolean; Idempotent?: null | boolean; Resources?: null | ResourceOperation; };
1896
+ type ExecuteNodeResponse = { ServerTimeUtc?: null | string; SlotID?: null | string; NodeID?: null | string; NodeCompleted?: null | boolean; OfferExhausted?: null | boolean; Idempotent?: null | boolean; Resources?: null | ResourceOperation; Inventory?: null | InventoryDelta; };
1495
1897
  type DismissDealResponse = { ServerTimeUtc?: null | string; SlotID?: null | string; Resources?: null | ResourceOperation; };
1496
1898
  type RecordShowResponse = { ServerTimeUtc?: null | string; SlotID?: null | string; Resources?: null | ResourceOperation; };
1497
- type ClaimDealMilestoneResponse = { ServerTimeUtc?: null | string; SlotID?: null | string; MilestoneID?: null | string; Resources?: null | ResourceOperation; };
1498
- type ClaimDealMilestonesBatchResponse = { ServerTimeUtc?: null | string; SlotID?: null | string; ClaimedIDs?: null | Array<string>; Rejected?: null | Record<string, string>; Resources?: null | ResourceOperation; };
1899
+ type ClaimDealMilestoneResponse = { ServerTimeUtc?: null | string; SlotID?: null | string; MilestoneID?: null | string; Resources?: null | ResourceOperation; Inventory?: null | InventoryDelta; };
1900
+ type ClaimDealMilestonesBatchResponse = { ServerTimeUtc?: null | string; SlotID?: null | string; ClaimedIDs?: null | Array<string>; Rejected?: null | Record<string, string>; Resources?: null | ResourceOperation; Inventory?: null | InventoryDelta; };
1499
1901
  interface DealOfferRequest extends BaseRequest {
1500
1902
  SlotID?: string;
1501
1903
  /**
@@ -1569,9 +1971,9 @@ interface ReferralDefinitionsResponse {
1569
1971
  ReferralDefinitions?: ReferralDefinitions | null;
1570
1972
  }
1571
1973
  type UserReferralStateResponse = { Referral?: null | UserReferralState; InviteUrl?: null | string; [key: string]: unknown; };
1572
- type ActivateReferralCodeResponse = { ReferralCode?: null | string; ReferrerUserID?: null | string; IsFirstActivation?: null | boolean; Resources?: null | ResourceOperation; [key: string]: unknown; };
1573
- type ClaimInviteRewardResponse = { RewardID?: null | string; Resources?: null | ResourceOperation; [key: string]: unknown; };
1574
- type ClaimInviteRewardsBatchResponse = { ServerTimeUtc: string; Items: Array<{ Id: string; Success: boolean; Error?: null | string; Data?: null | ClaimInviteRewardResponse; }>; Resources?: null | ResourceOperation; };
1974
+ type ActivateReferralCodeResponse = { ReferralCode?: null | string; ReferrerUserID?: null | string; IsFirstActivation?: null | boolean; Resources?: null | ResourceOperation; Inventory?: null | InventoryDelta; [key: string]: unknown; };
1975
+ type ClaimInviteRewardResponse = { RewardID?: null | string; Resources?: null | ResourceOperation; Inventory?: null | InventoryDelta; [key: string]: unknown; };
1976
+ type ClaimInviteRewardsBatchResponse = { ServerTimeUtc: string; Items: Array<{ Id: string; Success: boolean; Error?: null | string; Data?: null | ClaimInviteRewardResponse; }>; Resources?: null | ResourceOperation; Inventory?: null | InventoryDelta; };
1575
1977
  interface ReferralRequest extends BaseRequest {
1576
1978
  ReferralCode?: string;
1577
1979
  InviteRewardID?: string;
@@ -1732,7 +2134,7 @@ declare const CustomDataWriter: {
1732
2134
  readonly System: "System";
1733
2135
  };
1734
2136
  type CustomDataWriter = (typeof CustomDataWriter)[keyof typeof CustomDataWriter];
1735
- type UserCustomDataRecord = { Value?: null | string; UpdatedAt?: null | string; Version?: null | number; LastWriter?: null | 'Client' | 'Server' | 'System'; ExpiresAt?: null | string; [key: string]: unknown; };
2137
+ type UserCustomDataRecord = { Value?: null | string; UpdatedAt?: null | string; Version?: null | number; LastWriter?: null | 'System' | 'Client' | 'Server'; ExpiresAt?: null | string; [key: string]: unknown; };
1736
2138
  interface UserCustomDataState {
1737
2139
  Version?: number;
1738
2140
  Private?: Record<string, UserCustomDataRecord>;
@@ -2001,17 +2403,19 @@ interface BoardRollResponse {
2001
2403
  CyclesCompletedDelta?: number | null;
2002
2404
  LandedTileType?: string | null;
2003
2405
  Operation?: ResourceOperation | null;
2406
+ /** Real non-stackable instances granted/consumed by `Operation` (apply both together). */
2407
+ Inventory?: InventoryDelta | null;
2004
2408
  ActionRequired?: string | null;
2005
2409
  ActionData?: RollActionData | null;
2006
2410
  SpecialModeOffer?: SpecialModeOfferData | null;
2007
2411
  CommunityChestContribution?: CommunityChestContributionResult | null;
2008
2412
  }
2009
- type AttackResponse = { Outcome?: null | string; IsBotTarget?: null | boolean; BuildingIndexHit?: null | number; Operation?: null | ResourceOperation; DualResult?: null | ResourceDualPartyResult; [key: string]: unknown; };
2010
- type RaidResponse = { Status?: null | string; Outcome?: null | string; FoundSymbol?: null | string | number; FoundBonus?: null | ResourceGrant; OpenedIndex?: null | number; AttemptsLeft?: null | number; RaidLayout?: null | Array<HeistCell>; HeistVariantTag?: null | string; IsJackpot?: null | boolean; Operation?: null | ResourceOperation; DualResult?: null | ResourceDualPartyResult; [key: string]: unknown; };
2011
- type BuildResponse = { BuiltIndex: number; NewLevel?: null | number; StageComplete?: null | boolean; MaxLevelRewardClaimed?: null | boolean; Operation?: null | ResourceOperation; [key: string]: unknown; };
2012
- type SpecialChooseResponse = { Mode?: null | string | number; Operation?: null | ResourceOperation; DurationSeconds?: null | number; StartedAtUtc?: null | string; ExpiresAtUtc?: null | string; [key: string]: unknown; };
2413
+ type AttackResponse = { Outcome?: null | string; IsBotTarget?: null | boolean; BuildingIndexHit?: null | number; Operation?: null | ResourceOperation; Inventory?: null | InventoryDelta; DualResult?: null | ResourceDualPartyResult; [key: string]: unknown; };
2414
+ type RaidResponse = { Status?: null | string; Outcome?: null | string; FoundSymbol?: null | string | number; FoundBonus?: null | ResourceGrant; OpenedIndex?: null | number; AttemptsLeft?: null | number; RaidLayout?: null | Array<HeistCell>; HeistVariantTag?: null | string; IsJackpot?: null | boolean; Operation?: null | ResourceOperation; Inventory?: null | InventoryDelta; DualResult?: null | ResourceDualPartyResult; [key: string]: unknown; };
2415
+ type BuildResponse = { BuiltIndex: number; NewLevel?: null | number; StageComplete?: null | boolean; MaxLevelRewardClaimed?: null | boolean; Operation?: null | ResourceOperation; Inventory?: null | InventoryDelta; [key: string]: unknown; };
2416
+ type SpecialChooseResponse = { Mode?: null | string | number; Operation?: null | ResourceOperation; Inventory?: null | InventoryDelta; DurationSeconds?: null | number; StartedAtUtc?: null | string; ExpiresAtUtc?: null | string; [key: string]: unknown; };
2013
2417
  type SpecialApplyMultiplierResponse = { AdViewsUsed?: null | number; RolledMultiplier?: null | number; AccumulatedMultiplier?: null | number; RemainingAdViews?: null | number; [key: string]: unknown; };
2014
- type SpecialClaimResponse = { FinalMultiplier?: null | number; AdViewsUsed?: null | number; AccumulatedMultiplier?: null | number; IsEarlyClaim?: null | boolean; ReachedTierIndex?: null | number; Operation?: null | ResourceOperation; AcceptedRunStats?: null | Record<string, number>; RunStatAwards?: null | Array<{ MetricID?: null | string; ReachedTierIndex?: null | number; RequiredValue?: null | number; RewardUnits?: null | number; [key: string]: unknown; }>; RunStatsClamped?: null | boolean; RunStatGrant?: null | ResourceGrant; [key: string]: unknown; };
2418
+ type SpecialClaimResponse = { FinalMultiplier?: null | number; AdViewsUsed?: null | number; AccumulatedMultiplier?: null | number; IsEarlyClaim?: null | boolean; ReachedTierIndex?: null | number; Operation?: null | ResourceOperation; Inventory?: null | InventoryDelta; AcceptedRunStats?: null | Record<string, number>; RunStatAwards?: null | Array<{ MetricID?: null | string; ReachedTierIndex?: null | number; RequiredValue?: null | number; RewardUnits?: null | number; [key: string]: unknown; }>; RunStatsClamped?: null | boolean; RunStatGrant?: null | ResourceGrant; [key: string]: unknown; };
2015
2419
  /** enum CommunityChestStatus — mirror of CoopGroupStatus. */
2016
2420
  declare const CommunityChestStatus: {
2017
2421
  readonly Forming: "Forming";
@@ -2035,7 +2439,7 @@ type CommunityChestHistoryEntry = { GroupID?: null | string; RoundIndex?: null |
2035
2439
  type UserCommunityChestState = { ActiveGroupID?: null | string; ActiveRoundIndex?: null | number; History?: null | Array<CommunityChestHistoryEntry>; [key: string]: unknown; };
2036
2440
  type CommunityChestUserStateResponse = { ServerTimeUtc?: null | string; UserState?: null | UserCommunityChestState; ActiveGroup?: null | CommunityChestGroupDocument; SecondsRemaining?: null | number; };
2037
2441
  type CommunityChestGroupStateResponse = { ServerTimeUtc?: null | string; Group?: null | CommunityChestGroupDocument; SecondsRemaining?: null | number; };
2038
- type CommunityChestClaimResponse = { ServerTimeUtc?: null | string; GroupID?: null | string; RewardType?: null | string; MilestoneID?: null | string; Resources?: null | ResourceOperation; };
2442
+ type CommunityChestClaimResponse = { ServerTimeUtc?: null | string; GroupID?: null | string; RewardType?: null | string; MilestoneID?: null | string; Resources?: null | ResourceOperation; Inventory?: null | InventoryDelta; };
2039
2443
  type CommunityChestLeaveResponse = { ServerTimeUtc?: null | string; GroupID?: null | string; Success?: null | boolean; };
2040
2444
  interface GameLoopRequest extends BaseRequest {
2041
2445
  RollMultiplier?: number;
@@ -2375,7 +2779,7 @@ interface UnstackableItemInstanceState {
2375
2779
  AcquiredAt: string;
2376
2780
  ExpiresAt?: string | null;
2377
2781
  EquippedSlot?: EquipmentSlot | null;
2378
- CustomData?: string | null;
2782
+ CustomData?: Record<string, string> | null;
2379
2783
  }
2380
2784
  /** Daily-window counter for one conversion pair ("{srcType}:{srcID}->{tgtType}:{tgtID}"). */
2381
2785
  interface ConversionDailyCounter {
@@ -2981,7 +3385,7 @@ type ItemEquipment = { MinCharacterLevel?: null | number; UseRequirements?: null
2981
3385
  type ItemUpgradeFodder = { ValuationMode?: null | 'FlatCount' | 'Merge' | 'InvestmentRefund'; WeightCurve?: null | ScalarCurveSpec; Selection?: null | 'ProtectLeveled' | 'CheapestFirst' | 'ClientSelected' | 'SameLevelOnly'; [key: string]: unknown; };
2982
3386
  type ItemUpgrade = { MaxLevel?: null | number; PriceOptions?: null | PriceOptions; CostCurve?: null | ScalarCurveSpec; FlatBonusCurve?: null | ScalarCurveSpec; PercentBonusCurve?: null | ScalarCurveSpec; PowerCurve?: null | ScalarCurveSpec; Fodder?: null | ItemUpgradeFodder; [key: string]: unknown; };
2983
3387
  type ItemMetadata = { RarityID?: null | string; CollectionID?: null | string; AuthorID?: null | string; [key: string]: unknown; };
2984
- type ItemDefinition = { ItemID: string; CatalogID: string; ItemClass?: null | string; DisplayName?: null | string; Description?: null | string; Tags?: null | Array<string>; CustomData?: null | string; IsStackable?: null | boolean; IsTradable?: null | boolean; Weight?: null | number; AssetPaths?: null | Record<string, string>; NFT?: null | NFTModel; Stats?: null | ItemStats; Equipment?: null | ItemEquipment; Upgrade?: null | ItemUpgrade; Metadata?: null | ItemMetadata; ExpirationDurationSeconds?: null | number; [key: string]: unknown; };
3388
+ type ItemDefinition = { ItemID: string; CatalogID: string; ItemClass?: null | string; DisplayName?: null | string; Description?: null | string; Tags?: null | Array<string>; CustomData?: null | Record<string, string>; IsStackable?: null | boolean; IsTradable?: null | boolean; Weight?: null | number; AssetPaths?: null | Record<string, string>; NFT?: null | NFTModel; Stats?: null | ItemStats; Equipment?: null | ItemEquipment; Upgrade?: null | ItemUpgrade; Metadata?: null | ItemMetadata; ExpirationDurationSeconds?: null | number; [key: string]: unknown; };
2985
3389
  /** Catalog: a set of items of one thematic group. Key of `Items` is ItemID. */
2986
3390
  interface ItemCatalog {
2987
3391
  Items?: Record<string, ItemDefinition> | null;
@@ -2990,6 +3394,82 @@ interface ItemCatalog {
2990
3394
  interface ItemDefinitions {
2991
3395
  Catalogs?: Record<string, ItemCatalog> | null;
2992
3396
  }
3397
+
3398
+ declare const CommunityParticipationMode: {
3399
+ /** Anyone who passes the gate is in, immediately. */
3400
+ readonly Open: "Open";
3401
+ /** A human approves each applicant. */
3402
+ readonly Application: "Application";
3403
+ };
3404
+ type CommunityParticipationMode = (typeof CommunityParticipationMode)[keyof typeof CommunityParticipationMode];
3405
+ declare const CommunityCreatorStatus: {
3406
+ readonly Pending: "Pending";
3407
+ readonly Approved: "Approved";
3408
+ readonly Rejected: "Rejected";
3409
+ readonly Suspended: "Suspended";
3410
+ /** Left the programme themselves. */
3411
+ readonly Left: "Left";
3412
+ };
3413
+ type CommunityCreatorStatus = (typeof CommunityCreatorStatus)[keyof typeof CommunityCreatorStatus];
3414
+ declare const CommunityPayoutCurrencyKind: {
3415
+ readonly VirtualCurrency: "VirtualCurrency";
3416
+ /**
3417
+ * On-chain currency.
3418
+ *
3419
+ * ⚠ `Claim` REFUSES this kind (`USE_WITHDRAW_FOR_CRYPTO`). A crypto reward never lands on the
3420
+ * in-game balance: it leaves the title's Community Marketing pool bucket straight for the
3421
+ * creator's wallet, through `withdrawCryptoReward`.
3422
+ *
3423
+ * That split is deliberate and load-bearing. An in-game crypto balance promises no payout — the
3424
+ * pool can be empty and the player simply cannot withdraw, by design. A creator whose work was
3425
+ * approved is owed the money regardless. Merge the two and you lose both rules at once.
3426
+ */
3427
+ readonly CryptoCurrency: "CryptoCurrency";
3428
+ };
3429
+ type CommunityPayoutCurrencyKind = (typeof CommunityPayoutCurrencyKind)[keyof typeof CommunityPayoutCurrencyKind];
3430
+ declare const CommunityMetricKind: {
3431
+ readonly Views: "Views";
3432
+ readonly Likes: "Likes";
3433
+ readonly Comments: "Comments";
3434
+ readonly Shares: "Shares";
3435
+ };
3436
+ type CommunityMetricKind = (typeof CommunityMetricKind)[keyof typeof CommunityMetricKind];
3437
+ declare const CommunityMarketingAction: {
3438
+ readonly GetCommunityMarketingState: "GetCommunityMarketingState";
3439
+ readonly GetEarnings: "GetEarnings";
3440
+ readonly Claim: "Claim";
3441
+ /** Crypto rewards only — see {@link CommunityPayoutCurrencyKind.CryptoCurrency}. */
3442
+ readonly WithdrawCryptoReward: "WithdrawCryptoReward";
3443
+ /** Evaluate the publisher's join requirements and, on success, join. */
3444
+ readonly CheckJoinEligibility: "CheckJoinEligibility";
3445
+ };
3446
+ type CommunityMarketingAction = (typeof CommunityMarketingAction)[keyof typeof CommunityMarketingAction];
3447
+ interface CommunityMarketingRequest extends BaseRequest {
3448
+ /** Campaign to read or to claim. */
3449
+ CampaignID?: string;
3450
+ /** Payout history page size. 0 = module default. */
3451
+ Limit?: number;
3452
+ /**
3453
+ * Crypto withdrawal only: how much to send. Empty = everything approved and not yet paid.
3454
+ *
3455
+ * ⚠ A STRING, in the invariant culture — same as an ordinary token withdrawal. A `decimal` in
3456
+ * JSON is parsed differently by locale, and "12.5" would arrive as 125.
3457
+ */
3458
+ Amount?: string;
3459
+ /** Crypto withdrawal only: the wallet the reward is sent to. */
3460
+ WalletAddress?: string;
3461
+ }
3462
+ type CommunityCampaignSummary = z.output<typeof zCommunityCampaignSummary>;
3463
+ type CommunityMarketingState = z.output<typeof zCommunityMarketingState>;
3464
+ type CommunityAccrualLine = z.output<typeof zCommunityAccrualLine>;
3465
+ type CommunityEarningsLine = z.output<typeof zCommunityEarningsLine>;
3466
+ type CommunityPayoutSummary = z.output<typeof zCommunityPayoutSummary>;
3467
+ type CommunityEarningsResponse = z.output<typeof zCommunityEarningsResponse>;
3468
+ type CommunityClaimResponse = z.output<typeof zCommunityClaimResponse>;
3469
+ type CommunityEligibilityCondition = z.output<typeof zCommunityEligibilityCondition>;
3470
+ type CommunityEligibilityResponse = z.output<typeof zCommunityEligibilityResponse>;
3471
+ type CommunitySolanaWithdrawalSignature = z.output<typeof zCommunitySolanaWithdrawalSignature>;
3472
+ type CommunityWithdrawalResponse = z.output<typeof zCommunityWithdrawalResponse>;
2993
3473
  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; };
2994
3474
  type BonusWindowState = { IsActive?: null | boolean; CurrentPhaseEndUtc?: null | string; NextBonusStartUtc?: null | string; CurrentCycleIndex?: null | number; CurrentPhaseIndex?: null | number; ActiveBonusMultiplier?: null | number; [key: string]: unknown; };
2995
3475
  /**
@@ -3069,7 +3549,7 @@ interface GetActiveEventsResponse {
3069
3549
  }
3070
3550
  type UserTimedEventStateResponse = { Tokens?: null | Record<string, UserEventTokenProgress>; };
3071
3551
  type EventTokenSpendResponse = { Type?: null | 'Scheduled' | 'Cyclic' | 'Chained'; LteID?: null | string; Resources?: null | ResourceOperation; };
3072
- type EventMilestoneClaimResponse = { Type?: null | 'Scheduled' | 'Cyclic' | 'Chained'; LteID?: null | string; MilestoneID?: null | string; Rewards?: null | ResourceOperation; };
3552
+ type EventMilestoneClaimResponse = { Type?: null | 'Scheduled' | 'Cyclic' | 'Chained'; LteID?: null | string; MilestoneID?: null | string; Rewards?: null | ResourceOperation; Inventory?: null | InventoryDelta; };
3073
3553
  type EventTokenGrantResponse = { Type?: null | 'Scheduled' | 'Cyclic' | 'Chained'; LteID?: null | string; Resources?: null | ResourceOperation; };
3074
3554
  type ClaimMilestonesBatchResponse = Array<{ Id: string; Success: boolean; Error?: null | string; Data?: null | EventMilestoneClaimResponse; }>;
3075
3555
  type SpendTokensBatchResponse = Array<{ Id: string; Success: boolean; Error?: null | string; Data?: null | EventTokenSpendResponse; }>;
@@ -3139,9 +3619,42 @@ declare const CraftType: {
3139
3619
  readonly TradeUpCollection: "TradeUpCollection";
3140
3620
  };
3141
3621
  type CraftType = (typeof CraftType)[keyof typeof CraftType];
3142
- type CraftSingleResult = { Index?: null | number; BurnedItemIDs?: null | Array<string>; RolledCollectionID?: null | string; UsedCollections?: null | Record<string, number>; Output?: null | ResourceEntry; };
3143
- 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; Results?: null | Array<CraftSingleResult>; };
3144
- 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; [key: string]: unknown; };
3622
+ /** How the output level is derived from the levels of the burned inputs. */
3623
+ declare const CraftOutputLevelMode: {
3624
+ /** Input levels don't matter — the output is always level 1 (legacy). */
3625
+ readonly None: "None";
3626
+ /** Level of the weakest input of the craft. */
3627
+ readonly Min: "Min";
3628
+ /** Average of the craft's input levels, rounded DOWN. */
3629
+ readonly Average: "Average";
3630
+ /** Level of the strongest input of the craft. */
3631
+ readonly Max: "Max";
3632
+ };
3633
+ type CraftOutputLevelMode = (typeof CraftOutputLevelMode)[keyof typeof CraftOutputLevelMode];
3634
+ /** Which unstackable input instances a craft burns. */
3635
+ declare const CraftInputSelectionMode: {
3636
+ /** Only non-upgraded (Level ≤ 1) instances, oldest first (legacy). */
3637
+ readonly ProtectLeveled: "ProtectLeveled";
3638
+ /** The client names the instances via `inputInstanceIDs`; without them — ProtectLeveled. */
3639
+ readonly ClientSelected: "ClientSelected";
3640
+ /** The server picks, weakest first: upgraded copies go only when fresh ones run out. */
3641
+ readonly LowestLevelFirst: "LowestLevelFirst";
3642
+ /** The server picks, strongest first. */
3643
+ readonly HighestLevelFirst: "HighestLevelFirst";
3644
+ };
3645
+ type CraftInputSelectionMode = (typeof CraftInputSelectionMode)[keyof typeof CraftInputSelectionMode];
3646
+ /** What happens when the derived level exceeds the output item's `Upgrade.MaxLevel`. */
3647
+ declare const CraftOutputLevelOverflow: {
3648
+ /** Lower the level to the output's MaxLevel. */
3649
+ readonly Clamp: "Clamp";
3650
+ /** Refuse the craft (checked against the lowest MaxLevel of the output pool, before the roll). */
3651
+ readonly Reject: "Reject";
3652
+ };
3653
+ type CraftOutputLevelOverflow = (typeof CraftOutputLevelOverflow)[keyof typeof CraftOutputLevelOverflow];
3654
+ type CraftBurnedInstance = { ItemInstanceID?: null | string; ItemID?: null | string; Level?: null | number; Units?: null | number; };
3655
+ 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>; };
3656
+ 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>; };
3657
+ 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; };
3145
3658
  /** The title's craft catalog (config), returned by getDefinitions(). */
3146
3659
  interface CraftDefinitions {
3147
3660
  Definitions?: Record<string, CraftDefinition> | null;
@@ -3151,7 +3664,13 @@ interface CraftRequest extends BaseRequest {
3151
3664
  CraftID?: string;
3152
3665
  Count?: number;
3153
3666
  SelectedOptionID?: string;
3667
+ /** Template of catalog ItemIDs, exactly RequiredItemCount long; the server repeats it Count times. */
3154
3668
  InputItemIDs?: string[];
3669
+ /**
3670
+ * Only for a ClientSelected recipe: one instance id per UNSTACKABLE input of the expanded list
3671
+ * (template × Count), in order; stackable inputs take no slot. A bundle id may repeat once per unit.
3672
+ */
3673
+ InputInstanceIDs?: string[];
3155
3674
  }
3156
3675
  declare const CraftAction: {
3157
3676
  readonly GetDefinitions: "GetDefinitions";
@@ -3175,7 +3694,7 @@ declare const TitleDataBucket: {
3175
3694
  readonly Private: "Private";
3176
3695
  };
3177
3696
  type TitleDataBucket = (typeof TitleDataBucket)[keyof typeof TitleDataBucket];
3178
- type TitleCustomDataRecord = { Value?: null | string; UpdatedAt?: null | string; Version?: null | number; LastWriter?: null | 'Client' | 'Server' | 'System'; ExpiresAt?: null | string; [key: string]: unknown; };
3697
+ type TitleCustomDataRecord = { Value?: null | string; UpdatedAt?: null | string; Version?: null | number; LastWriter?: null | 'System' | 'Client' | 'Server'; ExpiresAt?: null | string; [key: string]: unknown; };
3179
3698
  type GetPublicTitleDataResponse = { StaticVersion?: null | number; RuntimeVersion?: null | number; Static?: null | Record<string, TitleCustomDataRecord>; Runtime?: null | Record<string, TitleCustomDataRecord>; NotModified?: null | boolean; };
3180
3699
  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; };
3181
3700
  /** Title-data schema as served to clients: public-bucket keys plus the title's limits. */
@@ -3297,6 +3816,8 @@ interface SdkEvents {
3297
3816
  "store:offerPurchased": StorePurchaseResponse;
3298
3817
  "store:offersPurchasedBatch": PurchaseBatchResponse;
3299
3818
  "store:definitionsLoaded": StoreDefinitions;
3819
+ /** The shop resolved for this player — this is what a shop screen redraws on. */
3820
+ "store:storefrontLoaded": GetStorefrontResponse;
3300
3821
  "store:userStateLoaded": UserStoreState;
3301
3822
  "lootbox:definitionsLoaded": LootboxDefinitions;
3302
3823
  "lootbox:opened": LootboxOpenResponse;
@@ -3336,6 +3857,54 @@ interface SdkEvents {
3336
3857
  * the response of the action that caused it — subscribe instead of polling the state.
3337
3858
  */
3338
3859
  "tutorial:systemProgress": TutorialStepProgress[];
3860
+ "communityMarketing:stateLoaded": CommunityMarketingState;
3861
+ "communityMarketing:earningsLoaded": CommunityEarningsResponse;
3862
+ /**
3863
+ * ⚠ Fires on ANY successful claim, including one that paid ZERO (less than a whole unit had
3864
+ * matured) and one that was an idempotent replay. Check `Claimed` and `IdempotentReplay`
3865
+ * before congratulating the player.
3866
+ */
3867
+ "communityMarketing:claimed": CommunityClaimResponse;
3868
+ /**
3869
+ * A crypto reward left the programme pool for the creator's wallet.
3870
+ *
3871
+ * ⚠ Fires when the VOUCHER is issued — the pool is already debited at that point, but the
3872
+ * on-chain transaction has not been sent yet, let alone confirmed. Treat it as "payout started",
3873
+ * not "money received"; the wallet leg can still fail, and the request then needs finishing by
3874
+ * `TitleTransactionID` rather than a second withdrawal.
3875
+ */
3876
+ "communityMarketing:withdrawn": CommunityWithdrawalResponse;
3877
+ /**
3878
+ * The join requirements were evaluated.
3879
+ *
3880
+ * ⚠ Fires on every check, passing or not. `Approved` tells you whether THIS check admitted the
3881
+ * creator; `Passed` without `Approved` means the conditions hold but a human had already decided
3882
+ * the application.
3883
+ */
3884
+ "communityMarketing:eligibilityChecked": CommunityEligibilityResponse;
3885
+ "chat:definitionsLoaded": ChatDefinitions;
3886
+ "chat:channelsLoaded": ChatChannelsResponse;
3887
+ /**
3888
+ * New messages in ONE room, emitted once per room per poll. Rooms with nothing new do not
3889
+ * emit — the poll returns them anyway so their cursor stays fresh.
3890
+ */
3891
+ "chat:messages": ChatRoomUpdate;
3892
+ "chat:sent": ChatSendResponse;
3893
+ /** The player marked a room read. Use it to clear the badge in the UI. */
3894
+ "chat:read": {
3895
+ roomID: string;
3896
+ };
3897
+ /** Publisher opt-in and the platform public key, as the server reports them. */
3898
+ "push:configLoaded": PushConfigResponse;
3899
+ /**
3900
+ * This browser is now registered with the server.
3901
+ *
3902
+ * ⚠ Not emitted for a PORTAL subscription: there the row belongs to the website's origin and
3903
+ * the game never sees it. Branch on `PushSubscribeResult.Where` instead of on this event.
3904
+ */
3905
+ "push:subscribed": PushSubscriptionView;
3906
+ /** A device was removed — this one, or another one from the "my devices" list. */
3907
+ "push:unsubscribed": undefined;
3339
3908
  /**
3340
3909
  * Таблица переводов сменилась: игрок вошёл, переключил язык или издатель поправил тексты.
3341
3910
  * Подписка — штатный способ перерисовать уже нарисованные подписи: `t()` синхронна, поэтому
@@ -3410,6 +3979,9 @@ interface SdkEvents {
3410
3979
  "character:charactersUnlocked": UnlockCharactersBatchResponse;
3411
3980
  "character:levelsUpgraded": UpgradeCharacterLevelsBatchResponse;
3412
3981
  "character:statLevelsUpgraded": UpgradeStatLevelsBatchResponse;
3982
+ "character:skinUnlocked": UnlockSkinResponse;
3983
+ "character:skinEquipped": EquipSkinResponse;
3984
+ "character:skinUnequipped": UnequipSkinResponse;
3413
3985
  "match:created": CreateMatchResponse;
3414
3986
  "match:updated": UpdateMatchResponse;
3415
3987
  "match:cancelled": CancelMatchResponse;
@@ -3742,6 +4314,15 @@ declare class UserData {
3742
4314
  applyInventory(inventory: UserInventoryState): void;
3743
4315
  applyVirtualCurrency(data: Record<string, UserVirtualCurrencyState>): void;
3744
4316
  applyResourceOperation(op: ResourceOperation | null | undefined, itemDefs?: ItemDefinitions, now?: Date): void;
4317
+ /**
4318
+ * Applies one response's `ResourceOperation` AND its `InventoryDelta` as ONE change — the only
4319
+ * correct way for responses that carry both (see `reconcileUnstackableDelta`): applied one after
4320
+ * the other, the operation's guessed instances (random-id placeholders, the oldest copy consumed)
4321
+ * contradict the delta, and non-stackable items double up or vanish. With no delta this is
4322
+ * exactly `applyResourceOperation`.
4323
+ */
4324
+ applyResourcesWithDelta(op: ResourceOperation | null | undefined, delta: InventoryDelta | null | undefined, itemDefs?: ItemDefinitions, now?: Date): void;
4325
+ private emitResourceChanges;
3745
4326
  /** Decimal-precise crypto delta (port of PatchCryptoCurrencyDelta). */
3746
4327
  patchCryptoCurrencyDelta(currencyID: string, delta: Decimal | string | number, serverTimeUtc?: string): void;
3747
4328
  applyStore(data: UserStoreState | null): void;
@@ -4228,6 +4809,8 @@ declare class ItemService {
4228
4809
  /** Port of StoreService.cs. */
4229
4810
  declare class StoreService {
4230
4811
  private readonly ctx;
4812
+ private storefront;
4813
+ private storefrontLoadedAt;
4231
4814
  constructor(ctx: ClientContext);
4232
4815
  /**
4233
4816
  * Buys an offer.
@@ -4239,10 +4822,40 @@ declare class StoreService {
4239
4822
  purchase(offerID: string, count?: number, options?: {
4240
4823
  selectedOptionID?: string;
4241
4824
  payment?: PaymentProof;
4825
+ /**
4826
+ * The slot the player tapped. Optional as a whole; pass it when you have it (the
4827
+ * storefront gives you all three) — for a pooled product it removes the ambiguity of
4828
+ * which slot's per-window cap applies. The server re-checks the roll either way.
4829
+ */
4830
+ slot?: {
4831
+ storeID: string;
4832
+ sectionID: string;
4833
+ slotID: string;
4834
+ };
4242
4835
  }): Promise<OperationResult<StorePurchaseResponse>>;
4243
4836
  /** Buy several offers in one atomic operation. Each ref is `{ OfferID, Count }`. */
4244
4837
  purchaseBatch(purchases: StorePurchaseRef[]): Promise<OperationResult<PurchaseBatchResponse>>;
4245
4838
  getDefinitions(): Promise<OperationResult<StoreDefinitions>>;
4839
+ /**
4840
+ * Loads the shop as this player sees it right now, and caches it.
4841
+ *
4842
+ * ⚠ Draw THIS, not `getDefinitions()`. Rotation is recomputed by the server on every read
4843
+ * and is not stored anywhere, so nothing here can be derived on the client: which product
4844
+ * stands in a slot, when the card refreshes, whether the FIRST PURCHASE badge is still lit,
4845
+ * how much of a limit is left.
4846
+ *
4847
+ * ⚠ Count timers down from `ServerTimeUtc`, not from the device clock.
4848
+ */
4849
+ getStorefront(): Promise<OperationResult<GetStorefrontResponse>>;
4850
+ /** The last storefront loaded, or null. Reload it after a purchase and on a refresh timer. */
4851
+ get cachedStorefront(): GetStorefrontResponse | null;
4852
+ /**
4853
+ * The nearest moment any visible slot refreshes, or null when nothing rotates.
4854
+ *
4855
+ * ⚠ This is the only thing the client is allowed to derive from a storefront, and it is
4856
+ * arithmetic on timestamps the server sent — not a second implementation of rotation.
4857
+ */
4858
+ nextRefreshAtUtc(): string | null;
4246
4859
  getUserState(): Promise<OperationResult<UserStoreState>>;
4247
4860
  private baseRequest;
4248
4861
  }
@@ -4266,8 +4879,8 @@ declare const IapPurchaseStatus: {
4266
4879
  readonly AlreadyProcessed: "AlreadyProcessed";
4267
4880
  };
4268
4881
  type IapPurchaseStatus = (typeof IapPurchaseStatus)[keyof typeof IapPurchaseStatus];
4269
- type PurchaseValidationResponse = { ServerTimeUtc: string; Store?: null | 'GooglePlay' | 'AppleAppStore'; ProductID?: null | string; TransactionID?: null | string; Status?: null | 'Granted' | 'Restored' | 'AlreadyProcessed'; Granted?: null | boolean; Quantity?: null | number; Resources?: null | ResourceOperation; ProductState?: null | IapProductPurchaseState; [key: string]: unknown; };
4270
- type PurchaseValidationBatchResponse = { ServerTimeUtc: string; Items: Array<{ Id: string; Success: boolean; Error?: null | string; Data?: null | PurchaseValidationResponse; }>; Resources?: null | ResourceOperation; };
4882
+ type PurchaseValidationResponse = { ServerTimeUtc: string; Store?: null | 'GooglePlay' | 'AppleAppStore'; ProductID?: null | string; TransactionID?: null | string; Status?: null | 'Granted' | 'Restored' | 'AlreadyProcessed'; Granted?: null | boolean; Quantity?: null | number; Resources?: null | ResourceOperation; Inventory?: null | InventoryDelta; ProductState?: null | IapProductPurchaseState; [key: string]: unknown; };
4883
+ type PurchaseValidationBatchResponse = { ServerTimeUtc: string; Items: Array<{ Id: string; Success: boolean; Error?: null | string; Data?: null | PurchaseValidationResponse; }>; Resources?: null | ResourceOperation; Inventory?: null | InventoryDelta; };
4271
4884
  interface PurchaseReceiptRef {
4272
4885
  Store?: IapStore;
4273
4886
  Receipt?: string;
@@ -4346,6 +4959,12 @@ declare class PurchaseService {
4346
4959
  * consumable that never reached us is granted now.
4347
4960
  */
4348
4961
  validatePurchasesBatch(receipts: PurchaseReceiptRef[]): Promise<OperationResult<PurchaseValidationBatchResponse>>;
4962
+ /**
4963
+ * Applies one validated receipt to the cache — only when something was actually granted:
4964
+ * `AlreadyProcessed` and `Restored` carry an empty operation, and crediting them would double the
4965
+ * reward for one payment.
4966
+ */
4967
+ private applyValidation;
4349
4968
  }
4350
4969
 
4351
4970
  /** What a price option needs before it can be paid. */
@@ -4520,6 +5139,314 @@ declare class TutorialService {
4520
5139
  private baseRequest;
4521
5140
  }
4522
5141
 
5142
+ /**
5143
+ * Community Marketing: the game's half of the creator reward programme.
5144
+ *
5145
+ * The programme itself — applying, submitting a post, moderation, metric polling and the accrual
5146
+ * maths — lives in the creator portal on the website, not in the game. The game surface is
5147
+ * deliberately three calls:
5148
+ *
5149
+ * 1. `getState()` — is the programme on, is this player in it, and WHERE to send them
5150
+ * (`CreatorPortalUrl`). ⚠ Open that URL, never build one: the address is a server contract.
5151
+ * 2. `getEarnings()` — what the player has earned and why, including the per-work breakdown.
5152
+ * 3. `claim(campaignID)` — hand over the approved game-currency reward, or
5153
+ * `withdrawCryptoReward(...)` for a crypto one.
5154
+ * 4. `checkJoinEligibility()` — only for `Automatic` participation mode: evaluate the
5155
+ * publisher's join requirements against this player and, if they hold, admit them.
5156
+ *
5157
+ * **Four things worth knowing before you draw this screen:**
5158
+ *
5159
+ * - **⚠⚠ `Granted` is the promise; `Earned` and `Mature` are estimates.** The formula recomputes
5160
+ * from metric snapshots, so `Earned` grows with views and DROPS when the platform scrubs fake
5161
+ * activity. It becomes owed money only when a moderator approves it. `Claimable` counts from
5162
+ * `Granted`, never from `Mature` — and a screen that shows only `Earned` will one day show a
5163
+ * number going down with no explanation attached to it.
5164
+ * - **`Claimed: 0` is a success, not a failure.** Payouts are made in whole units, so a player
5165
+ * with 0.4 currency approved gets zero and keeps the 0.4 (`RemainingFraction`). Show that number
5166
+ * — without it the player concludes the platform ate their earnings.
5167
+ * - **`Mature` is not `Earned`.** An accrual matures after the title's hold period, because
5168
+ * social platforms strip fake activity in the first days. Paying earlier would mean paying for
5169
+ * that activity. `HoldDays` comes back with the earnings so the UI can say it out loud.
5170
+ * - **`IdempotentReplay: true` means the money moved on an earlier attempt.** A retried claim is
5171
+ * safe and does not double-pay; say "already paid", not "paid again".
5172
+ */
5173
+ declare class CommunityMarketingService {
5174
+ private readonly ctx;
5175
+ constructor(ctx: ClientContext);
5176
+ /**
5177
+ * Programme state for this player: whether it exists, whether they are a creator, and the
5178
+ * portal address to open.
5179
+ *
5180
+ * ⚠ Answers with a meaningful EMPTY state, not an error, for a player who never joined — that
5181
+ * is the normal case for anyone opening the screen.
5182
+ */
5183
+ getState(): Promise<OperationResult<CommunityMarketingState>>;
5184
+ /**
5185
+ * Earnings with the per-work breakdown.
5186
+ *
5187
+ * @param limit Payout history page size. 0 (default) leaves it to the module.
5188
+ */
5189
+ getEarnings(limit?: number): Promise<OperationResult<CommunityEarningsResponse>>;
5190
+ /**
5191
+ * Claim the APPROVED reward of one campaign, in game currency or items.
5192
+ *
5193
+ * It lands in the player's ordinary balance through the same path as any other reward, so the
5194
+ * usual state refresh applies.
5195
+ *
5196
+ * ⚠ Crypto campaigns are REFUSED here with `USE_WITHDRAW_FOR_CRYPTO` — use
5197
+ * {@link withdrawCryptoReward}. A crypto reward never touches the in-game balance: it leaves
5198
+ * the programme's pool bucket straight for the creator's wallet. That is a deliberate split —
5199
+ * an in-game crypto balance promises no payout (empty pool, no withdrawal, by design), while an
5200
+ * approved creator is owed the money regardless.
5201
+ */
5202
+ claim(campaignID: string): Promise<OperationResult<CommunityClaimResponse>>;
5203
+ /**
5204
+ * Withdraw an approved CRYPTO reward from the programme pool straight to `walletAddress`.
5205
+ *
5206
+ * Returns a server-signed voucher; submitting it on-chain is the wallet's job — the same call
5207
+ * `@idosgames/wallet` already makes for player withdrawals
5208
+ * (`submitEvmTokenWithdrawal(clients, data.EvmSignature)`, then
5209
+ * `client.blockchain.confirmWithdrawal({ TitleTransactionID, TransactionHash })`).
5210
+ *
5211
+ * ⚠⚠ THE POOL IS DEBITED AND THE REQUEST EXISTS THE MOMENT THIS RESOLVES, before anything
5212
+ * reaches the chain — exactly like an ordinary withdrawal. So "it failed, let me press it
5213
+ * again" charges a SECOND time. Keep `TitleTransactionID` and finish the interrupted one with
5214
+ * `confirmWithdrawal` (if the transaction actually landed) or `retryWithdrawal`; never ask for
5215
+ * a fresh voucher.
5216
+ *
5217
+ * ⚠ `amount` is a STRING in the invariant culture, and omitting it means "everything approved
5218
+ * and not yet paid".
5219
+ */
5220
+ withdrawCryptoReward(campaignID: string, walletAddress: string, amount?: string): Promise<OperationResult<CommunityWithdrawalResponse>>;
5221
+ /**
5222
+ * Evaluate the publisher's join requirements and, if they hold, join the programme.
5223
+ *
5224
+ * ⚠ Only meaningful while the programme's participation mode is `Automatic` and the player has
5225
+ * already applied — the application itself is created in the creator portal. In the
5226
+ * by-application mode the check still reports the breakdown but never admits anyone: that
5227
+ * decision belongs to a human.
5228
+ *
5229
+ * ⚠⚠ It never OVERRIDES a human. A creator a publisher rejected or suspended stays that way
5230
+ * even with every condition satisfied — otherwise this call would be "make myself approved".
5231
+ *
5232
+ * ⚠ Render `Conditions` — including on success. The programme pays for work by rules the person
5233
+ * never saw, and a bare "not allowed" reads as arbitrary. Mind that `Actual: null` means NOT
5234
+ * MEASURED, not zero.
5235
+ */
5236
+ checkJoinEligibility(): Promise<OperationResult<CommunityEligibilityResponse>>;
5237
+ private baseRequest;
5238
+ }
5239
+
5240
+ /**
5241
+ * Player chat: persistent title channels and 1-on-1 conversations.
5242
+ *
5243
+ * **Three things to understand before wiring a UI to this.**
5244
+ *
5245
+ * 1. **One poll covers every room.** `poll()` returns updates for ALL rooms the player can see —
5246
+ * channels and open conversations alike. Do not call it per channel: every call is billed
5247
+ * against the publisher's API quota, so a per-channel loop multiplies that bill by the number
5248
+ * of channels on every tick.
5249
+ *
5250
+ * 2. **The interval comes from the server, and you poll only while the chat is open.**
5251
+ * `PollIntervalSeconds` arrives with `getChannels()` and with every poll, and the server may
5252
+ * change it on the fly. When the chat screen is closed, stop polling: the unread badge is
5253
+ * refreshed by `getChannels()` whenever the player opens the screen again.
5254
+ *
5255
+ * 3. **Polling never marks anything read.** That is deliberate — it is what keeps the poll a pure
5256
+ * read on the server. Call `markRead()` when the player actually looks at a room, otherwise
5257
+ * the badge stays lit forever.
5258
+ *
5259
+ * ⚠ `UnreadCount` is nullable and `null` means "not counted" (the server's hot cache was cold),
5260
+ * NOT zero. Render `null` as "unknown" — showing 0 would tell the player there is nothing new
5261
+ * when there might be.
5262
+ */
5263
+ declare class ChatService {
5264
+ private readonly ctx;
5265
+ /** Cursors of the last poll, per room. Kept so the caller does not have to. */
5266
+ private readonly cursors;
5267
+ constructor(ctx: ClientContext);
5268
+ /** Channel catalog of the title (presets already resolved server-side). */
5269
+ getChatDefinitions(): Promise<OperationResult<ChatDefinitions>>;
5270
+ /**
5271
+ * Channels this player can see, with the room each of them resolves to for HIM, whether he
5272
+ * may write, and how much he has not read.
5273
+ *
5274
+ * Call it when the chat screen opens — it is also how you learn the poll interval and whether
5275
+ * the player is muted.
5276
+ */
5277
+ getChannels(locale?: string): Promise<OperationResult<ChatChannelsResponse>>;
5278
+ /**
5279
+ * What is new in every room since the last poll.
5280
+ *
5281
+ * Cursors are remembered by the service, so the usual call is `poll()` with no arguments.
5282
+ * New messages are emitted as `chat:messages` as well as returned.
5283
+ */
5284
+ poll(locale?: string): Promise<OperationResult<ChatPollResponse>>;
5285
+ /** A page of history, newest first. Pass the previous page's `NextBefore` to go further back. */
5286
+ getHistory(roomID: string, before?: ChatCursor, limit?: number): Promise<OperationResult<ChatHistoryResponse>>;
5287
+ /** Sends to a catalog channel. For a conversation use {@link sendDirect}. */
5288
+ sendMessage(channelID: string, text: string, locale?: string): Promise<OperationResult<ChatSendResponse>>;
5289
+ /**
5290
+ * Sends into a conversation.
5291
+ *
5292
+ * ⚠ Render `result.data.Message.Text`, not the string you passed in: with `Mask` moderation
5293
+ * the server returns the message with the offending word starred out, and showing the original
5294
+ * would put text on screen that nobody else can see.
5295
+ */
5296
+ sendDirect(roomID: string, text: string): Promise<OperationResult<ChatSendResponse>>;
5297
+ /** Opens (or returns) the conversation with another player. */
5298
+ openDirectChannel(targetUserID: string): Promise<OperationResult<ChatDirectChannelResponse>>;
5299
+ /** Conversations of this player, most recent first, each with its last message. */
5300
+ getConversations(): Promise<OperationResult<ChatConversationsResponse>>;
5301
+ /**
5302
+ * Marks a room read up to a message.
5303
+ *
5304
+ * ⚠ The ONLY thing that clears an unread badge — polling deliberately does not. Call it when
5305
+ * the player is actually looking at the room, not when the app merely fetched it.
5306
+ *
5307
+ * ⚠⚠ **With no cursor to fall back on, the server marks the room read up to NOW** — including
5308
+ * messages that arrived while the screen was opening and were never rendered. Those messages
5309
+ * then never arrive: the next poll starts from the cursor you just moved past them. So pass
5310
+ * `upTo` (or poll the room first) when you open a room; calling `markRead(roomID)` on a room
5311
+ * this service has never polled silently swallows whatever is newer than what you displayed.
5312
+ */
5313
+ markRead(roomID: string, upTo?: ChatCursor): Promise<OperationResult<ChatStateResponse>>;
5314
+ /** Joins an opt-in channel (one whose `JoinedByDefault` is false). */
5315
+ joinChannel(channelID: string): Promise<OperationResult<ChatStateResponse>>;
5316
+ /** Leaves a channel. It stays gone until the player joins again. */
5317
+ leaveChannel(channelID: string): Promise<OperationResult<ChatStateResponse>>;
5318
+ /**
5319
+ * Reports a message to the publisher.
5320
+ *
5321
+ * A repeat report of the same message succeeds with `AlreadyReported` — show a confirmation,
5322
+ * not an error: the player is being persistent, not wrong.
5323
+ */
5324
+ reportMessage(roomID: string, messageID: string, reason: ChatReportReason, comment?: string): Promise<OperationResult<ChatReportResponse>>;
5325
+ /**
5326
+ * Hides another player's messages for this player.
5327
+ *
5328
+ * One-sided and invisible to the other side: he can still post, and his messages simply stop
5329
+ * being delivered here. Filtering happens on the SERVER, so nothing arrives to be filtered.
5330
+ */
5331
+ ignoreUser(targetUserID: string): Promise<OperationResult<ChatStateResponse>>;
5332
+ /** Removes a player from the ignore list. */
5333
+ unignoreUser(targetUserID: string): Promise<OperationResult<ChatStateResponse>>;
5334
+ /** Forgets the remembered cursors — use it when switching account or leaving the screen. */
5335
+ resetCursors(): void;
5336
+ private baseRequest;
5337
+ }
5338
+
5339
+ /** Options of {@link PushService.subscribe}. */
5340
+ interface PushSubscribeOptions {
5341
+ /**
5342
+ * Where the service worker script lives, resolved against the page.
5343
+ *
5344
+ * Default `"./sw.js"` — deliberately RELATIVE. A hosted build lives at
5345
+ * `cloud.idosgames.com/drive/app/{titleID}/`, so a leading slash would point at another game's
5346
+ * folder; relative also gives the registration a scope of exactly this game's directory, which
5347
+ * is what makes one endpoint per title possible on a shared origin.
5348
+ */
5349
+ swPath?: string;
5350
+ /** Overrides `navigator.language`. */
5351
+ locale?: string;
5352
+ }
5353
+ /**
5354
+ * Push notifications: getting this browser (or, in the portal, this player) subscribed.
5355
+ *
5356
+ * **The one rule that matters more than the rest of this file:** `subscribe()` must be called
5357
+ * from a real tap, and never on load. Browsers reject `Notification.requestPermission()` outside
5358
+ * a user gesture, and Chrome permanently blocks an origin after a few dismissals — so an
5359
+ * automatic prompt does not merely fail, it takes away the player's ability to ever say yes.
5360
+ *
5361
+ * **Draw the button from {@link getState}, not from a guess.** Four of its five values mean "no
5362
+ * button", each for a different reason: `unsupported` (no keys, or a browser without the Push
5363
+ * API), `blocked` (irreversible from code — only the browser's own settings undo it), `embedded`
5364
+ * (see below) and `subscribed`.
5365
+ *
5366
+ * ⚠⚠ **Inside the portal this works differently, and the difference is not fixable.** A game on
5367
+ * `idosgames.com/app/{id}` runs in a cross-origin iframe, where the browser blocks the permission
5368
+ * prompt outright. `subscribe()` therefore asks the WEBSITE to do it on its own top-level
5369
+ * document; the site writes the row against the player's platform identity, and the engine — this
5370
+ * backend — still does the sending. The player's game id reaches that row on their next platform
5371
+ * sign-in. So a portal subscription is real, it is just not this origin's, and `PushSubscribeResult.Where`
5372
+ * says which happened.
5373
+ *
5374
+ * **What the SDK deliberately does NOT do:**
5375
+ *
5376
+ * - It never computes a subscription's id. That is `sha256(endpoint)` and trivial to reproduce,
5377
+ * but it addresses a shared database that already has two implementations guarded by golden
5378
+ * vectors. A third one, in another language and without those vectors, drifts silently.
5379
+ * - It never ships a service worker. `templates/host-starter/public/sw.js` is a starting point
5380
+ * you own; the only hard requirement is that it must have NO `fetch` handler (see that file).
5381
+ * - It never asks again after `blocked`. There is nothing to ask.
5382
+ */
5383
+ declare class PushService {
5384
+ private readonly ctx;
5385
+ constructor(ctx: ClientContext);
5386
+ private cachedConfig;
5387
+ /**
5388
+ * Public VAPID key and whether subscribing is possible at all.
5389
+ *
5390
+ * ⚠ **Never rejects and never returns an error.** "Could not ask" means exactly what "not
5391
+ * configured" means — no button — and one place should decide that, not every caller.
5392
+ * Memoised for the session; pass `refresh` after the publisher toggles the feature.
5393
+ */
5394
+ getConfig(refresh?: boolean): Promise<PushConfigResponse>;
5395
+ /** What to draw. See the note on {@link PushService} before branching on it. */
5396
+ getState(): Promise<PushPermissionState>;
5397
+ /**
5398
+ * Ask for permission and register this browser with the server.
5399
+ *
5400
+ * ⚠ **From a tap. Always.** See the class note — this is the one call where getting it wrong is
5401
+ * not recoverable by the player.
5402
+ *
5403
+ * Idempotent: an already-subscribed browser re-sends the same endpoint, which refreshes the
5404
+ * row's locale and timezone rather than creating a second one.
5405
+ */
5406
+ subscribe(options?: PushSubscribeOptions): Promise<OperationResult<PushSubscribeResult>>;
5407
+ /**
5408
+ * Stop notifying this browser ABOUT THIS TITLE: in the browser and on the server.
5409
+ *
5410
+ * ⚠ Both halves matter and neither implies the other. Dropping only the server row leaves a
5411
+ * browser that still holds a live endpoint; dropping only the browser one leaves a server row
5412
+ * that keeps being sent to until a push service answers 410.
5413
+ *
5414
+ * ⚠⚠ The server removes THIS TITLE's subscriptions of that device, not the device itself — it
5415
+ * deletes the device only once nothing is bound to it any more. A player of a portal game is
5416
+ * subscribed from idosgames.com, where one browser holds ONE endpoint serving the catalogue,
5417
+ * every other portal game and the creator portal: removing it here would silently cancel all
5418
+ * of that, which the player never asked for and cannot even see from inside this game.
5419
+ * "Unsubscribe from everything" lives on the website, where the whole list is on screen.
5420
+ */
5421
+ unsubscribe(): Promise<OperationResult<SuccessResponse>>;
5422
+ /**
5423
+ * Every device of this player in this title — the "my devices" screen.
5424
+ *
5425
+ * ⚠ Includes devices subscribed from the WEBSITE, not just this origin: one person's phone,
5426
+ * laptop and the portal tab are separate rows, and each is removed by its own `EndpointHash`.
5427
+ */
5428
+ getSubscriptions(): Promise<OperationResult<PushSubscriptionListResponse>>;
5429
+ /**
5430
+ * Stop notifying ONE device about this title, by the id the server issued for it.
5431
+ *
5432
+ * ⚠ Scoped to this title, exactly like {@link unsubscribe} — and it matters more here: this
5433
+ * list includes devices subscribed from the WEBSITE, whose endpoint also serves the catalogue
5434
+ * and every other portal game.
5435
+ */
5436
+ unsubscribeByHash(endpointHash: string): Promise<OperationResult<SuccessResponse>>;
5437
+ /** Whether this browser has the Push API at all. False on any iOS browser before 16.4. */
5438
+ isSupported(): boolean;
5439
+ /**
5440
+ * Whether the game is inside another document — the portal case.
5441
+ *
5442
+ * ⚠ Deliberately does NOT try to read the parent's origin to tell "same-origin iframe" from
5443
+ * "cross-origin": the check would need a try/catch around a security error, and being wrong in
5444
+ * the permissive direction means prompting where prompting is blocked.
5445
+ */
5446
+ isEmbedded(): boolean;
5447
+ private baseRequest;
5448
+ }
5449
+
4523
5450
  /** Значения для подстановки в перевод: `{count}`, `{name}` и т.п. */
4524
5451
  type LocalizationParams = Record<string, string | number>;
4525
5452
  /**
@@ -4767,6 +5694,39 @@ declare class CharacterService {
4767
5694
  equipItems(characterID: string, itemsToEquip: EquipSlotPair[]): Promise<OperationResult<EquipItemsResponse>>;
4768
5695
  unequipItems(characterID: string, slotIDs: string[]): Promise<OperationResult<UnequipItemsResponse>>;
4769
5696
  unequipAllCharacters(): Promise<OperationResult<UnequipAllCharactersResponse>>;
5697
+ /**
5698
+ * Buys a skin from the character screen (the skin's direct sale).
5699
+ *
5700
+ * A skin is an ITEM: this grants one copy of the skin's item and charges the price in one
5701
+ * atomic operation — and any other system that grants items (store offers, lootboxes, season,
5702
+ * quests, rewards) grants skins too. `autoEquip` wears it in the same request; a failed wear
5703
+ * keeps the purchase (see `EquipError`). The refusal `SKIN_ALREADY_OWNED` means the player
5704
+ * already owns a copy — hide the buy button. `payment` is required exactly when the chosen
5705
+ * option is paid in a store.
5706
+ */
5707
+ unlockSkin(characterID: string, skinID: string, options?: {
5708
+ selectedOptionID?: string;
5709
+ payment?: PaymentProof;
5710
+ autoEquip?: boolean;
5711
+ }): Promise<OperationResult<UnlockSkinResponse>>;
5712
+ /**
5713
+ * Wears a skin: the server binds a free copy of the skin's item (or `instanceID`) to
5714
+ * `SKIN_SLOT` and frees the previous skin's copy. Wearing the base look
5715
+ * (`Skins.DefaultSkinID`) removes the skin. `Requirements` gate wearing; owning is never gated.
5716
+ */
5717
+ equipSkin(characterID: string, skinID: string, instanceID?: string): Promise<OperationResult<EquipSkinResponse>>;
5718
+ /** Removes the worn skin (back to the base look). Idempotent: `Cleared` = false when none was worn. */
5719
+ unequipSkin(characterID: string): Promise<OperationResult<UnequipSkinResponse>>;
5720
+ /**
5721
+ * The server-computed skin storefront — a pure read (no writes, no lock). Per skin: owned,
5722
+ * worn, on sale, gate open, wearable, buyable right now, and the prices available on this
5723
+ * platform. Drive the Buy button from `Purchasable`: audience gates (segments, experiments) and
5724
+ * sale windows can't be evaluated honestly on the client. Omit `characterID` for every
5725
+ * character that has skins.
5726
+ */
5727
+ getCharacterSkins(characterID?: string): Promise<OperationResult<GetCharacterSkinsResponse>>;
5728
+ /** Mirrors the worn skin into the cache: it is a regular `Equipment[SKIN_SLOT]` entry. */
5729
+ private applySkinLocally;
4770
5730
  /**
4771
5731
  * Unlock several characters in one atomic operation. Cheaper than N `unlockCharacter`
4772
5732
  * calls; the backend dedupes ids, skips already-owned / non-purchasable ones per item, and
@@ -4827,7 +5787,13 @@ declare class CraftService {
4827
5787
  private readonly ctx;
4828
5788
  constructor(ctx: ClientContext);
4829
5789
  getDefinitions(): Promise<OperationResult<CraftDefinitionsResponse>>;
4830
- craft(craftID: string, inputItemIDs: string[], count?: number, selectedOptionID?: string): Promise<OperationResult<CraftResponse>>;
5790
+ /**
5791
+ * @param inputItemIDs catalog ItemIDs — a template of exactly RequiredItemCount entries.
5792
+ * @param inputInstanceIDs only for a ClientSelected recipe: which instances to burn, one per
5793
+ * unstackable input of the expanded list (template × count), in order. Omit to let the server
5794
+ * pick without touching upgraded copies.
5795
+ */
5796
+ craft(craftID: string, inputItemIDs: string[], count?: number, selectedOptionID?: string, inputInstanceIDs?: string[]): Promise<OperationResult<CraftResponse>>;
4831
5797
  private baseRequest;
4832
5798
  }
4833
5799
 
@@ -5299,6 +6265,14 @@ declare class StoreApi {
5299
6265
  purchaseBatch(request: StoreRequest): Promise<OperationResult<PurchaseBatchResponse>>;
5300
6266
  getDefinitions(request: StoreRequest): Promise<OperationResult<StoreDefinitions>>;
5301
6267
  getUserState(request: StoreRequest): Promise<OperationResult<UserStoreState>>;
6268
+ /**
6269
+ * The shop resolved for this player.
6270
+ *
6271
+ * This is what a shop screen draws. `getDefinitions` returns the CONFIG — the same for
6272
+ * everyone — and from it rotation, badges, timers and remaining limits cannot be derived:
6273
+ * they either depend on the player or must be deterministic on the server.
6274
+ */
6275
+ getStorefront(request: StoreRequest): Promise<OperationResult<GetStorefrontResponse>>;
5302
6276
  }
5303
6277
 
5304
6278
  /** Thin transport wrapper for the Purchase feature (port of PurchaseAPI.cs). */
@@ -5352,6 +6326,49 @@ declare class TutorialApi {
5352
6326
  resetFlow(request: TutorialRequest): Promise<OperationResult<TutorialFlowResponse>>;
5353
6327
  }
5354
6328
 
6329
+ /** Thin transport wrapper for Community Marketing (port of CommunityMarketingV2). */
6330
+ declare class CommunityMarketingApi {
6331
+ private readonly ctx;
6332
+ constructor(ctx: ClientContext);
6333
+ private send;
6334
+ getCommunityMarketingState(request: CommunityMarketingRequest): Promise<OperationResult<CommunityMarketingState>>;
6335
+ getEarnings(request: CommunityMarketingRequest): Promise<OperationResult<CommunityEarningsResponse>>;
6336
+ claim(request: CommunityMarketingRequest): Promise<OperationResult<CommunityClaimResponse>>;
6337
+ checkJoinEligibility(request: CommunityMarketingRequest): Promise<OperationResult<CommunityEligibilityResponse>>;
6338
+ withdrawCryptoReward(request: CommunityMarketingRequest): Promise<OperationResult<CommunityWithdrawalResponse>>;
6339
+ }
6340
+
6341
+ /** Thin transport wrapper for the Chat feature (port of ChatV2). */
6342
+ declare class ChatApi {
6343
+ private readonly ctx;
6344
+ constructor(ctx: ClientContext);
6345
+ private send;
6346
+ getChatDefinitions(request: ChatRequest): Promise<OperationResult<ChatDefinitions>>;
6347
+ getChannels(request: ChatRequest): Promise<OperationResult<ChatChannelsResponse>>;
6348
+ poll(request: ChatRequest): Promise<OperationResult<ChatPollResponse>>;
6349
+ getHistory(request: ChatRequest): Promise<OperationResult<ChatHistoryResponse>>;
6350
+ getConversations(request: ChatRequest): Promise<OperationResult<ChatConversationsResponse>>;
6351
+ sendMessage(request: ChatRequest): Promise<OperationResult<ChatSendResponse>>;
6352
+ openDirectChannel(request: ChatRequest): Promise<OperationResult<ChatDirectChannelResponse>>;
6353
+ markRead(request: ChatRequest): Promise<OperationResult<ChatStateResponse>>;
6354
+ joinChannel(request: ChatRequest): Promise<OperationResult<ChatStateResponse>>;
6355
+ leaveChannel(request: ChatRequest): Promise<OperationResult<ChatStateResponse>>;
6356
+ reportMessage(request: ChatRequest): Promise<OperationResult<ChatReportResponse>>;
6357
+ ignoreUser(request: ChatRequest): Promise<OperationResult<ChatStateResponse>>;
6358
+ unignoreUser(request: ChatRequest): Promise<OperationResult<ChatStateResponse>>;
6359
+ }
6360
+
6361
+ /** Thin transport wrapper for push subscriptions (port of PushV2). */
6362
+ declare class PushApi {
6363
+ private readonly ctx;
6364
+ constructor(ctx: ClientContext);
6365
+ private send;
6366
+ getPushConfig(request: PushRequest): Promise<OperationResult<PushConfigResponse>>;
6367
+ subscribePush(request: PushRequest): Promise<OperationResult<PushSubscriptionView>>;
6368
+ unsubscribePush(request: PushRequest): Promise<OperationResult<SuccessResponse>>;
6369
+ getPushSubscriptions(request: PushRequest): Promise<OperationResult<PushSubscriptionListResponse>>;
6370
+ }
6371
+
5355
6372
  /** Thin transport wrapper for the Localization feature (port of LocalizationV2). */
5356
6373
  declare class LocalizationApi {
5357
6374
  private readonly ctx;
@@ -5465,6 +6482,10 @@ declare class CharacterApi {
5465
6482
  unlockCharactersBatch(request: CharacterRequest): Promise<OperationResult<UnlockCharactersBatchResponse>>;
5466
6483
  upgradeCharacterLevelsBatch(request: CharacterRequest): Promise<OperationResult<UpgradeCharacterLevelsBatchResponse>>;
5467
6484
  upgradeStatLevelsBatch(request: CharacterRequest): Promise<OperationResult<UpgradeStatLevelsBatchResponse>>;
6485
+ unlockSkin(request: CharacterRequest): Promise<OperationResult<UnlockSkinResponse>>;
6486
+ equipSkin(request: CharacterRequest): Promise<OperationResult<EquipSkinResponse>>;
6487
+ unequipSkin(request: CharacterRequest): Promise<OperationResult<UnequipSkinResponse>>;
6488
+ getCharacterSkins(request: CharacterRequest): Promise<OperationResult<GetCharacterSkinsResponse>>;
5468
6489
  }
5469
6490
 
5470
6491
  /** Thin transport wrapper for the Match feature (port of MatchAPI.cs). */
@@ -5771,6 +6792,9 @@ declare class ClientContext {
5771
6792
  reward: RewardApi;
5772
6793
  quest: QuestApi;
5773
6794
  tutorial: TutorialApi;
6795
+ communityMarketing: CommunityMarketingApi;
6796
+ chat: ChatApi;
6797
+ push: PushApi;
5774
6798
  localization: LocalizationApi;
5775
6799
  timedEvent: TimedEventApi;
5776
6800
  leaderboard: LeaderboardApi;
@@ -5805,6 +6829,9 @@ declare class ClientContext {
5805
6829
  readonly reward: RewardService;
5806
6830
  readonly quest: QuestService;
5807
6831
  readonly tutorial: TutorialService;
6832
+ readonly communityMarketing: CommunityMarketingService;
6833
+ readonly chat: ChatService;
6834
+ readonly push: PushService;
5808
6835
  readonly localization: LocalizationService;
5809
6836
  readonly timedEvent: TimedEventService;
5810
6837
  readonly leaderboard: LeaderboardService;
@@ -5859,6 +6886,32 @@ declare class IDosGamesClient {
5859
6886
  get quest(): QuestService;
5860
6887
  /** Onboarding flows: start, advance, skip and claim tutorial steps. */
5861
6888
  get tutorial(): TutorialService;
6889
+ /**
6890
+ * Creator reward programme: state, earnings and claiming.
6891
+ *
6892
+ * The programme itself lives in the creator portal on the website — send the player to
6893
+ * `CreatorPortalUrl` from `getState()` rather than building an address, and never try to
6894
+ * submit a post from the game: moderation, metric polling and the accrual maths are owned by
6895
+ * the management backend.
6896
+ */
6897
+ get communityMarketing(): CommunityMarketingService;
6898
+ /**
6899
+ * Player chat: title channels and 1-on-1 conversations.
6900
+ *
6901
+ * Poll with a single `chat.poll()` for ALL rooms, only while the chat screen is open, at the
6902
+ * interval the server hands back — every call is billed against the publisher's API quota.
6903
+ * Polling never clears an unread badge; `chat.markRead()` does.
6904
+ */
6905
+ get chat(): ChatService;
6906
+ /**
6907
+ * Push notifications: subscribing this browser (or, in the portal, this player).
6908
+ *
6909
+ * ⚠ `push.subscribe()` must run from a real tap and NEVER on load. Browsers reject the
6910
+ * permission prompt outside a user gesture, and Chrome permanently blocks an origin after a few
6911
+ * dismissals — an automatic prompt does not just fail, it takes away the player's ability to
6912
+ * ever say yes. Draw the button from `push.getState()`.
6913
+ */
6914
+ get push(): PushService;
5862
6915
  /**
5863
6916
  * Переводы: `t(key)` и смена языка. Загружать ничего не нужно — таблицы приезжают вместе с
5864
6917
  * состоянием на входе в игру.
@@ -6134,4 +7187,4 @@ declare class LocalizationCache {
6134
7187
  private versionsKey;
6135
7188
  }
6136
7189
 
6137
- export { type AcceptTradeOfferResponse, AcquisitionCapture, type ActivateReferralCodeResponse, type ActivateTimedBoostResponse, type ActiveBoostWindowInfo, type ActiveCoopEventInfo, type ActiveDealSlotInfo, type ActiveEventInfo, type ActiveSeasonInfo, type ActiveTimedBoost, type AdConsentSettings, type AdConsentState, type AdCreditsData, type AdDailyData, type AdFraudFlags, type AdFrequencyCappingSettings, type AdPendingRequest, type AdPlacementDefinition, type AdPlacementUserState, type AdProviderDefinition, AdProviderKind, type AdSessionData, AdType, type AdUnitConfig, type AdVerificationSettings, type AddQuestProgressResponse, type AdvertisingDefinitions, type AppOpenSettings, AttackOutcome, type AttackResponse, type AttributionInput, type AuthContext, AuthType, AuthenticationAction, type AuthenticationRequest, AuthenticationService, BannerPosition, type BannerSettings, type BaseRequest, type BatchDeleteUserCustomDataResponse, type BatchGetPublicUserCustomDataResponse, type BatchItemResult, type BatchResponse, type BatchSetUserCustomDataResponse, type BattleResult, type BattleStepConfig, type BlockchainAccountSafetyPolicy, BlockchainAction, type BlockchainConfigResponse, type BlockchainDefinitions, type BlockchainNetworkDefinition, BlockchainNetworkType, type BlockchainNftCollectionBinding, BlockchainOperationCategory, type BlockchainRequest, BlockchainService, type BlockchainStats, type BlockchainSystemState, BlockchainTransactionStatus, BlockchainTransactionType, type BoardLoopDefinition, type BoardLoopState, type BoardPendingInteraction, type BoardRollResponse, BodyPart, type BoostTriggerCounter, BoostWindowKind, BroadcastStatus, type BuildResponse, type BuildingState, type CancelMatchResponse, type CancelTradeOfferResponse, type ChangeUsernameResponse, CharacterAction, type CharacterClassification, type CharacterDefinition, type CharacterDefinitions, type CharacterEquipment, type CharacterEquipmentSlot, type CharacterIdentity, type CharacterLevelRef, type CharacterModel, type CharacterRankLadder, type CharacterRequest, CharacterService, type CharacterStatRef, type CharacterUnequipResult, type CharacterUnlock, CheckoutService, type ClaimAllRewardsBatchResponse, type ClaimAllRewardsResult, type ClaimComebackRewardResponse, type ClaimCycleRewardResponse, type ClaimCycleRewardsBatchResponse, type ClaimDailyRewardResponse, type ClaimDealMilestoneResponse, type ClaimDealMilestonesBatchResponse, type ClaimGrandPrizeResponse, type ClaimGroupCompletionRewardResponse, type ClaimInviteRewardResponse, type ClaimInviteRewardsBatchResponse, type ClaimLeaderboardMilestoneResponse, type ClaimLeaderboardMilestonesBatchResponse, type ClaimMilestoneRewardResponse, type ClaimMilestoneRewardsBatchResponse, type ClaimMilestonesBatchResponse, type ClaimQuestRewardResponse, type ClaimQuestRewardsBatchResponse, type ClaimRewardResponse, type ClaimSetRewardResponse, type ClaimSetRewardsBatchResponse, type ClaimTierRewardResponse, type ClaimTierRewardsBatchResponse, ClientPlatform, type ClientState, CloudCodeAction, CloudCodeErrorCode, type CloudCodeLogEntry, CloudCodeLogLevel, type CloudCodeRequest, CloudCodeRevisionSelection, CloudCodeService, type CodeExecutionError, type CollectIdleAccrualResponse, CollectionAction, type CollectionDefinitions, type CollectionGlobalSettings, type CollectionRequest, CollectionService, type CollectionSetRef, type CollectionTradeOfferDocument, CommissionSink, type CommunityChestClaimResponse, type CommunityChestGroupDocument, type CommunityChestGroupStateResponse, type CommunityChestHistoryEntry, type CommunityChestLeaveResponse, type CommunityChestMember, CommunityChestMemberStatus, type CommunityChestSharedState, CommunityChestStatus, type CommunityChestUserStateResponse, type ConfirmWithdrawalResponse, type ConversionDailyCounter, ConversionRateMode, type ConversionTarget, type ConvertResponse, type CoopBuildObjectsMemberState, type CoopBuildObjectsState, type CoopClaimRewardResponse, CoopEventAction, type CoopEventDefinitions, type CoopEventRequest, CoopEventService, type CoopGroupDocument, type CoopGroupMember, type CoopGroupStateResponse, CoopGroupStatus, type CoopLeaveGroupResponse, CoopMemberStatus, type CoopPartnerObjectState, type CoopSpinResponse, type CoopUserStateResponse, CraftAction, type CraftDefinitions, type CraftDefinitionsResponse, type CraftRequest, type CraftResponse, CraftService, type CraftSingleResult, CraftType, type CreateMatchResponse, type CryptoConvertResponse, type CryptoCurrencyDefinition, type CryptoCurrencyPermissions, type CryptoLimits, type CryptoNetworkBinding, type CryptoShortfall, CurrencyAction, type CurrencyAudit, type CurrencyConversion, type CurrencyDefinitions, type CurrencyRequest, CurrencyService, CurrencyStatus, CurrencyType, CurveInterpolation, type CurvePoint, CurveShape, CustomDataBucket, CustomDataValueType, CustomDataWriter, type CyclicSchedule, DEFAULT_BASE_URL, type DailyUsageRecord, type DealMilestoneProgressInfo, DealNodeRuntimeStatus, DealOfferAction, DealOfferActivationStatus, type DealOfferDefinitions, type DealOfferRequest, DealOfferService, type DealOffersDefinitionResponse, type DeclineTradeOfferResponse, type DepositNFTResponse, type DepositTokenResponse, type DismissDealResponse, type DonationResponse, EnvelopeType, type EquipItemsResponse, type EquipSlotPair, type EquipmentPreset, type EquipmentSlot, type EquippedItem, type EventMap, type EventMilestoneClaimResponse, type EventTokenAddress, type EventTokenConversion, type EventTokenDefinition, type EventTokenGrantResponse, type EventTokenMilestoneData, type EventTokenOperation, type EventTokenSpendResponse, EventTokenType, type ExecuteCloudCodeResponse, type ExecuteNodeResponse, type ExperimentDefinition, type ExperimentDefinitions, type ExperimentVariant, type ExperimentVariantCondition, type FodderConsumedEntry, FodderSelectionMode, FodderValuationMode, type FriendActionResponse, FriendActionStatus, type FriendPublicProfile, type FriendsListResponse, GameLoopAction, type GameLoopDefinitions, type GameLoopRequest, GameLoopService, type GetActiveBoostWindowsResponse, type GetActiveDealsResponse, type GetActiveEventsResponse, type GetActiveTimedBoostsResponse, type GetCharactersResponse, type GetLeaderboardResponse, type GetLeaderboardsBatchResponse, type GetMatchDefinitionsResponse, type GetMilestoneRewardMultiplierResponse, type GetMyProgressResponse, type GetMyUserCustomDataResponse, type GetOverviewBatchResponse, type GetProgressBatchResponse, type GetPublicTitleDataResponse, type GetPublicUserCustomDataResponse, type GetTradeOffersResponse, type GetUserQuestStateResponse, type GetUserTutorialStateResponse, type GrantStatusTokensResponse, type GrantTokensBatchResponse, type GrantedCollectible, type HeistCell, IDosGamesClient, type IDosGamesClientConfig, IDosGamesData, type IDosGamesSettings, type IapProductDefinition, type IapProductPurchaseState, type IapProductRules, IapProductType, IapPurchaseStatus, type IapStore, IapStore$1 as IapStoreValues, type IceServer, type InstantBattleDefinitions, type InstantBattleResponse, type InstantBattleRule, type InterstitialSettings, type InventoryDelta, ItemAction, type ItemCatalog, type ItemDefinition, type ItemDefinitions, type ItemEquipment, type ItemMetadata, type ItemRequest, ItemService, type ItemStats, type ItemTotals, type ItemUpgrade, type ItemUpgradeFodder, type ItemUpgradeRef, type JsonValue, KeyValueStorage, KycStatus, KycTier, LeaderboardAction, type LeaderboardDefinitions, type LeaderboardMilestoneRef, type LeaderboardOverview, type LeaderboardRequest, type LeaderboardScoreRef, LeaderboardService, type LeaderboardUserEntry, type LeaveRoomResponse, type LevelsPreset, type LimitSpec, type LinkedWalletInfo, type Listener, LocalizationAction, LocalizationCache, type LocalizationDefinitions, type LocalizationLocaleDefinition, type LocalizationLocaleInfo, type LocalizationManifestResponse, LocalizationMissingKeyMode, type LocalizationParams, type LocalizationRequest, LocalizationService, type LocalizationState, type LocalizationTableRef, type LocalizationTableResponse, LootboxAction, type LootboxAmountRange, type LootboxDefinitions, type LootboxDefinitionsResponse, type LootboxGlobalSettings, type LootboxOpenResponse, type LootboxPityRule, type LootboxPityTriggerResponse, type LootboxRequest, type LootboxRewardRoll, type LootboxRewardSlot, LootboxService, type LootboxSupplyRule, type MailboxBroadcastDocument, type MailboxDefinition, type MailboxMessageDocument, MailboxMessageSource, MailboxMessageStatus, type MailboxMessageTypeDefinition, type MailboxSegmentDefinition, MarketGoodsType, MarketOfferStatus, MarketOfferType, MarketplaceAction, type MarketplaceActionCounter, type MarketplaceAuctionSettings, type MarketplaceAuctionState, type MarketplaceBidRefund, type MarketplaceBrowseResponse, type MarketplaceBuyOrderSettings, type MarketplaceCommissionOverride, type MarketplaceCommissionPolicy, type MarketplaceCreateOfferResponse, type MarketplaceDefinitions, type MarketplaceDirectTradeSettings, type MarketplaceGetDefinitionsResponse, type MarketplaceGroupedOfferView, type MarketplaceGroupedOffersResponse, type MarketplaceHistoryEntryView, type MarketplaceHistoryResponse, type MarketplaceListingSettings, type MarketplaceMatchingSettings, type MarketplaceMyStateResponse, type MarketplaceOfferResponse, type MarketplaceOfferView, type MarketplacePlaceBidResponse, type MarketplacePricePolicy, type MarketplaceRequest, MarketplaceService, type MarketplaceSettlementResponse, type MarketplaceTradabilityPolicy, MatchAction, type MatchDefinitions, type MatchRequest, MatchService, MatchStatus, type MatchesPageResponse, type MilestoneClaimEntry, type MilestoneClaimRef, type MilestoneDefinition, MultiplayerAction, MultiplayerChatMode, type MultiplayerDefinitions, type MultiplayerRequest, MultiplayerService, type MultiplayerSystemState, MultiplayerTopology, type NFTModel, type NFTNetworkBinding, type NFTTransactionDocument, type NFTWithdrawalResponse, type NftCollectionStats, type NftStatsContainer, type OpenCollectionChestResponse, type OpenPackResponse, type OperationFailure, type OperationFailureReason, type OperationResult, type OperationSuccess, type PackOpenResult, type PaymentProof, type PaymentRequirement, type PendingWithdrawalRef, PlatformAdapter, type PlatformBlockchainState, type PlatformLoginResponse, type PlayerEconomyTuningState, PlaytimeTracker, type PollResponse, PremiumAction, type PremiumAdReduction, type PremiumDefinitions, type PremiumDefinitionsResponse, type PremiumPurchaseResponse, type PremiumRequest, PremiumService, type PremiumStateResponse, type PremiumSubscription, type PriceOption, type PriceOptions, type PublishResponse, PurchaseAction, type PurchaseBatchResponse, type PurchaseDefinitions, type PurchaseReceiptRef, type PurchaseRequest, PurchaseService, type PurchaseValidationBatchResponse, type PurchaseValidationResponse, type PvPMatch, QuestAction, type QuestAvailability, type QuestClaimRef, type QuestCycleDefinition, type QuestDefinition, type QuestDefinitions, type QuestGroupCompletionDefinition, type QuestIdentity, type QuestLinking, type QuestObjectiveDefinition, QuestObjectiveSource, type QuestPhaseDefinition, type QuestPointsTrackView, QuestPrerequisiteMode, type QuestPresetBindings, type QuestPresetRegistry, type QuestProgressUpdate, type QuestRequest, type QuestReward, QuestService, QuestStatus, RaidMode, type RaidResponse, type RealtimeEnvelope, type RechargeConfig, type RecordShowResponse, ReferralAction, type ReferralDefinitions, type ReferralDefinitionsResponse, type ReferralInviteRewardState, type ReferralRequest, ReferralService, type RelativeWindow, type ResourceBundle, type ResourceConsume, type ResourceDualPartyResult, type ResourceEntry, ResourceEntryType, type ResourceGrant, type ResourceOperation, type ResourceTransferResult, type RetryWithdrawalResponse, RewardAction, type RewardDefinitions, type RewardDefinitionsResponse, type RewardRequest, RewardService, type RewardedVideoSettings, type RollActionData, type RoomListItem, type RoomMemberView, type RoomSnapshotResponse, RoomVisibility, type RoomsPageResponse, type ScalarCurveSpec, type ScheduleChain, type ScheduleChainPhase, ScheduleMode, type ScheduleSpec, type ScheduledWindow, type SdkEvents, SeasonAction, type SeasonDefinitions, type SeasonRequest, SeasonService, type SeasonTierRewardBundle, type SeasonTierRewardMultiplier, type SeasonTierRewardSet, type SegmentGate, type SendTradeOfferResponse, type SetUserCustomDataResponse, type SettingsInput, SocialAction, type SocialCounters, type SocialRequest, SocialService, type SocialTimelineEvent, type SolanaWithdrawalSignature, type SpecialApplyMultiplierResponse, SpecialChoiceMode, type SpecialChooseResponse, type SpecialClaimResponse, type SpecialModeOfferData, type SpecialPendingState, type SpendRewardDefinition, type SpendTokensBatchResponse, type SsoCodeFromUrl, type StatDefinition, type StatRequirement, type StatsPreset, StoreAction, type StoreDefinitions, type StorePurchaseRef, type StorePurchaseResponse, type StorePurchaseState, type StoreRequest, StoreService, StoreType, type StoredLocalizationTable, type SubmitScoreResponse, type SubmitScoresBatchResponse, type SuccessResponse, TimedBoostAction, type TimedBoostDefinitions, type TimedBoostRequest, TimedBoostService, TimedBoostStackingPolicy, TimedEventAction, type TimedEventDefinitions, type TimedEventGrantRef, type TimedEventInstanceRef, type TimedEventMilestoneRef, type TimedEventRequest, TimedEventService, type TimedEventSpendRef, TimelineEventType, type TimelineResponse, TitleAction, TitleConfig, TitleCustomDataAction, type TitleCustomDataDefinitions, type TitleCustomDataKeyDefinition, type TitleCustomDataRecord, type TitleCustomDataRequest, TitleCustomDataService, TitleDataBucket, TitleDataScope, type TitlePublicConfigurationModel, type TitleRequest, TitleService, type TokenCurrencyStats, type TokenStatsContainer, type TokenTransactionDocument, type TokenWithdrawalResponse, TradeOfferStatus, TransactionDirection, type TransactionHistoryResponse, type TriggerContext, type TriggerSource, TutorialAction, type TutorialAvailability, type TutorialBlockingPolicy, TutorialBoardAction, type TutorialBoardScript, type TutorialClaimResponse, type TutorialDefinitions, type TutorialFlowBatchResponse, type TutorialFlowDefinition, type TutorialFlowPolicy, type TutorialFlowResponse, TutorialFlowStatus, type TutorialFlowView, type TutorialGateCondition, TutorialGateMode, type TutorialGlobalSettings, type TutorialIdentity, type TutorialPresetBindings, type TutorialPresetRegistry, type TutorialRequest, TutorialRestartPolicy, type TutorialReward, TutorialScriptModule, type TutorialScriptedOutcome, type TutorialStepCompletion, TutorialStepCompletionMode, type TutorialStepDefinition, type TutorialStepEffects, type TutorialStepIdentity, type TutorialStepPolicy, type TutorialStepProgress, TypedEmitter, type UnequipAllCharactersResponse, type UnequipItemsResponse, type UnlockCharacterResponse, type UnlockCharactersBatchResponse, type UnstackableItemInstanceState, type Unsubscribe, type UpdateMatchResponse, type UpgradeCharacterLevelResponse, type UpgradeCharacterLevelsBatchResponse, type UpgradeItemLevelResponse, type UpgradeLevelsBatchResponse, type UpgradeLevelsOptions, type UpgradeStatLevelResponse, type UpgradeStatLevelsBatchResponse, type UsagePeriodRecord, type UsageReactivationEvent, type UsageTimeStats, type UseCollectibleJokerResponse, UserAction, type UserAdvertisingState, type UserBlockchainState, type UserBlockchainStateResponse, type UserCharactersState, type UserClaimRewardState, type UserCollectionState, type UserComebackState, type UserCommunityChestState, type UserCoopEventState, type UserCryptoComplianceCounters, type UserCryptoCurrencyState, UserCustomDataAction, type UserCustomDataBatchDeleteItem, type UserCustomDataBatchSetItem, type UserCustomDataDefinitions, type UserCustomDataKeyDefinition, type UserCustomDataRecord, type UserCustomDataRequest, UserCustomDataService, type UserCustomDataState, type UserDailyCalendarState, type UserDailyCounters, UserData, type UserDealNodeLifetimeCounts, type UserDealNodeState, type UserDealOfferActivationState, type UserDealOfferHistory, type UserDealOffersState, type UserDealOffersStateResponse, type UserDealSlotState, type UserDealTrackState, type UserDepositAddress, type UserEventTokenProgress, type UserEventTokensState, type UserGameLoopsState, type UserIdleAccrualState, type UserInventoryState, type UserKycState, type UserLeaderboardProgress, type UserLeaderboardsState, type UserLootboxPityCounter, type UserLootboxState, type UserMailboxState, type UserMarketplaceState, type UserMatchCreationLimitState, type UserMatchState, type UserPremiumState, type UserPublicDataModel, type UserPurchaseState, type UserQuestCycleState, type UserQuestObjectiveProgress, type UserQuestProgress, type UserQuestState, type UserReferralState, type UserReferralStateResponse, type UserRequest, type UserRewardState, type UserRewardsStateResponse, type UserSeasonState, type UserSeasonStateResponse, type UserSeasonsState, UserService, type UserSocialState, type UserState, type UserStateSlice, type UserStateVersions, type UserStoreState, type UserTimedBoostsState, type UserTimedEventStateResponse, type UserTutorialFlowState, type UserTutorialState, type UserTutorialStepState, type UserUsageState, type UserVirtualCurrencyState, type VirtualCurrencyDefinition, type VirtualCurrencyEconomy, type VirtualCurrencyPermissions, type WalletChallengeResponse, WalletLinkType, type WithdrawalSignatureResponse, type WithdrawalSplit, beginSsoRedirect, claimedMilestoneIDs, createIDosGamesClient, curveMultiplier, evaluateCurve, grantedPremiumTiers, isCurveConfigured, isFail, isMilestoneClaimed, isOk, normalizeBlockchainCategory, readSsoCodeFromUrl, roundAmount, zPaymentProof, zPriceOption, zPriceOptions };
7190
+ export { type AcceptTradeOfferResponse, AcquisitionCapture, type ActivateReferralCodeResponse, type ActivateTimedBoostResponse, type ActiveBoostWindowInfo, type ActiveCoopEventInfo, type ActiveDealSlotInfo, type ActiveEventInfo, type ActiveSeasonInfo, type ActiveTimedBoost, type AdConsentSettings, type AdConsentState, type AdCreditsData, type AdDailyData, type AdFraudFlags, type AdFrequencyCappingSettings, type AdPendingRequest, type AdPlacementDefinition, type AdPlacementUserState, type AdProviderDefinition, AdProviderKind, type AdSessionData, AdType, type AdUnitConfig, type AdVerificationSettings, type AddQuestProgressResponse, type AdvertisingDefinitions, type AppOpenSettings, AttackOutcome, type AttackResponse, type AttributionInput, type AuthContext, AuthType, AuthenticationAction, type AuthenticationRequest, AuthenticationService, BannerPosition, type BannerSettings, type BaseRequest, type BatchDeleteUserCustomDataResponse, type BatchGetPublicUserCustomDataResponse, type BatchItemResult, type BatchResponse, type BatchSetUserCustomDataResponse, type BattleResult, type BattleStepConfig, type BlockchainAccountSafetyPolicy, BlockchainAction, type BlockchainConfigResponse, type BlockchainDefinitions, type BlockchainNetworkDefinition, BlockchainNetworkType, type BlockchainNftCollectionBinding, BlockchainOperationCategory, type BlockchainRequest, BlockchainService, type BlockchainStats, type BlockchainSystemState, BlockchainTransactionStatus, BlockchainTransactionType, type BoardLoopDefinition, type BoardLoopState, type BoardPendingInteraction, type BoardRollResponse, BodyPart, type BoostTriggerCounter, BoostWindowKind, BroadcastStatus, type BuildResponse, type BuildingState, type CancelMatchResponse, type CancelTradeOfferResponse, type ChangeUsernameResponse, CharacterAction, type CharacterClassification, type CharacterDefinition, type CharacterDefinitions, type CharacterEquipment, type CharacterEquipmentSlot, type CharacterIdentity, type CharacterLevelRef, type CharacterModel, type CharacterRankLadder, type CharacterRequest, CharacterService, type CharacterSkinDefinition, type CharacterSkinItem, type CharacterSkinRequirements, type CharacterSkinSale, type CharacterSkinView, type CharacterSkins, type CharacterSkinsView, type CharacterStatRef, type CharacterUnequipResult, type CharacterUnlock, ChatAction, ChatAuthorType, ChatBlockedTermAction, type ChatChannelAvailability, type ChatChannelDefinition, type ChatChannelIdentity, type ChatChannelPresetBindings, type ChatChannelRetention, ChatChannelType, type ChatChannelView, type ChatChannelWriteRules, type ChatChannelsResponse, type ChatConversationView, type ChatConversationsResponse, type ChatCursor, type ChatDefinitions, ChatDirectAudience, type ChatDirectChannelResponse, type ChatHistoryResponse, type ChatMessageView, type ChatModerationSettings, ChatPartitioning, type ChatPollResponse, type ChatPollingSettings, type ChatPresetRegistry, ChatReportReason, type ChatReportResponse, type ChatRequest, type ChatRoomUpdate, type ChatSendResponse, type ChatStateResponse, CheckoutService, type ClaimAllRewardsBatchResponse, type ClaimAllRewardsResult, type ClaimComebackRewardResponse, type ClaimCycleRewardResponse, type ClaimCycleRewardsBatchResponse, type ClaimDailyRewardResponse, type ClaimDealMilestoneResponse, type ClaimDealMilestonesBatchResponse, type ClaimGrandPrizeResponse, type ClaimGroupCompletionRewardResponse, type ClaimInviteRewardResponse, type ClaimInviteRewardsBatchResponse, type ClaimLeaderboardMilestoneResponse, type ClaimLeaderboardMilestonesBatchResponse, type ClaimMilestoneRewardResponse, type ClaimMilestoneRewardsBatchResponse, type ClaimMilestonesBatchResponse, type ClaimQuestRewardResponse, type ClaimQuestRewardsBatchResponse, type ClaimRewardResponse, type ClaimSetRewardResponse, type ClaimSetRewardsBatchResponse, type ClaimTierRewardResponse, type ClaimTierRewardsBatchResponse, ClientPlatform, type ClientState, CloudCodeAction, CloudCodeErrorCode, type CloudCodeLogEntry, CloudCodeLogLevel, type CloudCodeRequest, CloudCodeRevisionSelection, CloudCodeService, type CodeExecutionError, type CollectIdleAccrualResponse, CollectionAction, type CollectionDefinitions, type CollectionGlobalSettings, type CollectionRequest, CollectionService, type CollectionSetRef, type CollectionTradeOfferDocument, CommissionSink, type CommunityAccrualLine, type CommunityCampaignSummary, type CommunityChestClaimResponse, type CommunityChestGroupDocument, type CommunityChestGroupStateResponse, type CommunityChestHistoryEntry, type CommunityChestLeaveResponse, type CommunityChestMember, CommunityChestMemberStatus, type CommunityChestSharedState, CommunityChestStatus, type CommunityChestUserStateResponse, type CommunityClaimResponse, CommunityCreatorStatus, type CommunityEarningsLine, type CommunityEarningsResponse, type CommunityEligibilityCondition, type CommunityEligibilityResponse, CommunityMarketingAction, type CommunityMarketingRequest, type CommunityMarketingState, CommunityMetricKind, CommunityParticipationMode, CommunityPayoutCurrencyKind, type CommunityPayoutSummary, type CommunitySolanaWithdrawalSignature, type CommunityWithdrawalResponse, type ConfirmWithdrawalResponse, type ConversionDailyCounter, ConversionRateMode, type ConversionTarget, type ConvertResponse, type CoopBuildObjectsMemberState, type CoopBuildObjectsState, type CoopClaimRewardResponse, CoopEventAction, type CoopEventDefinitions, type CoopEventRequest, CoopEventService, type CoopGroupDocument, type CoopGroupMember, type CoopGroupStateResponse, CoopGroupStatus, type CoopLeaveGroupResponse, CoopMemberStatus, type CoopPartnerObjectState, type CoopSpinResponse, type CoopUserStateResponse, CraftAction, type CraftBurnedInstance, type CraftDefinition, type CraftDefinitions, type CraftDefinitionsResponse, CraftInputSelectionMode, CraftOutputLevelMode, CraftOutputLevelOverflow, type CraftRequest, type CraftResponse, CraftService, type CraftSingleResult, CraftType, type CreateMatchResponse, type CryptoConvertResponse, type CryptoCurrencyDefinition, type CryptoCurrencyPermissions, type CryptoLimits, type CryptoNetworkBinding, type CryptoShortfall, CurrencyAction, type CurrencyAudit, type CurrencyConversion, type CurrencyDefinitions, type CurrencyRequest, CurrencyService, CurrencyStatus, CurrencyType, CurveInterpolation, type CurvePoint, CurveShape, CustomDataBucket, CustomDataValueType, CustomDataWriter, type CyclicSchedule, DEFAULT_BASE_URL, type DailyUsageRecord, type DealAvailability, DealComparisonOperator, type DealIdentity, type DealMilestoneBlock, type DealMilestoneProgressInfo, type DealNodeActionDefinition, type DealNodeDefinition, type DealNodePresetBindings, type DealNodePricing, type DealNodeReward, DealNodeRuntimeStatus, DealNodeType, type DealNodeUnlockRules, DealOfferAction, DealOfferActivationStatus, type DealOfferDefinition, type DealOfferDefinitions, type DealOfferGraph, type DealOfferPresetBindings, type DealOfferPresetRegistry, type DealOfferRequest, DealOfferService, type DealOffersDefinitionResponse, type DealRewardedVideoActionDefinition, type DealSlotBehaviour, type DealSlotDefinition, type DealSlotPresetBindings, type DealSlotQueueEntry, type DealTrackChange, type DealTrackDefinition, type DealTrackRequirement, type DeclineTradeOfferResponse, type DepositNFTResponse, type DepositTokenResponse, type DirectMessageSettings, type DismissDealResponse, type DonationResponse, EnvelopeType, type EquipItemsResponse, type EquipSkinResponse, type EquipSlotPair, type EquipmentPreset, type EquipmentSlot, type EquippedItem, type EventMap, type EventMilestoneClaimResponse, type EventTokenAddress, type EventTokenConversion, type EventTokenDefinition, type EventTokenGrantResponse, type EventTokenMilestoneData, type EventTokenOperation, type EventTokenSpendResponse, EventTokenType, type ExecuteCloudCodeResponse, type ExecuteNodeResponse, type ExperimentDefinition, type ExperimentDefinitions, type ExperimentVariant, type ExperimentVariantCondition, type FodderConsumedEntry, FodderSelectionMode, FodderValuationMode, type FriendActionResponse, FriendActionStatus, type FriendPublicProfile, type FriendsListResponse, GameLoopAction, type GameLoopDefinitions, type GameLoopRequest, GameLoopService, type GetActiveBoostWindowsResponse, type GetActiveDealsResponse, type GetActiveEventsResponse, type GetActiveTimedBoostsResponse, type GetCharacterSkinsResponse, type GetCharactersResponse, type GetLeaderboardResponse, type GetLeaderboardsBatchResponse, type GetMatchDefinitionsResponse, type GetMilestoneRewardMultiplierResponse, type GetMyProgressResponse, type GetMyUserCustomDataResponse, type GetOverviewBatchResponse, type GetProgressBatchResponse, type GetPublicTitleDataResponse, type GetPublicUserCustomDataResponse, type GetStorefrontResponse, type GetTradeOffersResponse, type GetUserQuestStateResponse, type GetUserTutorialStateResponse, type GrantStatusTokensResponse, type GrantTokensBatchResponse, type GrantedCollectible, type HeistCell, IDosGamesClient, type IDosGamesClientConfig, IDosGamesData, type IDosGamesSettings, type IapProductDefinition, type IapProductPurchaseState, type IapProductRules, IapProductType, IapPurchaseStatus, type IapStore, IapStore$1 as IapStoreValues, type IceServer, type InstantBattleDefinitions, type InstantBattleResponse, type InstantBattleRule, type InterstitialSettings, type InventoryDelta, ItemAction, type ItemCatalog, type ItemDefinition, type ItemDefinitions, type ItemEquipment, type ItemMetadata, type ItemRequest, ItemService, type ItemStats, type ItemTotals, type ItemUpgrade, type ItemUpgradeFodder, type ItemUpgradeRef, type JsonValue, KeyValueStorage, KycStatus, KycTier, LeaderboardAction, type LeaderboardDefinitions, type LeaderboardMilestoneRef, type LeaderboardOverview, type LeaderboardRequest, type LeaderboardScoreRef, LeaderboardService, type LeaderboardUserEntry, type LeaveRoomResponse, type LevelsPreset, type LimitSpec, type LinkedWalletInfo, type Listener, LocalizationAction, LocalizationCache, type LocalizationDefinitions, type LocalizationLocaleDefinition, type LocalizationLocaleInfo, type LocalizationManifestResponse, LocalizationMissingKeyMode, type LocalizationParams, type LocalizationRequest, LocalizationService, type LocalizationState, type LocalizationTableRef, type LocalizationTableResponse, LootboxAction, type LootboxAmountRange, type LootboxDefinitions, type LootboxDefinitionsResponse, type LootboxGlobalSettings, type LootboxOpenResponse, type LootboxPityRule, type LootboxPityTriggerResponse, type LootboxRequest, type LootboxRewardRoll, type LootboxRewardSlot, LootboxService, type LootboxSupplyRule, type MailboxBroadcastDocument, type MailboxDefinition, type MailboxMessageDocument, MailboxMessageSource, MailboxMessageStatus, type MailboxMessageTypeDefinition, type MailboxSegmentDefinition, MarketGoodsType, MarketOfferStatus, MarketOfferType, MarketplaceAction, type MarketplaceActionCounter, type MarketplaceAuctionSettings, type MarketplaceAuctionState, type MarketplaceBidRefund, type MarketplaceBrowseResponse, type MarketplaceBuyOrderSettings, type MarketplaceCommissionOverride, type MarketplaceCommissionPolicy, type MarketplaceCreateOfferResponse, type MarketplaceDefinitions, type MarketplaceDirectTradeSettings, type MarketplaceGetDefinitionsResponse, type MarketplaceGroupedOfferView, type MarketplaceGroupedOffersResponse, type MarketplaceHistoryEntryView, type MarketplaceHistoryResponse, type MarketplaceListingSettings, type MarketplaceMatchingSettings, type MarketplaceMyStateResponse, type MarketplaceOfferResponse, type MarketplaceOfferView, type MarketplacePlaceBidResponse, type MarketplacePricePolicy, type MarketplaceRequest, MarketplaceService, type MarketplaceSettlementResponse, type MarketplaceTradabilityPolicy, MatchAction, type MatchDefinitions, type MatchRequest, MatchService, MatchStatus, type MatchesPageResponse, type MilestoneClaimEntry, type MilestoneClaimRef, type MilestoneDefinition, MultiplayerAction, MultiplayerChatMode, type MultiplayerDefinitions, type MultiplayerRequest, MultiplayerService, type MultiplayerSystemState, MultiplayerTopology, type NFTModel, type NFTNetworkBinding, type NFTTransactionDocument, type NFTWithdrawalResponse, type NftCollectionStats, type NftStatsContainer, OFFER_NOT_IN_ROTATION, type OpenCollectionChestResponse, type OpenPackResponse, type OperationFailure, type OperationFailureReason, type OperationResult, type OperationSuccess, type PackOpenResult, type PaymentProof, type PaymentRequirement, type PendingWithdrawalRef, PlatformAdapter, type PlatformBlockchainState, type PlatformLoginResponse, type PlayerEconomyTuningState, PlaytimeTracker, type PollResponse, PremiumAction, type PremiumAdReduction, type PremiumDefinitions, type PremiumDefinitionsResponse, type PremiumPurchaseResponse, type PremiumRequest, PremiumService, type PremiumStateResponse, type PremiumSubscription, type PriceOption, type PriceOptions, type PublishResponse, PurchaseAction, type PurchaseBatchResponse, type PurchaseDefinitions, type PurchaseReceiptRef, type PurchaseRequest, PurchaseService, type PurchaseValidationBatchResponse, type PurchaseValidationResponse, PushAction, type PushConfigResponse, PushPermissionState, type PushRequest, type PushSubscribeOptions, type PushSubscribeResult, type PushSubscriptionListResponse, type PushSubscriptionView, PushTopic, type PushTopicView, PushTransport, type PvPMatch, QuestAction, type QuestAvailability, type QuestClaimRef, type QuestCycleDefinition, type QuestDefinition, type QuestDefinitions, type QuestGroupCompletionDefinition, type QuestIdentity, type QuestLinking, type QuestObjectiveDefinition, QuestObjectiveSource, type QuestPhaseDefinition, type QuestPointsTrackView, QuestPrerequisiteMode, type QuestPresetBindings, type QuestPresetRegistry, type QuestProgressUpdate, type QuestRequest, type QuestReward, QuestService, QuestStatus, RaidMode, type RaidResponse, type RealtimeEnvelope, type RechargeConfig, type RecordShowResponse, ReferralAction, type ReferralDefinitions, type ReferralDefinitionsResponse, type ReferralInviteRewardState, type ReferralRequest, ReferralService, type RelativeWindow, type ResourceBundle, type ResourceConsume, type ResourceDualPartyResult, type ResourceEntry, ResourceEntryType, type ResourceGrant, type ResourceOperation, type ResourceTransferResult, type RetryWithdrawalResponse, RewardAction, type RewardDefinitions, type RewardDefinitionsResponse, type RewardRequest, RewardService, type RewardedVideoSettings, type RollActionData, type RoomListItem, type RoomMemberView, type RoomSnapshotResponse, RoomVisibility, type RoomsPageResponse, SKIN_ALREADY_OWNED, SKIN_SLOT, type ScalarCurveSpec, type ScheduleChain, type ScheduleChainPhase, ScheduleMode, type ScheduleSpec, type ScheduledWindow, type SdkEvents, SeasonAction, type SeasonDefinitions, type SeasonRequest, SeasonService, type SeasonTierRewardBundle, type SeasonTierRewardMultiplier, type SeasonTierRewardSet, type SegmentGate, type SendTradeOfferResponse, type SetUserCustomDataResponse, type SettingsInput, SocialAction, type SocialCounters, type SocialRequest, SocialService, type SocialTimelineEvent, type SolanaWithdrawalSignature, type SpecialApplyMultiplierResponse, SpecialChoiceMode, type SpecialChooseResponse, type SpecialClaimResponse, type SpecialModeOfferData, type SpecialPendingState, type SpendRewardDefinition, type SpendTokensBatchResponse, type SsoCodeFromUrl, type StatDefinition, type StatRequirement, type StatsPreset, StoreAction, type StoreAvailability, type StoreDefinition, type StoreDefinitions, type StoreIdentity, type StoreLayout, type StoreOfferAvailability, type StoreOfferDefinition, type StoreOfferPricing, type StoreOfferReward, type StoreOfferStateView, type StorePurchaseRef, type StorePurchaseResponse, type StorePurchaseState, type StoreRequest, StoreRotationMode, type StoreRotationPurchaseState, type StoreSectionDefinition, StoreService, type StoreSlotDefinition, type StoreSlotPoolEntry, type StoreSlotRotation, StoreType, type StoredLocalizationTable, type StorefrontOfferView, type StorefrontPriceOptionView, type StorefrontSectionView, type StorefrontSlotView, type StorefrontView, type SubmitScoreResponse, type SubmitScoresBatchResponse, type SuccessResponse, TimedBoostAction, type TimedBoostDefinitions, type TimedBoostRequest, TimedBoostService, TimedBoostStackingPolicy, TimedEventAction, type TimedEventDefinitions, type TimedEventGrantRef, type TimedEventInstanceRef, type TimedEventMilestoneRef, type TimedEventRequest, TimedEventService, type TimedEventSpendRef, TimelineEventType, type TimelineResponse, TitleAction, TitleConfig, TitleCustomDataAction, type TitleCustomDataDefinitions, type TitleCustomDataKeyDefinition, type TitleCustomDataRecord, type TitleCustomDataRequest, TitleCustomDataService, TitleDataBucket, TitleDataScope, type TitlePublicConfigurationModel, type TitleRequest, TitleService, type TokenCurrencyStats, type TokenStatsContainer, type TokenTransactionDocument, type TokenWithdrawalResponse, TradeOfferStatus, TransactionDirection, type TransactionHistoryResponse, type TriggerContext, type TriggerSource, TutorialAction, type TutorialAvailability, type TutorialBlockingPolicy, TutorialBoardAction, type TutorialBoardScript, type TutorialClaimResponse, type TutorialDefinitions, type TutorialFlowBatchResponse, type TutorialFlowDefinition, type TutorialFlowPolicy, type TutorialFlowResponse, TutorialFlowStatus, type TutorialFlowView, type TutorialGateCondition, TutorialGateMode, type TutorialGlobalSettings, type TutorialIdentity, type TutorialPresetBindings, type TutorialPresetRegistry, type TutorialRequest, TutorialRestartPolicy, type TutorialReward, TutorialScriptModule, type TutorialScriptedOutcome, type TutorialStepCompletion, TutorialStepCompletionMode, type TutorialStepDefinition, type TutorialStepEffects, type TutorialStepIdentity, type TutorialStepPolicy, type TutorialStepProgress, TypedEmitter, type UnequipAllCharactersResponse, type UnequipItemsResponse, type UnequipSkinResponse, type UnlockCharacterResponse, type UnlockCharactersBatchResponse, type UnlockSkinResponse, type UnstackableItemInstanceState, type Unsubscribe, type UpdateMatchResponse, type UpgradeCharacterLevelResponse, type UpgradeCharacterLevelsBatchResponse, type UpgradeItemLevelResponse, type UpgradeLevelsBatchResponse, type UpgradeLevelsOptions, type UpgradeStatLevelResponse, type UpgradeStatLevelsBatchResponse, type UsagePeriodRecord, type UsageReactivationEvent, type UsageTimeStats, type UseCollectibleJokerResponse, UserAction, type UserAdvertisingState, type UserBlockchainState, type UserBlockchainStateResponse, type UserCharactersState, type UserChatChannelState, type UserChatLimitState, type UserChatState, type UserClaimRewardState, type UserCollectionState, type UserComebackState, type UserCommunityChestState, type UserCoopEventState, type UserCryptoComplianceCounters, type UserCryptoCurrencyState, UserCustomDataAction, type UserCustomDataBatchDeleteItem, type UserCustomDataBatchSetItem, type UserCustomDataDefinitions, type UserCustomDataKeyDefinition, type UserCustomDataRecord, type UserCustomDataRequest, UserCustomDataService, type UserCustomDataState, type UserDailyCalendarState, type UserDailyCounters, UserData, type UserDealNodeLifetimeCounts, type UserDealNodeState, type UserDealOfferActivationState, type UserDealOfferHistory, type UserDealOffersState, type UserDealOffersStateResponse, type UserDealSlotState, type UserDealTrackState, type UserDepositAddress, type UserEventTokenProgress, type UserEventTokensState, type UserGameLoopsState, type UserIdleAccrualState, type UserInventoryState, type UserKycState, type UserLeaderboardProgress, type UserLeaderboardsState, type UserLootboxPityCounter, type UserLootboxState, type UserMailboxState, type UserMarketplaceState, type UserMatchCreationLimitState, type UserMatchState, type UserPremiumState, type UserPublicDataModel, type UserPurchaseState, type UserQuestCycleState, type UserQuestObjectiveProgress, type UserQuestProgress, type UserQuestState, type UserReferralState, type UserReferralStateResponse, type UserRequest, type UserRewardState, type UserRewardsStateResponse, type UserSeasonState, type UserSeasonStateResponse, type UserSeasonsState, UserService, type UserSocialState, type UserState, type UserStateSlice, type UserStateVersions, type UserStoreState, type UserTimedBoostsState, type UserTimedEventStateResponse, type UserTutorialFlowState, type UserTutorialState, type UserTutorialStepState, type UserUsageState, type UserVirtualCurrencyState, type VirtualCurrencyDefinition, type VirtualCurrencyEconomy, type VirtualCurrencyPermissions, type WalletChallengeResponse, WalletLinkType, type WithdrawalSignatureResponse, type WithdrawalSplit, beginSsoRedirect, claimedMilestoneIDs, createIDosGamesClient, curveMultiplier, evaluateCurve, grantedPremiumTiers, isCurveConfigured, isFail, isMilestoneClaimed, isOk, isReservedSlot, normalizeBlockchainCategory, readSsoCodeFromUrl, roundAmount, zPaymentProof, zPriceOption, zPriceOptions };