@idosgames/core 0.10.0 → 0.11.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.cts 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
529
  type StorePurchaseResponse = { ServerTimeUtc: string; OfferID: string; Count: number; Resources?: null | ResourceOperation; };
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,
@@ -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
 
@@ -725,15 +1028,6 @@ 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; };
737
1031
 
738
1032
  /** One element of a batch action result. */
739
1033
  interface BatchItemResult<T> {
@@ -1368,7 +1662,6 @@ declare const CoopEventAction: {
1368
1662
  readonly LeaveGroup: "LeaveGroup";
1369
1663
  };
1370
1664
  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
1665
 
1373
1666
  /** enum DealOfferActivationStatus — Active | Exhausted | Expired | Dismissed. */
1374
1667
  declare const DealOfferActivationStatus: {
@@ -1399,70 +1692,137 @@ interface UserDealOffersState {
1399
1692
  OfferHistory?: Record<string, UserDealOfferHistory> | null;
1400
1693
  LastUpdatedUtc?: string | null;
1401
1694
  }
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; };
1695
+ /** enum DealNodeType — Purchase | FreeClaim | RewardedVideo | Info. */
1696
+ declare const DealNodeType: {
1697
+ readonly Purchase: "Purchase";
1698
+ readonly FreeClaim: "FreeClaim";
1699
+ readonly RewardedVideo: "RewardedVideo";
1700
+ readonly Info: "Info";
1701
+ };
1702
+ type DealNodeType = (typeof DealNodeType)[keyof typeof DealNodeType];
1703
+ /** enum DealComparisonOperator — Eq | Gte | Lte. */
1704
+ declare const DealComparisonOperator: {
1705
+ readonly Eq: "Eq";
1706
+ readonly Gte: "Gte";
1707
+ readonly Lte: "Lte";
1708
+ };
1709
+ type DealComparisonOperator = (typeof DealComparisonOperator)[keyof typeof DealComparisonOperator];
1710
+ type DealSlotQueueEntry = { Order?: null | number; OfferID?: null | string; DurationSec?: null | number; DelayBeforeActivationSec?: null | number; [key: string]: unknown; };
1711
+ 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; };
1712
+ type DealAvailability = { Schedule?: null | ScheduleSpec; Gate?: null | SegmentGate; [key: string]: unknown; };
1713
+ type DealSlotBehaviour = { AllowDismissSkip?: null | boolean; DismissSkipDelaySec?: null | number; [key: string]: unknown; };
1714
+ type DealSlotPresetBindings = { Identity?: null | PresetBinding; Availability?: null | PresetBinding; Behaviour?: null | PresetBinding; [key: string]: unknown; };
1715
+ 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; };
1716
+ type DealRewardedVideoActionDefinition = { ViewsRequiredToComplete?: null | number; MaxViewsPerActivation?: null | number; GrantRewardsPerView?: null | boolean; [key: string]: unknown; };
1717
+ type DealNodeActionDefinition = { RewardedVideo?: null | DealRewardedVideoActionDefinition; [key: string]: unknown; };
1718
+ type DealTrackRequirement = { TrackID?: null | string; Operator?: null | string; Value?: null | number; [key: string]: unknown; };
1404
1719
  /**
1405
- * Container of preset wiring for an offer — one PresetBinding per block. Inline data (Milestones)
1406
- * lives on DealOfferDefinition. null = presets unused.
1720
+ * Container of preset wiring for an offer — one independent PresetBinding per block.
1721
+ * null = presets unused.
1407
1722
  */
1408
1723
  interface DealOfferPresetBindings {
1724
+ Identity?: PresetBinding | null;
1725
+ Graph?: PresetBinding | null;
1409
1726
  Milestones?: PresetBinding | null;
1410
1727
  }
1728
+ /** Node preset bindings — one independent binding per block. */
1729
+ interface DealNodePresetBindings {
1730
+ Identity?: PresetBinding | null;
1731
+ Pricing?: PresetBinding | null;
1732
+ Reward?: PresetBinding | null;
1733
+ }
1411
1734
  type DealTrackChange = { TrackID?: null | string; Amount?: null | number; RespectBounds?: null | boolean; [key: string]: unknown; };
1412
1735
  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; };
1736
+ type DealNodeUnlockRules = { RequiredCompletedNodeIDs?: null | Array<string>; RequiredAnyCompletedNodeIDs?: null | Array<string>; RequiredTracks?: null | Array<DealTrackRequirement>; VisibleWhileLocked?: null | boolean; [key: string]: unknown; };
1414
1737
  /**
1415
1738
  * A single offer node — an atomic player action (purchase / free claim / watch ad).
1416
1739
  * Hand-written interface + annotated schema to avoid TS7056 (inferred type too long).
1417
1740
  */
1741
+ /**
1742
+ * Node pricing.
1743
+ *
1744
+ * The single place a price is declared, for EVERY node type including RewardedVideo. An entry
1745
+ * can be resources, crypto, a store product (real money, needs a receipt), an ad credit
1746
+ * (`RewardedVideoCredit` — only the server grants those, which is what makes the ad check
1747
+ * structural rather than a flag), or nothing at all, which means FREE.
1748
+ */
1749
+ interface DealNodePricing {
1750
+ Options?: PriceOptions | null;
1751
+ }
1752
+ /** What the node GIVES: reward, offer-local track changes and milestone-bar points. */
1753
+ interface DealNodeReward {
1754
+ Grants?: ResourceGrant | null;
1755
+ TrackChanges?: DealTrackChange[] | null;
1756
+ MilestonePoints?: number | null;
1757
+ }
1418
1758
  interface DealNodeDefinition {
1419
1759
  NodeID?: string | null;
1420
- SortOrder?: number | null;
1421
1760
  Type?: string | null;
1761
+ Identity?: DealIdentity | null;
1762
+ Pricing?: DealNodePricing | null;
1763
+ Reward?: DealNodeReward | null;
1422
1764
  Action?: DealNodeActionDefinition | null;
1423
- Grants?: ResourceGrant | null;
1424
- TrackChanges?: DealTrackChange[] | null;
1425
- MilestonePoints?: number | null;
1426
1765
  UnlockRules?: DealNodeUnlockRules | null;
1427
1766
  NextNodeIDs?: string[] | null;
1428
1767
  ChoiceGroupID?: string | null;
1429
1768
  Limits?: LimitSpec | null;
1430
1769
  HideWhenCompleted?: boolean | null;
1431
1770
  ExhaustOfferOnComplete?: boolean | null;
1432
- AssetPaths?: Record<string, string> | null;
1433
- Metadata?: Record<string, string> | null;
1771
+ Presets?: DealNodePresetBindings | null;
1434
1772
  [key: string]: unknown;
1435
1773
  }
