@idosgames/core 0.19.0 → 0.19.1
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/{ClientContext-CrMomCH-.d.ts → RealtimeSession-BjBq5iJG.d.ts} +478 -35
- package/dist/{ClientContext-BYReJCTF.d.cts → RealtimeSession-Cg-wm6i4.d.cts} +478 -35
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +5 -41
- package/dist/index.d.ts +5 -41
- package/dist/index.js +2 -2
- package/dist/realtime/index.cjs +1 -1
- package/dist/realtime/index.d.cts +3 -223
- package/dist/realtime/index.d.ts +3 -223
- package/dist/realtime/index.js +1 -1
- package/package.json +1 -1
|
@@ -3,13 +3,13 @@ import { P as PlatformAdapter, K as KeyValueStorage } from './PlatformAdapter-DU
|
|
|
3
3
|
import Decimal from 'decimal.js';
|
|
4
4
|
|
|
5
5
|
type EventMap = Record<string, unknown>;
|
|
6
|
-
type Listener<T> = (payload: T) => void;
|
|
6
|
+
type Listener$1<T> = (payload: T) => void;
|
|
7
7
|
type Unsubscribe = () => void;
|
|
8
8
|
declare class TypedEmitter<E extends object> {
|
|
9
9
|
private readonly listeners;
|
|
10
|
-
on<K extends keyof E>(event: K, listener: Listener<E[K]>): Unsubscribe;
|
|
11
|
-
once<K extends keyof E>(event: K, listener: Listener<E[K]>): Unsubscribe;
|
|
12
|
-
off<K extends keyof E>(event: K, listener: Listener<E[K]>): void;
|
|
10
|
+
on<K extends keyof E>(event: K, listener: Listener$1<E[K]>): Unsubscribe;
|
|
11
|
+
once<K extends keyof E>(event: K, listener: Listener$1<E[K]>): Unsubscribe;
|
|
12
|
+
off<K extends keyof E>(event: K, listener: Listener$1<E[K]>): void;
|
|
13
13
|
emit<K extends keyof E>(event: K, payload: E[K]): void;
|
|
14
14
|
removeAllListeners(): void;
|
|
15
15
|
}
|
|
@@ -3113,6 +3113,218 @@ declare const BlockchainAction: {
|
|
|
3113
3113
|
};
|
|
3114
3114
|
type BlockchainAction = (typeof BlockchainAction)[keyof typeof BlockchainAction];
|
|
3115
3115
|
|
|
3116
|
+
declare const MailboxCategory: {
|
|
3117
|
+
readonly System: "System";
|
|
3118
|
+
readonly Reward: "Reward";
|
|
3119
|
+
readonly Gift: "Gift";
|
|
3120
|
+
readonly Social: "Social";
|
|
3121
|
+
};
|
|
3122
|
+
type MailboxCategory = (typeof MailboxCategory)[keyof typeof MailboxCategory];
|
|
3123
|
+
declare const MailboxLetterSource: {
|
|
3124
|
+
readonly Admin: "Admin";
|
|
3125
|
+
readonly Broadcast: "Broadcast";
|
|
3126
|
+
readonly SocialGift: "SocialGift";
|
|
3127
|
+
readonly Transfer: "Transfer";
|
|
3128
|
+
readonly TransferReturn: "TransferReturn";
|
|
3129
|
+
readonly Module: "Module";
|
|
3130
|
+
readonly CloudCode: "CloudCode";
|
|
3131
|
+
};
|
|
3132
|
+
type MailboxLetterSource = (typeof MailboxLetterSource)[keyof typeof MailboxLetterSource];
|
|
3133
|
+
declare const MailboxRewardModule: {
|
|
3134
|
+
readonly Leaderboard: "Leaderboard";
|
|
3135
|
+
readonly CoopEvent: "CoopEvent";
|
|
3136
|
+
readonly Season: "Season";
|
|
3137
|
+
readonly Referral: "Referral";
|
|
3138
|
+
};
|
|
3139
|
+
type MailboxRewardModule = (typeof MailboxRewardModule)[keyof typeof MailboxRewardModule];
|
|
3140
|
+
/** Client actions (URL segment). */
|
|
3141
|
+
declare const MailboxAction: {
|
|
3142
|
+
readonly GetDefinitions: "GetDefinitions";
|
|
3143
|
+
readonly GetMessages: "GetMessages";
|
|
3144
|
+
readonly GetUnreadCount: "GetUnreadCount";
|
|
3145
|
+
readonly ReadMessages: "ReadMessages";
|
|
3146
|
+
readonly ClaimReward: "ClaimReward";
|
|
3147
|
+
readonly ClaimRewardsBatch: "ClaimRewardsBatch";
|
|
3148
|
+
readonly ClaimAll: "ClaimAll";
|
|
3149
|
+
readonly DeleteMessages: "DeleteMessages";
|
|
3150
|
+
readonly SendGift: "SendGift";
|
|
3151
|
+
readonly SendTransfer: "SendTransfer";
|
|
3152
|
+
readonly GetGiftStatus: "GetGiftStatus";
|
|
3153
|
+
};
|
|
3154
|
+
type MailboxAction = (typeof MailboxAction)[keyof typeof MailboxAction];
|
|
3155
|
+
/** Refusal codes of the module — the client maps them to its own texts. */
|
|
3156
|
+
declare const MailboxErrors: {
|
|
3157
|
+
readonly Disabled: "MAILBOX_DISABLED";
|
|
3158
|
+
readonly MessageNotFound: "MESSAGE_NOT_FOUND";
|
|
3159
|
+
readonly MessageIDRequired: "MESSAGE_ID_REQUIRED";
|
|
3160
|
+
readonly AlreadyClaimed: "ALREADY_CLAIMED";
|
|
3161
|
+
readonly Expired: "EXPIRED";
|
|
3162
|
+
readonly NoRewards: "NO_REWARDS";
|
|
3163
|
+
readonly HasUnclaimedRewards: "HAS_UNCLAIMED_REWARDS";
|
|
3164
|
+
readonly NotFriends: "NOT_FRIENDS";
|
|
3165
|
+
readonly Blocked: "BLOCKED";
|
|
3166
|
+
readonly RecipientNotFound: "RECIPIENT_NOT_FOUND";
|
|
3167
|
+
readonly CannotGiftSelf: "CANNOT_GIFT_SELF";
|
|
3168
|
+
readonly GiftNotFound: "GIFT_NOT_FOUND";
|
|
3169
|
+
readonly GiftNotAllowed: "GIFT_NOT_ALLOWED";
|
|
3170
|
+
/** This gift to this friend was already sent in the current period. */
|
|
3171
|
+
readonly AlreadySent: "ALREADY_SENT";
|
|
3172
|
+
/** The send limit of the period is used up. */
|
|
3173
|
+
readonly SendLimit: "SEND_LIMIT";
|
|
3174
|
+
/** Not enough resources for the gift price or the transfer fee. */
|
|
3175
|
+
readonly NotEnoughResources: "NOT_ENOUGH_RESOURCES";
|
|
3176
|
+
/** After the commission the friend would get nothing. */
|
|
3177
|
+
readonly AmountTooSmall: "AMOUNT_TOO_SMALL";
|
|
3178
|
+
readonly RecipientLimit: "RECIPIENT_LIMIT";
|
|
3179
|
+
readonly TransferDisabled: "TRANSFER_DISABLED";
|
|
3180
|
+
readonly ResourceNotGiftable: "RESOURCE_NOT_GIFTABLE";
|
|
3181
|
+
readonly AmountTooLarge: "AMOUNT_TOO_LARGE";
|
|
3182
|
+
readonly AmountInvalid: "AMOUNT_INVALID";
|
|
3183
|
+
readonly TooManyEntries: "TOO_MANY_ENTRIES";
|
|
3184
|
+
readonly EntriesRequired: "ENTRIES_REQUIRED";
|
|
3185
|
+
readonly FriendshipTooNew: "FRIENDSHIP_TOO_NEW";
|
|
3186
|
+
readonly RequestIDRequired: "RELATED_ENTITY_ID_REQUIRED";
|
|
3187
|
+
readonly CryptoForbidden: "CRYPTO_FORBIDDEN";
|
|
3188
|
+
readonly ModuleRewardUnavailable: "MODULE_REWARD_UNAVAILABLE";
|
|
3189
|
+
readonly Conflict: "CONFLICT";
|
|
3190
|
+
};
|
|
3191
|
+
/** Badge counters are capped here: the UI shows "99+". */
|
|
3192
|
+
declare const MAILBOX_COUNTER_CAP = 100;
|
|
3193
|
+
type MailText = { Subject?: null | string; Body?: null | string; [key: string]: unknown; };
|
|
3194
|
+
type MailLink = { FeatureID?: null | string; Args?: null | Record<string, string>; Url?: null | string; Label?: null | string; [key: string]: unknown; };
|
|
3195
|
+
type MailTemplateDefinition = { Texts?: null | Record<string, MailText>; Category?: null | 'Reward' | 'System' | 'Gift' | 'Social'; Icon?: null | string; Banner?: null | string; Link?: null | MailLink; SenderName?: null | string; ExpirationDays?: null | number; [key: string]: unknown; };
|
|
3196
|
+
type SocialGiftDefinition = { Enabled?: null | boolean; Grant?: null | ResourceBundle; Cost?: null | ResourceBundle; IntervalSeconds?: null | number; AnchorUtc?: null | string; SenderGate?: null | SegmentGate; TemplateID?: null | string; ExpirationDays?: null | number; [key: string]: unknown; };
|
|
3197
|
+
type TransferableResource = { Type?: null | string; CurrencyID?: null | string; CatalogID?: null | string; ItemID?: null | string; MaxAmountPerGift?: null | number; [key: string]: unknown; };
|
|
3198
|
+
type TransferGiftDefinition = { Enabled?: null | boolean; AllowedResources?: null | Array<TransferableResource>; MaxEntriesPerGift?: null | number; IntervalSeconds?: null | number; AnchorUtc?: null | string; FeePercent?: null | number; FeeCost?: null | ResourceBundle; SenderGate?: null | SegmentGate; ExpirationDays?: null | number; TemplateID?: null | string; [key: string]: unknown; };
|
|
3199
|
+
type MailboxDefinitions = { Enabled?: null | boolean; Capacity?: null | number; RewardLetterDays?: null | number; PlainLetterDays?: null | number; ClaimedRetentionDays?: null | number; DefaultLanguage?: null | string; Templates?: null | Record<string, MailTemplateDefinition>; Gifts?: null | { Social?: null | Record<string, SocialGiftDefinition>; Transfer?: null | TransferGiftDefinition; [key: string]: unknown; }; Integrations?: null | { Leaderboard?: null | boolean; CoopEvent?: null | boolean; Season?: null | boolean; Referral?: null | boolean; [key: string]: unknown; }; [key: string]: unknown; };
|
|
3200
|
+
interface MailboxRequest extends BaseRequest {
|
|
3201
|
+
/** GetMessages: NextCursor of the previous page. Empty = first page. */
|
|
3202
|
+
Cursor?: string;
|
|
3203
|
+
PageSize?: number;
|
|
3204
|
+
Category?: MailboxCategory;
|
|
3205
|
+
/** Player language ("ru"); the server picks the letter text for it. */
|
|
3206
|
+
Language?: string;
|
|
3207
|
+
MessageID?: string;
|
|
3208
|
+
MessageIDs?: string[];
|
|
3209
|
+
/** ReadMessages: all unread. DeleteMessages: all read letters without pending rewards. */
|
|
3210
|
+
All?: boolean;
|
|
3211
|
+
/** DeleteMessages: also delete letters whose reward was not claimed (the reward is lost). */
|
|
3212
|
+
Force?: boolean;
|
|
3213
|
+
GiftID?: string;
|
|
3214
|
+
RecipientUserIDs?: string[];
|
|
3215
|
+
RecipientUserID?: string;
|
|
3216
|
+
TransferEntries?: ResourceEntry[];
|
|
3217
|
+
Note?: string;
|
|
3218
|
+
}
|
|
3219
|
+
type MailboxLetter = { MessageID: string; Source: 'Module' | 'Transfer' | 'Admin' | 'Broadcast' | 'SocialGift' | 'TransferReturn' | 'CloudCode'; Category: 'Reward' | 'System' | 'Gift' | 'Social'; SentAt: string; TemplateID?: null | string; Subject?: null | string; Body?: null | string; Language?: null | string; TemplateParams?: null | Record<string, string>; Icon?: null | string; Banner?: null | string; Link?: null | MailLink; SenderName?: null | string; SenderUserID?: null | string; SenderAvatarUrl?: null | string; SenderNote?: null | string; Rewards?: null | ResourceGrant; HasRewards?: null | boolean; IsTransfer?: null | boolean; ExpiresAt?: null | string; ReadAt?: null | string; ClaimedAt?: null | string; [key: string]: unknown; };
|
|
3220
|
+
type MailboxPendingReward = { MessageID: string; Module: 'Leaderboard' | 'CoopEvent' | 'Season' | 'Referral'; Key: string; TemplateID?: null | string; Subject?: null | string; Body?: null | string; Language?: null | string; TemplateParams?: null | Record<string, string>; Rewards?: null | ResourceGrant; [key: string]: unknown; };
|
|
3221
|
+
type MailboxItemFailure = { ID: string; Error?: null | string; [key: string]: unknown; };
|
|
3222
|
+
type GetMailboxMessagesResponse = { Messages: Array<MailboxLetter>; ServerTimeUtc?: null | string; NextCursor?: null | string; PendingRewards?: null | Array<MailboxPendingReward>; UnreadCount?: null | number; UnclaimedCount?: null | number; DeliveredNow?: null | number; [key: string]: unknown; };
|
|
3223
|
+
type MailboxCountersResponse = { UnreadCount: number; UnclaimedCount: number; ServerTimeUtc?: null | string; [key: string]: unknown; };
|
|
3224
|
+
type MailboxOperationResponse = { AffectedCount: number; Failed: Array<MailboxItemFailure>; UnreadCount: number; UnclaimedCount: number; ServerTimeUtc?: null | string; [key: string]: unknown; };
|
|
3225
|
+
type MailboxClaimedLetter = { MessageID: string; Rewards?: null | ResourceBundle; [key: string]: unknown; };
|
|
3226
|
+
type MailboxClaimResponse = { Claimed: Array<MailboxClaimedLetter>; Failed: Array<MailboxItemFailure>; UnreadCount: number; UnclaimedCount: number; ServerTimeUtc?: null | string; Resources?: null | ResourceOperation; Inventory?: null | InventoryDelta; [key: string]: unknown; };
|
|
3227
|
+
type MailboxSendGiftResponse = { Sent: Array<string>; Failed: Array<MailboxItemFailure>; RemainingInPeriod: number; ServerTimeUtc?: null | string; GiftID?: null | string; Resources?: null | ResourceOperation; ResetsAt?: null | string; [key: string]: unknown; };
|
|
3228
|
+
type MailboxSendTransferResponse = { RemainingInPeriod: number; ServerTimeUtc?: null | string; MessageID?: null | string; ExpiresAt?: null | string; Resources?: null | ResourceOperation; RecipientReceives?: null | ResourceBundle; ResetsAt?: null | string; IdempotentReplay?: null | boolean; [key: string]: unknown; };
|
|
3229
|
+
type MailboxGiftStatusResponse = { Social: Record<string, { IntervalSeconds: number; SentInPeriod: number; RemainingInPeriod: number; ReceivedInPeriod: number; SentTo: Array<string>; ResetsAt?: null | string; [key: string]: unknown; }>; ServerTimeUtc?: null | string; ResetsAt?: null | string; Transfer?: null | { Enabled: boolean; IntervalSeconds: number; SentInPeriod: number; RemainingInPeriod: number; ResetsAt?: null | string; [key: string]: unknown; }; [key: string]: unknown; };
|
|
3230
|
+
|
|
3231
|
+
type OperationFailureReason =
|
|
3232
|
+
/** Local argument validation failed before any network call (mirrors C# `Fail`). */
|
|
3233
|
+
"client"
|
|
3234
|
+
/** The response body did not match its zod schema (contract drift). */
|
|
3235
|
+
| "validation"
|
|
3236
|
+
/** Transient transport failure that survived auto-retries (offer a "Retry"). */
|
|
3237
|
+
| "connection"
|
|
3238
|
+
/** Session ticket rejected (HTTP 401) and could not be refreshed. */
|
|
3239
|
+
| "unauthorized"
|
|
3240
|
+
/** Client-side throttle / duplicate in-flight guard rejected the call. */
|
|
3241
|
+
| "throttled"
|
|
3242
|
+
/** The server returned `Success=false` or a non-transient HTTP error. */
|
|
3243
|
+
| "server";
|
|
3244
|
+
interface OperationSuccess<T> {
|
|
3245
|
+
readonly ok: true;
|
|
3246
|
+
readonly data: T;
|
|
3247
|
+
}
|
|
3248
|
+
interface OperationFailure {
|
|
3249
|
+
readonly ok: false;
|
|
3250
|
+
readonly reason: OperationFailureReason;
|
|
3251
|
+
readonly error: string;
|
|
3252
|
+
}
|
|
3253
|
+
type OperationResult<T> = OperationSuccess<T> | OperationFailure;
|
|
3254
|
+
declare function isOk<T>(result: OperationResult<T>): result is OperationSuccess<T>;
|
|
3255
|
+
declare function isFail<T>(result: OperationResult<T>): result is OperationFailure;
|
|
3256
|
+
|
|
3257
|
+
/** Mailbox badge counters after any mailbox call. */
|
|
3258
|
+
interface MailboxCounters {
|
|
3259
|
+
UnreadCount: number;
|
|
3260
|
+
UnclaimedCount: number;
|
|
3261
|
+
}
|
|
3262
|
+
/**
|
|
3263
|
+
* Mailbox of the player: letters with rewards, publisher broadcasts, friend gifts and transfers,
|
|
3264
|
+
* unclaimed rewards of other modules.
|
|
3265
|
+
*
|
|
3266
|
+
* Every response that changes the mailbox carries fresh badge counters; the service re-emits them as
|
|
3267
|
+
* `mailbox:countersChanged`, so a badge never needs its own polling after an action.
|
|
3268
|
+
*/
|
|
3269
|
+
declare class MailboxService {
|
|
3270
|
+
private readonly ctx;
|
|
3271
|
+
constructor(ctx: ClientContext);
|
|
3272
|
+
private request;
|
|
3273
|
+
private emitCounters;
|
|
3274
|
+
/** The mailbox section as the client sees it (limits are not published — use getGiftStatus). */
|
|
3275
|
+
get definitions(): MailboxDefinitions | undefined;
|
|
3276
|
+
/** Is the mailbox switched on for this title (by the cached config)? */
|
|
3277
|
+
get enabled(): boolean;
|
|
3278
|
+
getDefinitions(): Promise<OperationResult<MailboxDefinitions>>;
|
|
3279
|
+
/**
|
|
3280
|
+
* One page of letters, newest first. The FIRST page (no cursor) also delivers broadcasts meant
|
|
3281
|
+
* for this player, returns their expired transfers to them, and carries pending module rewards
|
|
3282
|
+
* and the badge counters.
|
|
3283
|
+
*/
|
|
3284
|
+
getMessages(options?: {
|
|
3285
|
+
cursor?: string | null;
|
|
3286
|
+
pageSize?: number;
|
|
3287
|
+
category?: MailboxCategory;
|
|
3288
|
+
language?: string;
|
|
3289
|
+
}): Promise<OperationResult<GetMailboxMessagesResponse>>;
|
|
3290
|
+
/** Badge counters only. Writes nothing on the server — cheap enough for a menu badge. */
|
|
3291
|
+
getUnreadCount(): Promise<OperationResult<MailboxCountersResponse>>;
|
|
3292
|
+
/** Mark letters read; `all: true` marks every unread letter. */
|
|
3293
|
+
readMessages(messageIDs: string[] | "all"): Promise<OperationResult<MailboxOperationResponse>>;
|
|
3294
|
+
/** Claim one letter or one live module reward (`live:...`). */
|
|
3295
|
+
claimReward(messageID: string): Promise<OperationResult<MailboxClaimResponse>>;
|
|
3296
|
+
/** Claim several letters in one server operation; failed ones come back in `Failed`. */
|
|
3297
|
+
claimRewards(messageIDs: string[]): Promise<OperationResult<MailboxClaimResponse>>;
|
|
3298
|
+
/** Claim everything claimable: stored letters and live module rewards. */
|
|
3299
|
+
claimAll(): Promise<OperationResult<MailboxClaimResponse>>;
|
|
3300
|
+
private afterClaim;
|
|
3301
|
+
/**
|
|
3302
|
+
* Delete letters. `"allRead"` removes every read letter without a pending reward. A letter with
|
|
3303
|
+
* an unclaimed reward needs `force` (the reward is lost); deleting a friend's pending TRANSFER
|
|
3304
|
+
* declines it and returns the resources to the friend.
|
|
3305
|
+
*/
|
|
3306
|
+
deleteMessages(messageIDs: string[] | "allRead", options?: {
|
|
3307
|
+
force?: boolean;
|
|
3308
|
+
}): Promise<OperationResult<MailboxOperationResponse>>;
|
|
3309
|
+
/**
|
|
3310
|
+
* Gift to friends: one of a kind per friend per period (a day unless the title set IntervalSeconds/AnchorUtc).
|
|
3311
|
+
* A gift with a `Cost` charges the sender per friend; not enough — `NOT_ENOUGH_RESOURCES` for the
|
|
3312
|
+
* rest, nothing charged for them.
|
|
3313
|
+
*/
|
|
3314
|
+
sendGift(giftID: string, recipientUserIDs: string[]): Promise<OperationResult<MailboxSendGiftResponse>>;
|
|
3315
|
+
/**
|
|
3316
|
+
* Send own resources to a friend. They are taken now and wait in the friend's letter; declined or
|
|
3317
|
+
* expired transfers come back. `requestID` is the idempotency key — keep it for retries of the SAME
|
|
3318
|
+
* transfer so a timeout never charges twice.
|
|
3319
|
+
*/
|
|
3320
|
+
sendTransfer(recipientUserID: string, entries: ResourceEntry[], options: {
|
|
3321
|
+
requestID: string;
|
|
3322
|
+
note?: string;
|
|
3323
|
+
}): Promise<OperationResult<MailboxSendTransferResponse>>;
|
|
3324
|
+
/** What is left of today's gift limits and who already got a gift today. */
|
|
3325
|
+
getGiftStatus(): Promise<OperationResult<MailboxGiftStatusResponse>>;
|
|
3326
|
+
}
|
|
3327
|
+
|
|
3116
3328
|
declare const ChatChannelType: {
|
|
3117
3329
|
/** Title-wide channel: anyone passing the write gate may post. */
|
|
3118
3330
|
readonly Global: "Global";
|
|
@@ -3521,9 +3733,9 @@ type IceServer = { Urls?: null | string; Username?: null | string; Credential?:
|
|
|
3521
3733
|
type MultiplayerSystemState = { Enabled?: null | boolean; [key: string]: unknown; };
|
|
3522
3734
|
type MultiplayerDefinitions = { SystemState?: null | MultiplayerSystemState; DefaultTopology?: null | 'Mesh' | 'Host'; AllowCreatorTopologyOverride?: null | boolean; DefaultChatMode?: null | 'ServerRelay' | 'P2P'; AllowCreatorChatOverride?: null | boolean; MaxPlayersPerRoom?: null | number; RoomTtlSeconds?: null | number; HeartbeatIntervalMs?: null | number; MemberTimeoutMs?: null | number; MaxSignalPayloadBytes?: null | number; MaxChatTextLength?: null | number; RoomLogCap?: null | number; IceServers?: null | Array<IceServer>; [key: string]: unknown; };
|
|
3523
3735
|
type RoomMemberView = { UserID?: null | string; Username?: null | string; AvatarUrl?: null | string; Level?: null | number; Power?: null | number; Ready?: null | boolean; State?: null | Record<string, string>; JoinedAt?: null | number; IsHost?: null | boolean; LastSeenMs?: null | number; [key: string]: unknown; };
|
|
3524
|
-
type RoomListItem = { RoomID?: null | string; Name?: null | string; HostUserID?: null | string; Topology?: null | 'Mesh' | 'Host'; ChatMode?: null | 'ServerRelay' | 'P2P'; MaxPlayers?: null | number; MemberCount?: null | number; CreatedAt?: null | number; [key: string]: unknown; };
|
|
3736
|
+
type RoomListItem = { RoomID?: null | string; Name?: null | string; HostUserID?: null | string; Topology?: null | 'Mesh' | 'Host'; ChatMode?: null | 'ServerRelay' | 'P2P'; MaxPlayers?: null | number; Mode?: null | string; MemberCount?: null | number; CreatedAt?: null | number; [key: string]: unknown; };
|
|
3525
3737
|
type RealtimeEnvelope = { Seq?: null | number; Type?: null | 'Signal' | 'Chat' | 'PlayerJoined' | 'PlayerLeft' | 'HostChanged' | 'RoomClosed' | 'MemberState'; FromUserID?: null | string; ToUserID?: null | string; Kind?: null | string; Payload?: null | string; Ts?: null | number; [key: string]: unknown; };
|
|
3526
|
-
type RoomSnapshotResponse = { RoomID?: null | string; Name?: null | string; HostUserID?: null | string; OwnerUserID?: null | string; Topology?: null | 'Mesh' | 'Host'; ChatMode?: null | 'ServerRelay' | 'P2P'; Visibility?: null | 'Private' | 'Public'; Status?: null | string; MaxPlayers?: null | number; Members?: null | Array<RoomMemberView>; IceServers?: null | Array<IceServer>; Seq?: null | number; BannedUserIDs?: null | Array<string>; [key: string]: unknown; };
|
|
3738
|
+
type RoomSnapshotResponse = { RoomID?: null | string; Name?: null | string; HostUserID?: null | string; OwnerUserID?: null | string; Topology?: null | 'Mesh' | 'Host'; ChatMode?: null | 'ServerRelay' | 'P2P'; Visibility?: null | 'Private' | 'Public'; Status?: null | string; MaxPlayers?: null | number; Mode?: null | string; Members?: null | Array<RoomMemberView>; IceServers?: null | Array<IceServer>; Seq?: null | number; BannedUserIDs?: null | Array<string>; [key: string]: unknown; };
|
|
3527
3739
|
type KickMemberResponse = { Removed?: null | boolean; Banned?: null | boolean; [key: string]: unknown; };
|
|
3528
3740
|
type UnbanMemberResponse = { WasBanned?: null | boolean; [key: string]: unknown; };
|
|
3529
3741
|
type LeaveRoomResponse = { Closed?: null | boolean; NewHostUserID?: null | string; [key: string]: unknown; };
|
|
@@ -3538,6 +3750,11 @@ interface MultiplayerRequest extends BaseRequest {
|
|
|
3538
3750
|
MaxPlayers?: number;
|
|
3539
3751
|
Visibility?: RoomVisibility;
|
|
3540
3752
|
JoinCode?: string;
|
|
3753
|
+
/**
|
|
3754
|
+
* CreateRoom: the room's game — a client mode id (1–64 of `[a-z0-9-._:]`). The server only stores
|
|
3755
|
+
* it and returns it in the list and the snapshot, so a lobby can show one game's rooms.
|
|
3756
|
+
*/
|
|
3757
|
+
Mode?: string;
|
|
3541
3758
|
TargetUserID?: string;
|
|
3542
3759
|
/** "offer" / "answer" / "candidate". */
|
|
3543
3760
|
SignalKind?: string;
|
|
@@ -4790,6 +5007,12 @@ interface SdkEvents {
|
|
|
4790
5007
|
"referral:inviteRewardClaimed": ClaimInviteRewardResponse;
|
|
4791
5008
|
/** Batch claim of several invite milestones applied in one atomic operation. */
|
|
4792
5009
|
"referral:inviteRewardsBatchClaimed": ClaimInviteRewardsBatchResponse;
|
|
5010
|
+
"mailbox:messagesLoaded": GetMailboxMessagesResponse;
|
|
5011
|
+
/** Fresh badge counters after any mailbox call that returns them. */
|
|
5012
|
+
"mailbox:countersChanged": MailboxCounters;
|
|
5013
|
+
"mailbox:rewardsClaimed": MailboxClaimResponse;
|
|
5014
|
+
"mailbox:giftSent": MailboxSendGiftResponse;
|
|
5015
|
+
"mailbox:transferSent": MailboxSendTransferResponse;
|
|
4793
5016
|
"social:friendsListLoaded": FriendsListResponse;
|
|
4794
5017
|
"social:incomingRequestsLoaded": FriendsListResponse;
|
|
4795
5018
|
"social:outgoingRequestsLoaded": FriendsListResponse;
|
|
@@ -5252,32 +5475,6 @@ declare class AuthStore {
|
|
|
5252
5475
|
clear(): void;
|
|
5253
5476
|
}
|
|
5254
5477
|
|
|
5255
|
-
type OperationFailureReason =
|
|
5256
|
-
/** Local argument validation failed before any network call (mirrors C# `Fail`). */
|
|
5257
|
-
"client"
|
|
5258
|
-
/** The response body did not match its zod schema (contract drift). */
|
|
5259
|
-
| "validation"
|
|
5260
|
-
/** Transient transport failure that survived auto-retries (offer a "Retry"). */
|
|
5261
|
-
| "connection"
|
|
5262
|
-
/** Session ticket rejected (HTTP 401) and could not be refreshed. */
|
|
5263
|
-
| "unauthorized"
|
|
5264
|
-
/** Client-side throttle / duplicate in-flight guard rejected the call. */
|
|
5265
|
-
| "throttled"
|
|
5266
|
-
/** The server returned `Success=false` or a non-transient HTTP error. */
|
|
5267
|
-
| "server";
|
|
5268
|
-
interface OperationSuccess<T> {
|
|
5269
|
-
readonly ok: true;
|
|
5270
|
-
readonly data: T;
|
|
5271
|
-
}
|
|
5272
|
-
interface OperationFailure {
|
|
5273
|
-
readonly ok: false;
|
|
5274
|
-
readonly reason: OperationFailureReason;
|
|
5275
|
-
readonly error: string;
|
|
5276
|
-
}
|
|
5277
|
-
type OperationResult<T> = OperationSuccess<T> | OperationFailure;
|
|
5278
|
-
declare function isOk<T>(result: OperationResult<T>): result is OperationSuccess<T>;
|
|
5279
|
-
declare function isFail<T>(result: OperationResult<T>): result is OperationFailure;
|
|
5280
|
-
|
|
5281
5478
|
interface AuthContext {
|
|
5282
5479
|
userID: string;
|
|
5283
5480
|
clientSessionTicket: string;
|
|
@@ -6235,7 +6432,7 @@ interface PushSubscribeOptions {
|
|
|
6235
6432
|
* - It never computes a subscription's id. That is `sha256(endpoint)` and trivial to reproduce,
|
|
6236
6433
|
* but it addresses a shared database that already has two implementations guarded by golden
|
|
6237
6434
|
* vectors. A third one, in another language and without those vectors, drifts silently.
|
|
6238
|
-
* - It never ships a service worker. `templates/
|
|
6435
|
+
* - It never ships a service worker. `templates/base/public/sw.js` is a starting point
|
|
6239
6436
|
* you own; the only hard requirement is that it must have NO `fetch` handler (see that file).
|
|
6240
6437
|
* - It never asks again after `blocked`. There is nothing to ask.
|
|
6241
6438
|
*/
|
|
@@ -7454,6 +7651,8 @@ declare class MultiplayerService {
|
|
|
7454
7651
|
maxPlayers?: number;
|
|
7455
7652
|
visibility?: RoomVisibility;
|
|
7456
7653
|
joinCode?: string;
|
|
7654
|
+
/** The room's game (a client mode id) — returned in the list and the snapshot. */
|
|
7655
|
+
mode?: string;
|
|
7457
7656
|
}): Promise<OperationResult<RoomSnapshotResponse>>;
|
|
7458
7657
|
joinRoom(roomID: string, joinCode?: string): Promise<OperationResult<RoomSnapshotResponse>>;
|
|
7459
7658
|
/**
|
|
@@ -8700,6 +8899,24 @@ declare class ReferralApi {
|
|
|
8700
8899
|
claimInviteRewardsBatch(request: ReferralRequest): Promise<OperationResult<ClaimInviteRewardsBatchResponse>>;
|
|
8701
8900
|
}
|
|
8702
8901
|
|
|
8902
|
+
/** Thin transport wrapper for the Mailbox module (v2/{titleID}/Client/Mailbox/{action}/{userID}). */
|
|
8903
|
+
declare class MailboxApi {
|
|
8904
|
+
private readonly ctx;
|
|
8905
|
+
constructor(ctx: ClientContext);
|
|
8906
|
+
private send;
|
|
8907
|
+
getDefinitions(request: MailboxRequest): Promise<OperationResult<MailboxDefinitions>>;
|
|
8908
|
+
getMessages(request: MailboxRequest): Promise<OperationResult<GetMailboxMessagesResponse>>;
|
|
8909
|
+
getUnreadCount(request: MailboxRequest): Promise<OperationResult<MailboxCountersResponse>>;
|
|
8910
|
+
readMessages(request: MailboxRequest): Promise<OperationResult<MailboxOperationResponse>>;
|
|
8911
|
+
claimReward(request: MailboxRequest): Promise<OperationResult<MailboxClaimResponse>>;
|
|
8912
|
+
claimRewardsBatch(request: MailboxRequest): Promise<OperationResult<MailboxClaimResponse>>;
|
|
8913
|
+
claimAll(request: MailboxRequest): Promise<OperationResult<MailboxClaimResponse>>;
|
|
8914
|
+
deleteMessages(request: MailboxRequest): Promise<OperationResult<MailboxOperationResponse>>;
|
|
8915
|
+
sendGift(request: MailboxRequest): Promise<OperationResult<MailboxSendGiftResponse>>;
|
|
8916
|
+
sendTransfer(request: MailboxRequest): Promise<OperationResult<MailboxSendTransferResponse>>;
|
|
8917
|
+
getGiftStatus(request: MailboxRequest): Promise<OperationResult<MailboxGiftStatusResponse>>;
|
|
8918
|
+
}
|
|
8919
|
+
|
|
8703
8920
|
/** Thin transport wrapper for the Social feature (port of Social.cs + Social.Layer.cs). */
|
|
8704
8921
|
declare class SocialApi {
|
|
8705
8922
|
private readonly ctx;
|
|
@@ -10969,7 +11186,7 @@ declare class WorkshopApi {
|
|
|
10969
11186
|
ContentID?: string | null | undefined;
|
|
10970
11187
|
ContentType?: string | null | undefined;
|
|
10971
11188
|
Revision?: number | null | undefined;
|
|
10972
|
-
AccessVia?: "
|
|
11189
|
+
AccessVia?: "Free" | "Holding" | "Creator" | "License" | null | undefined;
|
|
10973
11190
|
Files?: {
|
|
10974
11191
|
[x: string]: unknown;
|
|
10975
11192
|
Role?: string | null | undefined;
|
|
@@ -11960,6 +12177,7 @@ declare class ClientContext {
|
|
|
11960
12177
|
coopEvent: CoopEventApi;
|
|
11961
12178
|
dealOffer: DealOfferApi;
|
|
11962
12179
|
referral: ReferralApi;
|
|
12180
|
+
mailbox: MailboxApi;
|
|
11963
12181
|
social: SocialApi;
|
|
11964
12182
|
timedBoost: TimedBoostApi;
|
|
11965
12183
|
userCustomData: UserCustomDataApi;
|
|
@@ -12002,6 +12220,7 @@ declare class ClientContext {
|
|
|
12002
12220
|
readonly coopEvent: CoopEventService;
|
|
12003
12221
|
readonly dealOffer: DealOfferService;
|
|
12004
12222
|
readonly referral: ReferralService;
|
|
12223
|
+
readonly mailbox: MailboxService;
|
|
12005
12224
|
readonly social: SocialService;
|
|
12006
12225
|
readonly timedBoost: TimedBoostService;
|
|
12007
12226
|
readonly userCustomData: UserCustomDataService;
|
|
@@ -12023,4 +12242,228 @@ declare class ClientContext {
|
|
|
12023
12242
|
buildAuthedBaseRequest(): BaseRequest;
|
|
12024
12243
|
}
|
|
12025
12244
|
|
|
12026
|
-
export { type Unsubscribe as $, AuthenticationService as A, UserCustomDataService as B, CurrencyService as C, DealOfferService as D, ExperimentsService as E, TitleCustomDataService as F, TitleService as G, GameLoopService as H, type IceServer as I, CloudCodeService as J, type KickMemberResponse as K, LootboxService as L, MultiplayerService as M, BlockchainService as N, type OperationResult as O, PurchaseService as P, QuestService as Q, RoomVisibility as R, StoreService as S, TutorialService as T, UserService as U, MarketplaceService as V, WorkshopService as W, DataCollectionsService as X, IDosGamesData as Y, type SdkEvents as Z, type Listener as _, MultiplayerTopology as a, type BattleStepConfig as a$, type ConfigStorage as a0, AIAction as a1, type AIAudioInput as a2, type AIChatMessage as a3, AIErrorCode as a4, type AIGenerateOptions as a5, type AIGenerationAssetView as a6, type AIGenerationErrorView as a7, type AIGenerationListView as a8, AIGenerationStatus as a9, type AnalyticsClientContext as aA, type AnalyticsDefinitions as aB, type AnalyticsDimensionDefinition as aC, AnalyticsDropReason as aD, type AnalyticsEventDefinition as aE, type AnalyticsEventInput as aF, AnalyticsEventNaming as aG, AnalyticsLimits as aH, type AnalyticsParamValue as aI, type AnalyticsParams as aJ, type AnalyticsRequest as aK, AttackOutcome as aL, type AttackResponse as aM, type AttributionInput as aN, type AuthContext as aO, type AuthOptionsResponse as aP, AuthType as aQ, AuthenticationAction as aR, type AuthenticationRequest as aS, AutomaticEvent as aT, type BaseRequest as aU, type BatchDeleteUserCustomDataResponse as aV, type BatchGetPublicUserCustomDataResponse as aW, type BatchItemResult as aX, type BatchResponse as aY, type BatchSetUserCustomDataResponse as aZ, type BattleResult as a_, type AIGenerationView as aa, type AIHistoryQuery as ab, type AIImageEditInput as ac, type AIImageInput as ad, type AIInputImage as ae, AIModality as af, type AIMusicInput as ag, type AIPublicDefinitions as ah, type AIPublicFeature as ai, type AIRequest as aj, type AITextInput as ak, type AIThreeDInput as al, type AIVideoInput as am, type AIWaitOptions as an, type AcceptTradeOfferResponse as ao, AcquisitionCapture as ap, type ActivateReferralCodeResponse as aq, type ActivateTimedBoostResponse as ar, type ActiveBoostWindowInfo as as, type ActiveCoopEventInfo as at, type ActiveDealSlotInfo as au, type ActiveEventInfo as av, type ActiveSeasonInfo as aw, type ActiveTimedBoost as ax, type AddQuestProgressResponse as ay, AnalyticsAction as az, MultiplayerChatMode as b, ChatDirectAudience as b$, type BlockchainAccountSafetyPolicy as b0, BlockchainAction as b1, type BlockchainConfigResponse as b2, type BlockchainDefinitions as b3, type BlockchainNetworkDefinition as b4, BlockchainNetworkType as b5, type BlockchainNftCollectionBinding as b6, BlockchainOperationCategory as b7, type BlockchainPlayAccessPolicy as b8, type BlockchainRequest as b9, type CharacterRequest as bA, type CharacterSkinDefinition as bB, type CharacterSkinItem as bC, type CharacterSkinRequirements as bD, type CharacterSkinSale as bE, type CharacterSkinView as bF, type CharacterSkins as bG, type CharacterSkinsView as bH, type CharacterStatRef as bI, type CharacterUnequipResult as bJ, type CharacterUnlock as bK, ChatAction as bL, ChatAuthorType as bM, ChatBlockedTermAction as bN, type ChatChannelAvailability as bO, type ChatChannelDefinition as bP, type ChatChannelIdentity as bQ, type ChatChannelPresetBindings as bR, type ChatChannelRetention as bS, ChatChannelType as bT, type ChatChannelView as bU, type ChatChannelWriteRules as bV, type ChatChannelsResponse as bW, type ChatConversationView as bX, type ChatConversationsResponse as bY, type ChatCursor as bZ, type ChatDefinitions as b_, type BlockchainStats as ba, type BlockchainSystemState as bb, BlockchainTransactionStatus as bc, BlockchainTransactionType as bd, type BoardLoopDefinition as be, type BoardLoopState as bf, type BoardPendingInteraction as bg, type BoardRollResponse as bh, BodyPart as bi, type BoostTriggerCounter as bj, BoostWindowKind as bk, type BuildResponse as bl, type BuildingState as bm, type CancelMatchResponse as bn, type CancelTradeOfferResponse as bo, type ChangeUsernameResponse as bp, CharacterAction as bq, type CharacterClassification as br, type CharacterDefinition as bs, type CharacterDefinitions as bt, type CharacterEquipment as bu, type CharacterEquipmentSlot as bv, type CharacterIdentity as bw, type CharacterLevelRef as bx, type CharacterModel as by, type CharacterRankLadder as bz, type RoomMemberView as c, CommunityChestMemberStatus as c$, type ChatDirectChannelResponse as c0, type ChatHistoryResponse as c1, type ChatMessageView as c2, type ChatModerationSettings as c3, ChatPartitioning as c4, type ChatPollResponse as c5, type ChatPollingSettings as c6, type ChatPresetRegistry as c7, ChatReportReason as c8, type ChatReportResponse as c9, type ClaimTierRewardResponse as cA, type ClaimTierRewardsBatchResponse as cB, ClientPlatform as cC, type ClientState as cD, CloudCodeAction as cE, CloudCodeErrorCode as cF, type CloudCodeLogEntry as cG, CloudCodeLogLevel as cH, type CloudCodeRequest as cI, CloudCodeRevisionSelection as cJ, type CodeExecutionError as cK, type CollectIdleAccrualResponse as cL, CollectionAction as cM, type CollectionDefinitions as cN, type CollectionGlobalSettings as cO, type CollectionRequest as cP, type CollectionSetRef as cQ, type CollectionTradeOfferDocument as cR, CommissionSink as cS, type CommunityAccrualLine as cT, type CommunityCampaignSummary as cU, type CommunityChestClaimResponse as cV, type CommunityChestGroupDocument as cW, type CommunityChestGroupStateResponse as cX, type CommunityChestHistoryEntry as cY, type CommunityChestLeaveResponse as cZ, type CommunityChestMember as c_, type ChatRequest as ca, type ChatRoomUpdate as cb, type ChatSendResponse as cc, type ChatStateResponse as cd, type ClaimAllRewardsBatchResponse as ce, type ClaimAllRewardsResult as cf, type ClaimComebackRewardResponse as cg, type ClaimCycleRewardResponse as ch, type ClaimCycleRewardsBatchResponse as ci, type ClaimDailyRewardResponse as cj, type ClaimDealMilestoneResponse as ck, type ClaimDealMilestonesBatchResponse as cl, type ClaimGrandPrizeResponse as cm, type ClaimGroupCompletionRewardResponse as cn, type ClaimInviteRewardResponse as co, type ClaimInviteRewardsBatchResponse as cp, type ClaimLeaderboardMilestoneResponse as cq, type ClaimLeaderboardMilestonesBatchResponse as cr, type ClaimMilestoneRewardResponse as cs, type ClaimMilestoneRewardsBatchResponse as ct, type ClaimMilestonesBatchResponse as cu, type ClaimQuestRewardResponse as cv, type ClaimQuestRewardsBatchResponse as cw, type ClaimRewardResponse as cx, type ClaimSetRewardResponse as cy, type ClaimSetRewardsBatchResponse as cz, type RoomSnapshotResponse as d, CurrencyStatus as d$, type CommunityChestSharedState as d0, CommunityChestStatus as d1, type CommunityChestUserStateResponse as d2, type CommunityClaimResponse as d3, CommunityCreatorStatus as d4, type CommunityEarningsLine as d5, type CommunityEarningsResponse as d6, type CommunityEligibilityCondition as d7, type CommunityEligibilityResponse as d8, CommunityMarketingAction as d9, type CoopPartnerObjectState as dA, type CoopSpinResponse as dB, type CoopUserStateResponse as dC, CraftAction as dD, type CraftBurnedInstance as dE, type CraftDefinition as dF, type CraftDefinitions as dG, type CraftDefinitionsResponse as dH, CraftInputSelectionMode as dI, CraftOutputLevelMode as dJ, CraftOutputLevelOverflow as dK, type CraftRequest as dL, type CraftResponse as dM, type CraftSingleResult as dN, CraftType as dO, type CreateMatchResponse as dP, type CryptoConvertResponse as dQ, type CryptoCurrencyDefinition as dR, type CryptoCurrencyPermissions as dS, type CryptoLimits as dT, type CryptoNetworkBinding as dU, type CryptoShortfall as dV, CurrencyAction as dW, type CurrencyAudit as dX, type CurrencyConversion as dY, type CurrencyDefinitions as dZ, type CurrencyRequest as d_, type CommunityMarketingRequest as da, type CommunityMarketingState as db, CommunityMetricKind as dc, CommunityParticipationMode as dd, CommunityPayoutCurrencyKind as de, type CommunityPayoutSummary as df, type CommunitySolanaWithdrawalSignature as dg, type CommunityWithdrawalResponse as dh, type ConfirmWithdrawalResponse as di, type ConversionDailyCounter as dj, ConversionRateMode as dk, type ConversionTarget as dl, type ConvertResponse as dm, type CoopBuildObjectsMemberState as dn, type CoopBuildObjectsState as dp, type CoopClaimRewardResponse as dq, CoopEventAction as dr, type CoopEventDefinitions as ds, type CoopEventRequest as dt, type CoopGroupDocument as du, type CoopGroupMember as dv, type CoopGroupStateResponse as dw, CoopGroupStatus as dx, type CoopLeaveGroupResponse as dy, CoopMemberStatus as dz, type IDosGamesClientConfig as e, type DealOfferDefinitions as e$, CurrencyType as e0, CustomDataBucket as e1, CustomDataValueType as e2, CustomDataWriter as e3, type CyclicSchedule as e4, DEFAULT_BASE_URL as e5, type DailyUsageRecord as e6, DataAccessMode as e7, type DataAccessRule as e8, type DataBatchOperation as e9, type DataPublicViewsResponse as eA, type DataQueryResponse as eB, type DataQuerySpec as eC, type DataReadOptions as eD, type DataRecord as eE, DataRefKind as eF, type DataRefTarget as eG, type DataRolesResponse as eH, type DataSortKeyDefinition as eI, type DataUpdateSpec as eJ, type DataWriteResponse as eK, type DealAvailability as eL, DealComparisonOperator as eM, type DealIdentity as eN, type DealMilestoneBlock as eO, type DealMilestoneProgressInfo as eP, type DealNodeActionDefinition as eQ, type DealNodeDefinition as eR, type DealNodePresetBindings as eS, type DealNodePricing as eT, type DealNodeReward as eU, DealNodeRuntimeStatus as eV, DealNodeType as eW, type DealNodeUnlockRules as eX, DealOfferAction as eY, DealOfferActivationStatus as eZ, type DealOfferDefinition as e_, type DataBatchResponse as ea, type DataCollectionDefinition as eb, DataCollectionKind as ec, DataCollectionSchemaMode as ed, DataCollectionsAction as ee, type DataCollectionsRequest as ef, type DataCountResponse as eg, DataCounterKind as eh, type DataCounterResponse as ei, type DataDefinitionsResponse as ej, type DataDeleteResponse as ek, type DataFieldDefinition as el, DataFieldType as em, DataFieldVisibility as en, type DataFileUploadResponse as eo, type DataFileView as ep, type DataFilter as eq, type DataFilterOp as er, type DataGetManyResponse as es, type DataGetResponse as et, type DataItemView as eu, type DataOperationEconomy as ev, DataOwnerDeletedPolicy as ew, type DataPublicViewDefinition as ex, type DataPublicViewPage as ey, type DataPublicViewPointer as ez, ItemService as f, type GetActiveTimedBoostsResponse as f$, type DealOfferGraph as f0, type DealOfferPresetBindings as f1, type DealOfferPresetRegistry as f2, type DealOfferRequest as f3, type DealOffersDefinitionResponse as f4, type DealRewardedVideoActionDefinition as f5, type DealSlotBehaviour as f6, type DealSlotDefinition as f7, type DealSlotPresetBindings as f8, type DealSlotQueueEntry as f9, type EventTokenSpendResponse as fA, EventTokenType as fB, type ExecuteCloudCodeResponse as fC, type ExecuteNodeResponse as fD, ExperimentAction as fE, type ExperimentDefinition as fF, type ExperimentDefinitions as fG, type ExperimentGoal as fH, ExperimentGoalKind as fI, type ExperimentRequest as fJ, type ExperimentVariant as fK, type ExperimentVariantCondition as fL, FRIENDS_FROM_PLATFORM as fM, type FodderConsumedEntry as fN, FodderSelectionMode as fO, FodderValuationMode as fP, type FriendActionResponse as fQ, FriendActionStatus as fR, type FriendPublicProfile as fS, FriendSource as fT, type FriendsListResponse as fU, GameLoopAction as fV, type GameLoopDefinitions as fW, type GameLoopRequest as fX, type GetActiveBoostWindowsResponse as fY, type GetActiveDealsResponse as fZ, type GetActiveEventsResponse as f_, type DealTrackChange as fa, type DealTrackDefinition as fb, type DealTrackRequirement as fc, type DeclineTradeOfferResponse as fd, type DepositNFTResponse as fe, type DepositTokenResponse as ff, type DirectMessageSettings as fg, type DismissDealResponse as fh, type DonationResponse as fi, type DroppedEvent as fj, EVENT_NAME_PATTERN as fk, EnvelopeType as fl, type EquipItemsResponse as fm, type EquipSkinResponse as fn, type EquipSlotPair as fo, type EquipmentPreset as fp, type EquipmentSlot as fq, type EquippedItem as fr, type EventMap as fs, type EventMilestoneClaimResponse as ft, type EventTokenAddress as fu, type EventTokenConversion as fv, type EventTokenDefinition as fw, type EventTokenGrantResponse as fx, type EventTokenMilestoneData as fy, type EventTokenOperation as fz, CheckoutService as g, type LocalizationLocaleDefinition as g$, type GetCharacterSkinsResponse as g0, type GetCharactersResponse as g1, type GetExperimentsResponse as g2, type GetLeaderboardResponse as g3, type GetLeaderboardsBatchResponse as g4, type GetMatchDefinitionsResponse as g5, type GetMilestoneRewardMultiplierResponse as g6, type GetMyProgressResponse as g7, type GetMyUserCustomDataResponse as g8, type GetOverviewBatchResponse as g9, type ItemCatalog as gA, type ItemDefinition as gB, type ItemDefinitions as gC, type ItemEquipment as gD, type ItemMetadata as gE, type ItemRequest as gF, type ItemStats as gG, type ItemTotals as gH, type ItemUpgrade as gI, type ItemUpgradeFodder as gJ, type ItemUpgradeRef as gK, type JsonValue as gL, KycStatus as gM, KycTier as gN, LeaderboardAction as gO, type LeaderboardDefinitions as gP, type LeaderboardMilestoneRef as gQ, type LeaderboardOverview as gR, type LeaderboardRequest as gS, type LeaderboardScoreRef as gT, type LeaderboardUserEntry as gU, type LeaveRoomResponse as gV, type LevelsPreset as gW, type LimitSpec as gX, type LinkedWalletInfo as gY, LocalizationAction as gZ, type LocalizationDefinitions as g_, type GetProgressBatchResponse as ga, type GetPublicTitleDataResponse as gb, type GetPublicUserCustomDataResponse as gc, type GetStorefrontResponse as gd, type GetTradeOffersResponse as ge, type GetUserQuestStateResponse as gf, type GetUserTutorialStateResponse as gg, type GrantStatusTokensResponse as gh, type GrantTokensBatchResponse as gi, type GrantedCollectible as gj, type HeistCell as gk, type IDosGamesSettings as gl, type IapProductDefinition as gm, type IapProductPurchaseState as gn, type IapProductRules as go, IapProductType as gp, IapPurchaseStatus as gq, type IapStore as gr, IapStore$1 as gs, type InboxBadgeResponse as gt, type InboxResponse as gu, type InstantBattleDefinitions as gv, type InstantBattleResponse as gw, type InstantBattleRule as gx, type InventoryDelta as gy, ItemAction as gz, RewardService as h, type NFTModel as h$, type LocalizationLocaleInfo as h0, type LocalizationManifestResponse as h1, LocalizationMissingKeyMode as h2, type LocalizationParams as h3, type LocalizationRequest as h4, type LocalizationState as h5, type LocalizationTableRef as h6, type LocalizationTableResponse as h7, type LogEventsResponse as h8, LootboxAction as h9, type MarketplaceGetDefinitionsResponse as hA, type MarketplaceGroupedOfferView as hB, type MarketplaceGroupedOffersResponse as hC, type MarketplaceHistoryEntryView as hD, type MarketplaceHistoryResponse as hE, type MarketplaceListingSettings as hF, type MarketplaceMatchingSettings as hG, type MarketplaceMyStateResponse as hH, type MarketplaceOfferResponse as hI, type MarketplaceOfferView as hJ, type MarketplacePlaceBidResponse as hK, type MarketplacePricePolicy as hL, type MarketplaceRequest as hM, type MarketplaceSettlementResponse as hN, type MarketplaceTradabilityPolicy as hO, MatchAction as hP, type MatchDefinitions as hQ, type MatchRequest as hR, MatchStatus as hS, type MatchesPageResponse as hT, type MilestoneClaimEntry as hU, type MilestoneClaimRef as hV, type MilestoneDefinition as hW, MultiplayerAction as hX, type MultiplayerDefinitions as hY, type MultiplayerRequest as hZ, type MultiplayerSystemState as h_, type LootboxAmountRange as ha, type LootboxDefinitions as hb, type LootboxDefinitionsResponse as hc, type LootboxGlobalSettings as hd, type LootboxOpenResponse as he, type LootboxPityRule as hf, type LootboxPityTriggerResponse as hg, type LootboxRequest as hh, type LootboxRewardRoll as hi, type LootboxRewardSlot as hj, type LootboxSupplyRule as hk, MarketGoodsType as hl, MarketOfferStatus as hm, MarketOfferType as hn, MarketplaceAction as ho, type MarketplaceActionCounter as hp, type MarketplaceAuctionSettings as hq, type MarketplaceAuctionState as hr, type MarketplaceBidRefund as hs, type MarketplaceBrowseResponse as ht, type MarketplaceBuyOrderSettings as hu, type MarketplaceCommissionOverride as hv, type MarketplaceCommissionPolicy as hw, type MarketplaceCreateOfferResponse as hx, type MarketplaceDefinitions as hy, type MarketplaceDirectTradeSettings as hz, AnalyticsService as i, type QuestClaimRef as i$, type NFTNetworkBinding as i0, type NFTTransactionDocument as i1, type NFTWithdrawalResponse as i2, type NftCollectionStats as i3, type NftStatsContainer as i4, OFFER_NOT_IN_ROTATION as i5, type OpenCollectionChestResponse as i6, type OpenPackResponse as i7, type OperationFailure as i8, type OperationFailureReason as i9, type PremiumRequest as iA, type PremiumStateResponse as iB, type PremiumSubscription as iC, type PriceOption as iD, type PriceOptions as iE, type PublishResponse as iF, PurchaseAction as iG, type PurchaseBatchResponse as iH, type PurchaseDefinitions as iI, type PurchaseReceiptRef as iJ, type PurchaseRequest as iK, type PurchaseValidationBatchResponse as iL, type PurchaseValidationResponse as iM, PushAction as iN, type PushConfigResponse as iO, PushPermissionState as iP, type PushRequest as iQ, type PushSubscribeOptions as iR, type PushSubscribeResult as iS, type PushSubscriptionListResponse as iT, type PushSubscriptionView as iU, PushTopic as iV, type PushTopicView as iW, PushTransport as iX, type PvPMatch as iY, QuestAction as iZ, type QuestAvailability as i_, type OperationSuccess as ia, type PackOpenResult as ib, type PaymentProof as ic, type PaymentRequirement as id, type PendingWithdrawalRef as ie, type PlatformBlockchainState as ig, type PlatformBridgeDefinitions as ih, PlatformFriendsMode as ii, type PlatformLoginResponse as ij, PlatformProfileMode as ik, type PlayAccessInfoResponse as il, PlayAccessMode as im, type PlayAccessState as io, type PlayAccessStatus as ip, type PlayAccessWallet as iq, type PlayerEconomyTuningState as ir, PlayerExperimentStatus as is, type PlayerExperimentView as it, PlaytimeTracker as iu, type PollResponse as iv, PremiumAction as iw, type PremiumDefinitions as ix, type PremiumDefinitionsResponse as iy, type PremiumPurchaseResponse as iz, CommunityMarketingService as j, type SocialActorSnapshot as j$, type QuestCycleDefinition as j0, type QuestDefinition as j1, type QuestDefinitions as j2, type QuestGroupCompletionDefinition as j3, type QuestIdentity as j4, type QuestLinking as j5, type QuestObjectiveDefinition as j6, QuestObjectiveSource as j7, type QuestPhaseDefinition as j8, type QuestPointsTrackView as j9, type RetryWithdrawalResponse as jA, RewardAction as jB, type RewardDefinitions as jC, type RewardDefinitionsResponse as jD, type RewardRequest as jE, type RollActionData as jF, type RoomListItem as jG, type RoomsPageResponse as jH, SKIN_ALREADY_OWNED as jI, SKIN_SLOT as jJ, type ScheduleChain as jK, type ScheduleChainPhase as jL, ScheduleMode as jM, type ScheduleSpec as jN, type ScheduledWindow as jO, SeasonAction as jP, type SeasonDefinitions as jQ, type SeasonRequest as jR, type SeasonTierRewardBundle as jS, type SeasonTierRewardMultiplier as jT, type SeasonTierRewardSet as jU, type SegmentGate as jV, type SendTradeOfferResponse as jW, type SetUserCustomDataResponse as jX, type SettingsInput as jY, SocialAction as jZ, type SocialActorPage as j_, QuestPrerequisiteMode as ja, type QuestPresetBindings as jb, type QuestPresetRegistry as jc, type QuestProgressUpdate as jd, type QuestRequest as je, type QuestReward as jf, QuestStatus as jg, RaidMode as jh, type RaidResponse as ji, type RealtimeEnvelope as jj, type RechargeConfig as jk, type RecordShowResponse as jl, ReferralAction as jm, type ReferralDefinitions as jn, type ReferralDefinitionsResponse as jo, type ReferralInviteRewardState as jp, type ReferralRequest as jq, type RelativeWindow as jr, type ResourceBundle as js, type ResourceConsume as jt, type ResourceDualPartyResult as ju, type ResourceEntry as jv, ResourceEntryType as jw, type ResourceGrant as jx, type ResourceOperation as jy, type ResourceTransferResult as jz, ChatService as k, TimedBoostAction as k$, type SocialActorView as k0, type SocialCommentDeleteResponse as k1, type SocialCommentPage as k2, type SocialCommentView as k3, SocialContentStatus as k4, type SocialCounters as k5, type SocialCounts as k6, type SocialCursor as k7, type SocialDefinitions as k8, type SocialEntityState as k9, type StoreIdentity as kA, type StoreLayout as kB, type StoreOfferAvailability as kC, type StoreOfferDefinition as kD, type StoreOfferPricing as kE, type StoreOfferReward as kF, type StoreOfferStateView as kG, type StorePurchaseRef as kH, type StorePurchaseResponse as kI, type StorePurchaseState as kJ, type StoreRequest as kK, StoreRotationMode as kL, type StoreRotationPurchaseState as kM, type StoreSectionDefinition as kN, type StoreSlotDefinition as kO, type StoreSlotPoolEntry as kP, type StoreSlotRotation as kQ, StoreType as kR, type StorefrontOfferView as kS, type StorefrontPriceOptionView as kT, type StorefrontSectionView as kU, type StorefrontSlotView as kV, type StorefrontView as kW, type SubmitScoreResponse as kX, type SubmitScoresBatchResponse as kY, type SuccessResponse as kZ, type TelegramInvoiceResponse as k_, type SocialEntityStatesResponse as ka, SocialEntityType as kb, type SocialInboxItem as kc, SocialInboxVerb as kd, SocialReactionKind as ke, type SocialReactionPage as kf, type SocialReactionView as kg, SocialReportReason as kh, type SocialReportResponse as ki, type SocialRequest as kj, type SolanaWithdrawalSignature as kk, type SpecialApplyMultiplierResponse as kl, SpecialChoiceMode as km, type SpecialChooseResponse as kn, type SpecialClaimResponse as ko, type SpecialModeOfferData as kp, type SpecialPendingState as kq, type SpendRewardDefinition as kr, type SpendTokensBatchResponse as ks, type StatDefinition as kt, type StatRequirement as ku, type StatsPreset as kv, StoreAction as kw, type StoreAvailability as kx, type StoreDefinition as ky, type StoreDefinitions as kz, PushService as l, type UnequipAllCharactersResponse as l$, type TimedBoostDefinitions as l0, type TimedBoostRequest as l1, TimedBoostStackingPolicy as l2, TimedEventAction as l3, type TimedEventDefinitions as l4, type TimedEventGrantRef as l5, type TimedEventInstanceRef as l6, type TimedEventMilestoneRef as l7, type TimedEventRequest as l8, type TimedEventSpendRef as l9, type TutorialDefinitions as lA, type TutorialFlowBatchResponse as lB, type TutorialFlowDefinition as lC, type TutorialFlowPolicy as lD, type TutorialFlowResponse as lE, TutorialFlowStatus as lF, type TutorialFlowView as lG, type TutorialGateCondition as lH, TutorialGateMode as lI, type TutorialGlobalSettings as lJ, type TutorialIdentity as lK, type TutorialPresetBindings as lL, type TutorialPresetRegistry as lM, type TutorialRequest as lN, TutorialRestartPolicy as lO, type TutorialReward as lP, TutorialScriptModule as lQ, type TutorialScriptedOutcome as lR, type TutorialStepCompletion as lS, TutorialStepCompletionMode as lT, type TutorialStepDefinition as lU, type TutorialStepEffects as lV, type TutorialStepIdentity as lW, type TutorialStepPolicy as lX, type TutorialStepProgress as lY, TypedEmitter as lZ, type UnbanMemberResponse as l_, TitleAction as la, TitleConfig as lb, TitleCustomDataAction as lc, type TitleCustomDataDefinitions as ld, type TitleCustomDataKeyDefinition as le, type TitleCustomDataRecord as lf, type TitleCustomDataRequest as lg, TitleDataBucket as lh, TitleDataScope as li, type TitlePublicConfigurationModel as lj, type TitleRequest as lk, type TokenCurrencyStats as ll, type TokenStatsContainer as lm, type TokenTransactionDocument as ln, type TokenWithdrawalResponse as lo, TradeOfferStatus as lp, TransactionDirection as lq, type TransactionHistoryResponse as lr, type TriggerContext as ls, type TriggerSource as lt, TutorialAction as lu, type TutorialAvailability as lv, type TutorialBlockingPolicy as lw, TutorialBoardAction as lx, type TutorialBoardScript as ly, type TutorialClaimResponse as lz, LocalizationService as m, type UserMatchCreationLimitState as m$, type UnequipItemsResponse as m0, type UnequipSkinResponse as m1, type UnlockCharacterResponse as m2, type UnlockCharactersBatchResponse as m3, type UnlockSkinResponse as m4, type UnstackableItemInstanceState as m5, type UpdateMatchResponse as m6, type UpgradeCharacterLevelResponse as m7, type UpgradeCharacterLevelsBatchResponse as m8, type UpgradeItemLevelResponse as m9, type UserCustomDataKeyDefinition as mA, type UserCustomDataRecord as mB, type UserCustomDataRequest as mC, type UserCustomDataState as mD, type UserDailyCalendarState as mE, type UserDailyCounters as mF, UserData as mG, type UserDealNodeLifetimeCounts as mH, type UserDealNodeState as mI, type UserDealOfferActivationState as mJ, type UserDealOfferHistory as mK, type UserDealOffersState as mL, type UserDealOffersStateResponse as mM, type UserDealSlotState as mN, type UserDealTrackState as mO, type UserDepositAddress as mP, type UserEventTokenProgress as mQ, type UserEventTokensState as mR, type UserGameLoopsState as mS, type UserIdleAccrualState as mT, type UserInventoryState as mU, type UserKycState as mV, type UserLeaderboardProgress as mW, type UserLeaderboardsState as mX, type UserLootboxPityCounter as mY, type UserLootboxState as mZ, type UserMarketplaceState as m_, type UpgradeLevelsBatchResponse as ma, type UpgradeLevelsOptions as mb, type UpgradeStatLevelResponse as mc, type UpgradeStatLevelsBatchResponse as md, type UsagePeriodRecord as me, type UsageReactivationEvent as mf, type UsageTimeStats as mg, type UseCollectibleJokerResponse as mh, UserAction as mi, type UserBlockchainState as mj, type UserBlockchainStateResponse as mk, type UserCharactersState as ml, type UserChatChannelState as mm, type UserChatLimitState as mn, type UserChatState as mo, type UserClaimRewardState as mp, type UserCollectionState as mq, type UserComebackState as mr, type UserCommunityChestState as ms, type UserCoopEventState as mt, type UserCryptoComplianceCounters as mu, type UserCryptoCurrencyState as mv, UserCustomDataAction as mw, type UserCustomDataBatchDeleteItem as mx, type UserCustomDataBatchSetItem as my, type UserCustomDataDefinitions as mz, TimedEventService as n, type WorkshopDownloadResponse as n$, type UserMatchState as n0, type UserPremiumState as n1, type UserPublicDataModel as n2, type UserPurchaseState as n3, type UserQuestCycleState as n4, type UserQuestObjectiveProgress as n5, type UserQuestProgress as n6, type UserQuestState as n7, type UserReferralState as n8, type UserReferralStateResponse as n9, type WalletPlayTokenGate as nA, type WalletUnlinkResponse as nB, type WithdrawalSignatureResponse as nC, type WithdrawalSplit as nD, WorkshopAccessMode as nE, type WorkshopAccessOption as nF, type WorkshopAccessOptionInput as nG, type WorkshopAccessState as nH, WorkshopAccessVia as nI, type WorkshopAcquireResponse as nJ, WorkshopAction as nK, type WorkshopBeginUploadResponse as nL, type WorkshopBrowseQuery as nM, type WorkshopBrowseResponse as nN, type WorkshopCollection as nO, type WorkshopCollectionResponse as nP, type WorkshopCollectionView as nQ, type WorkshopContentMutationResponse as nR, type WorkshopContentResponse as nS, type WorkshopContentStats as nT, WorkshopContentStatus as nU, type WorkshopContentType as nV, type WorkshopContentView as nW, type WorkshopCreatorProfileResponse as nX, type WorkshopDefinitions as nY, type WorkshopDefinitionsResponse as nZ, type WorkshopDownloadFile as n_, type UserRequest as na, type UserRewardState as nb, type UserRewardsStateResponse as nc, type UserSeasonState as nd, type UserSeasonStateResponse as ne, type UserSeasonsState as nf, type UserSocialState as ng, type UserState as nh, type UserStateSlice as ni, type UserStateVersions as nj, type UserStoreState as nk, type UserTimedBoostsState as nl, type UserTimedEventStateResponse as nm, type UserTutorialFlowState as nn, type UserTutorialState as no, type UserTutorialStepState as np, type UserUsageState as nq, type UserVirtualCurrencyState as nr, type VirtualCurrencyDefinition as ns, type VirtualCurrencyEconomy as nt, type VirtualCurrencyPermissions as nu, type WalletChallengeResponse as nv, WalletGateBalanceSource as nw, type WalletGatedBalance as nx, type WalletLinkResponse as ny, WalletLinkType as nz, LeaderboardService as o, type WorkshopDownloadedFile as o0, type WorkshopFileData as o1, type WorkshopFileDeclaration as o2, type WorkshopFileRole as o3, WorkshopHoldingMatch as o4, WorkshopHoldingMode as o5, type WorkshopHoldingPolicy as o6, type WorkshopHoldingRequirement as o7, type WorkshopHoldingRule as o8, WorkshopLicenseSource as o9, type WorkshopLicenseView as oa, type WorkshopLicensesResponse as ob, type WorkshopLimits as oc, type WorkshopModerationSettings as od, type WorkshopPublishFile as oe, type WorkshopPublishInput as of, type WorkshopPublishResponse as og, type WorkshopRequest as oh, WorkshopSort as oi, type WorkshopUploadTarget as oj, WorkshopVisibility as ok, claimedMilestoneIDs as ol, grantedPremiumTiers as om, isAIGenerationTerminal as on, isFail as oo, isMilestoneClaimed as op, isOk as oq, isReservedSlot as or, normalizeBlockchainCategory as os, parseAIErrorCode as ot, where as ou, zPaymentProof as ov, zPriceOption as ow, zPriceOptions as ox, SeasonService as p, PremiumService as q, CharacterService as r, MatchService as s, CraftService as t, AIService as u, CollectionService as v, CoopEventService as w, ReferralService as x, SocialService as y, TimedBoostService as z };
|
|
12245
|
+
/** The two channels of every link. */
|
|
12246
|
+
type ChannelName = "rel" | "fast";
|
|
12247
|
+
|
|
12248
|
+
/** What the session needs from the SDK client — `client.multiplayer` and the player's id. */
|
|
12249
|
+
interface RealtimeClient {
|
|
12250
|
+
multiplayer: Pick<MultiplayerService, "createRoom" | "joinRoom" | "getRoom" | "leaveRoom" | "poll" | "sendSignal" | "claimHost" | "kickMember" | "unbanMember">;
|
|
12251
|
+
auth: {
|
|
12252
|
+
context: {
|
|
12253
|
+
userID: string;
|
|
12254
|
+
} | null;
|
|
12255
|
+
};
|
|
12256
|
+
}
|
|
12257
|
+
interface RealtimeSessionOptions {
|
|
12258
|
+
/** Poll interval while anything is being set up (joins, links connecting, signals queued). */
|
|
12259
|
+
pollFastMs?: number;
|
|
12260
|
+
/** Idle poll of the HOST: it has to notice new players joining. */
|
|
12261
|
+
pollHostIdleMs?: number;
|
|
12262
|
+
/**
|
|
12263
|
+
* Idle poll of everyone else: only keeps the membership alive — once links are up, news comes
|
|
12264
|
+
* over the DataChannels. Every poll is a paid server call, so this is deliberately slow.
|
|
12265
|
+
*/
|
|
12266
|
+
pollClientIdleMs?: number;
|
|
12267
|
+
/** How long to stay on the fast poll after a membership or host change. */
|
|
12268
|
+
fastWindowMs?: number;
|
|
12269
|
+
/** Keepalive ping period on an idle link. */
|
|
12270
|
+
keepaliveMs?: number;
|
|
12271
|
+
/** A peer silent this long is considered gone (link closed, `peerClose`). */
|
|
12272
|
+
peerTimeoutMs?: number;
|
|
12273
|
+
/** Wait for ICE gathering up to this long before sending a description. */
|
|
12274
|
+
iceGatherTimeoutMs?: number;
|
|
12275
|
+
/** Signal payload ceiling (the title's MaxSignalPayloadBytes minus headroom). */
|
|
12276
|
+
maxSignalPayloadBytes?: number;
|
|
12277
|
+
/**
|
|
12278
|
+
* Spacing of signals to ONE peer. Default 650 ms — just over the SDK transport's per-key throttle
|
|
12279
|
+
* window (600 ms); lower it only together with the client's `throttleMs`.
|
|
12280
|
+
*/
|
|
12281
|
+
signalPerTargetGapMs?: number;
|
|
12282
|
+
/** Spacing of ANY two signals. Default 180 ms — over the engine's 150 ms per-action lock. */
|
|
12283
|
+
signalGlobalGapMs?: number;
|
|
12284
|
+
/** Leave the room with `keepalive` on `pagehide` (default true in a browser). */
|
|
12285
|
+
leaveOnPageHide?: boolean;
|
|
12286
|
+
/** Test seam / custom stack. Default: `new RTCPeerConnection(config)`. */
|
|
12287
|
+
createPeerConnection?: (config: RTCConfiguration) => RTCPeerConnection;
|
|
12288
|
+
}
|
|
12289
|
+
type MemberLeftKind = "left" | "kicked" | "timeout";
|
|
12290
|
+
interface RealtimeSessionEvents {
|
|
12291
|
+
/** A DataChannel link to this peer is open — `send` works now. */
|
|
12292
|
+
peerOpen: {
|
|
12293
|
+
peerId: string;
|
|
12294
|
+
};
|
|
12295
|
+
/** The link to this peer is gone (it may reconnect by itself if the peer is still in the room). */
|
|
12296
|
+
peerClose: {
|
|
12297
|
+
peerId: string;
|
|
12298
|
+
reason: string;
|
|
12299
|
+
};
|
|
12300
|
+
/** An app message from a peer. */
|
|
12301
|
+
message: {
|
|
12302
|
+
from: string;
|
|
12303
|
+
channel: ChannelName;
|
|
12304
|
+
data: Uint8Array;
|
|
12305
|
+
};
|
|
12306
|
+
memberJoined: {
|
|
12307
|
+
member: RoomMemberView;
|
|
12308
|
+
};
|
|
12309
|
+
memberLeft: {
|
|
12310
|
+
userId: string;
|
|
12311
|
+
kind: MemberLeftKind;
|
|
12312
|
+
by?: string;
|
|
12313
|
+
};
|
|
12314
|
+
/** Fresh member list (profiles, ready flags, member state). */
|
|
12315
|
+
membersUpdated: {
|
|
12316
|
+
members: RoomMemberView[];
|
|
12317
|
+
};
|
|
12318
|
+
hostChanged: {
|
|
12319
|
+
hostId: string;
|
|
12320
|
+
previousHostId: string | null;
|
|
12321
|
+
};
|
|
12322
|
+
/** Server-relayed lobby chat. */
|
|
12323
|
+
chat: {
|
|
12324
|
+
from: string;
|
|
12325
|
+
text: string;
|
|
12326
|
+
};
|
|
12327
|
+
roomClosed: Record<string, never>;
|
|
12328
|
+
/** This player is no longer in the room (kicked, displaced as a silent host, or expired). */
|
|
12329
|
+
removed: {
|
|
12330
|
+
reason: string;
|
|
12331
|
+
};
|
|
12332
|
+
}
|
|
12333
|
+
type Listener<T> = (e: T) => void;
|
|
12334
|
+
/**
|
|
12335
|
+
* WebRTC session over the engine's Multiplayer signaling (room + poll + SendSignal).
|
|
12336
|
+
*
|
|
12337
|
+
* Topology decides who connects to whom:
|
|
12338
|
+
* • `Host` (star) — the host links to every member, everyone else links only to the host, plus
|
|
12339
|
+
* any `extraPeers` the game asks for (e.g. a standby link to the host's successor so a host
|
|
12340
|
+
* handover does not have to wait for signaling).
|
|
12341
|
+
* • `Mesh` — everyone links to everyone.
|
|
12342
|
+
*
|
|
12343
|
+
* Who offers: for a pair that both want a link, the smaller user id offers; a peer that wants a
|
|
12344
|
+
* link but is not the offerer by that rule sends "want" and the other side offers. No offer glare
|
|
12345
|
+
* by construction.
|
|
12346
|
+
*
|
|
12347
|
+
* Costs are shaped for the backend: polling is fast only while something is being set up and slow
|
|
12348
|
+
* afterwards (the host 2.5 s to see newcomers, others 20 s just to stay members); signals go through
|
|
12349
|
+
* a single-flight, per-peer-batched outbox (see signals.ts).
|
|
12350
|
+
*/
|
|
12351
|
+
declare class RealtimeSession {
|
|
12352
|
+
private readonly client;
|
|
12353
|
+
readonly roomId: string;
|
|
12354
|
+
readonly selfId: string;
|
|
12355
|
+
readonly topology: MultiplayerTopology;
|
|
12356
|
+
readonly chatMode: MultiplayerChatMode;
|
|
12357
|
+
/** The room's game (a client mode id) as it was created; `null` — a room without one. */
|
|
12358
|
+
readonly mode: string | null;
|
|
12359
|
+
ownerId: string;
|
|
12360
|
+
hostId: string;
|
|
12361
|
+
/** Members by user id (self included). */
|
|
12362
|
+
readonly members: Map<string, {
|
|
12363
|
+
[x: string]: unknown;
|
|
12364
|
+
UserID?: string | null | undefined;
|
|
12365
|
+
Username?: string | null | undefined;
|
|
12366
|
+
AvatarUrl?: string | null | undefined;
|
|
12367
|
+
Level?: number | null | undefined;
|
|
12368
|
+
Power?: number | null | undefined;
|
|
12369
|
+
Ready?: boolean | null | undefined;
|
|
12370
|
+
State?: Record<string, string> | null | undefined;
|
|
12371
|
+
JoinedAt?: number | null | undefined;
|
|
12372
|
+
IsHost?: boolean | null | undefined;
|
|
12373
|
+
LastSeenMs?: number | null | undefined;
|
|
12374
|
+
}>;
|
|
12375
|
+
private readonly o;
|
|
12376
|
+
private iceServers;
|
|
12377
|
+
private lastSeq;
|
|
12378
|
+
private readonly links;
|
|
12379
|
+
private readonly everOpen;
|
|
12380
|
+
private readonly retry;
|
|
12381
|
+
private readonly wantSentAt;
|
|
12382
|
+
private extraPeers;
|
|
12383
|
+
private readonly outbox;
|
|
12384
|
+
private pollTimer;
|
|
12385
|
+
private polling;
|
|
12386
|
+
private pollSoonMs;
|
|
12387
|
+
private pollBackoff;
|
|
12388
|
+
private fastUntil;
|
|
12389
|
+
private refreshTimer;
|
|
12390
|
+
private stopped;
|
|
12391
|
+
private successor;
|
|
12392
|
+
private readonly listeners;
|
|
12393
|
+
private readonly onPageHide;
|
|
12394
|
+
private constructor();
|
|
12395
|
+
/** Create a room and start the session as its host. */
|
|
12396
|
+
static create(client: RealtimeClient, roomName: string, room?: {
|
|
12397
|
+
topology?: MultiplayerTopology;
|
|
12398
|
+
chatMode?: MultiplayerChatMode;
|
|
12399
|
+
maxPlayers?: number;
|
|
12400
|
+
visibility?: RoomVisibility;
|
|
12401
|
+
joinCode?: string;
|
|
12402
|
+
mode?: string;
|
|
12403
|
+
}, options?: RealtimeSessionOptions): Promise<OperationResult<RealtimeSession>>;
|
|
12404
|
+
/** Join a room and start the session. */
|
|
12405
|
+
static join(client: RealtimeClient, roomID: string, joinCode?: string, options?: RealtimeSessionOptions): Promise<OperationResult<RealtimeSession>>;
|
|
12406
|
+
private static start;
|
|
12407
|
+
get isHost(): boolean;
|
|
12408
|
+
get isOwner(): boolean;
|
|
12409
|
+
get closed(): boolean;
|
|
12410
|
+
on<K extends keyof RealtimeSessionEvents>(event: K, fn: Listener<RealtimeSessionEvents[K]>): () => void;
|
|
12411
|
+
/** Peers with an open link right now. */
|
|
12412
|
+
openPeers(): string[];
|
|
12413
|
+
isOpen(peerId: string): boolean;
|
|
12414
|
+
/** Round trip to a peer (ms, 0 until measured) and traffic counters — for a network HUD. */
|
|
12415
|
+
linkStats(peerId: string): {
|
|
12416
|
+
rttMs: number;
|
|
12417
|
+
bytesIn: number;
|
|
12418
|
+
bytesOut: number;
|
|
12419
|
+
buffered: number;
|
|
12420
|
+
} | null;
|
|
12421
|
+
/** Send to one peer. false — no open link, too large for `fast`, or `rel` backed up. */
|
|
12422
|
+
send(peerId: string, channel: ChannelName, data: Uint8Array): boolean;
|
|
12423
|
+
/** Send to every open link (optionally except one). Returns how many links took it. */
|
|
12424
|
+
broadcast(channel: ChannelName, data: Uint8Array, except?: string): number;
|
|
12425
|
+
/**
|
|
12426
|
+
* Links the game wants on top of the topology (e.g. standby links to the host's successor).
|
|
12427
|
+
* Both sides of such a link should ask for it; the session connects them without an offer race.
|
|
12428
|
+
*/
|
|
12429
|
+
setExtraPeers(ids: Iterable<string>): void;
|
|
12430
|
+
/** The member that takes over if this (host) player leaves — used by `leave()` and on page close. */
|
|
12431
|
+
setSuccessor(userId: string | null): void;
|
|
12432
|
+
/** Take over a host that stopped responding (see MultiplayerService.claimHost). */
|
|
12433
|
+
claimHost(): Promise<OperationResult<RoomSnapshotResponse>>;
|
|
12434
|
+
kick(userId: string, ban?: boolean): Promise<OperationResult<KickMemberResponse>>;
|
|
12435
|
+
unban(userId: string): Promise<OperationResult<{
|
|
12436
|
+
[x: string]: unknown;
|
|
12437
|
+
WasBanned?: boolean | null | undefined;
|
|
12438
|
+
}>>;
|
|
12439
|
+
/** Leave the room and close every link. */
|
|
12440
|
+
leave(): Promise<void>;
|
|
12441
|
+
/** Re-read the room (profiles, host, ready flags) now. */
|
|
12442
|
+
refreshMembers(): Promise<void>;
|
|
12443
|
+
/**
|
|
12444
|
+
* One poll at a time: a second concurrent Poll is dropped by the transport as a duplicate and
|
|
12445
|
+
* would only push the loop into back-off. A request for an earlier poll made while one is in
|
|
12446
|
+
* flight is remembered and honoured when it returns.
|
|
12447
|
+
*/
|
|
12448
|
+
private schedulePoll;
|
|
12449
|
+
private nextPollDelay;
|
|
12450
|
+
private pollOnce;
|
|
12451
|
+
private handleEnvelope;
|
|
12452
|
+
private dropMember;
|
|
12453
|
+
private scheduleRefresh;
|
|
12454
|
+
private applySnapshot;
|
|
12455
|
+
/** Peers this side wants a link to, by topology + extra peers. */
|
|
12456
|
+
private wanted;
|
|
12457
|
+
private reconcile;
|
|
12458
|
+
private handleSignals;
|
|
12459
|
+
private openLink;
|
|
12460
|
+
private closeLink;
|
|
12461
|
+
private onLinkClosed;
|
|
12462
|
+
private emit;
|
|
12463
|
+
private end;
|
|
12464
|
+
private stop;
|
|
12465
|
+
/** `pagehide`: leave with keepalive so the room learns at once, handing the host role over. */
|
|
12466
|
+
private leaveOnUnload;
|
|
12467
|
+
}
|
|
12468
|
+
|
|
12469
|
+
export { type Unsubscribe as $, AuthenticationService as A, TimedBoostService as B, type ChannelName as C, DealOfferService as D, ExperimentsService as E, UserCustomDataService as F, TitleCustomDataService as G, TitleService as H, type IceServer as I, GameLoopService as J, CloudCodeService as K, LootboxService as L, type MemberLeftKind as M, BlockchainService as N, MarketplaceService as O, PurchaseService as P, QuestService as Q, type RealtimeClient as R, StoreService as S, TutorialService as T, UserService as U, MultiplayerService as V, WorkshopService as W, DataCollectionsService as X, IDosGamesData as Y, type SdkEvents as Z, type Listener$1 as _, RealtimeSession as a, type BattleStepConfig as a$, type ConfigStorage as a0, AIAction as a1, type AIAudioInput as a2, type AIChatMessage as a3, AIErrorCode as a4, type AIGenerateOptions as a5, type AIGenerationAssetView as a6, type AIGenerationErrorView as a7, type AIGenerationListView as a8, AIGenerationStatus as a9, type AnalyticsClientContext as aA, type AnalyticsDefinitions as aB, type AnalyticsDimensionDefinition as aC, AnalyticsDropReason as aD, type AnalyticsEventDefinition as aE, type AnalyticsEventInput as aF, AnalyticsEventNaming as aG, AnalyticsLimits as aH, type AnalyticsParamValue as aI, type AnalyticsParams as aJ, type AnalyticsRequest as aK, AttackOutcome as aL, type AttackResponse as aM, type AttributionInput as aN, type AuthContext as aO, type AuthOptionsResponse as aP, AuthType as aQ, AuthenticationAction as aR, type AuthenticationRequest as aS, AutomaticEvent as aT, type BaseRequest as aU, type BatchDeleteUserCustomDataResponse as aV, type BatchGetPublicUserCustomDataResponse as aW, type BatchItemResult as aX, type BatchResponse as aY, type BatchSetUserCustomDataResponse as aZ, type BattleResult as a_, type AIGenerationView as aa, type AIHistoryQuery as ab, type AIImageEditInput as ac, type AIImageInput as ad, type AIInputImage as ae, AIModality as af, type AIMusicInput as ag, type AIPublicDefinitions as ah, type AIPublicFeature as ai, type AIRequest as aj, type AITextInput as ak, type AIThreeDInput as al, type AIVideoInput as am, type AIWaitOptions as an, type AcceptTradeOfferResponse as ao, AcquisitionCapture as ap, type ActivateReferralCodeResponse as aq, type ActivateTimedBoostResponse as ar, type ActiveBoostWindowInfo as as, type ActiveCoopEventInfo as at, type ActiveDealSlotInfo as au, type ActiveEventInfo as av, type ActiveSeasonInfo as aw, type ActiveTimedBoost as ax, type AddQuestProgressResponse as ay, AnalyticsAction as az, type RealtimeSessionEvents as b, ChatDirectAudience as b$, type BlockchainAccountSafetyPolicy as b0, BlockchainAction as b1, type BlockchainConfigResponse as b2, type BlockchainDefinitions as b3, type BlockchainNetworkDefinition as b4, BlockchainNetworkType as b5, type BlockchainNftCollectionBinding as b6, BlockchainOperationCategory as b7, type BlockchainPlayAccessPolicy as b8, type BlockchainRequest as b9, type CharacterRequest as bA, type CharacterSkinDefinition as bB, type CharacterSkinItem as bC, type CharacterSkinRequirements as bD, type CharacterSkinSale as bE, type CharacterSkinView as bF, type CharacterSkins as bG, type CharacterSkinsView as bH, type CharacterStatRef as bI, type CharacterUnequipResult as bJ, type CharacterUnlock as bK, ChatAction as bL, ChatAuthorType as bM, ChatBlockedTermAction as bN, type ChatChannelAvailability as bO, type ChatChannelDefinition as bP, type ChatChannelIdentity as bQ, type ChatChannelPresetBindings as bR, type ChatChannelRetention as bS, ChatChannelType as bT, type ChatChannelView as bU, type ChatChannelWriteRules as bV, type ChatChannelsResponse as bW, type ChatConversationView as bX, type ChatConversationsResponse as bY, type ChatCursor as bZ, type ChatDefinitions as b_, type BlockchainStats as ba, type BlockchainSystemState as bb, BlockchainTransactionStatus as bc, BlockchainTransactionType as bd, type BoardLoopDefinition as be, type BoardLoopState as bf, type BoardPendingInteraction as bg, type BoardRollResponse as bh, BodyPart as bi, type BoostTriggerCounter as bj, BoostWindowKind as bk, type BuildResponse as bl, type BuildingState as bm, type CancelMatchResponse as bn, type CancelTradeOfferResponse as bo, type ChangeUsernameResponse as bp, CharacterAction as bq, type CharacterClassification as br, type CharacterDefinition as bs, type CharacterDefinitions as bt, type CharacterEquipment as bu, type CharacterEquipmentSlot as bv, type CharacterIdentity as bw, type CharacterLevelRef as bx, type CharacterModel as by, type CharacterRankLadder as bz, type RealtimeSessionOptions as c, CommunityChestMemberStatus as c$, type ChatDirectChannelResponse as c0, type ChatHistoryResponse as c1, type ChatMessageView as c2, type ChatModerationSettings as c3, ChatPartitioning as c4, type ChatPollResponse as c5, type ChatPollingSettings as c6, type ChatPresetRegistry as c7, ChatReportReason as c8, type ChatReportResponse as c9, type ClaimTierRewardResponse as cA, type ClaimTierRewardsBatchResponse as cB, ClientPlatform as cC, type ClientState as cD, CloudCodeAction as cE, CloudCodeErrorCode as cF, type CloudCodeLogEntry as cG, CloudCodeLogLevel as cH, type CloudCodeRequest as cI, CloudCodeRevisionSelection as cJ, type CodeExecutionError as cK, type CollectIdleAccrualResponse as cL, CollectionAction as cM, type CollectionDefinitions as cN, type CollectionGlobalSettings as cO, type CollectionRequest as cP, type CollectionSetRef as cQ, type CollectionTradeOfferDocument as cR, CommissionSink as cS, type CommunityAccrualLine as cT, type CommunityCampaignSummary as cU, type CommunityChestClaimResponse as cV, type CommunityChestGroupDocument as cW, type CommunityChestGroupStateResponse as cX, type CommunityChestHistoryEntry as cY, type CommunityChestLeaveResponse as cZ, type CommunityChestMember as c_, type ChatRequest as ca, type ChatRoomUpdate as cb, type ChatSendResponse as cc, type ChatStateResponse as cd, type ClaimAllRewardsBatchResponse as ce, type ClaimAllRewardsResult as cf, type ClaimComebackRewardResponse as cg, type ClaimCycleRewardResponse as ch, type ClaimCycleRewardsBatchResponse as ci, type ClaimDailyRewardResponse as cj, type ClaimDealMilestoneResponse as ck, type ClaimDealMilestonesBatchResponse as cl, type ClaimGrandPrizeResponse as cm, type ClaimGroupCompletionRewardResponse as cn, type ClaimInviteRewardResponse as co, type ClaimInviteRewardsBatchResponse as cp, type ClaimLeaderboardMilestoneResponse as cq, type ClaimLeaderboardMilestonesBatchResponse as cr, type ClaimMilestoneRewardResponse as cs, type ClaimMilestoneRewardsBatchResponse as ct, type ClaimMilestonesBatchResponse as cu, type ClaimQuestRewardResponse as cv, type ClaimQuestRewardsBatchResponse as cw, type ClaimRewardResponse as cx, type ClaimSetRewardResponse as cy, type ClaimSetRewardsBatchResponse as cz, type IDosGamesClientConfig as d, CurrencyStatus as d$, type CommunityChestSharedState as d0, CommunityChestStatus as d1, type CommunityChestUserStateResponse as d2, type CommunityClaimResponse as d3, CommunityCreatorStatus as d4, type CommunityEarningsLine as d5, type CommunityEarningsResponse as d6, type CommunityEligibilityCondition as d7, type CommunityEligibilityResponse as d8, CommunityMarketingAction as d9, type CoopPartnerObjectState as dA, type CoopSpinResponse as dB, type CoopUserStateResponse as dC, CraftAction as dD, type CraftBurnedInstance as dE, type CraftDefinition as dF, type CraftDefinitions as dG, type CraftDefinitionsResponse as dH, CraftInputSelectionMode as dI, CraftOutputLevelMode as dJ, CraftOutputLevelOverflow as dK, type CraftRequest as dL, type CraftResponse as dM, type CraftSingleResult as dN, CraftType as dO, type CreateMatchResponse as dP, type CryptoConvertResponse as dQ, type CryptoCurrencyDefinition as dR, type CryptoCurrencyPermissions as dS, type CryptoLimits as dT, type CryptoNetworkBinding as dU, type CryptoShortfall as dV, CurrencyAction as dW, type CurrencyAudit as dX, type CurrencyConversion as dY, type CurrencyDefinitions as dZ, type CurrencyRequest as d_, type CommunityMarketingRequest as da, type CommunityMarketingState as db, CommunityMetricKind as dc, CommunityParticipationMode as dd, CommunityPayoutCurrencyKind as de, type CommunityPayoutSummary as df, type CommunitySolanaWithdrawalSignature as dg, type CommunityWithdrawalResponse as dh, type ConfirmWithdrawalResponse as di, type ConversionDailyCounter as dj, ConversionRateMode as dk, type ConversionTarget as dl, type ConvertResponse as dm, type CoopBuildObjectsMemberState as dn, type CoopBuildObjectsState as dp, type CoopClaimRewardResponse as dq, CoopEventAction as dr, type CoopEventDefinitions as ds, type CoopEventRequest as dt, type CoopGroupDocument as du, type CoopGroupMember as dv, type CoopGroupStateResponse as dw, CoopGroupStatus as dx, type CoopLeaveGroupResponse as dy, CoopMemberStatus as dz, CurrencyService as e, type DealOfferDefinitions as e$, CurrencyType as e0, CustomDataBucket as e1, CustomDataValueType as e2, CustomDataWriter as e3, type CyclicSchedule as e4, DEFAULT_BASE_URL as e5, type DailyUsageRecord as e6, DataAccessMode as e7, type DataAccessRule as e8, type DataBatchOperation as e9, type DataPublicViewsResponse as eA, type DataQueryResponse as eB, type DataQuerySpec as eC, type DataReadOptions as eD, type DataRecord as eE, DataRefKind as eF, type DataRefTarget as eG, type DataRolesResponse as eH, type DataSortKeyDefinition as eI, type DataUpdateSpec as eJ, type DataWriteResponse as eK, type DealAvailability as eL, DealComparisonOperator as eM, type DealIdentity as eN, type DealMilestoneBlock as eO, type DealMilestoneProgressInfo as eP, type DealNodeActionDefinition as eQ, type DealNodeDefinition as eR, type DealNodePresetBindings as eS, type DealNodePricing as eT, type DealNodeReward as eU, DealNodeRuntimeStatus as eV, DealNodeType as eW, type DealNodeUnlockRules as eX, DealOfferAction as eY, DealOfferActivationStatus as eZ, type DealOfferDefinition as e_, type DataBatchResponse as ea, type DataCollectionDefinition as eb, DataCollectionKind as ec, DataCollectionSchemaMode as ed, DataCollectionsAction as ee, type DataCollectionsRequest as ef, type DataCountResponse as eg, DataCounterKind as eh, type DataCounterResponse as ei, type DataDefinitionsResponse as ej, type DataDeleteResponse as ek, type DataFieldDefinition as el, DataFieldType as em, DataFieldVisibility as en, type DataFileUploadResponse as eo, type DataFileView as ep, type DataFilter as eq, type DataFilterOp as er, type DataGetManyResponse as es, type DataGetResponse as et, type DataItemView as eu, type DataOperationEconomy as ev, DataOwnerDeletedPolicy as ew, type DataPublicViewDefinition as ex, type DataPublicViewPage as ey, type DataPublicViewPointer as ez, ItemService as f, type GetActiveTimedBoostsResponse as f$, type DealOfferGraph as f0, type DealOfferPresetBindings as f1, type DealOfferPresetRegistry as f2, type DealOfferRequest as f3, type DealOffersDefinitionResponse as f4, type DealRewardedVideoActionDefinition as f5, type DealSlotBehaviour as f6, type DealSlotDefinition as f7, type DealSlotPresetBindings as f8, type DealSlotQueueEntry as f9, type EventTokenSpendResponse as fA, EventTokenType as fB, type ExecuteCloudCodeResponse as fC, type ExecuteNodeResponse as fD, ExperimentAction as fE, type ExperimentDefinition as fF, type ExperimentDefinitions as fG, type ExperimentGoal as fH, ExperimentGoalKind as fI, type ExperimentRequest as fJ, type ExperimentVariant as fK, type ExperimentVariantCondition as fL, FRIENDS_FROM_PLATFORM as fM, type FodderConsumedEntry as fN, FodderSelectionMode as fO, FodderValuationMode as fP, type FriendActionResponse as fQ, FriendActionStatus as fR, type FriendPublicProfile as fS, FriendSource as fT, type FriendsListResponse as fU, GameLoopAction as fV, type GameLoopDefinitions as fW, type GameLoopRequest as fX, type GetActiveBoostWindowsResponse as fY, type GetActiveDealsResponse as fZ, type GetActiveEventsResponse as f_, type DealTrackChange as fa, type DealTrackDefinition as fb, type DealTrackRequirement as fc, type DeclineTradeOfferResponse as fd, type DepositNFTResponse as fe, type DepositTokenResponse as ff, type DirectMessageSettings as fg, type DismissDealResponse as fh, type DonationResponse as fi, type DroppedEvent as fj, EVENT_NAME_PATTERN as fk, EnvelopeType as fl, type EquipItemsResponse as fm, type EquipSkinResponse as fn, type EquipSlotPair as fo, type EquipmentPreset as fp, type EquipmentSlot as fq, type EquippedItem as fr, type EventMap as fs, type EventMilestoneClaimResponse as ft, type EventTokenAddress as fu, type EventTokenConversion as fv, type EventTokenDefinition as fw, type EventTokenGrantResponse as fx, type EventTokenMilestoneData as fy, type EventTokenOperation as fz, CheckoutService as g, LocalizationAction as g$, type GetCharacterSkinsResponse as g0, type GetCharactersResponse as g1, type GetExperimentsResponse as g2, type GetLeaderboardResponse as g3, type GetLeaderboardsBatchResponse as g4, type GetMailboxMessagesResponse as g5, type GetMatchDefinitionsResponse as g6, type GetMilestoneRewardMultiplierResponse as g7, type GetMyProgressResponse as g8, type GetMyUserCustomDataResponse as g9, ItemAction as gA, type ItemCatalog as gB, type ItemDefinition as gC, type ItemDefinitions as gD, type ItemEquipment as gE, type ItemMetadata as gF, type ItemRequest as gG, type ItemStats as gH, type ItemTotals as gI, type ItemUpgrade as gJ, type ItemUpgradeFodder as gK, type ItemUpgradeRef as gL, type JsonValue as gM, type KickMemberResponse as gN, KycStatus as gO, KycTier as gP, LeaderboardAction as gQ, type LeaderboardDefinitions as gR, type LeaderboardMilestoneRef as gS, type LeaderboardOverview as gT, type LeaderboardRequest as gU, type LeaderboardScoreRef as gV, type LeaderboardUserEntry as gW, type LeaveRoomResponse as gX, type LevelsPreset as gY, type LimitSpec as gZ, type LinkedWalletInfo as g_, type GetOverviewBatchResponse as ga, type GetProgressBatchResponse as gb, type GetPublicTitleDataResponse as gc, type GetPublicUserCustomDataResponse as gd, type GetStorefrontResponse as ge, type GetTradeOffersResponse as gf, type GetUserQuestStateResponse as gg, type GetUserTutorialStateResponse as gh, type GrantStatusTokensResponse as gi, type GrantTokensBatchResponse as gj, type GrantedCollectible as gk, type HeistCell as gl, type IDosGamesSettings as gm, type IapProductDefinition as gn, type IapProductPurchaseState as go, type IapProductRules as gp, IapProductType as gq, IapPurchaseStatus as gr, type IapStore as gs, IapStore$1 as gt, type InboxBadgeResponse as gu, type InboxResponse as gv, type InstantBattleDefinitions as gw, type InstantBattleResponse as gx, type InstantBattleRule as gy, type InventoryDelta as gz, RewardService as h, type MarketplaceHistoryResponse as h$, type LocalizationDefinitions as h0, type LocalizationLocaleDefinition as h1, type LocalizationLocaleInfo as h2, type LocalizationManifestResponse as h3, LocalizationMissingKeyMode as h4, type LocalizationParams as h5, type LocalizationRequest as h6, type LocalizationState as h7, type LocalizationTableRef as h8, type LocalizationTableResponse as h9, type MailboxLetter as hA, MailboxLetterSource as hB, type MailboxOperationResponse as hC, type MailboxPendingReward as hD, type MailboxRequest as hE, MailboxRewardModule as hF, type MailboxSendGiftResponse as hG, type MailboxSendTransferResponse as hH, MarketGoodsType as hI, MarketOfferStatus as hJ, MarketOfferType as hK, MarketplaceAction as hL, type MarketplaceActionCounter as hM, type MarketplaceAuctionSettings as hN, type MarketplaceAuctionState as hO, type MarketplaceBidRefund as hP, type MarketplaceBrowseResponse as hQ, type MarketplaceBuyOrderSettings as hR, type MarketplaceCommissionOverride as hS, type MarketplaceCommissionPolicy as hT, type MarketplaceCreateOfferResponse as hU, type MarketplaceDefinitions as hV, type MarketplaceDirectTradeSettings as hW, type MarketplaceGetDefinitionsResponse as hX, type MarketplaceGroupedOfferView as hY, type MarketplaceGroupedOffersResponse as hZ, type MarketplaceHistoryEntryView as h_, type LogEventsResponse as ha, LootboxAction as hb, type LootboxAmountRange as hc, type LootboxDefinitions as hd, type LootboxDefinitionsResponse as he, type LootboxGlobalSettings as hf, type LootboxOpenResponse as hg, type LootboxPityRule as hh, type LootboxPityTriggerResponse as hi, type LootboxRequest as hj, type LootboxRewardRoll as hk, type LootboxRewardSlot as hl, type LootboxSupplyRule as hm, MAILBOX_COUNTER_CAP as hn, type MailLink as ho, type MailTemplateDefinition as hp, type MailText as hq, MailboxAction as hr, MailboxCategory as hs, type MailboxClaimResponse as ht, type MailboxClaimedLetter as hu, type MailboxCountersResponse as hv, type MailboxDefinitions as hw, MailboxErrors as hx, type MailboxGiftStatusResponse as hy, type MailboxItemFailure as hz, AnalyticsService as i, type PremiumStateResponse as i$, type MarketplaceListingSettings as i0, type MarketplaceMatchingSettings as i1, type MarketplaceMyStateResponse as i2, type MarketplaceOfferResponse as i3, type MarketplaceOfferView as i4, type MarketplacePlaceBidResponse as i5, type MarketplacePricePolicy as i6, type MarketplaceRequest as i7, type MarketplaceSettlementResponse as i8, type MarketplaceTradabilityPolicy as i9, type OperationFailureReason as iA, type OperationResult as iB, type OperationSuccess as iC, type PackOpenResult as iD, type PaymentProof as iE, type PaymentRequirement as iF, type PendingWithdrawalRef as iG, type PlatformBlockchainState as iH, type PlatformBridgeDefinitions as iI, PlatformFriendsMode as iJ, type PlatformLoginResponse as iK, PlatformProfileMode as iL, type PlayAccessInfoResponse as iM, PlayAccessMode as iN, type PlayAccessState as iO, type PlayAccessStatus as iP, type PlayAccessWallet as iQ, type PlayerEconomyTuningState as iR, PlayerExperimentStatus as iS, type PlayerExperimentView as iT, PlaytimeTracker as iU, type PollResponse as iV, PremiumAction as iW, type PremiumDefinitions as iX, type PremiumDefinitionsResponse as iY, type PremiumPurchaseResponse as iZ, type PremiumRequest as i_, MatchAction as ia, type MatchDefinitions as ib, type MatchRequest as ic, MatchStatus as id, type MatchesPageResponse as ie, type MilestoneClaimEntry as ig, type MilestoneClaimRef as ih, type MilestoneDefinition as ii, MultiplayerAction as ij, MultiplayerChatMode as ik, type MultiplayerDefinitions as il, type MultiplayerRequest as im, type MultiplayerSystemState as io, MultiplayerTopology as ip, type NFTModel as iq, type NFTNetworkBinding as ir, type NFTTransactionDocument as is, type NFTWithdrawalResponse as it, type NftCollectionStats as iu, type NftStatsContainer as iv, OFFER_NOT_IN_ROTATION as iw, type OpenCollectionChestResponse as ix, type OpenPackResponse as iy, type OperationFailure as iz, CommunityMarketingService as j, RewardAction as j$, type PremiumSubscription as j0, type PriceOption as j1, type PriceOptions as j2, type PublishResponse as j3, PurchaseAction as j4, type PurchaseBatchResponse as j5, type PurchaseDefinitions as j6, type PurchaseReceiptRef as j7, type PurchaseRequest as j8, type PurchaseValidationBatchResponse as j9, QuestPrerequisiteMode as jA, type QuestPresetBindings as jB, type QuestPresetRegistry as jC, type QuestProgressUpdate as jD, type QuestRequest as jE, type QuestReward as jF, QuestStatus as jG, RaidMode as jH, type RaidResponse as jI, type RealtimeEnvelope as jJ, type RechargeConfig as jK, type RecordShowResponse as jL, ReferralAction as jM, type ReferralDefinitions as jN, type ReferralDefinitionsResponse as jO, type ReferralInviteRewardState as jP, type ReferralRequest as jQ, type RelativeWindow as jR, type ResourceBundle as jS, type ResourceConsume as jT, type ResourceDualPartyResult as jU, type ResourceEntry as jV, ResourceEntryType as jW, type ResourceGrant as jX, type ResourceOperation as jY, type ResourceTransferResult as jZ, type RetryWithdrawalResponse as j_, type PurchaseValidationResponse as ja, PushAction as jb, type PushConfigResponse as jc, PushPermissionState as jd, type PushRequest as je, type PushSubscribeOptions as jf, type PushSubscribeResult as jg, type PushSubscriptionListResponse as jh, type PushSubscriptionView as ji, PushTopic as jj, type PushTopicView as jk, PushTransport as jl, type PvPMatch as jm, QuestAction as jn, type QuestAvailability as jo, type QuestClaimRef as jp, type QuestCycleDefinition as jq, type QuestDefinition as jr, type QuestDefinitions as js, type QuestGroupCompletionDefinition as jt, type QuestIdentity as ju, type QuestLinking as jv, type QuestObjectiveDefinition as jw, QuestObjectiveSource as jx, type QuestPhaseDefinition as jy, type QuestPointsTrackView as jz, ChatService as k, type StoreAvailability as k$, type RewardDefinitions as k0, type RewardDefinitionsResponse as k1, type RewardRequest as k2, type RollActionData as k3, type RoomListItem as k4, type RoomMemberView as k5, type RoomSnapshotResponse as k6, RoomVisibility as k7, type RoomsPageResponse as k8, SKIN_ALREADY_OWNED as k9, type SocialCursor as kA, type SocialDefinitions as kB, type SocialEntityState as kC, type SocialEntityStatesResponse as kD, SocialEntityType as kE, type SocialGiftDefinition as kF, type SocialInboxItem as kG, SocialInboxVerb as kH, SocialReactionKind as kI, type SocialReactionPage as kJ, type SocialReactionView as kK, SocialReportReason as kL, type SocialReportResponse as kM, type SocialRequest as kN, type SolanaWithdrawalSignature as kO, type SpecialApplyMultiplierResponse as kP, SpecialChoiceMode as kQ, type SpecialChooseResponse as kR, type SpecialClaimResponse as kS, type SpecialModeOfferData as kT, type SpecialPendingState as kU, type SpendRewardDefinition as kV, type SpendTokensBatchResponse as kW, type StatDefinition as kX, type StatRequirement as kY, type StatsPreset as kZ, StoreAction as k_, SKIN_SLOT as ka, type ScheduleChain as kb, type ScheduleChainPhase as kc, ScheduleMode as kd, type ScheduleSpec as ke, type ScheduledWindow as kf, SeasonAction as kg, type SeasonDefinitions as kh, type SeasonRequest as ki, type SeasonTierRewardBundle as kj, type SeasonTierRewardMultiplier as kk, type SeasonTierRewardSet as kl, type SegmentGate as km, type SendTradeOfferResponse as kn, type SetUserCustomDataResponse as ko, type SettingsInput as kp, SocialAction as kq, type SocialActorPage as kr, type SocialActorSnapshot as ks, type SocialActorView as kt, type SocialCommentDeleteResponse as ku, type SocialCommentPage as kv, type SocialCommentView as kw, SocialContentStatus as kx, type SocialCounters as ky, type SocialCounts as kz, PushService as l, type TutorialAvailability as l$, type StoreDefinition as l0, type StoreDefinitions as l1, type StoreIdentity as l2, type StoreLayout as l3, type StoreOfferAvailability as l4, type StoreOfferDefinition as l5, type StoreOfferPricing as l6, type StoreOfferReward as l7, type StoreOfferStateView as l8, type StorePurchaseRef as l9, type TimedEventInstanceRef as lA, type TimedEventMilestoneRef as lB, type TimedEventRequest as lC, type TimedEventSpendRef as lD, TitleAction as lE, TitleConfig as lF, TitleCustomDataAction as lG, type TitleCustomDataDefinitions as lH, type TitleCustomDataKeyDefinition as lI, type TitleCustomDataRecord as lJ, type TitleCustomDataRequest as lK, TitleDataBucket as lL, TitleDataScope as lM, type TitlePublicConfigurationModel as lN, type TitleRequest as lO, type TokenCurrencyStats as lP, type TokenStatsContainer as lQ, type TokenTransactionDocument as lR, type TokenWithdrawalResponse as lS, TradeOfferStatus as lT, TransactionDirection as lU, type TransactionHistoryResponse as lV, type TransferGiftDefinition as lW, type TransferableResource as lX, type TriggerContext as lY, type TriggerSource as lZ, TutorialAction as l_, type StorePurchaseResponse as la, type StorePurchaseState as lb, type StoreRequest as lc, StoreRotationMode as ld, type StoreRotationPurchaseState as le, type StoreSectionDefinition as lf, type StoreSlotDefinition as lg, type StoreSlotPoolEntry as lh, type StoreSlotRotation as li, StoreType as lj, type StorefrontOfferView as lk, type StorefrontPriceOptionView as ll, type StorefrontSectionView as lm, type StorefrontSlotView as ln, type StorefrontView as lo, type SubmitScoreResponse as lp, type SubmitScoresBatchResponse as lq, type SuccessResponse as lr, type TelegramInvoiceResponse as ls, TimedBoostAction as lt, type TimedBoostDefinitions as lu, type TimedBoostRequest as lv, TimedBoostStackingPolicy as lw, TimedEventAction as lx, type TimedEventDefinitions as ly, type TimedEventGrantRef as lz, LocalizationService as m, type UserCryptoCurrencyState as m$, type TutorialBlockingPolicy as m0, TutorialBoardAction as m1, type TutorialBoardScript as m2, type TutorialClaimResponse as m3, type TutorialDefinitions as m4, type TutorialFlowBatchResponse as m5, type TutorialFlowDefinition as m6, type TutorialFlowPolicy as m7, type TutorialFlowResponse as m8, TutorialFlowStatus as m9, type UnlockSkinResponse as mA, type UnstackableItemInstanceState as mB, type UpdateMatchResponse as mC, type UpgradeCharacterLevelResponse as mD, type UpgradeCharacterLevelsBatchResponse as mE, type UpgradeItemLevelResponse as mF, type UpgradeLevelsBatchResponse as mG, type UpgradeLevelsOptions as mH, type UpgradeStatLevelResponse as mI, type UpgradeStatLevelsBatchResponse as mJ, type UsagePeriodRecord as mK, type UsageReactivationEvent as mL, type UsageTimeStats as mM, type UseCollectibleJokerResponse as mN, UserAction as mO, type UserBlockchainState as mP, type UserBlockchainStateResponse as mQ, type UserCharactersState as mR, type UserChatChannelState as mS, type UserChatLimitState as mT, type UserChatState as mU, type UserClaimRewardState as mV, type UserCollectionState as mW, type UserComebackState as mX, type UserCommunityChestState as mY, type UserCoopEventState as mZ, type UserCryptoComplianceCounters as m_, type TutorialFlowView as ma, type TutorialGateCondition as mb, TutorialGateMode as mc, type TutorialGlobalSettings as md, type TutorialIdentity as me, type TutorialPresetBindings as mf, type TutorialPresetRegistry as mg, type TutorialRequest as mh, TutorialRestartPolicy as mi, type TutorialReward as mj, TutorialScriptModule as mk, type TutorialScriptedOutcome as ml, type TutorialStepCompletion as mm, TutorialStepCompletionMode as mn, type TutorialStepDefinition as mo, type TutorialStepEffects as mp, type TutorialStepIdentity as mq, type TutorialStepPolicy as mr, type TutorialStepProgress as ms, TypedEmitter as mt, type UnbanMemberResponse as mu, type UnequipAllCharactersResponse as mv, type UnequipItemsResponse as mw, type UnequipSkinResponse as mx, type UnlockCharacterResponse as my, type UnlockCharactersBatchResponse as mz, TimedEventService as n, type WalletChallengeResponse as n$, UserCustomDataAction as n0, type UserCustomDataBatchDeleteItem as n1, type UserCustomDataBatchSetItem as n2, type UserCustomDataDefinitions as n3, type UserCustomDataKeyDefinition as n4, type UserCustomDataRecord as n5, type UserCustomDataRequest as n6, type UserCustomDataState as n7, type UserDailyCalendarState as n8, type UserDailyCounters as n9, type UserQuestCycleState as nA, type UserQuestObjectiveProgress as nB, type UserQuestProgress as nC, type UserQuestState as nD, type UserReferralState as nE, type UserReferralStateResponse as nF, type UserRequest as nG, type UserRewardState as nH, type UserRewardsStateResponse as nI, type UserSeasonState as nJ, type UserSeasonStateResponse as nK, type UserSeasonsState as nL, type UserSocialState as nM, type UserState as nN, type UserStateSlice as nO, type UserStateVersions as nP, type UserStoreState as nQ, type UserTimedBoostsState as nR, type UserTimedEventStateResponse as nS, type UserTutorialFlowState as nT, type UserTutorialState as nU, type UserTutorialStepState as nV, type UserUsageState as nW, type UserVirtualCurrencyState as nX, type VirtualCurrencyDefinition as nY, type VirtualCurrencyEconomy as nZ, type VirtualCurrencyPermissions as n_, UserData as na, type UserDealNodeLifetimeCounts as nb, type UserDealNodeState as nc, type UserDealOfferActivationState as nd, type UserDealOfferHistory as ne, type UserDealOffersState as nf, type UserDealOffersStateResponse as ng, type UserDealSlotState as nh, type UserDealTrackState as ni, type UserDepositAddress as nj, type UserEventTokenProgress as nk, type UserEventTokensState as nl, type UserGameLoopsState as nm, type UserIdleAccrualState as nn, type UserInventoryState as no, type UserKycState as np, type UserLeaderboardProgress as nq, type UserLeaderboardsState as nr, type UserLootboxPityCounter as ns, type UserLootboxState as nt, type UserMarketplaceState as nu, type UserMatchCreationLimitState as nv, type UserMatchState as nw, type UserPremiumState as nx, type UserPublicDataModel as ny, type UserPurchaseState as nz, LeaderboardService as o, zPaymentProof as o$, WalletGateBalanceSource as o0, type WalletGatedBalance as o1, type WalletLinkResponse as o2, WalletLinkType as o3, type WalletPlayTokenGate as o4, type WalletUnlinkResponse as o5, type WithdrawalSignatureResponse as o6, type WithdrawalSplit as o7, WorkshopAccessMode as o8, type WorkshopAccessOption as o9, WorkshopHoldingMatch as oA, WorkshopHoldingMode as oB, type WorkshopHoldingPolicy as oC, type WorkshopHoldingRequirement as oD, type WorkshopHoldingRule as oE, WorkshopLicenseSource as oF, type WorkshopLicenseView as oG, type WorkshopLicensesResponse as oH, type WorkshopLimits as oI, type WorkshopModerationSettings as oJ, type WorkshopPublishFile as oK, type WorkshopPublishInput as oL, type WorkshopPublishResponse as oM, type WorkshopRequest as oN, WorkshopSort as oO, type WorkshopUploadTarget as oP, WorkshopVisibility as oQ, claimedMilestoneIDs as oR, grantedPremiumTiers as oS, isAIGenerationTerminal as oT, isFail as oU, isMilestoneClaimed as oV, isOk as oW, isReservedSlot as oX, normalizeBlockchainCategory as oY, parseAIErrorCode as oZ, where as o_, type WorkshopAccessOptionInput as oa, type WorkshopAccessState as ob, WorkshopAccessVia as oc, type WorkshopAcquireResponse as od, WorkshopAction as oe, type WorkshopBeginUploadResponse as of, type WorkshopBrowseQuery as og, type WorkshopBrowseResponse as oh, type WorkshopCollection as oi, type WorkshopCollectionResponse as oj, type WorkshopCollectionView as ok, type WorkshopContentMutationResponse as ol, type WorkshopContentResponse as om, type WorkshopContentStats as on, WorkshopContentStatus as oo, type WorkshopContentType as op, type WorkshopContentView as oq, type WorkshopCreatorProfileResponse as or, type WorkshopDefinitions as os, type WorkshopDefinitionsResponse as ot, type WorkshopDownloadFile as ou, type WorkshopDownloadResponse as ov, type WorkshopDownloadedFile as ow, type WorkshopFileData as ox, type WorkshopFileDeclaration as oy, type WorkshopFileRole as oz, SeasonService as p, zPriceOption as p0, zPriceOptions as p1, PremiumService as q, CharacterService as r, MatchService as s, CraftService as t, AIService as u, CollectionService as v, CoopEventService as w, ReferralService as x, MailboxService as y, SocialService as z };
|