1436
1774
  /**
1437
1775
  * Definition of a single offer — a graph of nodes with rewards, costs and unlock rules.
1438
1776
  * Hand-written interface + annotated schema to avoid TS7056.
1439
1777
  */
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;
1778
+ /**
1779
+ * The offer graph — nodes, roots, offer-local tracks and the exhaustion rule.
1780
+ *
1781
+ * There is no declared graph MODE. The shape (single, chain, branching, choice, metered) is
1782
+ * whatever `RootNodeIDs`, node `NextNodeIDs`, `ChoiceGroupID` and `UnlockRules` describe. Derive
1783
+ * the label if your UI wants one; a declared mode could contradict how the offer really behaves.
1784
+ */
1785
+ interface DealOfferGraph {
1447
1786
  RootNodeIDs?: string[] | null;
1448
1787
  Nodes?: DealNodeDefinition[] | null;
1449
1788
  Tracks?: DealTrackDefinition[] | null;
1789
+ ExhaustedWhenAllTerminalNodesCompleted?: boolean | null;
1790
+ }
1791
+ /**
1792
+ * The offer milestone bar as a WHOLE: tier set, claim mode and points token.
1793
+ *
1794
+ * The three live in one block deliberately. Presetting only the tier dictionary silently lost
1795
+ * the claim mode and the point caps — a shared ladder came back as Instant and uncapped.
1796
+ */
1797
+ interface DealMilestoneBlock {
1450
1798
  Milestones?: Record<string, MilestoneDefinition> | null;
1451
- /** Container of offer preset wiring (currently milestones). null = presets unused. */
1799
+ ClaimMode?: string | null;
1800
+ Token?: EventTokenDefinition | null;
1801
+ }
1802
+ interface DealOfferDefinition {
1803
+ OfferID?: string | null;
1804
+ Version?: number | null;
1805
+ Enabled?: boolean | null;
1806
+ Identity?: DealIdentity | null;
1807
+ Graph?: DealOfferGraph | null;
1808
+ Milestones?: DealMilestoneBlock | null;
1809
+ /** Per-block preset bindings. null = presets unused. */
1452
1810
  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
1811
  [key: string]: unknown;
1459
1812
  }
1460
1813
  /**
1461
1814
  * Root config of the Deal Offers system — slot list + offer library.
1462
1815
  * Hand-written interface + annotated schema to avoid TS7056.
1463
1816
  */
1817
+ /** Preset registry — MIRRORS the block names. Resolved server-side when the config is built. */
1464
1818
  interface DealOfferPresetRegistry {
1465
- Milestones?: Record<string, MilestoneSet> | null;
1819
+ Identity?: Record<string, DealIdentity> | null;
1820
+ Availability?: Record<string, DealAvailability> | null;
1821
+ Behaviour?: Record<string, DealSlotBehaviour> | null;
1822
+ Graph?: Record<string, DealOfferGraph> | null;
1823
+ Milestones?: Record<string, DealMilestoneBlock> | null;
1824
+ Pricing?: Record<string, DealNodePricing> | null;
1825
+ Reward?: Record<string, DealNodeReward> | null;
1466
1826
  }
1467
1827
  interface DealOfferDefinitions {
1468
1828
  Slots?: Record<string, DealSlotDefinition> | null;
@@ -1732,7 +2092,7 @@ declare const CustomDataWriter: {
1732
2092
  readonly System: "System";
1733
2093
  };
1734
2094
  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; };
2095
+ type UserCustomDataRecord = { Value?: null | string; UpdatedAt?: null | string; Version?: null | number; LastWriter?: null | 'System' | 'Client' | 'Server'; ExpiresAt?: null | string; [key: string]: unknown; };
1736
2096
  interface UserCustomDataState {
1737
2097
  Version?: number;
1738
2098
  Private?: Record<string, UserCustomDataRecord>;
@@ -2990,6 +3350,82 @@ interface ItemCatalog {
2990
3350
  interface ItemDefinitions {
2991
3351
  Catalogs?: Record<string, ItemCatalog> | null;
2992
3352
  }
3353
+
3354
+ declare const CommunityParticipationMode: {
3355
+ /** Anyone who passes the gate is in, immediately. */
3356
+ readonly Open: "Open";
3357
+ /** A human approves each applicant. */
3358
+ readonly Application: "Application";
3359
+ };
3360
+ type CommunityParticipationMode = (typeof CommunityParticipationMode)[keyof typeof CommunityParticipationMode];
3361
+ declare const CommunityCreatorStatus: {
3362
+ readonly Pending: "Pending";
3363
+ readonly Approved: "Approved";
3364
+ readonly Rejected: "Rejected";
3365
+ readonly Suspended: "Suspended";
3366
+ /** Left the programme themselves. */
3367
+ readonly Left: "Left";
3368
+ };
3369
+ type CommunityCreatorStatus = (typeof CommunityCreatorStatus)[keyof typeof CommunityCreatorStatus];
3370
+ declare const CommunityPayoutCurrencyKind: {
3371
+ readonly VirtualCurrency: "VirtualCurrency";
3372
+ /**
3373
+ * On-chain currency.
3374
+ *
3375
+ * ⚠ `Claim` REFUSES this kind (`USE_WITHDRAW_FOR_CRYPTO`). A crypto reward never lands on the
3376
+ * in-game balance: it leaves the title's Community Marketing pool bucket straight for the
3377
+ * creator's wallet, through `withdrawCryptoReward`.
3378
+ *
3379
+ * That split is deliberate and load-bearing. An in-game crypto balance promises no payout — the
3380
+ * pool can be empty and the player simply cannot withdraw, by design. A creator whose work was
3381
+ * approved is owed the money regardless. Merge the two and you lose both rules at once.
3382
+ */
3383
+ readonly CryptoCurrency: "CryptoCurrency";
3384
+ };
3385
+ type CommunityPayoutCurrencyKind = (typeof CommunityPayoutCurrencyKind)[keyof typeof CommunityPayoutCurrencyKind];
3386
+ declare const CommunityMetricKind: {
3387
+ readonly Views: "Views";
3388
+ readonly Likes: "Likes";
3389
+ readonly Comments: "Comments";
3390
+ readonly Shares: "Shares";
3391
+ };
3392
+ type CommunityMetricKind = (typeof CommunityMetricKind)[keyof typeof CommunityMetricKind];
3393
+ declare const CommunityMarketingAction: {
3394
+ readonly GetCommunityMarketingState: "GetCommunityMarketingState";
3395
+ readonly GetEarnings: "GetEarnings";
3396
+ readonly Claim: "Claim";
3397
+ /** Crypto rewards only — see {@link CommunityPayoutCurrencyKind.CryptoCurrency}. */
3398
+ readonly WithdrawCryptoReward: "WithdrawCryptoReward";
3399
+ /** Evaluate the publisher's join requirements and, on success, join. */
3400
+ readonly CheckJoinEligibility: "CheckJoinEligibility";
3401
+ };
3402
+ type CommunityMarketingAction = (typeof CommunityMarketingAction)[keyof typeof CommunityMarketingAction];
3403
+ interface CommunityMarketingRequest extends BaseRequest {
3404
+ /** Campaign to read or to claim. */
3405
+ CampaignID?: string;
3406
+ /** Payout history page size. 0 = module default. */
3407
+ Limit?: number;
3408
+ /**
3409
+ * Crypto withdrawal only: how much to send. Empty = everything approved and not yet paid.
3410
+ *
3411
+ * ⚠ A STRING, in the invariant culture — same as an ordinary token withdrawal. A `decimal` in
3412
+ * JSON is parsed differently by locale, and "12.5" would arrive as 125.
3413
+ */
3414
+ Amount?: string;
3415
+ /** Crypto withdrawal only: the wallet the reward is sent to. */
3416
+ WalletAddress?: string;
3417
+ }
3418
+ type CommunityCampaignSummary = z.output<typeof zCommunityCampaignSummary>;
3419
+ type CommunityMarketingState = z.output<typeof zCommunityMarketingState>;
3420
+ type CommunityAccrualLine = z.output<typeof zCommunityAccrualLine>;
3421
+ type CommunityEarningsLine = z.output<typeof zCommunityEarningsLine>;
3422
+ type CommunityPayoutSummary = z.output<typeof zCommunityPayoutSummary>;
3423
+ type CommunityEarningsResponse = z.output<typeof zCommunityEarningsResponse>;
3424
+ type CommunityClaimResponse = z.output<typeof zCommunityClaimResponse>;
3425
+ type CommunityEligibilityCondition = z.output<typeof zCommunityEligibilityCondition>;
3426
+ type CommunityEligibilityResponse = z.output<typeof zCommunityEligibilityResponse>;
3427
+ type CommunitySolanaWithdrawalSignature = z.output<typeof zCommunitySolanaWithdrawalSignature>;
3428
+ type CommunityWithdrawalResponse = z.output<typeof zCommunityWithdrawalResponse>;
2993
3429
  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
3430
  type BonusWindowState = { IsActive?: null | boolean; CurrentPhaseEndUtc?: null | string; NextBonusStartUtc?: null | string; CurrentCycleIndex?: null | number; CurrentPhaseIndex?: null | number; ActiveBonusMultiplier?: null | number; [key: string]: unknown; };
2995
3431
  /**
@@ -3175,7 +3611,7 @@ declare const TitleDataBucket: {
3175
3611
  readonly Private: "Private";
3176
3612
  };
3177
3613
  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; };
3614
+ type TitleCustomDataRecord = { Value?: null | string; UpdatedAt?: null | string; Version?: null | number; LastWriter?: null | 'System' | 'Client' | 'Server'; ExpiresAt?: null | string; [key: string]: unknown; };
3179
3615
  type GetPublicTitleDataResponse = { StaticVersion?: null | number; RuntimeVersion?: null | number; Static?: null | Record<string, TitleCustomDataRecord>; Runtime?: null | Record<string, TitleCustomDataRecord>; NotModified?: null | boolean; };
3180
3616
  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
3617
  /** Title-data schema as served to clients: public-bucket keys plus the title's limits. */
@@ -3297,6 +3733,8 @@ interface SdkEvents {
3297
3733
  "store:offerPurchased": StorePurchaseResponse;
3298
3734
  "store:offersPurchasedBatch": PurchaseBatchResponse;
3299
3735
  "store:definitionsLoaded": StoreDefinitions;
3736
+ /** The shop resolved for this player — this is what a shop screen redraws on. */
3737
+ "store:storefrontLoaded": GetStorefrontResponse;
3300
3738
  "store:userStateLoaded": UserStoreState;
3301
3739
  "lootbox:definitionsLoaded": LootboxDefinitions;
3302
3740
  "lootbox:opened": LootboxOpenResponse;
@@ -3336,6 +3774,54 @@ interface SdkEvents {
3336
3774
  * the response of the action that caused it — subscribe instead of polling the state.
3337
3775
  */
3338
3776
  "tutorial:systemProgress": TutorialStepProgress[];
3777
+ "communityMarketing:stateLoaded": CommunityMarketingState;
3778
+ "communityMarketing:earningsLoaded": CommunityEarningsResponse;
3779
+ /**
3780
+ * ⚠ Fires on ANY successful claim, including one that paid ZERO (less than a whole unit had
3781
+ * matured) and one that was an idempotent replay. Check `Claimed` and `IdempotentReplay`
3782
+ * before congratulating the player.
3783
+ */
3784
+ "communityMarketing:claimed": CommunityClaimResponse;
3785
+ /**
3786
+ * A crypto reward left the programme pool for the creator's wallet.
3787
+ *
3788
+ * ⚠ Fires when the VOUCHER is issued — the pool is already debited at that point, but the
3789
+ * on-chain transaction has not been sent yet, let alone confirmed. Treat it as "payout started",
3790
+ * not "money received"; the wallet leg can still fail, and the request then needs finishing by
3791
+ * `TitleTransactionID` rather than a second withdrawal.
3792
+ */
3793
+ "communityMarketing:withdrawn": CommunityWithdrawalResponse;
3794
+ /**
3795
+ * The join requirements were evaluated.
3796
+ *
3797
+ * ⚠ Fires on every check, passing or not. `Approved` tells you whether THIS check admitted the
3798
+ * creator; `Passed` without `Approved` means the conditions hold but a human had already decided
3799
+ * the application.
3800
+ */
3801
+ "communityMarketing:eligibilityChecked": CommunityEligibilityResponse;
3802
+ "chat:definitionsLoaded": ChatDefinitions;
3803
+ "chat:channelsLoaded": ChatChannelsResponse;
3804
+ /**
3805
+ * New messages in ONE room, emitted once per room per poll. Rooms with nothing new do not
3806
+ * emit — the poll returns them anyway so their cursor stays fresh.
3807
+ */
3808
+ "chat:messages": ChatRoomUpdate;
3809
+ "chat:sent": ChatSendResponse;
3810
+ /** The player marked a room read. Use it to clear the badge in the UI. */
3811
+ "chat:read": {
3812
+ roomID: string;
3813
+ };
3814
+ /** Publisher opt-in and the platform public key, as the server reports them. */
3815
+ "push:configLoaded": PushConfigResponse;
3816
+ /**
3817
+ * This browser is now registered with the server.
3818
+ *
3819
+ * ⚠ Not emitted for a PORTAL subscription: there the row belongs to the website's origin and
3820
+ * the game never sees it. Branch on `PushSubscribeResult.Where` instead of on this event.
3821
+ */
3822
+ "push:subscribed": PushSubscriptionView;
3823
+ /** A device was removed — this one, or another one from the "my devices" list. */
3824
+ "push:unsubscribed": undefined;
3339
3825
  /**
3340
3826
  * Таблица переводов сменилась: игрок вошёл, переключил язык или издатель поправил тексты.
3341
3827
  * Подписка — штатный способ перерисовать уже нарисованные подписи: `t()` синхронна, поэтому
@@ -4228,6 +4714,8 @@ declare class ItemService {
4228
4714
  /** Port of StoreService.cs. */
4229
4715
  declare class StoreService {
4230
4716
  private readonly ctx;
4717
+ private storefront;
4718
+ private storefrontLoadedAt;
4231
4719
  constructor(ctx: ClientContext);
4232
4720
  /**
4233
4721
  * Buys an offer.
@@ -4239,10 +4727,40 @@ declare class StoreService {
4239
4727
  purchase(offerID: string, count?: number, options?: {
4240
4728
  selectedOptionID?: string;
4241
4729
  payment?: PaymentProof;
4730
+ /**
4731
+ * The slot the player tapped. Optional as a whole; pass it when you have it (the
4732
+ * storefront gives you all three) — for a pooled product it removes the ambiguity of
4733
+ * which slot's per-window cap applies. The server re-checks the roll either way.
4734
+ */
4735
+ slot?: {
4736
+ storeID: string;
4737
+ sectionID: string;
4738
+ slotID: string;
4739
+ };
4242
4740
  }): Promise<OperationResult<StorePurchaseResponse>>;
4243
4741
  /** Buy several offers in one atomic operation. Each ref is `{ OfferID, Count }`. */
4244
4742
  purchaseBatch(purchases: StorePurchaseRef[]): Promise<OperationResult<PurchaseBatchResponse>>;
4245
4743
  getDefinitions(): Promise<OperationResult<StoreDefinitions>>;
4744
+ /**
4745
+ * Loads the shop as this player sees it right now, and caches it.
4746
+ *
4747
+ * ⚠ Draw THIS, not `getDefinitions()`. Rotation is recomputed by the server on every read
4748
+ * and is not stored anywhere, so nothing here can be derived on the client: which product
4749
+ * stands in a slot, when the card refreshes, whether the FIRST PURCHASE badge is still lit,
4750
+ * how much of a limit is left.
4751
+ *
4752
+ * ⚠ Count timers down from `ServerTimeUtc`, not from the device clock.
4753
+ */
4754
+ getStorefront(): Promise<OperationResult<GetStorefrontResponse>>;
4755
+ /** The last storefront loaded, or null. Reload it after a purchase and on a refresh timer. */
4756
+ get cachedStorefront(): GetStorefrontResponse | null;
4757
+ /**
4758
+ * The nearest moment any visible slot refreshes, or null when nothing rotates.
4759
+ *
4760
+ * ⚠ This is the only thing the client is allowed to derive from a storefront, and it is
4761
+ * arithmetic on timestamps the server sent — not a second implementation of rotation.
4762
+ */
4763
+ nextRefreshAtUtc(): string | null;
4246
4764
  getUserState(): Promise<OperationResult<UserStoreState>>;
4247
4765
  private baseRequest;
4248
4766
  }
@@ -4520,6 +5038,314 @@ declare class TutorialService {
4520
5038
  private baseRequest;
4521
5039
  }
4522
5040
 
5041
+ /**
5042
+ * Community Marketing: the game's half of the creator reward programme.
5043
+ *
5044
+ * The programme itself — applying, submitting a post, moderation, metric polling and the accrual
5045
+ * maths — lives in the creator portal on the website, not in the game. The game surface is
5046
+ * deliberately three calls:
5047
+ *
5048
+ * 1. `getState()` — is the programme on, is this player in it, and WHERE to send them
5049
+ * (`CreatorPortalUrl`). ⚠ Open that URL, never build one: the address is a server contract.
5050
+ * 2. `getEarnings()` — what the player has earned and why, including the per-work breakdown.
5051
+ * 3. `claim(campaignID)` — hand over the approved game-currency reward, or
5052
+ * `withdrawCryptoReward(...)` for a crypto one.
5053
+ * 4. `checkJoinEligibility()` — only for `Automatic` participation mode: evaluate the
5054
+ * publisher's join requirements against this player and, if they hold, admit them.
5055
+ *
5056
+ * **Four things worth knowing before you draw this screen:**
5057
+ *
5058
+ * - **⚠⚠ `Granted` is the promise; `Earned` and `Mature` are estimates.** The formula recomputes
5059
+ * from metric snapshots, so `Earned` grows with views and DROPS when the platform scrubs fake
5060
+ * activity. It becomes owed money only when a moderator approves it. `Claimable` counts from
5061
+ * `Granted`, never from `Mature` — and a screen that shows only `Earned` will one day show a
5062
+ * number going down with no explanation attached to it.
5063
+ * - **`Claimed: 0` is a success, not a failure.** Payouts are made in whole units, so a player
5064
+ * with 0.4 currency approved gets zero and keeps the 0.4 (`RemainingFraction`). Show that number
5065
+ * — without it the player concludes the platform ate their earnings.
5066
+ * - **`Mature` is not `Earned`.** An accrual matures after the title's hold period, because
5067
+ * social platforms strip fake activity in the first days. Paying earlier would mean paying for
5068
+ * that activity. `HoldDays` comes back with the earnings so the UI can say it out loud.
5069
+ * - **`IdempotentReplay: true` means the money moved on an earlier attempt.** A retried claim is
5070
+ * safe and does not double-pay; say "already paid", not "paid again".
5071
+ */
5072
+ declare class CommunityMarketingService {
5073
+ private readonly ctx;
5074
+ constructor(ctx: ClientContext);
5075
+ /**
5076
+ * Programme state for this player: whether it exists, whether they are a creator, and the
5077
+ * portal address to open.
5078
+ *
5079
+ * ⚠ Answers with a meaningful EMPTY state, not an error, for a player who never joined — that
5080
+ * is the normal case for anyone opening the screen.
5081
+ */
5082
+ getState(): Promise<OperationResult<CommunityMarketingState>>;
5083
+ /**
5084
+ * Earnings with the per-work breakdown.
5085
+ *
5086
+ * @param limit Payout history page size. 0 (default) leaves it to the module.
5087
+ */
5088
+ getEarnings(limit?: number): Promise<OperationResult<CommunityEarningsResponse>>;
5089
+ /**
5090
+ * Claim the APPROVED reward of one campaign, in game currency or items.
5091
+ *
5092
+ * It lands in the player's ordinary balance through the same path as any other reward, so the
5093
+ * usual state refresh applies.
5094
+ *
5095
+ * ⚠ Crypto campaigns are REFUSED here with `USE_WITHDRAW_FOR_CRYPTO` — use
5096
+ * {@link withdrawCryptoReward}. A crypto reward never touches the in-game balance: it leaves
5097
+ * the programme's pool bucket straight for the creator's wallet. That is a deliberate split —
5098
+ * an in-game crypto balance promises no payout (empty pool, no withdrawal, by design), while an
5099
+ * approved creator is owed the money regardless.
5100
+ */
5101
+ claim(campaignID: string): Promise<OperationResult<CommunityClaimResponse>>;
5102
+ /**
5103
+ * Withdraw an approved CRYPTO reward from the programme pool straight to `walletAddress`.
5104
+ *
5105
+ * Returns a server-signed voucher; submitting it on-chain is the wallet's job — the same call
5106
+ * `@idosgames/wallet` already makes for player withdrawals
5107
+ * (`submitEvmTokenWithdrawal(clients, data.EvmSignature)`, then
5108
+ * `client.blockchain.confirmWithdrawal({ TitleTransactionID, TransactionHash })`).
5109
+ *
5110
+ * ⚠⚠ THE POOL IS DEBITED AND THE REQUEST EXISTS THE MOMENT THIS RESOLVES, before anything
5111
+ * reaches the chain — exactly like an ordinary withdrawal. So "it failed, let me press it
5112
+ * again" charges a SECOND time. Keep `TitleTransactionID` and finish the interrupted one with
5113
+ * `confirmWithdrawal` (if the transaction actually landed) or `retryWithdrawal`; never ask for
5114
+ * a fresh voucher.
5115
+ *
5116
+ * ⚠ `amount` is a STRING in the invariant culture, and omitting it means "everything approved
5117
+ * and not yet paid".
5118
+ */
5119
+ withdrawCryptoReward(campaignID: string, walletAddress: string, amount?: string): Promise<OperationResult<CommunityWithdrawalResponse>>;
5120
+ /**
5121
+ * Evaluate the publisher's join requirements and, if they hold, join the programme.
5122
+ *
5123
+ * ⚠ Only meaningful while the programme's participation mode is `Automatic` and the player has
5124
+ * already applied — the application itself is created in the creator portal. In the
5125
+ * by-application mode the check still reports the breakdown but never admits anyone: that
5126
+ * decision belongs to a human.
5127
+ *
5128
+ * ⚠⚠ It never OVERRIDES a human. A creator a publisher rejected or suspended stays that way
5129
+ * even with every condition satisfied — otherwise this call would be "make myself approved".
5130
+ *
5131
+ * ⚠ Render `Conditions` — including on success. The programme pays for work by rules the person
5132
+ * never saw, and a bare "not allowed" reads as arbitrary. Mind that `Actual: null` means NOT
5133
+ * MEASURED, not zero.
5134
+ */
5135
+ checkJoinEligibility(): Promise<OperationResult<CommunityEligibilityResponse>>;
5136
+ private baseRequest;
5137
+ }
5138
+
5139
+ /**
5140
+ * Player chat: persistent title channels and 1-on-1 conversations.
5141
+ *
5142
+ * **Three things to understand before wiring a UI to this.**
5143
+ *
5144
+ * 1. **One poll covers every room.** `poll()` returns updates for ALL rooms the player can see —
5145
+ * channels and open conversations alike. Do not call it per channel: every call is billed
5146
+ * against the publisher's API quota, so a per-channel loop multiplies that bill by the number
5147
+ * of channels on every tick.
5148
+ *
5149
+ * 2. **The interval comes from the server, and you poll only while the chat is open.**
5150
+ * `PollIntervalSeconds` arrives with `getChannels()` and with every poll, and the server may
5151
+ * change it on the fly. When the chat screen is closed, stop polling: the unread badge is
5152
+ * refreshed by `getChannels()` whenever the player opens the screen again.
5153
+ *
5154
+ * 3. **Polling never marks anything read.** That is deliberate — it is what keeps the poll a pure
5155
+ * read on the server. Call `markRead()` when the player actually looks at a room, otherwise
5156
+ * the badge stays lit forever.
5157
+ *
5158
+ * ⚠ `UnreadCount` is nullable and `null` means "not counted" (the server's hot cache was cold),
5159
+ * NOT zero. Render `null` as "unknown" — showing 0 would tell the player there is nothing new
5160
+ * when there might be.
5161
+ */
5162
+ declare class ChatService {
5163
+ private readonly ctx;
5164
+ /** Cursors of the last poll, per room. Kept so the caller does not have to. */
5165
+ private readonly cursors;
5166
+ constructor(ctx: ClientContext);
5167
+ /** Channel catalog of the title (presets already resolved server-side). */
5168
+ getChatDefinitions(): Promise<OperationResult<ChatDefinitions>>;
5169
+ /**
5170
+ * Channels this player can see, with the room each of them resolves to for HIM, whether he
5171
+ * may write, and how much he has not read.
5172
+ *
5173
+ * Call it when the chat screen opens — it is also how you learn the poll interval and whether
5174
+ * the player is muted.
5175
+ */
5176
+ getChannels(locale?: string): Promise<OperationResult<ChatChannelsResponse>>;
5177
+ /**
5178
+ * What is new in every room since the last poll.
5179
+ *
5180
+ * Cursors are remembered by the service, so the usual call is `poll()` with no arguments.
5181
+ * New messages are emitted as `chat:messages` as well as returned.
5182
+ */
5183
+ poll(locale?: string): Promise<OperationResult<ChatPollResponse>>;
5184
+ /** A page of history, newest first. Pass the previous page's `NextBefore` to go further back. */
5185
+ getHistory(roomID: string, before?: ChatCursor, limit?: number): Promise<OperationResult<ChatHistoryResponse>>;
5186
+ /** Sends to a catalog channel. For a conversation use {@link sendDirect}. */
5187
+ sendMessage(channelID: string, text: string, locale?: string): Promise<OperationResult<ChatSendResponse>>;
5188
+ /**
5189
+ * Sends into a conversation.
5190
+ *
5191
+ * ⚠ Render `result.data.Message.Text`, not the string you passed in: with `Mask` moderation
5192
+ * the server returns the message with the offending word starred out, and showing the original
5193
+ * would put text on screen that nobody else can see.
5194
+ */
5195
+ sendDirect(roomID: string, text: string): Promise<OperationResult<ChatSendResponse>>;
5196
+ /** Opens (or returns) the conversation with another player. */
5197
+ openDirectChannel(targetUserID: string): Promise<OperationResult<ChatDirectChannelResponse>>;
5198
+ /** Conversations of this player, most recent first, each with its last message. */
5199
+ getConversations(): Promise<OperationResult<ChatConversationsResponse>>;
5200
+ /**
5201
+ * Marks a room read up to a message.
5202
+ *
5203
+ * ⚠ The ONLY thing that clears an unread badge — polling deliberately does not. Call it when
5204
+ * the player is actually looking at the room, not when the app merely fetched it.
5205
+ *
5206
+ * ⚠⚠ **With no cursor to fall back on, the server marks the room read up to NOW** — including
5207
+ * messages that arrived while the screen was opening and were never rendered. Those messages
5208
+ * then never arrive: the next poll starts from the cursor you just moved past them. So pass
5209
+ * `upTo` (or poll the room first) when you open a room; calling `markRead(roomID)` on a room
5210
+ * this service has never polled silently swallows whatever is newer than what you displayed.
5211
+ */
5212
+ markRead(roomID: string, upTo?: ChatCursor): Promise<OperationResult<ChatStateResponse>>;
5213
+ /** Joins an opt-in channel (one whose `JoinedByDefault` is false). */
5214
+ joinChannel(channelID: string): Promise<OperationResult<ChatStateResponse>>;
5215
+ /** Leaves a channel. It stays gone until the player joins again. */
5216
+ leaveChannel(channelID: string): Promise<OperationResult<ChatStateResponse>>;
5217
+ /**
5218
+ * Reports a message to the publisher.
5219
+ *
5220
+ * A repeat report of the same message succeeds with `AlreadyReported` — show a confirmation,
5221
+ * not an error: the player is being persistent, not wrong.
5222
+ */
5223
+ reportMessage(roomID: string, messageID: string, reason: ChatReportReason, comment?: string): Promise<OperationResult<ChatReportResponse>>;
5224
+ /**
5225
+ * Hides another player's messages for this player.
5226
+ *
5227
+ * One-sided and invisible to the other side: he can still post, and his messages simply stop
5228
+ * being delivered here. Filtering happens on the SERVER, so nothing arrives to be filtered.
5229
+ */
5230
+ ignoreUser(targetUserID: string): Promise<OperationResult<ChatStateResponse>>;
5231
+ /** Removes a player from the ignore list. */
5232
+ unignoreUser(targetUserID: string): Promise<OperationResult<ChatStateResponse>>;
5233
+ /** Forgets the remembered cursors — use it when switching account or leaving the screen. */
5234
+ resetCursors(): void;
5235
+ private baseRequest;
5236
+ }
5237
+
5238
+ /** Options of {@link PushService.subscribe}. */
5239
+ interface PushSubscribeOptions {
5240
+ /**
5241
+ * Where the service worker script lives, resolved against the page.
5242
+ *
5243
+ * Default `"./sw.js"` — deliberately RELATIVE. A hosted build lives at
5244
+ * `cloud.idosgames.com/drive/app/{titleID}/`, so a leading slash would point at another game's
5245
+ * folder; relative also gives the registration a scope of exactly this game's directory, which
5246
+ * is what makes one endpoint per title possible on a shared origin.
5247
+ */
5248
+ swPath?: string;
5249
+ /** Overrides `navigator.language`. */
5250
+ locale?: string;
5251
+ }
5252
+ /**
5253
+ * Push notifications: getting this browser (or, in the portal, this player) subscribed.
5254
+ *
5255
+ * **The one rule that matters more than the rest of this file:** `subscribe()` must be called
5256
+ * from a real tap, and never on load. Browsers reject `Notification.requestPermission()` outside
5257
+ * a user gesture, and Chrome permanently blocks an origin after a few dismissals — so an
5258
+ * automatic prompt does not merely fail, it takes away the player's ability to ever say yes.
5259
+ *
5260
+ * **Draw the button from {@link getState}, not from a guess.** Four of its five values mean "no
5261
+ * button", each for a different reason: `unsupported` (no keys, or a browser without the Push
5262
+ * API), `blocked` (irreversible from code — only the browser's own settings undo it), `embedded`
5263
+ * (see below) and `subscribed`.
5264
+ *
5265
+ * ⚠⚠ **Inside the portal this works differently, and the difference is not fixable.** A game on
5266
+ * `idosgames.com/app/{id}` runs in a cross-origin iframe, where the browser blocks the permission
5267
+ * prompt outright. `subscribe()` therefore asks the WEBSITE to do it on its own top-level
5268
+ * document; the site writes the row against the player's platform identity, and the engine — this
5269
+ * backend — still does the sending. The player's game id reaches that row on their next platform
5270
+ * sign-in. So a portal subscription is real, it is just not this origin's, and `PushSubscribeResult.Where`
5271
+ * says which happened.
5272
+ *
5273
+ * **What the SDK deliberately does NOT do:**
5274
+ *
5275
+ * - It never computes a subscription's id. That is `sha256(endpoint)` and trivial to reproduce,
5276
+ * but it addresses a shared database that already has two implementations guarded by golden
5277
+ * vectors. A third one, in another language and without those vectors, drifts silently.
5278
+ * - It never ships a service worker. `templates/host-starter/public/sw.js` is a starting point
5279
+ * you own; the only hard requirement is that it must have NO `fetch` handler (see that file).
5280
+ * - It never asks again after `blocked`. There is nothing to ask.
5281
+ */
5282
+ declare class PushService {
5283
+ private readonly ctx;
5284
+ constructor(ctx: ClientContext);
5285
+ private cachedConfig;
5286
+ /**
5287
+ * Public VAPID key and whether subscribing is possible at all.
5288
+ *
5289
+ * ⚠ **Never rejects and never returns an error.** "Could not ask" means exactly what "not
5290
+ * configured" means — no button — and one place should decide that, not every caller.
5291
+ * Memoised for the session; pass `refresh` after the publisher toggles the feature.
5292
+ */
5293
+ getConfig(refresh?: boolean): Promise<PushConfigResponse>;
5294
+ /** What to draw. See the note on {@link PushService} before branching on it. */
5295
+ getState(): Promise<PushPermissionState>;
5296
+ /**
5297
+ * Ask for permission and register this browser with the server.
5298
+ *
5299
+ * ⚠ **From a tap. Always.** See the class note — this is the one call where getting it wrong is
5300
+ * not recoverable by the player.
5301
+ *
5302
+ * Idempotent: an already-subscribed browser re-sends the same endpoint, which refreshes the
5303
+ * row's locale and timezone rather than creating a second one.
5304
+ */
5305
+ subscribe(options?: PushSubscribeOptions): Promise<OperationResult<PushSubscribeResult>>;
5306
+ /**
5307
+ * Stop notifying this browser ABOUT THIS TITLE: in the browser and on the server.
5308
+ *
5309
+ * ⚠ Both halves matter and neither implies the other. Dropping only the server row leaves a
5310
+ * browser that still holds a live endpoint; dropping only the browser one leaves a server row
5311
+ * that keeps being sent to until a push service answers 410.
5312
+ *
5313
+ * ⚠⚠ The server removes THIS TITLE's subscriptions of that device, not the device itself — it
5314
+ * deletes the device only once nothing is bound to it any more. A player of a portal game is
5315
+ * subscribed from idosgames.com, where one browser holds ONE endpoint serving the catalogue,
5316
+ * every other portal game and the creator portal: removing it here would silently cancel all
5317
+ * of that, which the player never asked for and cannot even see from inside this game.
5318
+ * "Unsubscribe from everything" lives on the website, where the whole list is on screen.
5319
+ */
5320
+ unsubscribe(): Promise<OperationResult<SuccessResponse>>;
5321
+ /**
5322
+ * Every device of this player in this title — the "my devices" screen.
5323
+ *
5324
+ * ⚠ Includes devices subscribed from the WEBSITE, not just this origin: one person's phone,
5325
+ * laptop and the portal tab are separate rows, and each is removed by its own `EndpointHash`.
5326
+ */
5327
+ getSubscriptions(): Promise<OperationResult<PushSubscriptionListResponse>>;
5328
+ /**
5329
+ * Stop notifying ONE device about this title, by the id the server issued for it.
5330
+ *
5331
+ * ⚠ Scoped to this title, exactly like {@link unsubscribe} — and it matters more here: this
5332
+ * list includes devices subscribed from the WEBSITE, whose endpoint also serves the catalogue
5333
+ * and every other portal game.
5334
+ */
5335
+ unsubscribeByHash(endpointHash: string): Promise<OperationResult<SuccessResponse>>;
5336
+ /** Whether this browser has the Push API at all. False on any iOS browser before 16.4. */
5337
+ isSupported(): boolean;
5338
+ /**
5339
+ * Whether the game is inside another document — the portal case.
5340
+ *
5341
+ * ⚠ Deliberately does NOT try to read the parent's origin to tell "same-origin iframe" from
5342
+ * "cross-origin": the check would need a try/catch around a security error, and being wrong in
5343
+ * the permissive direction means prompting where prompting is blocked.
5344
+ */
5345
+ isEmbedded(): boolean;
5346
+ private baseRequest;
5347
+ }
5348
+
4523
5349
  /** Значения для подстановки в перевод: `{count}`, `{name}` и т.п. */
4524
5350
  type LocalizationParams = Record<string, string | number>;
4525
5351
  /**
@@ -5299,6 +6125,14 @@ declare class StoreApi {
5299
6125
  purchaseBatch(request: StoreRequest): Promise<OperationResult<PurchaseBatchResponse>>;
5300
6126
  getDefinitions(request: StoreRequest): Promise<OperationResult<StoreDefinitions>>;
5301
6127
  getUserState(request: StoreRequest): Promise<OperationResult<UserStoreState>>;
6128
+ /**
6129
+ * The shop resolved for this player.
6130
+ *
6131
+ * This is what a shop screen draws. `getDefinitions` returns the CONFIG — the same for
6132
+ * everyone — and from it rotation, badges, timers and remaining limits cannot be derived:
6133
+ * they either depend on the player or must be deterministic on the server.
6134
+ */
6135
+ getStorefront(request: StoreRequest): Promise<OperationResult<GetStorefrontResponse>>;
5302
6136
  }
5303
6137
 
5304
6138
  /** Thin transport wrapper for the Purchase feature (port of PurchaseAPI.cs). */
@@ -5352,6 +6186,49 @@ declare class TutorialApi {
5352
6186
  resetFlow(request: TutorialRequest): Promise<OperationResult<TutorialFlowResponse>>;
5353
6187
  }
5354
6188
 
6189
+ /** Thin transport wrapper for Community Marketing (port of CommunityMarketingV2). */
6190
+ declare class CommunityMarketingApi {
6191
+ private readonly ctx;
6192
+ constructor(ctx: ClientContext);
6193
+ private send;
6194
+ getCommunityMarketingState(request: CommunityMarketingRequest): Promise<OperationResult<CommunityMarketingState>>;
6195
+ getEarnings(request: CommunityMarketingRequest): Promise<OperationResult<CommunityEarningsResponse>>;
6196
+ claim(request: CommunityMarketingRequest): Promise<OperationResult<CommunityClaimResponse>>;
6197
+ checkJoinEligibility(request: CommunityMarketingRequest): Promise<OperationResult<CommunityEligibilityResponse>>;
6198
+ withdrawCryptoReward(request: CommunityMarketingRequest): Promise<OperationResult<CommunityWithdrawalResponse>>;
6199
+ }
6200
+
6201
+ /** Thin transport wrapper for the Chat feature (port of ChatV2). */
6202
+ declare class ChatApi {
6203
+ private readonly ctx;
6204
+ constructor(ctx: ClientContext);
6205
+ private send;
6206
+ getChatDefinitions(request: ChatRequest): Promise<OperationResult<ChatDefinitions>>;
6207
+ getChannels(request: ChatRequest): Promise<OperationResult<ChatChannelsResponse>>;
6208
+ poll(request: ChatRequest): Promise<OperationResult<ChatPollResponse>>;
6209
+ getHistory(request: ChatRequest): Promise<OperationResult<ChatHistoryResponse>>;
6210
+ getConversations(request: ChatRequest): Promise<OperationResult<ChatConversationsResponse>>;
6211
+ sendMessage(request: ChatRequest): Promise<OperationResult<ChatSendResponse>>;
6212
+ openDirectChannel(request: ChatRequest): Promise<OperationResult<ChatDirectChannelResponse>>;
6213
+ markRead(request: ChatRequest): Promise<OperationResult<ChatStateResponse>>;
6214
+ joinChannel(request: ChatRequest): Promise<OperationResult<ChatStateResponse>>;
6215
+ leaveChannel(request: ChatRequest): Promise<OperationResult<ChatStateResponse>>;
6216
+ reportMessage(request: ChatRequest): Promise<OperationResult<ChatReportResponse>>;
6217
+ ignoreUser(request: ChatRequest): Promise<OperationResult<ChatStateResponse>>;
6218
+ unignoreUser(request: ChatRequest): Promise<OperationResult<ChatStateResponse>>;
6219
+ }
6220
+
6221
+ /** Thin transport wrapper for push subscriptions (port of PushV2). */
6222
+ declare class PushApi {
6223
+ private readonly ctx;
6224
+ constructor(ctx: ClientContext);
6225
+ private send;
6226
+ getPushConfig(request: PushRequest): Promise<OperationResult<PushConfigResponse>>;
6227
+ subscribePush(request: PushRequest): Promise<OperationResult<PushSubscriptionView>>;
6228
+ unsubscribePush(request: PushRequest): Promise<OperationResult<SuccessResponse>>;
6229
+ getPushSubscriptions(request: PushRequest): Promise<OperationResult<PushSubscriptionListResponse>>;
6230
+ }
6231
+
5355
6232
  /** Thin transport wrapper for the Localization feature (port of LocalizationV2). */
5356
6233
  declare class LocalizationApi {
5357
6234
  private readonly ctx;
@@ -5771,6 +6648,9 @@ declare class ClientContext {
5771
6648
  reward: RewardApi;
5772
6649
  quest: QuestApi;
5773
6650
  tutorial: TutorialApi;
6651
+ communityMarketing: CommunityMarketingApi;
6652
+ chat: ChatApi;
6653
+ push: PushApi;
5774
6654
  localization: LocalizationApi;
5775
6655
  timedEvent: TimedEventApi;
5776
6656
  leaderboard: LeaderboardApi;
@@ -5805,6 +6685,9 @@ declare class ClientContext {
5805
6685
  readonly reward: RewardService;
5806
6686
  readonly quest: QuestService;
5807
6687
  readonly tutorial: TutorialService;
6688
+ readonly communityMarketing: CommunityMarketingService;
6689
+ readonly chat: ChatService;
6690
+ readonly push: PushService;
5808
6691
  readonly localization: LocalizationService;
5809
6692
  readonly timedEvent: TimedEventService;
5810
6693
  readonly leaderboard: LeaderboardService;
@@ -5859,6 +6742,32 @@ declare class IDosGamesClient {
5859
6742
  get quest(): QuestService;
5860
6743
  /** Onboarding flows: start, advance, skip and claim tutorial steps. */
5861
6744
  get tutorial(): TutorialService;
6745
+ /**
6746
+ * Creator reward programme: state, earnings and claiming.
6747
+ *
6748
+ * The programme itself lives in the creator portal on the website — send the player to
6749
+ * `CreatorPortalUrl` from `getState()` rather than building an address, and never try to
6750
+ * submit a post from the game: moderation, metric polling and the accrual maths are owned by
6751
+ * the management backend.
6752
+ */
6753
+ get communityMarketing(): CommunityMarketingService;
6754
+ /**
6755
+ * Player chat: title channels and 1-on-1 conversations.
6756
+ *
6757
+ * Poll with a single `chat.poll()` for ALL rooms, only while the chat screen is open, at the
6758
+ * interval the server hands back — every call is billed against the publisher's API quota.
6759
+ * Polling never clears an unread badge; `chat.markRead()` does.
6760
+ */
6761
+ get chat(): ChatService;
6762
+ /**
6763
+ * Push notifications: subscribing this browser (or, in the portal, this player).
6764
+ *
6765
+ * ⚠ `push.subscribe()` must run from a real tap and NEVER on load. Browsers reject the
6766
+ * permission prompt outside a user gesture, and Chrome permanently blocks an origin after a few
6767
+ * dismissals — an automatic prompt does not just fail, it takes away the player's ability to
6768
+ * ever say yes. Draw the button from `push.getState()`.
6769
+ */
6770
+ get push(): PushService;
5862
6771
  /**
5863
6772
  * Переводы: `t(key)` и смена языка. Загружать ничего не нужно — таблицы приезжают вместе с
5864
6773
  * состоянием на входе в игру.
@@ -6134,4 +7043,4 @@ declare class LocalizationCache {
6134
7043
  private versionsKey;
6135
7044
  }
6136
7045
 
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 };
7046
+ 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, 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 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 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 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 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, 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 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 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, normalizeBlockchainCategory, readSsoCodeFromUrl, roundAmount, zPaymentProof, zPriceOption, zPriceOptions };