@idosgames/core 0.13.0 → 0.14.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/index.d.ts CHANGED
@@ -477,7 +477,7 @@ interface UserEventTokensState {
477
477
  type PriceOption = { OptionID?: null | string; Name?: null | string; Cost?: null | ResourceConsume; AllowedPlatforms?: null | Array<'Unknown' | 'Web' | 'Android' | 'Ios'>; AssetPaths?: null | Record<string, string>; [key: string]: unknown; };
478
478
  type PriceOptions = Record<string, PriceOption>;
479
479
  type PaymentProof = { Store: 'GooglePlay' | 'AppleAppStore'; Receipt: string; Signature?: null | string; [key: string]: unknown; };
480
- type ResourceEntry = { Type?: null | 'Item' | 'VirtualCurrency' | 'CryptoCurrency' | 'RewardedVideoCredit' | 'Purchase'; CurrencyID?: null | string; Amount?: null | number; CatalogID?: null | string; ItemID?: null | string; ProductID?: null | string; };
480
+ type ResourceEntry = { Type?: null | 'Item' | 'VirtualCurrency' | 'CryptoCurrency' | 'RewardedVideoCredit' | 'Purchase'; CurrencyID?: null | string; Amount?: null | number; AmountUsd?: null | number; CatalogID?: null | string; ItemID?: null | string; ProductID?: null | string; };
481
481
  type EventTokenAddress = { EntityID: string; Type?: null | 'TimedEvent' | 'Quest' | 'Leaderboard' | 'CoopEvent' | 'Season'; };
482
482
  type EventTokenOperation = { Address?: null | EventTokenAddress; Amount?: null | number; Source?: null | string; };
483
483
  type ResourceBundle = { Entries?: null | Array<ResourceEntry>; EventTokens?: null | Array<EventTokenOperation>; };
@@ -3169,6 +3169,187 @@ declare const BlockchainAction: {
3169
3169
  };
3170
3170
  type BlockchainAction = (typeof BlockchainAction)[keyof typeof BlockchainAction];
3171
3171
 
3172
+ /** How a publication can be obtained. A player gets access if ANY option of the publication passes. */
3173
+ declare const WorkshopAccessMode: {
3174
+ readonly Free: "Free";
3175
+ /** Paid in resources: charged to the buyer, the author receives it minus commission. */
3176
+ readonly Price: "Price";
3177
+ /** Open while (or once) the player holds the resources. Nothing is charged. */
3178
+ readonly Holding: "Holding";
3179
+ };
3180
+ type WorkshopAccessMode = (typeof WorkshopAccessMode)[keyof typeof WorkshopAccessMode];
3181
+ /** Holding mode, chosen by the author. */
3182
+ declare const WorkshopHoldingMode: {
3183
+ /** Re-checked on every download: spend the resource — lose access. */
3184
+ readonly WhileHeld: "WhileHeld";
3185
+ /** Checked once when acquiring, then a permanent license. */
3186
+ readonly UnlockOnce: "UnlockOnce";
3187
+ };
3188
+ type WorkshopHoldingMode = (typeof WorkshopHoldingMode)[keyof typeof WorkshopHoldingMode];
3189
+ declare const WorkshopHoldingMatch: {
3190
+ readonly All: "All";
3191
+ readonly Any: "Any";
3192
+ };
3193
+ type WorkshopHoldingMatch = (typeof WorkshopHoldingMatch)[keyof typeof WorkshopHoldingMatch];
3194
+ declare const WorkshopVisibility: {
3195
+ readonly Public: "Public";
3196
+ /** Not listed; reachable by id (ContentID is unguessable). */
3197
+ readonly Unlisted: "Unlisted";
3198
+ /** Only the author's friends. */
3199
+ readonly Friends: "Friends";
3200
+ };
3201
+ type WorkshopVisibility = (typeof WorkshopVisibility)[keyof typeof WorkshopVisibility];
3202
+ declare const WorkshopContentStatus: {
3203
+ readonly Uploading: "Uploading";
3204
+ readonly PendingReview: "PendingReview";
3205
+ readonly Published: "Published";
3206
+ /** Hidden by moderation; players who already have access still download. */
3207
+ readonly Hidden: "Hidden";
3208
+ /** Unpublished (terminal); players who already have access still download. */
3209
+ readonly Removed: "Removed";
3210
+ };
3211
+ type WorkshopContentStatus = (typeof WorkshopContentStatus)[keyof typeof WorkshopContentStatus];
3212
+ declare const WorkshopLicenseSource: {
3213
+ readonly Purchase: "Purchase";
3214
+ readonly Free: "Free";
3215
+ readonly Holding: "Holding";
3216
+ };
3217
+ type WorkshopLicenseSource = (typeof WorkshopLicenseSource)[keyof typeof WorkshopLicenseSource];
3218
+ declare const WorkshopReactionKind: {
3219
+ readonly Like: "Like";
3220
+ readonly Favorite: "Favorite";
3221
+ };
3222
+ type WorkshopReactionKind = (typeof WorkshopReactionKind)[keyof typeof WorkshopReactionKind];
3223
+ declare const WorkshopReportReason: {
3224
+ readonly Inappropriate: "Inappropriate";
3225
+ readonly Spam: "Spam";
3226
+ readonly Stolen: "Stolen";
3227
+ readonly Broken: "Broken";
3228
+ readonly Other: "Other";
3229
+ };
3230
+ type WorkshopReportReason = (typeof WorkshopReportReason)[keyof typeof WorkshopReportReason];
3231
+ declare const WorkshopSort: {
3232
+ readonly New: "New";
3233
+ readonly Popular: "Popular";
3234
+ readonly MostLiked: "MostLiked";
3235
+ };
3236
+ type WorkshopSort = (typeof WorkshopSort)[keyof typeof WorkshopSort];
3237
+ /** How the player's access to the files was established. */
3238
+ declare const WorkshopAccessVia: {
3239
+ readonly Creator: "Creator";
3240
+ readonly License: "License";
3241
+ readonly Free: "Free";
3242
+ readonly Holding: "Holding";
3243
+ };
3244
+ type WorkshopAccessVia = (typeof WorkshopAccessVia)[keyof typeof WorkshopAccessVia];
3245
+ type WorkshopHoldingRequirement = { Type?: null | 'Item' | 'VirtualCurrency' | 'CryptoCurrency' | 'RewardedVideoCredit' | 'Purchase'; CurrencyID?: null | string; CatalogID?: null | string; ItemID?: null | string; Amount?: null | number; MinLevel?: null | number; [key: string]: unknown; };
3246
+ type WorkshopHoldingRule = { Requirements?: null | Array<WorkshopHoldingRequirement>; Match?: null | 'All' | 'Any'; Mode?: null | 'WhileHeld' | 'UnlockOnce'; [key: string]: unknown; };
3247
+ type WorkshopAccessOption = { OptionID?: null | string; Mode?: null | 'Price' | 'Free' | 'Holding'; Price?: null | ResourceBundle; Holding?: null | WorkshopHoldingRule; [key: string]: unknown; };
3248
+ /** Shape of an access option when SENDING it (publish / update). Ids are optional — the server fills `opt{n}`. */
3249
+ interface WorkshopAccessOptionInput {
3250
+ OptionID?: string;
3251
+ Mode: WorkshopAccessMode;
3252
+ Price?: ResourceBundle;
3253
+ Holding?: {
3254
+ Requirements: Array<{
3255
+ Type: "VirtualCurrency" | "Item";
3256
+ CurrencyID?: string;
3257
+ CatalogID?: string;
3258
+ ItemID?: string;
3259
+ Amount: number;
3260
+ MinLevel?: number;
3261
+ }>;
3262
+ Match?: WorkshopHoldingMatch;
3263
+ Mode: WorkshopHoldingMode;
3264
+ };
3265
+ }
3266
+ type WorkshopFileRole = { AllowedMimeTypes?: null | Array<string>; MaxBytes?: null | number; MaxCount?: null | number; Required?: null | boolean; [key: string]: unknown; };
3267
+ type WorkshopContentType = { DisplayName?: null | string; Enabled?: null | boolean; Files?: null | Record<string, WorkshopFileRole>; ThumbnailRequired?: null | boolean; AllowedAccessModes?: null | Array<'Price' | 'Free' | 'Holding'>; PricePolicy?: null | MarketplacePricePolicy; PublishGate?: null | SegmentGate; PublishFeeOptions?: null | PriceOptions; TagVocabulary?: null | Array<string>; MaxPublishedPerPlayer?: null | number; DailyPublishCap?: null | number; [key: string]: unknown; };
3268
+ type WorkshopHoldingPolicy = { Allowed?: null | Array<{ Kind?: null | 'Item' | 'VirtualCurrency' | 'EventToken'; CurrencyID?: null | string; CatalogID?: null | string; ItemID?: null | string; TokenType?: null | 'TimedEvent' | 'Quest' | 'Leaderboard' | 'CoopEvent' | 'Season'; EntityID?: null | string; MinAmount?: null | number; MaxAmount?: null | number; [key: string]: unknown; }>; MaxRequirements?: null | number; [key: string]: unknown; };
3269
+ type WorkshopModerationSettings = { AutoHideReportThreshold?: null | number; RequireApproval?: null | boolean; [key: string]: unknown; };
3270
+ type WorkshopLimits = { MaxTitleLength?: null | number; MaxDescriptionLength?: null | number; MaxTags?: null | number; MaxTagLength?: null | number; MaxMetadataKeys?: null | number; MaxMetadataValueLength?: null | number; MaxAccessOptions?: null | number; ThumbnailMaxBytes?: null | number; [key: string]: unknown; };
3271
+ type WorkshopCollection = { CollectionID?: null | string; Name?: null | string; Description?: null | string; ContentIDs?: null | Array<string>; Schedule?: null | ScheduleSpec; Gate?: null | SegmentGate; Order?: null | number; [key: string]: unknown; };
3272
+ type WorkshopDefinitions = { Enabled?: null | boolean; Gate?: null | SegmentGate; Schedule?: null | ScheduleSpec; ContentTypes?: null | Record<string, WorkshopContentType>; PricePolicy?: null | MarketplacePricePolicy; Commission?: null | MarketplaceCommissionPolicy; HoldingPolicy?: null | WorkshopHoldingPolicy; Moderation?: null | WorkshopModerationSettings; Limits?: null | WorkshopLimits; Featured?: null | Array<WorkshopCollection>; [key: string]: unknown; };
3273
+ type WorkshopContentStats = { Acquisitions?: null | number; Downloads?: null | number; Likes?: null | number; Favorites?: null | number; ReportCount?: null | number; [key: string]: unknown; };
3274
+ type WorkshopContentView = { ContentID?: null | string; ContentType?: null | string; CreatorUserID?: null | string; IsOfficial?: null | boolean; CreatorPublicData?: null | UserPublicDataModel; Title?: null | string; Description?: null | string; Tags?: null | Array<string>; Metadata?: null | Record<string, string>; ThumbnailUrl?: null | string; Visibility?: null | 'Friends' | 'Public' | 'Unlisted'; Access?: null | Array<WorkshopAccessOption>; Status?: null | 'Hidden' | 'Uploading' | 'PendingReview' | 'Published' | 'Removed'; ModerationNote?: null | string; Stats?: null | WorkshopContentStats; Revision?: null | number; FileCount?: null | number; TotalBytes?: null | number; CreatedAt?: null | string; UpdatedAt?: null | string; PublishedAt?: null | string; IsMine?: null | boolean; Owned?: null | boolean; Liked?: null | boolean; Favorited?: null | boolean; [key: string]: unknown; };
3275
+ type WorkshopAccessState = { OptionID?: null | string; Mode?: null | 'Price' | 'Free' | 'Holding'; Available?: null | boolean; [key: string]: unknown; };
3276
+ type WorkshopCollectionView = { CollectionID?: null | string; Name?: null | string; Description?: null | string; ContentIDs?: null | Array<string>; Order?: null | number; [key: string]: unknown; };
3277
+ type WorkshopDefinitionsResponse = { Definitions?: null | WorkshopDefinitions; IsOpenNow?: null | boolean; GatePassed?: null | boolean; CanPublish?: null | Record<string, boolean>; Collections?: null | Array<WorkshopCollectionView>; [key: string]: unknown; };
3278
+ type WorkshopBrowseResponse = { Items?: null | Array<WorkshopContentView>; ContinuationToken?: null | string; [key: string]: unknown; };
3279
+ type WorkshopContentResponse = { Content?: null | WorkshopContentView; AccessState?: null | Array<WorkshopAccessState>; CanDownload?: null | boolean; [key: string]: unknown; };
3280
+ type WorkshopCollectionResponse = { Collection?: null | WorkshopCollectionView; Items?: null | Array<WorkshopContentView>; [key: string]: unknown; };
3281
+ type WorkshopCreatorProfileResponse = { CreatorUserID?: null | string; PublicData?: null | UserPublicDataModel; PublishedCount?: null | number; FollowerCount?: null | number; IsFollowing?: null | boolean; Items?: null | Array<WorkshopContentView>; [key: string]: unknown; };
3282
+ type WorkshopUploadTarget = { Role?: null | string; Index?: null | number; Url?: null | string; ContentType?: null | string; Size?: null | number; ServerCopy?: null | boolean; [key: string]: unknown; };
3283
+ type WorkshopBeginUploadResponse = { ContentID?: null | string; Revision?: null | number; Uploads?: null | Array<WorkshopUploadTarget>; ThumbnailUpload?: null | WorkshopUploadTarget; ExpiresAt?: null | string; [key: string]: unknown; };
3284
+ type WorkshopPublishResponse = { Content?: null | WorkshopContentView; Resources?: null | ResourceOperation; [key: string]: unknown; };
3285
+ type WorkshopContentMutationResponse = { Content?: null | WorkshopContentView; [key: string]: unknown; };
3286
+ type WorkshopAcquireResponse = { ContentID?: null | string; OptionID?: null | string; Source?: null | 'Purchase' | 'Free' | 'Holding'; AlreadyOwned?: null | boolean; AccessActive?: null | boolean; Settlement?: null | ResourceDualPartyResult; Resources?: null | ResourceOperation; CommissionTaken?: null | ResourceBundle; [key: string]: unknown; };
3287
+ type WorkshopDownloadFile = { Role?: null | string; Url?: null | string; ContentType?: null | string; Size?: null | number; [key: string]: unknown; };
3288
+ type WorkshopDownloadResponse = { ContentID?: null | string; ContentType?: null | string; Revision?: null | number; AccessVia?: null | 'Free' | 'Holding' | 'Creator' | 'License'; Files?: null | Array<WorkshopDownloadFile>; ThumbnailUrl?: null | string; ExpiresAt?: null | string; [key: string]: unknown; };
3289
+ type WorkshopLicenseView = { ContentID?: null | string; Source?: null | 'Purchase' | 'Free' | 'Holding'; OptionID?: null | string; PricePaid?: null | ResourceBundle; AcquiredAt?: null | string; Content?: null | WorkshopContentView; [key: string]: unknown; };
3290
+ type WorkshopLicensesResponse = { Licenses?: null | Array<WorkshopLicenseView>; ContinuationToken?: null | string; [key: string]: unknown; };
3291
+ type WorkshopReactionResponse = { ContentID?: null | string; Kind?: null | 'Like' | 'Favorite'; Active?: null | boolean; Count?: null | number; [key: string]: unknown; };
3292
+ type WorkshopFollowResponse = { CreatorUserID?: null | string; Following?: null | boolean; FollowerCount?: null | number; [key: string]: unknown; };
3293
+ type WorkshopReportResponse = { ReportID?: null | string; AlreadyReported?: null | boolean; AutoHidden?: null | boolean; [key: string]: unknown; };
3294
+ interface WorkshopFileDeclaration {
3295
+ Role: string;
3296
+ ContentType: string;
3297
+ Size?: number;
3298
+ /** Instead of uploading: a `client.ai` asset URL of THIS player — the server copies it. */
3299
+ SourceAssetUrl?: string;
3300
+ }
3301
+ interface WorkshopRequest extends BaseRequest {
3302
+ ContentID?: string;
3303
+ ContentType?: string;
3304
+ Title?: string;
3305
+ Description?: string;
3306
+ Tags?: string[];
3307
+ Metadata?: Record<string, string>;
3308
+ Visibility?: WorkshopVisibility;
3309
+ Access?: WorkshopAccessOptionInput[];
3310
+ Files?: WorkshopFileDeclaration[];
3311
+ Thumbnail?: WorkshopFileDeclaration;
3312
+ /** Way to pay the publish fee (`PriceOption.OptionID`). */
3313
+ SelectedOptionID?: string;
3314
+ OptionID?: string;
3315
+ ExpectedPrice?: ResourceBundle;
3316
+ CreatorUserID?: string;
3317
+ Tag?: string;
3318
+ MetadataKey?: string;
3319
+ MetadataValue?: string;
3320
+ Sort?: WorkshopSort;
3321
+ FromFollowing?: boolean;
3322
+ CollectionID?: string;
3323
+ PageSize?: number;
3324
+ ContinuationToken?: string;
3325
+ ReportReason?: WorkshopReportReason;
3326
+ Comment?: string;
3327
+ }
3328
+ declare const WorkshopAction: {
3329
+ readonly GetDefinitions: "GetDefinitions";
3330
+ readonly Browse: "Browse";
3331
+ readonly GetContent: "GetContent";
3332
+ readonly GetCollection: "GetCollection";
3333
+ readonly GetCreatorProfile: "GetCreatorProfile";
3334
+ readonly BeginUpload: "BeginUpload";
3335
+ readonly Publish: "Publish";
3336
+ readonly UpdateContent: "UpdateContent";
3337
+ readonly Unpublish: "Unpublish";
3338
+ readonly GetMyContent: "GetMyContent";
3339
+ readonly Acquire: "Acquire";
3340
+ readonly GetDownload: "GetDownload";
3341
+ readonly GetMyLicenses: "GetMyLicenses";
3342
+ readonly Like: "Like";
3343
+ readonly Unlike: "Unlike";
3344
+ readonly Favorite: "Favorite";
3345
+ readonly Unfavorite: "Unfavorite";
3346
+ readonly GetMyFavorites: "GetMyFavorites";
3347
+ readonly Follow: "Follow";
3348
+ readonly Unfollow: "Unfollow";
3349
+ readonly Report: "Report";
3350
+ };
3351
+ type WorkshopAction = (typeof WorkshopAction)[keyof typeof WorkshopAction];
3352
+
3172
3353
  /** enum MultiplayerTopology — p2p connection topology within a room. */
3173
3354
  declare const MultiplayerTopology: {
3174
3355
  readonly Mesh: "Mesh";
@@ -3711,7 +3892,7 @@ type AIGenerationStatus = (typeof AIGenerationStatus)[keyof typeof AIGenerationS
3711
3892
  */
3712
3893
  declare function isAIGenerationTerminal(status: string | null | undefined): boolean;
3713
3894
  /**
3714
- * Stable reason codes of the AI module (server: `InGameAIErrors`). A REFUSED request fails with
3895
+ * Stable reason codes of the AI module (server: `InAppAIErrors`). A REFUSED request fails with
3715
3896
  * `error` = `"AI_LIMIT_REACHED: <safe message>"` — read the code with {@link parseAIErrorCode}.
3716
3897
  * A generation that RAN and failed carries its code in `AIGenerationView.Error.Code`.
3717
3898
  * Branch on the code, show the message; never branch on the message text.
@@ -3842,6 +4023,11 @@ interface AIRequest extends BaseRequest {
3842
4023
  FeatureKey?: string;
3843
4024
  /** Payment option (`PriceOption.OptionID`) the player pays with. Absent = first available. */
3844
4025
  SelectedOptionID?: string;
4026
+ /**
4027
+ * Store receipt. Required exactly when the chosen option is paid with a store purchase (a
4028
+ * `Purchase` entry) — one purchase pays for exactly one generation.
4029
+ */
4030
+ Payment?: PaymentProof;
3845
4031
  Text?: AITextInput;
3846
4032
  Image?: AIImageInput;
3847
4033
  ImageEdit?: AIImageEditInput;
@@ -3849,14 +4035,14 @@ interface AIRequest extends BaseRequest {
3849
4035
  Audio?: AIAudioInput;
3850
4036
  Music?: AIMusicInput;
3851
4037
  ThreeD?: AIThreeDInput;
3852
- /** For GetGeneration and for polling asynchronous jobs (GetText / GetVideo / GetThreeD). */
4038
+ /** For GetGeneration and for polling jobs (GetText / GetImage / GetAudio / GetMusic / GetVideo / GetThreeD). */
3853
4039
  GenerationID?: string;
3854
4040
  /** ListGenerations only. */
3855
4041
  Query?: AIHistoryQuery;
3856
4042
  }
3857
4043
  type AIGenerationAssetView = { Url?: null | string; ContentType?: null | string; Variant?: null | string; };
3858
4044
  type AIGenerationErrorView = { Code?: null | string; Message?: null | string; };
3859
- type AIGenerationView = { GenerationID: string; Status: string; FeatureKey?: null | string; Modality?: null | 'Text' | 'Image' | 'Video' | 'Audio' | 'Music' | 'ThreeD'; Progress?: null | number; OutputText?: null | string; Assets?: null | Array<AIGenerationAssetView>; Error?: null | AIGenerationErrorView; Charge?: null | ResourceOperation; PlayerRefunded?: null | boolean; CreatedAt?: null | string; UpdatedAt?: null | string; };
4045
+ type AIGenerationView = { GenerationID: string; Status: string; FeatureKey?: null | string; Modality?: null | 'Text' | 'Image' | 'Video' | 'Audio' | 'Music' | 'ThreeD'; Progress?: null | number; OutputText?: null | string; Assets?: null | Array<AIGenerationAssetView>; Error?: null | AIGenerationErrorView; Charge?: null | ResourceOperation; PlayerRefunded?: null | boolean; PaymentSettled?: null | boolean; CreatedAt?: null | string; UpdatedAt?: null | string; };
3860
4046
  type AIGenerationListView = { Data?: null | Array<AIGenerationView>; Skip?: null | number; Limit?: null | number; };
3861
4047
  type AIPublicFeature = { Modality?: null | 'Text' | 'Image' | 'Video' | 'Audio' | 'Music' | 'ThreeD'; Async?: null | boolean; Limits?: null | LimitSpec; PriceOptions?: null | PriceOptions; Tags?: null | Array<string>; HistoryMessages?: null | number; MaxTokens?: null | number; AllowImages?: null | boolean; MaxInputImages?: null | number; MaxInputImageBytes?: null | number; AllowedImageTypes?: null | Array<string>; MaxImages?: null | number; AllowEdit?: null | boolean; AllowReferenceImage?: null | boolean; MaxPromptChars?: null | number; LockBehavior?: null | boolean; ImageSize?: null | string; VideoSize?: null | string; VideoSeconds?: null | number; Voice?: null | string; AudioFormat?: null | string; MusicFormat?: null | string; ThreeDOperation?: null | string; ArtStyle?: null | string; ThreeDFormat?: null | string; [key: string]: unknown; };
3862
4048
  /** The title's AI features, returned by `getDefinitions()`. */
@@ -3869,9 +4055,9 @@ interface AIPublicDefinitions {
3869
4055
  declare const AIAction: {
3870
4056
  /** Sanitized feature list of the title. */
3871
4057
  readonly GetDefinitions: "GetDefinitions";
3872
- /** Text. For an `Async` feature it only submits the job (status `running`). */
4058
+ /** Text: submits the job (status `pending`) — every generation is a job, poll `GetText`. */
3873
4059
  readonly GenerateText: "GenerateText";
3874
- /** Poll an asynchronous text job. */
4060
+ /** Poll a text job. */
3875
4061
  readonly GetText: "GetText";
3876
4062
  readonly GenerateImage: "GenerateImage";
3877
4063
  readonly EditImage: "EditImage";
@@ -3888,6 +4074,12 @@ declare const AIAction: {
3888
4074
  readonly GetThreeD: "GetThreeD";
3889
4075
  readonly ListGenerations: "ListGenerations";
3890
4076
  readonly GetGeneration: "GetGeneration";
4077
+ /** Poll an image job (generation and edit). */
4078
+ readonly GetImage: "GetImage";
4079
+ /** Poll a speech job. */
4080
+ readonly GetAudio: "GetAudio";
4081
+ /** Poll a music job. */
4082
+ readonly GetMusic: "GetMusic";
3891
4083
  };
3892
4084
  type AIAction = (typeof AIAction)[keyof typeof AIAction];
3893
4085
 
@@ -3930,8 +4122,131 @@ declare const TitleCustomDataAction: {
3930
4122
  };
3931
4123
  type TitleCustomDataAction = (typeof TitleCustomDataAction)[keyof typeof TitleCustomDataAction];
3932
4124
  type ExperimentVariant = { VariantID?: null | string; DisplayName?: null | string; Weight?: null | number; IsControl?: null | boolean; Params?: null | Record<string, string>; [key: string]: unknown; };
3933
- type ExperimentDefinition = { ExperimentID?: null | string; DisplayName?: null | string; Description?: null | string; IsEnabled?: null | boolean; Schedule?: null | ScheduleSpec; Gate?: null | SegmentGate; Variants?: null | Array<ExperimentVariant>; Salt?: null | string; LayerID?: null | string; StickyAssignment?: null | boolean; CustomParams?: null | Record<string, string>; [key: string]: unknown; };
4125
+ /** What an experiment is judged by (engine `ExperimentGoalKind`). */
4126
+ declare const ExperimentGoalKind: {
4127
+ /** Share of participants who sent `EventName` at least once. */
4128
+ readonly EventConversion: "EventConversion";
4129
+ /** `EventName` count per participant. */
4130
+ readonly EventCountPerUser: "EventCountPerUser";
4131
+ /** Sum of `EventName` Value per participant (revenue, score). */
4132
+ readonly EventValuePerUser: "EventValuePerUser";
4133
+ readonly RetentionD1: "RetentionD1";
4134
+ readonly RetentionD7: "RetentionD7";
4135
+ readonly PayerConversion: "PayerConversion";
4136
+ readonly Arpu: "Arpu";
4137
+ };
4138
+ type ExperimentGoalKind = (typeof ExperimentGoalKind)[keyof typeof ExperimentGoalKind];
4139
+ type ExperimentGoal = { MetricID?: null | string; Kind?: null | string; EventName?: null | string; IsPrimary?: null | boolean; [key: string]: unknown; };
4140
+ type ExperimentDefinition = { ExperimentID?: null | string; DisplayName?: null | string; Description?: null | string; IsEnabled?: null | boolean; Schedule?: null | ScheduleSpec; Gate?: null | SegmentGate; Variants?: null | Array<ExperimentVariant>; Salt?: null | string; LayerID?: null | string; StickyAssignment?: null | boolean; CustomParams?: null | Record<string, string>; Goals?: null | Array<ExperimentGoal>; ActivationEvent?: null | string; RolloutVariantID?: null | string; [key: string]: unknown; };
3934
4141
  type ExperimentDefinitions = { Experiments?: null | Record<string, ExperimentDefinition>; [key: string]: unknown; };
4142
+ /** State of an experiment for this player. */
4143
+ declare const PlayerExperimentStatus: {
4144
+ /** Running: the variant is the player's own sticky assignment. */
4145
+ readonly Running: "Running";
4146
+ /** Disabled, out of its schedule or not in the publisher's plan: everyone gets control. */
4147
+ readonly Stopped: "Stopped";
4148
+ /** The winner was rolled out: everyone gets it. */
4149
+ readonly RolledOut: "RolledOut";
4150
+ };
4151
+ type PlayerExperimentStatus = (typeof PlayerExperimentStatus)[keyof typeof PlayerExperimentStatus];
4152
+ type PlayerExperimentView = { ExperimentID?: null | string; VariantID?: null | string; Status?: null | string; Params?: null | Record<string, string>; [key: string]: unknown; };
4153
+ type GetExperimentsResponse = { Experiments?: null | Array<PlayerExperimentView>; IsAbTestingAvailable?: null | boolean; [key: string]: unknown; };
4154
+ type ExperimentRequest = BaseRequest;
4155
+ declare const ExperimentAction: {
4156
+ readonly GetExperiments: "GetExperiments";
4157
+ };
4158
+ type ExperimentAction = (typeof ExperimentAction)[keyof typeof ExperimentAction];
4159
+
4160
+ /** How the title accepts event names (`Analytics.EventNaming`). */
4161
+ declare const AnalyticsEventNaming: {
4162
+ /** Any valid name is accepted and collected into the title catalog, up to the plan limit. */
4163
+ readonly Open: "Open";
4164
+ /** Only names declared in `Analytics.Events` are recorded; the rest are dropped. */
4165
+ readonly Declared: "Declared";
4166
+ };
4167
+ type AnalyticsEventNaming = (typeof AnalyticsEventNaming)[keyof typeof AnalyticsEventNaming];
4168
+ type AnalyticsEventDefinition = { DisplayName?: null | string; Description?: null | string; Blocked?: null | boolean; [key: string]: unknown; };
4169
+ type AnalyticsDimensionDefinition = { ParamName?: null | string; DisplayName?: null | string; [key: string]: unknown; };
4170
+ type AnalyticsDefinitions = { Enabled?: null | boolean; EventNaming?: null | string; Events?: null | Record<string, AnalyticsEventDefinition>; Dimensions?: null | Array<AnalyticsDimensionDefinition>; RetentionDays?: null | number; AutomaticEvents?: null | boolean; [key: string]: unknown; };
4171
+ /**
4172
+ * Events the SDK logs by itself. The `idos_` prefix is reserved — `logEvent` refuses it, so a
4173
+ * game cannot fake a session or an install.
4174
+ */
4175
+ declare const AutomaticEvent: {
4176
+ /** The first launch on this device. */
4177
+ readonly FirstOpen: "idos_first_open";
4178
+ /** A new session: launch, or return after 30 minutes away (the same gap as playtime). */
4179
+ readonly SessionStart: "idos_session_start";
4180
+ /** The app version changed since the previous launch. */
4181
+ readonly AppUpdate: "idos_app_update";
4182
+ /** The OS version changed since the previous launch. */
4183
+ readonly OsUpdate: "idos_os_update";
4184
+ /** `logScreenView(name)`. */
4185
+ readonly ScreenView: "idos_screen_view";
4186
+ };
4187
+ type AutomaticEvent = (typeof AutomaticEvent)[keyof typeof AutomaticEvent];
4188
+ /** The server's rules, applied by the SDK up front so an invalid event never costs a call. */
4189
+ declare const AnalyticsLimits: {
4190
+ readonly maxEventsPerBatch: 50;
4191
+ readonly maxParams: 25;
4192
+ readonly maxStringValueLength: 100;
4193
+ /** Events older than this are dropped by the server as `TooOld`. */
4194
+ readonly maxEventAgeMs: number;
4195
+ readonly reservedPrefixes: readonly ["idos_", "firebase_", "google_", "ga_"];
4196
+ };
4197
+ /** Event and parameter names: a letter, then letters, digits or `_`, 40 characters at most. */
4198
+ declare const EVENT_NAME_PATTERN: RegExp;
4199
+ type AnalyticsParamValue = string | number | boolean;
4200
+ type AnalyticsParams = Record<string, AnalyticsParamValue>;
4201
+ /** One event on the wire. */
4202
+ interface AnalyticsEventInput {
4203
+ Name: string;
4204
+ Params?: AnalyticsParams;
4205
+ /** A number summed by the server — revenue, score. */
4206
+ Value?: number;
4207
+ /** ISO-8601 UTC time the event happened on the client. */
4208
+ ClientTimeUtc?: string;
4209
+ }
4210
+ /**
4211
+ * What the client knows and the server does not. Platform, country, new/returning and the
4212
+ * acquisition source are NOT here: the server takes them from the request header, the IP and the
4213
+ * player's own record, and ignores anything a client claims about them.
4214
+ */
4215
+ interface AnalyticsClientContext {
4216
+ AppVersion?: string;
4217
+ OsName?: string;
4218
+ OsVersion?: string;
4219
+ /** `phone` / `tablet` / `desktop`. */
4220
+ DeviceCategory?: string;
4221
+ DeviceModel?: string;
4222
+ Language?: string;
4223
+ SdkVersion?: string;
4224
+ }
4225
+ interface AnalyticsRequest extends BaseRequest {
4226
+ /** Idempotency key of the batch: a resend with the same id is not counted twice (24 h). */
4227
+ BatchID?: string;
4228
+ Events: AnalyticsEventInput[];
4229
+ Context?: AnalyticsClientContext;
4230
+ }
4231
+ /** Why the server dropped an event (`LogEventsResponse.Dropped[].Reason`). */
4232
+ declare const AnalyticsDropReason: {
4233
+ readonly InvalidName: "InvalidName";
4234
+ readonly Reserved: "Reserved";
4235
+ readonly NotDeclared: "NotDeclared";
4236
+ readonly Blocked: "Blocked";
4237
+ /** The title reached the event-name limit of its plan. */
4238
+ readonly CatalogFull: "CatalogFull";
4239
+ readonly TooOld: "TooOld";
4240
+ readonly AutomaticDisabled: "AutomaticDisabled";
4241
+ /** More than 1000 events from one player in one day. */
4242
+ readonly DailyLimit: "DailyLimit";
4243
+ };
4244
+ type DroppedEvent = { Index?: null | number; Name?: null | string; Reason?: null | string; [key: string]: unknown; };
4245
+ type LogEventsResponse = { Accepted?: null | number; Dropped?: null | Array<DroppedEvent>; Duplicate?: null | boolean; Disabled?: null | boolean; [key: string]: unknown; };
4246
+ declare const AnalyticsAction: {
4247
+ readonly LogEvents: "LogEvents";
4248
+ };
4249
+ type AnalyticsAction = (typeof AnalyticsAction)[keyof typeof AnalyticsAction];
3935
4250
 
3936
4251
  interface TitlePublicConfigurationModel {
3937
4252
  /** Schema of the title-wide key-value store; the values live in client.titleCustomData. */
@@ -3966,6 +4281,11 @@ interface TitlePublicConfigurationModel {
3966
4281
  * rather than reading anything out of here.
3967
4282
  */
3968
4283
  Localization?: LocalizationDefinitions | null;
4284
+ /**
4285
+ * Custom-event settings the SDK obeys before sending: on/off, naming mode, declared and blocked
4286
+ * events. Use `client.analytics` to log events rather than reading this.
4287
+ */
4288
+ Analytics?: AnalyticsDefinitions | null;
3969
4289
  [key: string]: unknown;
3970
4290
  }
3971
4291
  interface TitleRequest extends BaseRequest {
@@ -4070,6 +4390,19 @@ interface SdkEvents {
4070
4390
  * the response of the action that caused it — subscribe instead of polling the state.
4071
4391
  */
4072
4392
  "tutorial:systemProgress": TutorialStepProgress[];
4393
+ "experiments:loaded": GetExperimentsResponse;
4394
+ /**
4395
+ * Experiments whose variant or status differs from what this player had before — the first
4396
+ * load included. Subscribe to re-apply variant params (a colour, a price label) on the fly.
4397
+ */
4398
+ "experiments:changed": PlayerExperimentView[];
4399
+ /** A batch was delivered. */
4400
+ "analytics:flushed": LogEventsResponse;
4401
+ /**
4402
+ * The server dropped some events of a batch: `CatalogFull` (the plan's event-name limit),
4403
+ * `NotDeclared`, `DailyLimit`, … Worth logging in development — nothing retries them.
4404
+ */
4405
+ "analytics:eventsDropped": DroppedEvent[];
4073
4406
  "communityMarketing:stateLoaded": CommunityMarketingState;
4074
4407
  "communityMarketing:earningsLoaded": CommunityEarningsResponse;
4075
4408
  /**
@@ -4332,6 +4665,11 @@ interface SdkEvents {
4332
4665
  "marketplace:directTradeResponded": MarketplaceSettlementResponse;
4333
4666
  "marketplace:directTradeCancelled": MarketplaceSettlementResponse;
4334
4667
  "marketplace:claimedBack": MarketplaceSettlementResponse;
4668
+ "workshop:definitionsLoaded": WorkshopDefinitionsResponse;
4669
+ "workshop:published": WorkshopPublishResponse;
4670
+ "workshop:updated": WorkshopContentMutationResponse;
4671
+ "workshop:acquired": WorkshopAcquireResponse;
4672
+ "workshop:reacted": WorkshopReactionResponse;
4335
4673
  "multiplayer:roomCreated": RoomSnapshotResponse;
4336
4674
  "multiplayer:roomJoined": RoomSnapshotResponse;
4337
4675
  "multiplayer:roomLeft": LeaveRoomResponse;
@@ -5564,10 +5902,10 @@ interface PushSubscribeOptions {
5564
5902
  /**
5565
5903
  * Where the service worker script lives, resolved against the page.
5566
5904
  *
5567
- * Default `"./sw.js"` — deliberately RELATIVE. A hosted build lives at
5568
- * `cloud.idosgames.com/drive/app/{titleID}/`, so a leading slash would point at another game's
5569
- * folder; relative also gives the registration a scope of exactly this game's directory, which
5570
- * is what makes one endpoint per title possible on a shared origin.
5905
+ * Default `"./sw.js"` — deliberately RELATIVE. A hosted build runs on the title's own origin
5906
+ * (`{titleid}.idos.games`), where relative and root resolve alike; but a pinned version lives
5907
+ * under `/v/{buildId}/`, and legacy links still reach `cloud.idosgames.com/drive/app/{titleID}/`,
5908
+ * where a leading slash would point at another game's folder. Relative is right in every case.
5571
5909
  */
5572
5910
  swPath?: string;
5573
5911
  /** Overrides `navigator.language`. */
@@ -6034,9 +6372,34 @@ interface AIGenerateOptions {
6034
6372
  relatedEntityID?: string;
6035
6373
  /** `PriceOption.OptionID` of the feature the player pays with. Omit = first available option. */
6036
6374
  selectedOptionID?: string;
6375
+ /**
6376
+ * Store receipt, required when the chosen option is paid with a store purchase — one purchase
6377
+ * pays for exactly one generation. Finish (consume) the store transaction only when the view
6378
+ * reports `PaymentSettled: true`; after a failed generation keep it and retry with the same
6379
+ * receipt and a NEW `relatedEntityID` — the retry is free for the player.
6380
+ */
6381
+ payment?: PaymentProof;
6382
+ }
6383
+ /** Options of {@link AIService.waitForGeneration}. */
6384
+ interface AIWaitOptions {
6385
+ /** First pause between polls, ms. Default 2000; it grows ×1.5 up to `maxIntervalMs`. */
6386
+ intervalMs?: number;
6387
+ /** Longest pause between polls, ms. Default 5000. */
6388
+ maxIntervalMs?: number;
6389
+ /**
6390
+ * Give up WAITING after this long, ms. Default 30 minutes. The server has no time ceiling for a
6391
+ * text generation (it runs while the model keeps answering), so set this to how long the player
6392
+ * will wait. Giving up does NOT cancel the generation: it keeps running (and stays paid), and
6393
+ * `getGeneration` reads it later.
6394
+ */
6395
+ timeoutMs?: number;
6396
+ /** Stops waiting (e.g. the player left the screen). The generation keeps running on the server. */
6397
+ signal?: AbortSignal;
6398
+ /** Called with every polled view that is still in progress — for a progress bar. */
6399
+ onUpdate?: (view: AIGenerationView) => void;
6037
6400
  }
6038
6401
  /**
6039
- * In-game AI generation: text (NPC dialogue, optionally from images), images and edits, video,
6402
+ * InApp AI generation: text (NPC dialogue, optionally from images), images and edits, video,
6040
6403
  * speech, music and 3D models — every feature configured by the publisher in the dashboard.
6041
6404
  *
6042
6405
  * **What to know before wiring a UI to this.**
@@ -6044,10 +6407,12 @@ interface AIGenerateOptions {
6044
6407
  * 1. **The client never picks the model or the price.** It names a `FeatureKey`; the model, the
6045
6408
  * system prompt and the player's price live in the title's AI config on the server.
6046
6409
  *
6047
- * 2. **Video, 3D and `Async` text are jobs, and YOU poll them.** The generate call returns
6048
- * `Status: "running"`; call `getVideo` / `getThreeD` / `getText` with its `GenerationID` until
6049
- * `isTerminal(status)`. The service runs no timers — every poll is an API call billed to the
6050
- * publisher, so poll only while the player is waiting for the result.
6410
+ * 2. **Every generation is a job, and YOU wait for it.** A generate call only submits: it returns
6411
+ * `Status: "pending"` (or `"running"`) and a `GenerationID` — the server never waits for the
6412
+ * model inside the request. Pass the returned view to {@link AIService.waitForGeneration}: it
6413
+ * polls the right action (`getText` / `getImage` / `getAudio` / `getMusic` / `getVideo` /
6414
+ * `getThreeD`) until `isTerminal(status)`. Nothing polls on its own — every poll is an API call
6415
+ * billed to the publisher, so wait only while the player needs the result.
6051
6416
  *
6052
6417
  * 3. **`result.ok` is about the CALL, not the generation.** A generation that ran and failed comes
6053
6418
  * back as `ok: true` with `Status: "failed"` and an `Error { Code, Message }`. A request the
@@ -6065,23 +6430,26 @@ declare class AIService {
6065
6430
  constructor(ctx: ClientContext);
6066
6431
  /** The title's AI features (sanitized: no model, no prompts). Cached as config section `"AI"`. */
6067
6432
  getDefinitions(): Promise<OperationResult<AIPublicDefinitions>>;
6068
- /**
6069
- * Text. Synchronous features answer with `completed` + `OutputText` (the call can take up to a
6070
- * few minutes). An `Async` feature answers with `running` — poll {@link getText}.
6071
- */
6433
+ /** Text (NPC lines, a world description from pictures…): submits a job — see {@link waitForGeneration}. */
6072
6434
  generateText(featureKey: string, input: AITextInput, options?: AIGenerateOptions): Promise<OperationResult<AIGenerationView>>;
6073
- /** Poll an asynchronous text job. */
6435
+ /** Poll a text job. */
6074
6436
  getText(generationID: string): Promise<OperationResult<AIGenerationView>>;
6075
6437
  generateImage(featureKey: string, input: AIImageInput, options?: AIGenerateOptions): Promise<OperationResult<AIGenerationView>>;
6076
6438
  /** Edit source images with a prompt. Only on a feature with `AllowEdit`. */
6077
6439
  editImage(featureKey: string, input: AIImageEditInput, options?: AIGenerateOptions): Promise<OperationResult<AIGenerationView>>;
6440
+ /** Poll an image job (generation or edit). */
6441
+ getImage(generationID: string): Promise<OperationResult<AIGenerationView>>;
6078
6442
  /** Submits a video job (`running`) — poll {@link getVideo}. */
6079
6443
  generateVideo(featureKey: string, input: AIVideoInput, options?: AIGenerateOptions): Promise<OperationResult<AIGenerationView>>;
6080
6444
  /** Poll a video job. */
6081
6445
  getVideo(generationID: string): Promise<OperationResult<AIGenerationView>>;
6082
6446
  /** Speech from text (TTS). */
6083
6447
  generateAudio(featureKey: string, input: AIAudioInput, options?: AIGenerateOptions): Promise<OperationResult<AIGenerationView>>;
6448
+ /** Poll a speech job. */
6449
+ getAudio(generationID: string): Promise<OperationResult<AIGenerationView>>;
6084
6450
  generateMusic(featureKey: string, input: AIMusicInput, options?: AIGenerateOptions): Promise<OperationResult<AIGenerationView>>;
6451
+ /** Poll a music job. */
6452
+ getMusic(generationID: string): Promise<OperationResult<AIGenerationView>>;
6085
6453
  /** Submits a 3D job (`running`) — poll {@link getThreeD}. */
6086
6454
  generateThreeD(featureKey: string, input: AIThreeDInput, options?: AIGenerateOptions): Promise<OperationResult<AIGenerationView>>;
6087
6455
  /** Poll a 3D job. */
@@ -6092,6 +6460,25 @@ declare class AIService {
6092
6460
  getGeneration(generationID: string): Promise<OperationResult<AIGenerationView>>;
6093
6461
  /** `true` once polling can stop — see {@link isAIGenerationTerminal}. */
6094
6462
  isTerminal(status: string | null | undefined): boolean;
6463
+ /**
6464
+ * Waits for a generation to finish and returns its final view (`completed` or `failed`).
6465
+ *
6466
+ * ```ts
6467
+ * const submitted = await client.ai.generateText("npc-chat", { Prompt: "Hi!" });
6468
+ * if (!submitted.ok) return;
6469
+ * const done = await client.ai.waitForGeneration(submitted.data, { onUpdate: showProgress });
6470
+ * if (done.ok && done.data.Status === "completed") say(done.data.OutputText);
6471
+ * ```
6472
+ *
6473
+ * Polls the action of the generation's modality, starting every `intervalMs` and slowing down to
6474
+ * `maxIntervalMs`, so a long job stays cheap (every poll is an API call billed to the publisher).
6475
+ * A dropped connection does not end the wait — the next poll tries again. Timing out or `signal`
6476
+ * ends it with `reason: "client"`; the generation itself keeps running and can be read later.
6477
+ * Pass a `GenerationID` alone and it is read once first to learn its modality.
6478
+ */
6479
+ waitForGeneration(generation: AIGenerationView | string, options?: AIWaitOptions): Promise<OperationResult<AIGenerationView>>;
6480
+ /** The poll of the generation's own modality — only it moves a provider job (video, 3D) forward. */
6481
+ private pollFor;
6095
6482
  private generate;
6096
6483
  private poll;
6097
6484
  /**
@@ -6491,6 +6878,819 @@ declare class MultiplayerService {
6491
6878
  private baseRequest;
6492
6879
  }
6493
6880
 
6881
+ /** Bytes of one file to publish. Strings are UTF-8 encoded (JSON saves are the common case). */
6882
+ type WorkshopFileData = Blob | ArrayBuffer | Uint8Array | string;
6883
+ /** One file of a publication: either bytes to upload, or a `client.ai` asset URL the server copies. */
6884
+ type WorkshopPublishFile = {
6885
+ role: string;
6886
+ contentType: string;
6887
+ data: WorkshopFileData;
6888
+ } | {
6889
+ role: string;
6890
+ contentType: string;
6891
+ sourceAssetUrl: string;
6892
+ };
6893
+ interface WorkshopPublishInput {
6894
+ /** Content type id from the title config (`voxelcraft.world`, `level`, …). Ignored for a new revision. */
6895
+ contentType: string;
6896
+ /** Set to upload a NEW REVISION of your own publication; omit to publish something new. */
6897
+ contentID?: string;
6898
+ files: WorkshopPublishFile[];
6899
+ thumbnail?: {
6900
+ contentType: "image/png" | "image/jpeg" | "image/webp";
6901
+ data: WorkshopFileData;
6902
+ };
6903
+ title?: string;
6904
+ description?: string;
6905
+ tags?: string[];
6906
+ metadata?: Record<string, string>;
6907
+ visibility?: WorkshopVisibility;
6908
+ /** Ways to get it; ANY option opens access. Required on the first publication. */
6909
+ access?: WorkshopAccessOptionInput[];
6910
+ /** Way to pay the publish fee (`PriceOption.OptionID`), if the type charges one. */
6911
+ selectedFeeOptionID?: string;
6912
+ }
6913
+ interface WorkshopBrowseQuery {
6914
+ contentType?: string;
6915
+ tag?: string;
6916
+ metadataKey?: string;
6917
+ metadataValue?: string;
6918
+ creatorUserID?: string;
6919
+ /** Only authors this player follows. */
6920
+ fromFollowing?: boolean;
6921
+ sort?: WorkshopSort;
6922
+ pageSize?: number;
6923
+ continuationToken?: string;
6924
+ }
6925
+ interface WorkshopDownloadedFile {
6926
+ role: string;
6927
+ contentType: string;
6928
+ data: ArrayBuffer;
6929
+ }
6930
+ /**
6931
+ * Port of Workshop/Workshop.cs (client surface): a catalog of content made by players and the
6932
+ * publisher, and LICENSES to it. Nothing is transferred: acquiring grants access to a digital copy,
6933
+ * the author keeps it.
6934
+ *
6935
+ * - Publishing is `publish(...)`: it declares the files, uploads the bytes straight to storage by
6936
+ * signed URLs, then asks the server to verify and release them. The server re-checks sizes and
6937
+ * file signatures itself — the declaration guarantees nothing.
6938
+ * - Getting something is `acquire(content, option)`: pass the option from `content.Access` so the
6939
+ * price you showed is the price you pay (`ExpectedPrice` — a changed price is refused, not charged).
6940
+ * - Opening it is `downloadFiles(contentID)`: short-lived signed links, fetched right away.
6941
+ */
6942
+ declare class WorkshopService {
6943
+ private readonly ctx;
6944
+ constructor(ctx: ClientContext);
6945
+ /** Config without the moderation blocklist + which types this player may publish + active collections. */
6946
+ getDefinitions(): Promise<OperationResult<WorkshopDefinitionsResponse>>;
6947
+ browse(query?: WorkshopBrowseQuery): Promise<OperationResult<WorkshopBrowseResponse>>;
6948
+ getContent(contentID: string): Promise<OperationResult<WorkshopContentResponse>>;
6949
+ getCollection(collectionID: string): Promise<OperationResult<WorkshopCollectionResponse>>;
6950
+ getCreatorProfile(creatorUserID: string, continuationToken?: string, pageSize?: number): Promise<OperationResult<WorkshopCreatorProfileResponse>>;
6951
+ /**
6952
+ * Full publication in one call: declare → upload by signed URLs → verify and release.
6953
+ * With `contentID` it uploads a NEW REVISION of your own publication (buyers get the new files).
6954
+ */
6955
+ publish(input: WorkshopPublishInput): Promise<OperationResult<WorkshopPublishResponse>>;
6956
+ /** Low-level step 1: declare the files; returns signed upload URLs. Prefer `publish(...)`. */
6957
+ beginUpload(args: WorkshopRequest): Promise<OperationResult<WorkshopBeginUploadResponse>>;
6958
+ /** Low-level step 3: verify what was uploaded and release it. Prefer `publish(...)`. */
6959
+ publishUploaded(args: WorkshopRequest): Promise<OperationResult<WorkshopPublishResponse>>;
6960
+ /** Card, access and visibility of your publication. Files are changed by `publish({ contentID, ... })`. */
6961
+ updateContent(contentID: string, changes: {
6962
+ title?: string;
6963
+ description?: string;
6964
+ tags?: string[];
6965
+ metadata?: Record<string, string>;
6966
+ visibility?: WorkshopVisibility;
6967
+ access?: WorkshopAccessOptionInput[];
6968
+ }): Promise<OperationResult<WorkshopContentMutationResponse>>;
6969
+ /** Take it out of the catalog for good. Players who already have access keep it. */
6970
+ unpublish(contentID: string): Promise<OperationResult<WorkshopContentMutationResponse>>;
6971
+ getMyContent(contentType?: string, continuationToken?: string, pageSize?: number): Promise<OperationResult<WorkshopBrowseResponse>>;
6972
+ /**
6973
+ * Get access by one option of the publication. For a Price option the option's price is sent
6974
+ * back as `ExpectedPrice`: if the author changed it meanwhile, the server refuses instead of
6975
+ * charging a price the player never saw.
6976
+ */
6977
+ acquire(contentID: string, option?: WorkshopAccessOption | null): Promise<OperationResult<WorkshopAcquireResponse>>;
6978
+ /** Signed links to the files (short-lived) — only with access. Use `downloadFiles` to fetch the bytes too. */
6979
+ getDownload(contentID: string): Promise<OperationResult<WorkshopDownloadResponse>>;
6980
+ /** Links + bytes of every file, fetched immediately (the links expire in minutes). */
6981
+ downloadFiles(contentID: string): Promise<OperationResult<{
6982
+ download: WorkshopDownloadResponse;
6983
+ files: WorkshopDownloadedFile[];
6984
+ }>>;
6985
+ getMyLicenses(continuationToken?: string, pageSize?: number): Promise<OperationResult<WorkshopLicensesResponse>>;
6986
+ like(contentID: string): Promise<OperationResult<{
6987
+ [x: string]: unknown;
6988
+ ContentID?: string | null | undefined;
6989
+ Kind?: "Like" | "Favorite" | null | undefined;
6990
+ Active?: boolean | null | undefined;
6991
+ Count?: number | null | undefined;
6992
+ }>>;
6993
+ unlike(contentID: string): Promise<OperationResult<{
6994
+ [x: string]: unknown;
6995
+ ContentID?: string | null | undefined;
6996
+ Kind?: "Like" | "Favorite" | null | undefined;
6997
+ Active?: boolean | null | undefined;
6998
+ Count?: number | null | undefined;
6999
+ }>>;
7000
+ favorite(contentID: string): Promise<OperationResult<{
7001
+ [x: string]: unknown;
7002
+ ContentID?: string | null | undefined;
7003
+ Kind?: "Like" | "Favorite" | null | undefined;
7004
+ Active?: boolean | null | undefined;
7005
+ Count?: number | null | undefined;
7006
+ }>>;
7007
+ unfavorite(contentID: string): Promise<OperationResult<{
7008
+ [x: string]: unknown;
7009
+ ContentID?: string | null | undefined;
7010
+ Kind?: "Like" | "Favorite" | null | undefined;
7011
+ Active?: boolean | null | undefined;
7012
+ Count?: number | null | undefined;
7013
+ }>>;
7014
+ getMyFavorites(continuationToken?: string, pageSize?: number): Promise<OperationResult<WorkshopBrowseResponse>>;
7015
+ follow(creatorUserID: string): Promise<OperationResult<{
7016
+ [x: string]: unknown;
7017
+ CreatorUserID?: string | null | undefined;
7018
+ Following?: boolean | null | undefined;
7019
+ FollowerCount?: number | null | undefined;
7020
+ }>>;
7021
+ unfollow(creatorUserID: string): Promise<OperationResult<{
7022
+ [x: string]: unknown;
7023
+ CreatorUserID?: string | null | undefined;
7024
+ Following?: boolean | null | undefined;
7025
+ FollowerCount?: number | null | undefined;
7026
+ }>>;
7027
+ /** One report per player per publication; repeating it is harmless (`AlreadyReported`). */
7028
+ report(contentID: string, reason: WorkshopReportReason, comment?: string): Promise<OperationResult<WorkshopReportResponse>>;
7029
+ private react;
7030
+ private followAction;
7031
+ /** PUT to a signed storage URL. Not our API: raw fetch, no auth header, no envelope. */
7032
+ private putBytes;
7033
+ private contentRequest;
7034
+ /** Applies whichever side of a dual-party settlement belongs to the current user. */
7035
+ private applyDualPartySettlement;
7036
+ private baseRequest;
7037
+ }
7038
+
7039
+ declare const DataCollectionKind: {
7040
+ /** Each record belongs to one user (saves, builds, orders, documents, settings). */
7041
+ readonly UserOwned: "UserOwned";
7042
+ /** Records shared by many users (guilds, auctions, catalog, articles, world shards). */
7043
+ readonly Shared: "Shared";
7044
+ /** Short-lived records with a mandatory TTL (invites, lobbies, carts, codes). */
7045
+ readonly Temporary: "Temporary";
7046
+ /** Append-only records read by time (history, feed, messages, audit). */
7047
+ readonly Log: "Log";
7048
+ };
7049
+ type DataCollectionKind = (typeof DataCollectionKind)[keyof typeof DataCollectionKind];
7050
+ declare const DataFieldType: {
7051
+ readonly String: "String";
7052
+ /** Long text searched by words and word prefixes. */
7053
+ readonly Text: "Text";
7054
+ readonly Int: "Int";
7055
+ readonly Number: "Number";
7056
+ readonly Bool: "Bool";
7057
+ /** ISO-8601 string (or unix ms on input). */
7058
+ readonly Date: "Date";
7059
+ readonly Json: "Json";
7060
+ readonly Array: "Array";
7061
+ /** A reference to a record, a user, an item, a currency, … (validated on write, expandable on read). */
7062
+ readonly Ref: "Ref";
7063
+ readonly File: "File";
7064
+ };
7065
+ type DataFieldType = (typeof DataFieldType)[keyof typeof DataFieldType];
7066
+ declare const DataFieldVisibility: {
7067
+ readonly Everyone: "Everyone";
7068
+ readonly Owner: "Owner";
7069
+ readonly Server: "Server";
7070
+ };
7071
+ type DataFieldVisibility = (typeof DataFieldVisibility)[keyof typeof DataFieldVisibility];
7072
+ declare const DataAccessMode: {
7073
+ /** Anyone, including visitors without a session (Read only). */
7074
+ readonly Anyone: "Anyone";
7075
+ readonly Authenticated: "Authenticated";
7076
+ readonly Owner: "Owner";
7077
+ /** A user listed in the record's MembersField. */
7078
+ readonly Members: "Members";
7079
+ readonly Role: "Role";
7080
+ readonly Server: "Server";
7081
+ };
7082
+ type DataAccessMode = (typeof DataAccessMode)[keyof typeof DataAccessMode];
7083
+ declare const DataRefKind: {
7084
+ readonly DataItem: "DataItem";
7085
+ readonly User: "User";
7086
+ readonly Item: "Item";
7087
+ readonly Currency: "Currency";
7088
+ readonly ItemInstance: "ItemInstance";
7089
+ readonly StoreOffer: "StoreOffer";
7090
+ readonly Leaderboard: "Leaderboard";
7091
+ readonly Quest: "Quest";
7092
+ readonly WorkshopContent: "WorkshopContent";
7093
+ };
7094
+ type DataRefKind = (typeof DataRefKind)[keyof typeof DataRefKind];
7095
+ declare const DataCounterKind: {
7096
+ readonly Count: "Count";
7097
+ readonly Sum: "Sum";
7098
+ };
7099
+ type DataCounterKind = (typeof DataCounterKind)[keyof typeof DataCounterKind];
7100
+ declare const DataOwnerDeletedPolicy: {
7101
+ readonly Delete: "Delete";
7102
+ readonly Anonymize: "Anonymize";
7103
+ readonly Keep: "Keep";
7104
+ };
7105
+ type DataOwnerDeletedPolicy = (typeof DataOwnerDeletedPolicy)[keyof typeof DataOwnerDeletedPolicy];
7106
+ declare const DataCollectionSchemaMode: {
7107
+ readonly Strict: "Strict";
7108
+ readonly Loose: "Loose";
7109
+ };
7110
+ type DataCollectionSchemaMode = (typeof DataCollectionSchemaMode)[keyof typeof DataCollectionSchemaMode];
7111
+ type DataRefTarget = z.output<typeof zDataRefTarget>;
7112
+ type DataFieldDefinition = z.output<typeof zDataFieldDefinition>;
7113
+ type DataSortKeyDefinition = z.output<typeof zDataSortKeyDefinition>;
7114
+ type DataAccessRule = z.output<typeof zDataAccessRule>;
7115
+ type DataPublicViewDefinition = z.output<typeof zDataPublicViewDefinition>;
7116
+ type DataCollectionDefinition = z.output<typeof zDataCollectionDefinition>;
7117
+ type DataDefinitionsResponse = z.output<typeof zDataDefinitionsResponse>;
7118
+ /** Record data as the caller sees it (fields hidden from the caller are already removed). */
7119
+ type DataRecord = Record<string, unknown>;
7120
+ type DataFileView = z.output<typeof zDataFileView>;
7121
+ type DataFileUploadResponse = z.output<typeof zDataFileUploadResponse>;
7122
+ type DataItemView = z.output<typeof zDataItemView>;
7123
+ type DataGetResponse = z.output<typeof zDataGetResponse>;
7124
+ type DataGetManyResponse = z.output<typeof zDataGetManyResponse>;
7125
+ type DataQueryResponse = z.output<typeof zDataQueryResponse>;
7126
+ type DataCountResponse = z.output<typeof zDataCountResponse>;
7127
+ type DataWriteResponse = z.output<typeof zDataWriteResponse>;
7128
+ type DataDeleteResponse = z.output<typeof zDataDeleteResponse>;
7129
+ type DataCounterResponse = z.output<typeof zDataCounterResponse>;
7130
+ type DataBatchResponse = z.output<typeof zDataBatchResponse>;
7131
+ type DataRolesResponse = z.output<typeof zDataRolesResponse>;
7132
+ type DataPublicViewsResponse = z.output<typeof zDataPublicViewsResponse>;
7133
+ type DataPublicViewPointer = z.output<typeof zDataPublicViewPointer>;
7134
+ type DataPublicViewPage = z.output<typeof zDataPublicViewPage>;
7135
+ /** Operators: eq, in, gt, gte, lt, lte, contains (array element), prefix (String). */
7136
+ type DataFilterOp = "eq" | "in" | "gt" | "gte" | "lt" | "lte" | "contains" | "prefix";
7137
+ interface DataFilter {
7138
+ Field: string;
7139
+ Op: DataFilterOp;
7140
+ Value: unknown;
7141
+ }
7142
+ /** A query: filter ONLY by searchable (Indexed) fields, order ONLY by a declared sort key. */
7143
+ interface DataQuerySpec {
7144
+ Where?: DataFilter[];
7145
+ /** Sort key id; equality filters on its leading fields narrow the range. */
7146
+ OrderBy?: string;
7147
+ Descending?: boolean;
7148
+ /** "me" — only the caller's records. */
7149
+ Owner?: "me";
7150
+ /** Only records where the caller is listed as a member. */
7151
+ MemberOfMine?: boolean;
7152
+ /** Full-text search over searchable Text fields (words and word prefixes). */
7153
+ Text?: string;
7154
+ /** 1..100, default 20. */
7155
+ Limit?: number;
7156
+ Cursor?: string;
7157
+ }
7158
+ interface DataUpdateSpec {
7159
+ /** Field → new value; `null` removes the field. */
7160
+ Set?: Record<string, unknown>;
7161
+ /** Field → delta (Int / Number). */
7162
+ Inc?: Record<string, number>;
7163
+ /** Array field → element (or array of elements) to append. */
7164
+ Push?: Record<string, unknown>;
7165
+ /** Array field → element (or array of elements) to remove. */
7166
+ Pull?: Record<string, unknown>;
7167
+ /** Array field → element (or array of elements) to add when missing. */
7168
+ AddToSet?: Record<string, unknown>;
7169
+ }
7170
+ interface DataBatchOperation {
7171
+ Op: "Create" | "Update" | "Delete";
7172
+ Collection: string;
7173
+ ItemID?: string;
7174
+ Data?: DataRecord;
7175
+ Update?: DataUpdateSpec;
7176
+ ExpectedVersion?: number;
7177
+ }
7178
+ interface DataCollectionsRequest extends BaseRequest {
7179
+ Collection?: string;
7180
+ ItemID?: string;
7181
+ ItemIDs?: string[];
7182
+ Data?: DataRecord;
7183
+ Update?: DataUpdateSpec;
7184
+ ExpectedVersion?: number;
7185
+ Query?: DataQuerySpec;
7186
+ Expand?: string[];
7187
+ CounterID?: string;
7188
+ Group?: unknown;
7189
+ Operations?: DataBatchOperation[];
7190
+ /** BeginFileUpload: the File field, the declared content type and the size in bytes. */
7191
+ Field?: string;
7192
+ ContentType?: string;
7193
+ FileSize?: number;
7194
+ }
7195
+ declare const DataCollectionsAction: {
7196
+ readonly GetDefinitions: "GetDefinitions";
7197
+ readonly Get: "Get";
7198
+ readonly GetMany: "GetMany";
7199
+ readonly Query: "Query";
7200
+ readonly Count: "Count";
7201
+ readonly Create: "Create";
7202
+ readonly Update: "Update";
7203
+ readonly Delete: "Delete";
7204
+ readonly Batch: "Batch";
7205
+ readonly GetCounter: "GetCounter";
7206
+ readonly GetMyRoles: "GetMyRoles";
7207
+ readonly BeginFileUpload: "BeginFileUpload";
7208
+ };
7209
+ type DataCollectionsAction = (typeof DataCollectionsAction)[keyof typeof DataCollectionsAction];
7210
+ /** Economy of one operation, re-exported for typing Cost/Grant in UIs. */
7211
+ type DataOperationEconomy = {
7212
+ Cost?: ResourceBundle | null;
7213
+ Grant?: ResourceBundle | null;
7214
+ };
7215
+
7216
+ interface DataReadOptions {
7217
+ /** Ref fields to expand in the answer (record, user profile, item or currency definition). */
7218
+ expand?: string[];
7219
+ }
7220
+ /** Filter helper: `where("region", "eq", "EU")`. */
7221
+ declare function where(field: string, op: DataFilterOp, value: unknown): DataFilter;
7222
+ /**
7223
+ * Data collections — the creator's own data structures (port of DataCollections/DataCollections.cs):
7224
+ * guilds, auctions, orders, catalogs, articles, saved levels, feeds — whatever no ready platform
7225
+ * module covers. ⚠ Not `client.collection` (collectible card sets).
7226
+ *
7227
+ * - The title declares collections (fields, searchable fields, sort keys, access rules, limits);
7228
+ * the server enforces every rule — the client cannot bypass them.
7229
+ * - Queries filter ONLY by searchable (Indexed) fields and order ONLY by declared sort keys; a
7230
+ * query by anything else is refused before the database.
7231
+ * - Value never lives in a record: the collection's Economy (Cost/Grant) moves currencies/items in
7232
+ * the same transaction as the write, and records reference items/currencies/users by Ref fields.
7233
+ * - Public collections (Read: Anyone) are readable WITHOUT login: `readPublicView` reads the pages
7234
+ * the server publishes to the CDN, `searchPublic` runs a live search where the title allows it.
7235
+ */
7236
+ declare class DataCollectionsService {
7237
+ private readonly ctx;
7238
+ private readonly publicViews;
7239
+ constructor(ctx: ClientContext);
7240
+ /** Collections of the title as the client may see them (server-only fields and triggers removed). */
7241
+ getDefinitions(): Promise<OperationResult<DataDefinitionsResponse>>;
7242
+ get(collection: string, itemID: string, options?: DataReadOptions): Promise<OperationResult<DataGetResponse>>;
7243
+ getMany(collection: string, itemIDs: string[], options?: DataReadOptions): Promise<OperationResult<DataGetManyResponse>>;
7244
+ /** One page. Pass `NextCursor` back as `Cursor` for the next one. */
7245
+ query(collection: string, query?: DataQuerySpec, options?: DataReadOptions): Promise<OperationResult<DataQueryResponse>>;
7246
+ /** Follows the cursor and collects up to `maxItems` records (default 500). */
7247
+ queryAll(collection: string, query?: DataQuerySpec, options?: DataReadOptions & {
7248
+ maxItems?: number;
7249
+ }): Promise<OperationResult<DataItemView[]>>;
7250
+ count(collection: string, query?: DataQuerySpec): Promise<OperationResult<DataCountResponse>>;
7251
+ /**
7252
+ * Creates a record. Pass your own `itemID` to make a retry safe: repeating the same create returns
7253
+ * the existing record with `AlreadyExists: true` and charges nothing twice.
7254
+ */
7255
+ create(collection: string, data: DataRecord, options?: {
7256
+ itemID?: string;
7257
+ }): Promise<OperationResult<DataWriteResponse>>;
7258
+ /** Partial change. `expectedVersion` makes it compare-and-swap: a changed record is refused, not overwritten. */
7259
+ update(collection: string, itemID: string, update: DataUpdateSpec, options?: {
7260
+ expectedVersion?: number;
7261
+ }): Promise<OperationResult<DataWriteResponse>>;
7262
+ /** `update` with only `Set`: `null` removes a field. */
7263
+ set(collection: string, itemID: string, fields: DataRecord, options?: {
7264
+ expectedVersion?: number;
7265
+ }): Promise<OperationResult<{
7266
+ Item: {
7267
+ Collection: string;
7268
+ ItemID: string;
7269
+ Data: Record<string, unknown>;
7270
+ Version: number;
7271
+ CreatedAt: string;
7272
+ UpdatedAt: string;
7273
+ OwnerUserID?: string | null | undefined;
7274
+ ExpireAt?: string | null | undefined;
7275
+ Expanded?: Record<string, unknown> | null | undefined;
7276
+ Files?: Record<string, {
7277
+ FileID: string;
7278
+ Url: string;
7279
+ Size: number;
7280
+ ContentType?: string | null | undefined;
7281
+ }> | null | undefined;
7282
+ };
7283
+ AlreadyExists?: boolean | undefined;
7284
+ Economy?: {
7285
+ Grant?: {
7286
+ Standard?: {
7287
+ Entries?: {
7288
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
7289
+ CurrencyID?: string | null | undefined;
7290
+ Amount?: number | null | undefined;
7291
+ AmountUsd?: number | null | undefined;
7292
+ CatalogID?: string | null | undefined;
7293
+ ItemID?: string | null | undefined;
7294
+ ProductID?: string | null | undefined;
7295
+ }[] | null | undefined;
7296
+ EventTokens?: {
7297
+ Address?: {
7298
+ EntityID: string;
7299
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
7300
+ } | null | undefined;
7301
+ Amount?: number | null | undefined;
7302
+ Source?: string | null | undefined;
7303
+ }[] | null | undefined;
7304
+ } | null | undefined;
7305
+ PremiumBonuses?: unknown[] | null | undefined;
7306
+ PremiumTiers?: {
7307
+ MinPremiumTier?: number | null | undefined;
7308
+ RequiredPremiumID?: string | null | undefined;
7309
+ Resources?: {
7310
+ Entries?: {
7311
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
7312
+ CurrencyID?: string | null | undefined;
7313
+ Amount?: number | null | undefined;
7314
+ AmountUsd?: number | null | undefined;
7315
+ CatalogID?: string | null | undefined;
7316
+ ItemID?: string | null | undefined;
7317
+ ProductID?: string | null | undefined;
7318
+ }[] | null | undefined;
7319
+ EventTokens?: {
7320
+ Address?: {
7321
+ EntityID: string;
7322
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
7323
+ } | null | undefined;
7324
+ Amount?: number | null | undefined;
7325
+ Source?: string | null | undefined;
7326
+ }[] | null | undefined;
7327
+ } | null | undefined;
7328
+ }[] | null | undefined;
7329
+ } | null | undefined;
7330
+ Consume?: {
7331
+ Standard?: {
7332
+ Entries?: {
7333
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
7334
+ CurrencyID?: string | null | undefined;
7335
+ Amount?: number | null | undefined;
7336
+ AmountUsd?: number | null | undefined;
7337
+ CatalogID?: string | null | undefined;
7338
+ ItemID?: string | null | undefined;
7339
+ ProductID?: string | null | undefined;
7340
+ }[] | null | undefined;
7341
+ EventTokens?: {
7342
+ Address?: {
7343
+ EntityID: string;
7344
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
7345
+ } | null | undefined;
7346
+ Amount?: number | null | undefined;
7347
+ Source?: string | null | undefined;
7348
+ }[] | null | undefined;
7349
+ } | null | undefined;
7350
+ PremiumDiscounts?: unknown[] | null | undefined;
7351
+ PremiumTiers?: {
7352
+ MinPremiumTier?: number | null | undefined;
7353
+ RequiredPremiumID?: string | null | undefined;
7354
+ Resources?: {
7355
+ Entries?: {
7356
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
7357
+ CurrencyID?: string | null | undefined;
7358
+ Amount?: number | null | undefined;
7359
+ AmountUsd?: number | null | undefined;
7360
+ CatalogID?: string | null | undefined;
7361
+ ItemID?: string | null | undefined;
7362
+ ProductID?: string | null | undefined;
7363
+ }[] | null | undefined;
7364
+ EventTokens?: {
7365
+ Address?: {
7366
+ EntityID: string;
7367
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
7368
+ } | null | undefined;
7369
+ Amount?: number | null | undefined;
7370
+ Source?: string | null | undefined;
7371
+ }[] | null | undefined;
7372
+ } | null | undefined;
7373
+ }[] | null | undefined;
7374
+ } | null | undefined;
7375
+ } | null | undefined;
7376
+ }>>;
7377
+ /** Atomic increment of an Int/Number field (bounds of the field still apply). */
7378
+ increment(collection: string, itemID: string, field: string, delta?: number): Promise<OperationResult<{
7379
+ Item: {
7380
+ Collection: string;
7381
+ ItemID: string;
7382
+ Data: Record<string, unknown>;
7383
+ Version: number;
7384
+ CreatedAt: string;
7385
+ UpdatedAt: string;
7386
+ OwnerUserID?: string | null | undefined;
7387
+ ExpireAt?: string | null | undefined;
7388
+ Expanded?: Record<string, unknown> | null | undefined;
7389
+ Files?: Record<string, {
7390
+ FileID: string;
7391
+ Url: string;
7392
+ Size: number;
7393
+ ContentType?: string | null | undefined;
7394
+ }> | null | undefined;
7395
+ };
7396
+ AlreadyExists?: boolean | undefined;
7397
+ Economy?: {
7398
+ Grant?: {
7399
+ Standard?: {
7400
+ Entries?: {
7401
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
7402
+ CurrencyID?: string | null | undefined;
7403
+ Amount?: number | null | undefined;
7404
+ AmountUsd?: number | null | undefined;
7405
+ CatalogID?: string | null | undefined;
7406
+ ItemID?: string | null | undefined;
7407
+ ProductID?: string | null | undefined;
7408
+ }[] | null | undefined;
7409
+ EventTokens?: {
7410
+ Address?: {
7411
+ EntityID: string;
7412
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
7413
+ } | null | undefined;
7414
+ Amount?: number | null | undefined;
7415
+ Source?: string | null | undefined;
7416
+ }[] | null | undefined;
7417
+ } | null | undefined;
7418
+ PremiumBonuses?: unknown[] | null | undefined;
7419
+ PremiumTiers?: {
7420
+ MinPremiumTier?: number | null | undefined;
7421
+ RequiredPremiumID?: string | null | undefined;
7422
+ Resources?: {
7423
+ Entries?: {
7424
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
7425
+ CurrencyID?: string | null | undefined;
7426
+ Amount?: number | null | undefined;
7427
+ AmountUsd?: number | null | undefined;
7428
+ CatalogID?: string | null | undefined;
7429
+ ItemID?: string | null | undefined;
7430
+ ProductID?: string | null | undefined;
7431
+ }[] | null | undefined;
7432
+ EventTokens?: {
7433
+ Address?: {
7434
+ EntityID: string;
7435
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
7436
+ } | null | undefined;
7437
+ Amount?: number | null | undefined;
7438
+ Source?: string | null | undefined;
7439
+ }[] | null | undefined;
7440
+ } | null | undefined;
7441
+ }[] | null | undefined;
7442
+ } | null | undefined;
7443
+ Consume?: {
7444
+ Standard?: {
7445
+ Entries?: {
7446
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
7447
+ CurrencyID?: string | null | undefined;
7448
+ Amount?: number | null | undefined;
7449
+ AmountUsd?: number | null | undefined;
7450
+ CatalogID?: string | null | undefined;
7451
+ ItemID?: string | null | undefined;
7452
+ ProductID?: string | null | undefined;
7453
+ }[] | null | undefined;
7454
+ EventTokens?: {
7455
+ Address?: {
7456
+ EntityID: string;
7457
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
7458
+ } | null | undefined;
7459
+ Amount?: number | null | undefined;
7460
+ Source?: string | null | undefined;
7461
+ }[] | null | undefined;
7462
+ } | null | undefined;
7463
+ PremiumDiscounts?: unknown[] | null | undefined;
7464
+ PremiumTiers?: {
7465
+ MinPremiumTier?: number | null | undefined;
7466
+ RequiredPremiumID?: string | null | undefined;
7467
+ Resources?: {
7468
+ Entries?: {
7469
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
7470
+ CurrencyID?: string | null | undefined;
7471
+ Amount?: number | null | undefined;
7472
+ AmountUsd?: number | null | undefined;
7473
+ CatalogID?: string | null | undefined;
7474
+ ItemID?: string | null | undefined;
7475
+ ProductID?: string | null | undefined;
7476
+ }[] | null | undefined;
7477
+ EventTokens?: {
7478
+ Address?: {
7479
+ EntityID: string;
7480
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
7481
+ } | null | undefined;
7482
+ Amount?: number | null | undefined;
7483
+ Source?: string | null | undefined;
7484
+ }[] | null | undefined;
7485
+ } | null | undefined;
7486
+ }[] | null | undefined;
7487
+ } | null | undefined;
7488
+ } | null | undefined;
7489
+ }>>;
7490
+ delete(collection: string, itemID: string, options?: {
7491
+ expectedVersion?: number;
7492
+ }): Promise<OperationResult<DataDeleteResponse>>;
7493
+ /** Up to 25 operations over one or more collections — all or nothing, with one combined economy. */
7494
+ batch(operations: DataBatchOperation[]): Promise<OperationResult<DataBatchResponse>>;
7495
+ /** A declared aggregate (count / sum), optionally for one group value. */
7496
+ getCounter(collection: string, counterID: string, group?: unknown): Promise<OperationResult<DataCounterResponse>>;
7497
+ /** The caller's title roles (assigned by the server or the dashboard). */
7498
+ getMyRoles(): Promise<OperationResult<DataRolesResponse>>;
7499
+ /**
7500
+ * An upload ticket for a File field: the server checks the type and size against the field and
7501
+ * your right to write the collection, and returns a signed PUT link. Usually call `uploadFile`.
7502
+ */
7503
+ beginFileUpload(collection: string, field: string, contentType: string, size: number): Promise<OperationResult<DataFileUploadResponse>>;
7504
+ /**
7505
+ * Uploads a file for a File field and returns its id: ticket → bytes straight to storage by the
7506
+ * signed link. Put `FileID` into the field on create/update — the server binds the file to the
7507
+ * record in that same write and checks the real bytes against the declared type. Read links
7508
+ * (`item.Files[field].Url`) are signed and expire in minutes: use them right away, never store them.
7509
+ */
7510
+ uploadFile(collection: string, field: string, file: Blob, options?: {
7511
+ contentType?: string;
7512
+ }): Promise<OperationResult<DataFileUploadResponse>>;
7513
+ /** CDN addresses of a public collection's views. Cached for the life of the client. */
7514
+ getPublicViews(collection: string): Promise<OperationResult<DataPublicViewsResponse>>;
7515
+ /**
7516
+ * A page of a public view straight from the CDN — no database, no session. Freshness is seconds,
7517
+ * not instant. `partition` is the value of the view's PartitionField (a category, a region).
7518
+ */
7519
+ readPublicView(collection: string, view: string, options?: {
7520
+ partition?: string;
7521
+ page?: number;
7522
+ }): Promise<OperationResult<{
7523
+ pointer: DataPublicViewPointer;
7524
+ page: DataPublicViewPage;
7525
+ }>>;
7526
+ /** A record of a public collection without login. */
7527
+ getPublic(collection: string, itemID: string): Promise<OperationResult<DataGetResponse>>;
7528
+ /** Live search of a public collection without login (only where the collection allows AnonymousSearch). */
7529
+ searchPublic(collection: string, query: DataQuerySpec): Promise<OperationResult<DataQueryResponse>>;
7530
+ private base;
7531
+ private call;
7532
+ /** PUT to a signed storage URL. Not our API: raw fetch, no auth header, no envelope. */
7533
+ private putBytes;
7534
+ private fetchJson;
7535
+ }
7536
+
7537
+ /**
7538
+ * Custom events, Firebase-style: `logEvent("level_complete", { level: 5 })`.
7539
+ *
7540
+ * What the game must know:
7541
+ *
7542
+ * 1. **Nothing is sent per call.** Events are queued and go out in batches — 25 events or every
7543
+ * 30 seconds, and when the tab is hidden. Every batch is one API call billed to the publisher,
7544
+ * so do not call `flush()` after every event.
7545
+ * 2. **Nothing is lost on reload.** The queue lives in storage, and a batch that was in flight
7546
+ * when the tab died is resent with the SAME batch id — the server does not count it twice.
7547
+ * 3. **The title decides.** If the publisher has not switched event analytics on
7548
+ * (`Analytics.Enabled`), nothing is sent at all; in `Declared` naming mode only declared
7549
+ * events are accepted, and blocked events are refused locally.
7550
+ * 4. **Automatic events** (`idos_first_open`, `idos_session_start`, `idos_app_update`,
7551
+ * `idos_os_update`) are logged by the SDK once the title config says analytics is on. The
7552
+ * `idos_` prefix is reserved — `logEvent` refuses it. Screens go through `logScreenView`.
7553
+ */
7554
+ declare class AnalyticsService {
7555
+ private readonly ctx;
7556
+ private queue;
7557
+ private pending;
7558
+ private restored;
7559
+ private started;
7560
+ private flushing;
7561
+ private disabledByServer;
7562
+ private automaticDone;
7563
+ private hiddenAt;
7564
+ private timer;
7565
+ private drainTimer;
7566
+ private stopWaitingForConfig;
7567
+ private context;
7568
+ constructor(ctx: ClientContext);
7569
+ /**
7570
+ * Queue a custom event.
7571
+ *
7572
+ * @param name A letter, then letters, digits or `_`, 40 characters at most. `idos_`,
7573
+ * `firebase_`, `google_` and `ga_` are reserved.
7574
+ * @param params Up to 25. Strings are cut to 100 characters, non-finite numbers are skipped.
7575
+ * Only parameters the publisher registered as dimensions are kept by the server.
7576
+ * @param value A number the server sums — revenue, score.
7577
+ *
7578
+ * Fails only for input the server would drop anyway; a title with analytics off returns `ok`
7579
+ * and records nothing, the same as a player who opted out.
7580
+ */
7581
+ logEvent(name: string, params?: AnalyticsParams, value?: number): OperationResult<null>;
7582
+ /** A screen the player opened (`idos_screen_view`, parameter `screen_name`). */
7583
+ logScreenView(screenName: string, screenClass?: string): OperationResult<null>;
7584
+ /**
7585
+ * Send what is queued now — one batch. Needed only before a deliberate exit (a "quit" button);
7586
+ * the SDK flushes by itself on a timer and when the page is hidden.
7587
+ */
7588
+ flush(): Promise<OperationResult<LogEventsResponse | null>>;
7589
+ /**
7590
+ * The player's consent. `false` forgets everything queued and stops collecting until `true`.
7591
+ * Persisted on the device.
7592
+ */
7593
+ setEnabled(enabled: boolean): void;
7594
+ /** `false` after `setEnabled(false)`. */
7595
+ get isEnabled(): boolean;
7596
+ /**
7597
+ * First open, version changes and the session start.
7598
+ *
7599
+ * Waits for a title config that says analytics is ON. Sending them "to see what the server
7600
+ * says" would cost every title on this SDK one billed call per session, analytics or not.
7601
+ */
7602
+ private beginAutomatic;
7603
+ private onVisibilityChange;
7604
+ /** The last moment anything can be sent: persist first, delivery may never finish. */
7605
+ private onPageHide;
7606
+ private enqueue;
7607
+ private scheduleDrain;
7608
+ private dropStale;
7609
+ private clear;
7610
+ private config;
7611
+ private clientContext;
7612
+ private restore;
7613
+ private persist;
7614
+ private touch;
7615
+ /** Keys carry the title: a DEV and a PROD build on one origin must not share a queue. */
7616
+ private key;
7617
+ private read;
7618
+ private write;
7619
+ private remove;
7620
+ private readJson;
7621
+ private writeJson;
7622
+ }
7623
+
7624
+ /**
7625
+ * A/B variants in effect for this player and their `Params` — remote config per variant.
7626
+ *
7627
+ * What the game must know:
7628
+ *
7629
+ * 1. **Call `load()` once per session** (after login). It is one billed API call. Until it
7630
+ * returns, the getters answer from the values of the previous session on this device, or the
7631
+ * defaults you pass — the same model as Firebase Remote Config's "last activated" values.
7632
+ * 2. **Content gated by an experiment is resolved by the server.** A store offer or a quest that
7633
+ * is only for variant B is simply present or absent in its module's response; `experiments`
7634
+ * is for what the SERVER cannot decide for you — a colour, a difficulty number, a button text.
7635
+ * 3. **A stopped experiment gives control.** Disabled, out of its schedule or not in the
7636
+ * publisher's plan (`isAbTestingAvailable === false`) — everyone gets the control variant;
7637
+ * a rolled-out winner — everyone gets the winner. `getStatus()` says which.
7638
+ */
7639
+ declare class ExperimentsService {
7640
+ private readonly ctx;
7641
+ private views;
7642
+ private abTestingAvailable;
7643
+ private restoredFor;
7644
+ constructor(ctx: ClientContext);
7645
+ /** Fetch the variants in effect. Emits `experiments:loaded`, and `experiments:changed` for differences. */
7646
+ load(): Promise<OperationResult<GetExperimentsResponse>>;
7647
+ /** Variant id in effect, or `null` when the player is not in this experiment. */
7648
+ getVariant(experimentID: string): string | null;
7649
+ /** `Running` / `Stopped` / `RolledOut`, or `null` when unknown. */
7650
+ getStatus(experimentID: string): PlayerExperimentStatus | null;
7651
+ /** `Params` of the variant in effect (a copy). Empty when the player is not in the experiment. */
7652
+ getParams(experimentID: string): Record<string, string>;
7653
+ /**
7654
+ * One parameter, typed by the default you pass: a number default parses the value as a number,
7655
+ * a boolean default accepts `true`/`false`/`1`/`0`. A missing or unparsable value returns the
7656
+ * default — the game never has to guard against a publisher's typo.
7657
+ */
7658
+ getParam(experimentID: string, key: string, defaultValue: string): string;
7659
+ getParam(experimentID: string, key: string, defaultValue: number): number;
7660
+ getParam(experimentID: string, key: string, defaultValue: boolean): boolean;
7661
+ isInVariant(experimentID: string, variantID: string): boolean;
7662
+ /** `false` — the publisher's plan has no A/B testing and every experiment gives control. */
7663
+ get isAbTestingAvailable(): boolean;
7664
+ /** Every experiment known for this player. */
7665
+ get all(): PlayerExperimentView[];
7666
+ private apply;
7667
+ /**
7668
+ * Last known values of THIS player on this device. Keyed by player: variants are per player,
7669
+ * and the next person to log in on a shared device must not start with someone else's.
7670
+ */
7671
+ private restore;
7672
+ private save;
7673
+ private key;
7674
+ }
7675
+
7676
+ /** Thin transport wrapper for the Analytics feature (port of AnalyticsV2). */
7677
+ declare class AnalyticsApi {
7678
+ private readonly ctx;
7679
+ constructor(ctx: ClientContext);
7680
+ /**
7681
+ * One batch of events. Silent on purpose: delivery happens in the background and is retried by
7682
+ * `AnalyticsService`, so a failed attempt must not pop a global error in front of the player.
7683
+ */
7684
+ logEvents(request: AnalyticsRequest): Promise<OperationResult<LogEventsResponse>>;
7685
+ }
7686
+
7687
+ /** Thin transport wrapper for the Experiment feature (port of ExperimentV2). */
7688
+ declare class ExperimentApi {
7689
+ private readonly ctx;
7690
+ constructor(ctx: ClientContext);
7691
+ getExperiments(request: ExperimentRequest): Promise<OperationResult<GetExperimentsResponse>>;
7692
+ }
7693
+
6494
7694
  /** Thin transport wrapper for the Authentication feature (port of AuthenticationAPI.cs).
6495
7695
  * Authentication endpoints omit the userID segment and carry no ticket. */
6496
7696
  declare class AuthenticationApi {
@@ -6827,10 +8027,10 @@ declare class AIApi {
6827
8027
  constructor(ctx: ClientContext);
6828
8028
  private send;
6829
8029
  /**
6830
- * A paid generate call: long timeout and NO transport auto-retry. A timed-out generation is
6831
- * most likely still running on the server, and a silent resend would reach it while the first
6832
- * attempt is in flight. The failure surfaces as `connection` instead; the caller retries with
6833
- * the SAME `RelatedEntityID`, which the server answers with the original generation.
8030
+ * A paid generate call: long timeout and NO transport auto-retry. A timed-out submit most likely
8031
+ * reached the server, and a silent resend would race it. The failure surfaces as `connection`
8032
+ * instead; the caller retries with the SAME `RelatedEntityID`, which the server answers with the
8033
+ * original generation.
6834
8034
  */
6835
8035
  private generate;
6836
8036
  /**
@@ -6844,10 +8044,13 @@ declare class AIApi {
6844
8044
  getText(request: AIRequest): Promise<OperationResult<AIGenerationView>>;
6845
8045
  generateImage(request: AIRequest): Promise<OperationResult<AIGenerationView>>;
6846
8046
  editImage(request: AIRequest): Promise<OperationResult<AIGenerationView>>;
8047
+ getImage(request: AIRequest): Promise<OperationResult<AIGenerationView>>;
6847
8048
  generateVideo(request: AIRequest): Promise<OperationResult<AIGenerationView>>;
6848
8049
  getVideo(request: AIRequest): Promise<OperationResult<AIGenerationView>>;
6849
8050
  generateAudio(request: AIRequest): Promise<OperationResult<AIGenerationView>>;
8051
+ getAudio(request: AIRequest): Promise<OperationResult<AIGenerationView>>;
6850
8052
  generateMusic(request: AIRequest): Promise<OperationResult<AIGenerationView>>;
8053
+ getMusic(request: AIRequest): Promise<OperationResult<AIGenerationView>>;
6851
8054
  generateThreeD(request: AIRequest): Promise<OperationResult<AIGenerationView>>;
6852
8055
  getThreeD(request: AIRequest): Promise<OperationResult<AIGenerationView>>;
6853
8056
  listGenerations(request: AIRequest): Promise<OperationResult<AIGenerationListView>>;
@@ -7085,6 +8288,2447 @@ declare class MultiplayerApi {
7085
8288
  setMemberState(request: MultiplayerRequest): Promise<OperationResult<PublishResponse>>;
7086
8289
  }
7087
8290
 
8291
+ /** Thin transport wrapper for the Workshop feature (port of Workshop/Workshop.cs). */
8292
+ declare class WorkshopApi {
8293
+ private readonly ctx;
8294
+ constructor(ctx: ClientContext);
8295
+ private send;
8296
+ getDefinitions(r: WorkshopRequest): Promise<OperationResult<{
8297
+ [x: string]: unknown;
8298
+ Definitions?: {
8299
+ [x: string]: unknown;
8300
+ Enabled?: boolean | null | undefined;
8301
+ Gate?: {
8302
+ [x: string]: unknown;
8303
+ Segments?: string[] | null | undefined;
8304
+ MinPremiumTier?: number | null | undefined;
8305
+ RequiredPremiumIDs?: string[] | null | undefined;
8306
+ MinLevel?: number | null | undefined;
8307
+ MaxLevel?: number | null | undefined;
8308
+ Countries?: string[] | null | undefined;
8309
+ RegisteredWithinDays?: number | null | undefined;
8310
+ ActiveWithinDays?: number | null | undefined;
8311
+ Experiment?: {
8312
+ [x: string]: unknown;
8313
+ ExperimentID?: string | null | undefined;
8314
+ Variants?: string[] | null | undefined;
8315
+ } | null | undefined;
8316
+ Tutorial?: {
8317
+ [x: string]: unknown;
8318
+ FlowIDs?: string[] | null | undefined;
8319
+ Mode?: "Completed" | "Started" | "StepReached" | null | undefined;
8320
+ StepID?: string | null | undefined;
8321
+ Negate?: boolean | null | undefined;
8322
+ SkippedCountsAsCompleted?: boolean | null | undefined;
8323
+ } | null | undefined;
8324
+ Platforms?: ("Unknown" | "Web" | "Android" | "Ios")[] | null | undefined;
8325
+ } | null | undefined;
8326
+ Schedule?: {
8327
+ [x: string]: unknown;
8328
+ Mode?: string | null | undefined;
8329
+ IsActive?: boolean | null | undefined;
8330
+ Scheduled?: {
8331
+ [x: string]: unknown;
8332
+ StartUtc?: string | null | undefined;
8333
+ EndUtc?: string | null | undefined;
8334
+ AllowEarningAfterEnd?: boolean | null | undefined;
8335
+ ClaimGraceHours?: number | null | undefined;
8336
+ } | null | undefined;
8337
+ Chain?: {
8338
+ [x: string]: unknown;
8339
+ AnchorUtc?: string | null | undefined;
8340
+ MaxCycles?: number | null | undefined;
8341
+ PauseBetweenPhasesSec?: number | null | undefined;
8342
+ PauseBetweenCyclesSec?: number | null | undefined;
8343
+ } | null | undefined;
8344
+ Cyclic?: {
8345
+ [x: string]: unknown;
8346
+ Reset?: string | null | undefined;
8347
+ IntervalSeconds?: number | null | undefined;
8348
+ AnchorUtc?: string | null | undefined;
8349
+ PauseBetweenCyclesSec?: number | null | undefined;
8350
+ ClaimGraceHours?: number | null | undefined;
8351
+ } | null | undefined;
8352
+ ActivationTriggers?: {
8353
+ [x: string]: unknown;
8354
+ SourceType?: string | null | undefined;
8355
+ BaseWeight?: number | null | undefined;
8356
+ ScaleWithRollMultiplier?: boolean | null | undefined;
8357
+ TileTypeFilter?: string[] | null | undefined;
8358
+ TileIndexFilter?: number[] | null | undefined;
8359
+ ChanceOutcomeFilter?: string[] | null | undefined;
8360
+ OutcomeFilter?: string[] | null | undefined;
8361
+ Params?: Record<string, string> | null | undefined;
8362
+ Limits?: {
8363
+ [x: string]: unknown;
8364
+ TotalCap?: number | null | undefined;
8365
+ DailyCap?: number | null | undefined;
8366
+ DailyWeightCap?: number | null | undefined;
8367
+ PerActivationCap?: number | null | undefined;
8368
+ CooldownSeconds?: number | null | undefined;
8369
+ MaxPerWindow?: number | null | undefined;
8370
+ WindowSeconds?: number | null | undefined;
8371
+ } | null | undefined;
8372
+ }[] | null | undefined;
8373
+ Relative?: {
8374
+ [x: string]: unknown;
8375
+ OffsetSecondsFromParentStart?: number | null | undefined;
8376
+ DurationSeconds?: number | null | undefined;
8377
+ AllowEarningAfterEnd?: boolean | null | undefined;
8378
+ ClaimGraceHours?: number | null | undefined;
8379
+ } | null | undefined;
8380
+ } | null | undefined;
8381
+ ContentTypes?: Record<string, {
8382
+ [x: string]: unknown;
8383
+ DisplayName?: string | null | undefined;
8384
+ Enabled?: boolean | null | undefined;
8385
+ Files?: Record<string, {
8386
+ [x: string]: unknown;
8387
+ AllowedMimeTypes?: string[] | null | undefined;
8388
+ MaxBytes?: number | null | undefined;
8389
+ MaxCount?: number | null | undefined;
8390
+ Required?: boolean | null | undefined;
8391
+ }> | null | undefined;
8392
+ ThumbnailRequired?: boolean | null | undefined;
8393
+ AllowedAccessModes?: ("Price" | "Free" | "Holding")[] | null | undefined;
8394
+ PricePolicy?: {
8395
+ [x: string]: unknown;
8396
+ AllowVirtualCurrency?: boolean | null | undefined;
8397
+ AllowItems?: boolean | null | undefined;
8398
+ AllowEventTokens?: boolean | null | undefined;
8399
+ Allowed?: {
8400
+ [x: string]: unknown;
8401
+ Kind?: "Item" | "VirtualCurrency" | "EventToken" | null | undefined;
8402
+ CurrencyID?: string | null | undefined;
8403
+ CatalogID?: string | null | undefined;
8404
+ ItemID?: string | null | undefined;
8405
+ TokenType?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
8406
+ EntityID?: string | null | undefined;
8407
+ MinAmount?: number | null | undefined;
8408
+ MaxAmount?: number | null | undefined;
8409
+ }[] | null | undefined;
8410
+ MaxPositions?: number | null | undefined;
8411
+ } | null | undefined;
8412
+ PublishGate?: {
8413
+ [x: string]: unknown;
8414
+ Segments?: string[] | null | undefined;
8415
+ MinPremiumTier?: number | null | undefined;
8416
+ RequiredPremiumIDs?: string[] | null | undefined;
8417
+ MinLevel?: number | null | undefined;
8418
+ MaxLevel?: number | null | undefined;
8419
+ Countries?: string[] | null | undefined;
8420
+ RegisteredWithinDays?: number | null | undefined;
8421
+ ActiveWithinDays?: number | null | undefined;
8422
+ Experiment?: {
8423
+ [x: string]: unknown;
8424
+ ExperimentID?: string | null | undefined;
8425
+ Variants?: string[] | null | undefined;
8426
+ } | null | undefined;
8427
+ Tutorial?: {
8428
+ [x: string]: unknown;
8429
+ FlowIDs?: string[] | null | undefined;
8430
+ Mode?: "Completed" | "Started" | "StepReached" | null | undefined;
8431
+ StepID?: string | null | undefined;
8432
+ Negate?: boolean | null | undefined;
8433
+ SkippedCountsAsCompleted?: boolean | null | undefined;
8434
+ } | null | undefined;
8435
+ Platforms?: ("Unknown" | "Web" | "Android" | "Ios")[] | null | undefined;
8436
+ } | null | undefined;
8437
+ PublishFeeOptions?: Record<string, {
8438
+ [x: string]: unknown;
8439
+ OptionID?: string | null | undefined;
8440
+ Name?: string | null | undefined;
8441
+ Cost?: {
8442
+ Standard?: {
8443
+ Entries?: {
8444
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
8445
+ CurrencyID?: string | null | undefined;
8446
+ Amount?: number | null | undefined;
8447
+ AmountUsd?: number | null | undefined;
8448
+ CatalogID?: string | null | undefined;
8449
+ ItemID?: string | null | undefined;
8450
+ ProductID?: string | null | undefined;
8451
+ }[] | null | undefined;
8452
+ EventTokens?: {
8453
+ Address?: {
8454
+ EntityID: string;
8455
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
8456
+ } | null | undefined;
8457
+ Amount?: number | null | undefined;
8458
+ Source?: string | null | undefined;
8459
+ }[] | null | undefined;
8460
+ } | null | undefined;
8461
+ PremiumDiscounts?: unknown[] | null | undefined;
8462
+ PremiumTiers?: {
8463
+ MinPremiumTier?: number | null | undefined;
8464
+ RequiredPremiumID?: string | null | undefined;
8465
+ Resources?: {
8466
+ Entries?: {
8467
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
8468
+ CurrencyID?: string | null | undefined;
8469
+ Amount?: number | null | undefined;
8470
+ AmountUsd?: number | null | undefined;
8471
+ CatalogID?: string | null | undefined;
8472
+ ItemID?: string | null | undefined;
8473
+ ProductID?: string | null | undefined;
8474
+ }[] | null | undefined;
8475
+ EventTokens?: {
8476
+ Address?: {
8477
+ EntityID: string;
8478
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
8479
+ } | null | undefined;
8480
+ Amount?: number | null | undefined;
8481
+ Source?: string | null | undefined;
8482
+ }[] | null | undefined;
8483
+ } | null | undefined;
8484
+ }[] | null | undefined;
8485
+ } | null | undefined;
8486
+ AllowedPlatforms?: ("Unknown" | "Web" | "Android" | "Ios")[] | null | undefined;
8487
+ AssetPaths?: Record<string, string> | null | undefined;
8488
+ }> | null | undefined;
8489
+ TagVocabulary?: string[] | null | undefined;
8490
+ MaxPublishedPerPlayer?: number | null | undefined;
8491
+ DailyPublishCap?: number | null | undefined;
8492
+ }> | null | undefined;
8493
+ PricePolicy?: {
8494
+ [x: string]: unknown;
8495
+ AllowVirtualCurrency?: boolean | null | undefined;
8496
+ AllowItems?: boolean | null | undefined;
8497
+ AllowEventTokens?: boolean | null | undefined;
8498
+ Allowed?: {
8499
+ [x: string]: unknown;
8500
+ Kind?: "Item" | "VirtualCurrency" | "EventToken" | null | undefined;
8501
+ CurrencyID?: string | null | undefined;
8502
+ CatalogID?: string | null | undefined;
8503
+ ItemID?: string | null | undefined;
8504
+ TokenType?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
8505
+ EntityID?: string | null | undefined;
8506
+ MinAmount?: number | null | undefined;
8507
+ MaxAmount?: number | null | undefined;
8508
+ }[] | null | undefined;
8509
+ MaxPositions?: number | null | undefined;
8510
+ } | null | undefined;
8511
+ Commission?: {
8512
+ [x: string]: unknown;
8513
+ Percent?: number | null | undefined;
8514
+ MinPerPosition?: number | null | undefined;
8515
+ Sink?: "Burn" | "Ledger" | null | undefined;
8516
+ LedgerAccountID?: string | null | undefined;
8517
+ PerCatalogOverrides?: Record<string, {
8518
+ [x: string]: unknown;
8519
+ Percent?: number | null | undefined;
8520
+ MinPerPosition?: number | null | undefined;
8521
+ }> | null | undefined;
8522
+ ApplyToDirectTrades?: boolean | null | undefined;
8523
+ } | null | undefined;
8524
+ HoldingPolicy?: {
8525
+ [x: string]: unknown;
8526
+ Allowed?: {
8527
+ [x: string]: unknown;
8528
+ Kind?: "Item" | "VirtualCurrency" | "EventToken" | null | undefined;
8529
+ CurrencyID?: string | null | undefined;
8530
+ CatalogID?: string | null | undefined;
8531
+ ItemID?: string | null | undefined;
8532
+ TokenType?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
8533
+ EntityID?: string | null | undefined;
8534
+ MinAmount?: number | null | undefined;
8535
+ MaxAmount?: number | null | undefined;
8536
+ }[] | null | undefined;
8537
+ MaxRequirements?: number | null | undefined;
8538
+ } | null | undefined;
8539
+ Moderation?: {
8540
+ [x: string]: unknown;
8541
+ AutoHideReportThreshold?: number | null | undefined;
8542
+ RequireApproval?: boolean | null | undefined;
8543
+ } | null | undefined;
8544
+ Limits?: {
8545
+ [x: string]: unknown;
8546
+ MaxTitleLength?: number | null | undefined;
8547
+ MaxDescriptionLength?: number | null | undefined;
8548
+ MaxTags?: number | null | undefined;
8549
+ MaxTagLength?: number | null | undefined;
8550
+ MaxMetadataKeys?: number | null | undefined;
8551
+ MaxMetadataValueLength?: number | null | undefined;
8552
+ MaxAccessOptions?: number | null | undefined;
8553
+ ThumbnailMaxBytes?: number | null | undefined;
8554
+ } | null | undefined;
8555
+ Featured?: {
8556
+ [x: string]: unknown;
8557
+ CollectionID?: string | null | undefined;
8558
+ Name?: string | null | undefined;
8559
+ Description?: string | null | undefined;
8560
+ ContentIDs?: string[] | null | undefined;
8561
+ Schedule?: {
8562
+ [x: string]: unknown;
8563
+ Mode?: string | null | undefined;
8564
+ IsActive?: boolean | null | undefined;
8565
+ Scheduled?: {
8566
+ [x: string]: unknown;
8567
+ StartUtc?: string | null | undefined;
8568
+ EndUtc?: string | null | undefined;
8569
+ AllowEarningAfterEnd?: boolean | null | undefined;
8570
+ ClaimGraceHours?: number | null | undefined;
8571
+ } | null | undefined;
8572
+ Chain?: {
8573
+ [x: string]: unknown;
8574
+ AnchorUtc?: string | null | undefined;
8575
+ MaxCycles?: number | null | undefined;
8576
+ PauseBetweenPhasesSec?: number | null | undefined;
8577
+ PauseBetweenCyclesSec?: number | null | undefined;
8578
+ } | null | undefined;
8579
+ Cyclic?: {
8580
+ [x: string]: unknown;
8581
+ Reset?: string | null | undefined;
8582
+ IntervalSeconds?: number | null | undefined;
8583
+ AnchorUtc?: string | null | undefined;
8584
+ PauseBetweenCyclesSec?: number | null | undefined;
8585
+ ClaimGraceHours?: number | null | undefined;
8586
+ } | null | undefined;
8587
+ ActivationTriggers?: {
8588
+ [x: string]: unknown;
8589
+ SourceType?: string | null | undefined;
8590
+ BaseWeight?: number | null | undefined;
8591
+ ScaleWithRollMultiplier?: boolean | null | undefined;
8592
+ TileTypeFilter?: string[] | null | undefined;
8593
+ TileIndexFilter?: number[] | null | undefined;
8594
+ ChanceOutcomeFilter?: string[] | null | undefined;
8595
+ OutcomeFilter?: string[] | null | undefined;
8596
+ Params?: Record<string, string> | null | undefined;
8597
+ Limits?: {
8598
+ [x: string]: unknown;
8599
+ TotalCap?: number | null | undefined;
8600
+ DailyCap?: number | null | undefined;
8601
+ DailyWeightCap?: number | null | undefined;
8602
+ PerActivationCap?: number | null | undefined;
8603
+ CooldownSeconds?: number | null | undefined;
8604
+ MaxPerWindow?: number | null | undefined;
8605
+ WindowSeconds?: number | null | undefined;
8606
+ } | null | undefined;
8607
+ }[] | null | undefined;
8608
+ Relative?: {
8609
+ [x: string]: unknown;
8610
+ OffsetSecondsFromParentStart?: number | null | undefined;
8611
+ DurationSeconds?: number | null | undefined;
8612
+ AllowEarningAfterEnd?: boolean | null | undefined;
8613
+ ClaimGraceHours?: number | null | undefined;
8614
+ } | null | undefined;
8615
+ } | null | undefined;
8616
+ Gate?: {
8617
+ [x: string]: unknown;
8618
+ Segments?: string[] | null | undefined;
8619
+ MinPremiumTier?: number | null | undefined;
8620
+ RequiredPremiumIDs?: string[] | null | undefined;
8621
+ MinLevel?: number | null | undefined;
8622
+ MaxLevel?: number | null | undefined;
8623
+ Countries?: string[] | null | undefined;
8624
+ RegisteredWithinDays?: number | null | undefined;
8625
+ ActiveWithinDays?: number | null | undefined;
8626
+ Experiment?: {
8627
+ [x: string]: unknown;
8628
+ ExperimentID?: string | null | undefined;
8629
+ Variants?: string[] | null | undefined;
8630
+ } | null | undefined;
8631
+ Tutorial?: {
8632
+ [x: string]: unknown;
8633
+ FlowIDs?: string[] | null | undefined;
8634
+ Mode?: "Completed" | "Started" | "StepReached" | null | undefined;
8635
+ StepID?: string | null | undefined;
8636
+ Negate?: boolean | null | undefined;
8637
+ SkippedCountsAsCompleted?: boolean | null | undefined;
8638
+ } | null | undefined;
8639
+ Platforms?: ("Unknown" | "Web" | "Android" | "Ios")[] | null | undefined;
8640
+ } | null | undefined;
8641
+ Order?: number | null | undefined;
8642
+ }[] | null | undefined;
8643
+ } | null | undefined;
8644
+ IsOpenNow?: boolean | null | undefined;
8645
+ GatePassed?: boolean | null | undefined;
8646
+ CanPublish?: Record<string, boolean> | null | undefined;
8647
+ Collections?: {
8648
+ [x: string]: unknown;
8649
+ CollectionID?: string | null | undefined;
8650
+ Name?: string | null | undefined;
8651
+ Description?: string | null | undefined;
8652
+ ContentIDs?: string[] | null | undefined;
8653
+ Order?: number | null | undefined;
8654
+ }[] | null | undefined;
8655
+ }>>;
8656
+ browse(r: WorkshopRequest): Promise<OperationResult<{
8657
+ [x: string]: unknown;
8658
+ Items?: {
8659
+ [x: string]: unknown;
8660
+ ContentID?: string | null | undefined;
8661
+ ContentType?: string | null | undefined;
8662
+ CreatorUserID?: string | null | undefined;
8663
+ IsOfficial?: boolean | null | undefined;
8664
+ CreatorPublicData?: {
8665
+ [x: string]: unknown;
8666
+ Username?: string | null | undefined;
8667
+ Country?: string | null | undefined;
8668
+ AvatarUrl?: string | null | undefined;
8669
+ Premium?: boolean | null | undefined;
8670
+ Level?: number | null | undefined;
8671
+ Power?: number | null | undefined;
8672
+ BoardRank?: number | null | undefined;
8673
+ } | null | undefined;
8674
+ Title?: string | null | undefined;
8675
+ Description?: string | null | undefined;
8676
+ Tags?: string[] | null | undefined;
8677
+ Metadata?: Record<string, string> | null | undefined;
8678
+ ThumbnailUrl?: string | null | undefined;
8679
+ Visibility?: "Friends" | "Public" | "Unlisted" | null | undefined;
8680
+ Access?: {
8681
+ [x: string]: unknown;
8682
+ OptionID?: string | null | undefined;
8683
+ Mode?: "Price" | "Free" | "Holding" | null | undefined;
8684
+ Price?: {
8685
+ Entries?: {
8686
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
8687
+ CurrencyID?: string | null | undefined;
8688
+ Amount?: number | null | undefined;
8689
+ AmountUsd?: number | null | undefined;
8690
+ CatalogID?: string | null | undefined;
8691
+ ItemID?: string | null | undefined;
8692
+ ProductID?: string | null | undefined;
8693
+ }[] | null | undefined;
8694
+ EventTokens?: {
8695
+ Address?: {
8696
+ EntityID: string;
8697
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
8698
+ } | null | undefined;
8699
+ Amount?: number | null | undefined;
8700
+ Source?: string | null | undefined;
8701
+ }[] | null | undefined;
8702
+ } | null | undefined;
8703
+ Holding?: {
8704
+ [x: string]: unknown;
8705
+ Requirements?: {
8706
+ [x: string]: unknown;
8707
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
8708
+ CurrencyID?: string | null | undefined;
8709
+ CatalogID?: string | null | undefined;
8710
+ ItemID?: string | null | undefined;
8711
+ Amount?: number | null | undefined;
8712
+ MinLevel?: number | null | undefined;
8713
+ }[] | null | undefined;
8714
+ Match?: "All" | "Any" | null | undefined;
8715
+ Mode?: "WhileHeld" | "UnlockOnce" | null | undefined;
8716
+ } | null | undefined;
8717
+ }[] | null | undefined;
8718
+ Status?: "Hidden" | "Removed" | "Uploading" | "PendingReview" | "Published" | null | undefined;
8719
+ ModerationNote?: string | null | undefined;
8720
+ Stats?: {
8721
+ [x: string]: unknown;
8722
+ Acquisitions?: number | null | undefined;
8723
+ Downloads?: number | null | undefined;
8724
+ Likes?: number | null | undefined;
8725
+ Favorites?: number | null | undefined;
8726
+ ReportCount?: number | null | undefined;
8727
+ } | null | undefined;
8728
+ Revision?: number | null | undefined;
8729
+ FileCount?: number | null | undefined;
8730
+ TotalBytes?: number | null | undefined;
8731
+ CreatedAt?: string | null | undefined;
8732
+ UpdatedAt?: string | null | undefined;
8733
+ PublishedAt?: string | null | undefined;
8734
+ IsMine?: boolean | null | undefined;
8735
+ Owned?: boolean | null | undefined;
8736
+ Liked?: boolean | null | undefined;
8737
+ Favorited?: boolean | null | undefined;
8738
+ }[] | null | undefined;
8739
+ ContinuationToken?: string | null | undefined;
8740
+ }>>;
8741
+ getContent(r: WorkshopRequest): Promise<OperationResult<{
8742
+ [x: string]: unknown;
8743
+ Content?: {
8744
+ [x: string]: unknown;
8745
+ ContentID?: string | null | undefined;
8746
+ ContentType?: string | null | undefined;
8747
+ CreatorUserID?: string | null | undefined;
8748
+ IsOfficial?: boolean | null | undefined;
8749
+ CreatorPublicData?: {
8750
+ [x: string]: unknown;
8751
+ Username?: string | null | undefined;
8752
+ Country?: string | null | undefined;
8753
+ AvatarUrl?: string | null | undefined;
8754
+ Premium?: boolean | null | undefined;
8755
+ Level?: number | null | undefined;
8756
+ Power?: number | null | undefined;
8757
+ BoardRank?: number | null | undefined;
8758
+ } | null | undefined;
8759
+ Title?: string | null | undefined;
8760
+ Description?: string | null | undefined;
8761
+ Tags?: string[] | null | undefined;
8762
+ Metadata?: Record<string, string> | null | undefined;
8763
+ ThumbnailUrl?: string | null | undefined;
8764
+ Visibility?: "Friends" | "Public" | "Unlisted" | null | undefined;
8765
+ Access?: {
8766
+ [x: string]: unknown;
8767
+ OptionID?: string | null | undefined;
8768
+ Mode?: "Price" | "Free" | "Holding" | null | undefined;
8769
+ Price?: {
8770
+ Entries?: {
8771
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
8772
+ CurrencyID?: string | null | undefined;
8773
+ Amount?: number | null | undefined;
8774
+ AmountUsd?: number | null | undefined;
8775
+ CatalogID?: string | null | undefined;
8776
+ ItemID?: string | null | undefined;
8777
+ ProductID?: string | null | undefined;
8778
+ }[] | null | undefined;
8779
+ EventTokens?: {
8780
+ Address?: {
8781
+ EntityID: string;
8782
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
8783
+ } | null | undefined;
8784
+ Amount?: number | null | undefined;
8785
+ Source?: string | null | undefined;
8786
+ }[] | null | undefined;
8787
+ } | null | undefined;
8788
+ Holding?: {
8789
+ [x: string]: unknown;
8790
+ Requirements?: {
8791
+ [x: string]: unknown;
8792
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
8793
+ CurrencyID?: string | null | undefined;
8794
+ CatalogID?: string | null | undefined;
8795
+ ItemID?: string | null | undefined;
8796
+ Amount?: number | null | undefined;
8797
+ MinLevel?: number | null | undefined;
8798
+ }[] | null | undefined;
8799
+ Match?: "All" | "Any" | null | undefined;
8800
+ Mode?: "WhileHeld" | "UnlockOnce" | null | undefined;
8801
+ } | null | undefined;
8802
+ }[] | null | undefined;
8803
+ Status?: "Hidden" | "Removed" | "Uploading" | "PendingReview" | "Published" | null | undefined;
8804
+ ModerationNote?: string | null | undefined;
8805
+ Stats?: {
8806
+ [x: string]: unknown;
8807
+ Acquisitions?: number | null | undefined;
8808
+ Downloads?: number | null | undefined;
8809
+ Likes?: number | null | undefined;
8810
+ Favorites?: number | null | undefined;
8811
+ ReportCount?: number | null | undefined;
8812
+ } | null | undefined;
8813
+ Revision?: number | null | undefined;
8814
+ FileCount?: number | null | undefined;
8815
+ TotalBytes?: number | null | undefined;
8816
+ CreatedAt?: string | null | undefined;
8817
+ UpdatedAt?: string | null | undefined;
8818
+ PublishedAt?: string | null | undefined;
8819
+ IsMine?: boolean | null | undefined;
8820
+ Owned?: boolean | null | undefined;
8821
+ Liked?: boolean | null | undefined;
8822
+ Favorited?: boolean | null | undefined;
8823
+ } | null | undefined;
8824
+ AccessState?: {
8825
+ [x: string]: unknown;
8826
+ OptionID?: string | null | undefined;
8827
+ Mode?: "Price" | "Free" | "Holding" | null | undefined;
8828
+ Available?: boolean | null | undefined;
8829
+ }[] | null | undefined;
8830
+ CanDownload?: boolean | null | undefined;
8831
+ }>>;
8832
+ getCollection(r: WorkshopRequest): Promise<OperationResult<{
8833
+ [x: string]: unknown;
8834
+ Collection?: {
8835
+ [x: string]: unknown;
8836
+ CollectionID?: string | null | undefined;
8837
+ Name?: string | null | undefined;
8838
+ Description?: string | null | undefined;
8839
+ ContentIDs?: string[] | null | undefined;
8840
+ Order?: number | null | undefined;
8841
+ } | null | undefined;
8842
+ Items?: {
8843
+ [x: string]: unknown;
8844
+ ContentID?: string | null | undefined;
8845
+ ContentType?: string | null | undefined;
8846
+ CreatorUserID?: string | null | undefined;
8847
+ IsOfficial?: boolean | null | undefined;
8848
+ CreatorPublicData?: {
8849
+ [x: string]: unknown;
8850
+ Username?: string | null | undefined;
8851
+ Country?: string | null | undefined;
8852
+ AvatarUrl?: string | null | undefined;
8853
+ Premium?: boolean | null | undefined;
8854
+ Level?: number | null | undefined;
8855
+ Power?: number | null | undefined;
8856
+ BoardRank?: number | null | undefined;
8857
+ } | null | undefined;
8858
+ Title?: string | null | undefined;
8859
+ Description?: string | null | undefined;
8860
+ Tags?: string[] | null | undefined;
8861
+ Metadata?: Record<string, string> | null | undefined;
8862
+ ThumbnailUrl?: string | null | undefined;
8863
+ Visibility?: "Friends" | "Public" | "Unlisted" | null | undefined;
8864
+ Access?: {
8865
+ [x: string]: unknown;
8866
+ OptionID?: string | null | undefined;
8867
+ Mode?: "Price" | "Free" | "Holding" | null | undefined;
8868
+ Price?: {
8869
+ Entries?: {
8870
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
8871
+ CurrencyID?: string | null | undefined;
8872
+ Amount?: number | null | undefined;
8873
+ AmountUsd?: number | null | undefined;
8874
+ CatalogID?: string | null | undefined;
8875
+ ItemID?: string | null | undefined;
8876
+ ProductID?: string | null | undefined;
8877
+ }[] | null | undefined;
8878
+ EventTokens?: {
8879
+ Address?: {
8880
+ EntityID: string;
8881
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
8882
+ } | null | undefined;
8883
+ Amount?: number | null | undefined;
8884
+ Source?: string | null | undefined;
8885
+ }[] | null | undefined;
8886
+ } | null | undefined;
8887
+ Holding?: {
8888
+ [x: string]: unknown;
8889
+ Requirements?: {
8890
+ [x: string]: unknown;
8891
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
8892
+ CurrencyID?: string | null | undefined;
8893
+ CatalogID?: string | null | undefined;
8894
+ ItemID?: string | null | undefined;
8895
+ Amount?: number | null | undefined;
8896
+ MinLevel?: number | null | undefined;
8897
+ }[] | null | undefined;
8898
+ Match?: "All" | "Any" | null | undefined;
8899
+ Mode?: "WhileHeld" | "UnlockOnce" | null | undefined;
8900
+ } | null | undefined;
8901
+ }[] | null | undefined;
8902
+ Status?: "Hidden" | "Removed" | "Uploading" | "PendingReview" | "Published" | null | undefined;
8903
+ ModerationNote?: string | null | undefined;
8904
+ Stats?: {
8905
+ [x: string]: unknown;
8906
+ Acquisitions?: number | null | undefined;
8907
+ Downloads?: number | null | undefined;
8908
+ Likes?: number | null | undefined;
8909
+ Favorites?: number | null | undefined;
8910
+ ReportCount?: number | null | undefined;
8911
+ } | null | undefined;
8912
+ Revision?: number | null | undefined;
8913
+ FileCount?: number | null | undefined;
8914
+ TotalBytes?: number | null | undefined;
8915
+ CreatedAt?: string | null | undefined;
8916
+ UpdatedAt?: string | null | undefined;
8917
+ PublishedAt?: string | null | undefined;
8918
+ IsMine?: boolean | null | undefined;
8919
+ Owned?: boolean | null | undefined;
8920
+ Liked?: boolean | null | undefined;
8921
+ Favorited?: boolean | null | undefined;
8922
+ }[] | null | undefined;
8923
+ }>>;
8924
+ getCreatorProfile(r: WorkshopRequest): Promise<OperationResult<{
8925
+ [x: string]: unknown;
8926
+ CreatorUserID?: string | null | undefined;
8927
+ PublicData?: {
8928
+ [x: string]: unknown;
8929
+ Username?: string | null | undefined;
8930
+ Country?: string | null | undefined;
8931
+ AvatarUrl?: string | null | undefined;
8932
+ Premium?: boolean | null | undefined;
8933
+ Level?: number | null | undefined;
8934
+ Power?: number | null | undefined;
8935
+ BoardRank?: number | null | undefined;
8936
+ } | null | undefined;
8937
+ PublishedCount?: number | null | undefined;
8938
+ FollowerCount?: number | null | undefined;
8939
+ IsFollowing?: boolean | null | undefined;
8940
+ Items?: {
8941
+ [x: string]: unknown;
8942
+ ContentID?: string | null | undefined;
8943
+ ContentType?: string | null | undefined;
8944
+ CreatorUserID?: string | null | undefined;
8945
+ IsOfficial?: boolean | null | undefined;
8946
+ CreatorPublicData?: {
8947
+ [x: string]: unknown;
8948
+ Username?: string | null | undefined;
8949
+ Country?: string | null | undefined;
8950
+ AvatarUrl?: string | null | undefined;
8951
+ Premium?: boolean | null | undefined;
8952
+ Level?: number | null | undefined;
8953
+ Power?: number | null | undefined;
8954
+ BoardRank?: number | null | undefined;
8955
+ } | null | undefined;
8956
+ Title?: string | null | undefined;
8957
+ Description?: string | null | undefined;
8958
+ Tags?: string[] | null | undefined;
8959
+ Metadata?: Record<string, string> | null | undefined;
8960
+ ThumbnailUrl?: string | null | undefined;
8961
+ Visibility?: "Friends" | "Public" | "Unlisted" | null | undefined;
8962
+ Access?: {
8963
+ [x: string]: unknown;
8964
+ OptionID?: string | null | undefined;
8965
+ Mode?: "Price" | "Free" | "Holding" | null | undefined;
8966
+ Price?: {
8967
+ Entries?: {
8968
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
8969
+ CurrencyID?: string | null | undefined;
8970
+ Amount?: number | null | undefined;
8971
+ AmountUsd?: number | null | undefined;
8972
+ CatalogID?: string | null | undefined;
8973
+ ItemID?: string | null | undefined;
8974
+ ProductID?: string | null | undefined;
8975
+ }[] | null | undefined;
8976
+ EventTokens?: {
8977
+ Address?: {
8978
+ EntityID: string;
8979
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
8980
+ } | null | undefined;
8981
+ Amount?: number | null | undefined;
8982
+ Source?: string | null | undefined;
8983
+ }[] | null | undefined;
8984
+ } | null | undefined;
8985
+ Holding?: {
8986
+ [x: string]: unknown;
8987
+ Requirements?: {
8988
+ [x: string]: unknown;
8989
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
8990
+ CurrencyID?: string | null | undefined;
8991
+ CatalogID?: string | null | undefined;
8992
+ ItemID?: string | null | undefined;
8993
+ Amount?: number | null | undefined;
8994
+ MinLevel?: number | null | undefined;
8995
+ }[] | null | undefined;
8996
+ Match?: "All" | "Any" | null | undefined;
8997
+ Mode?: "WhileHeld" | "UnlockOnce" | null | undefined;
8998
+ } | null | undefined;
8999
+ }[] | null | undefined;
9000
+ Status?: "Hidden" | "Removed" | "Uploading" | "PendingReview" | "Published" | null | undefined;
9001
+ ModerationNote?: string | null | undefined;
9002
+ Stats?: {
9003
+ [x: string]: unknown;
9004
+ Acquisitions?: number | null | undefined;
9005
+ Downloads?: number | null | undefined;
9006
+ Likes?: number | null | undefined;
9007
+ Favorites?: number | null | undefined;
9008
+ ReportCount?: number | null | undefined;
9009
+ } | null | undefined;
9010
+ Revision?: number | null | undefined;
9011
+ FileCount?: number | null | undefined;
9012
+ TotalBytes?: number | null | undefined;
9013
+ CreatedAt?: string | null | undefined;
9014
+ UpdatedAt?: string | null | undefined;
9015
+ PublishedAt?: string | null | undefined;
9016
+ IsMine?: boolean | null | undefined;
9017
+ Owned?: boolean | null | undefined;
9018
+ Liked?: boolean | null | undefined;
9019
+ Favorited?: boolean | null | undefined;
9020
+ }[] | null | undefined;
9021
+ }>>;
9022
+ beginUpload(r: WorkshopRequest): Promise<OperationResult<{
9023
+ [x: string]: unknown;
9024
+ ContentID?: string | null | undefined;
9025
+ Revision?: number | null | undefined;
9026
+ Uploads?: {
9027
+ [x: string]: unknown;
9028
+ Role?: string | null | undefined;
9029
+ Index?: number | null | undefined;
9030
+ Url?: string | null | undefined;
9031
+ ContentType?: string | null | undefined;
9032
+ Size?: number | null | undefined;
9033
+ ServerCopy?: boolean | null | undefined;
9034
+ }[] | null | undefined;
9035
+ ThumbnailUpload?: {
9036
+ [x: string]: unknown;
9037
+ Role?: string | null | undefined;
9038
+ Index?: number | null | undefined;
9039
+ Url?: string | null | undefined;
9040
+ ContentType?: string | null | undefined;
9041
+ Size?: number | null | undefined;
9042
+ ServerCopy?: boolean | null | undefined;
9043
+ } | null | undefined;
9044
+ ExpiresAt?: string | null | undefined;
9045
+ }>>;
9046
+ publish(r: WorkshopRequest): Promise<OperationResult<{
9047
+ [x: string]: unknown;
9048
+ Content?: {
9049
+ [x: string]: unknown;
9050
+ ContentID?: string | null | undefined;
9051
+ ContentType?: string | null | undefined;
9052
+ CreatorUserID?: string | null | undefined;
9053
+ IsOfficial?: boolean | null | undefined;
9054
+ CreatorPublicData?: {
9055
+ [x: string]: unknown;
9056
+ Username?: string | null | undefined;
9057
+ Country?: string | null | undefined;
9058
+ AvatarUrl?: string | null | undefined;
9059
+ Premium?: boolean | null | undefined;
9060
+ Level?: number | null | undefined;
9061
+ Power?: number | null | undefined;
9062
+ BoardRank?: number | null | undefined;
9063
+ } | null | undefined;
9064
+ Title?: string | null | undefined;
9065
+ Description?: string | null | undefined;
9066
+ Tags?: string[] | null | undefined;
9067
+ Metadata?: Record<string, string> | null | undefined;
9068
+ ThumbnailUrl?: string | null | undefined;
9069
+ Visibility?: "Friends" | "Public" | "Unlisted" | null | undefined;
9070
+ Access?: {
9071
+ [x: string]: unknown;
9072
+ OptionID?: string | null | undefined;
9073
+ Mode?: "Price" | "Free" | "Holding" | null | undefined;
9074
+ Price?: {
9075
+ Entries?: {
9076
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
9077
+ CurrencyID?: string | null | undefined;
9078
+ Amount?: number | null | undefined;
9079
+ AmountUsd?: number | null | undefined;
9080
+ CatalogID?: string | null | undefined;
9081
+ ItemID?: string | null | undefined;
9082
+ ProductID?: string | null | undefined;
9083
+ }[] | null | undefined;
9084
+ EventTokens?: {
9085
+ Address?: {
9086
+ EntityID: string;
9087
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
9088
+ } | null | undefined;
9089
+ Amount?: number | null | undefined;
9090
+ Source?: string | null | undefined;
9091
+ }[] | null | undefined;
9092
+ } | null | undefined;
9093
+ Holding?: {
9094
+ [x: string]: unknown;
9095
+ Requirements?: {
9096
+ [x: string]: unknown;
9097
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
9098
+ CurrencyID?: string | null | undefined;
9099
+ CatalogID?: string | null | undefined;
9100
+ ItemID?: string | null | undefined;
9101
+ Amount?: number | null | undefined;
9102
+ MinLevel?: number | null | undefined;
9103
+ }[] | null | undefined;
9104
+ Match?: "All" | "Any" | null | undefined;
9105
+ Mode?: "WhileHeld" | "UnlockOnce" | null | undefined;
9106
+ } | null | undefined;
9107
+ }[] | null | undefined;
9108
+ Status?: "Hidden" | "Removed" | "Uploading" | "PendingReview" | "Published" | null | undefined;
9109
+ ModerationNote?: string | null | undefined;
9110
+ Stats?: {
9111
+ [x: string]: unknown;
9112
+ Acquisitions?: number | null | undefined;
9113
+ Downloads?: number | null | undefined;
9114
+ Likes?: number | null | undefined;
9115
+ Favorites?: number | null | undefined;
9116
+ ReportCount?: number | null | undefined;
9117
+ } | null | undefined;
9118
+ Revision?: number | null | undefined;
9119
+ FileCount?: number | null | undefined;
9120
+ TotalBytes?: number | null | undefined;
9121
+ CreatedAt?: string | null | undefined;
9122
+ UpdatedAt?: string | null | undefined;
9123
+ PublishedAt?: string | null | undefined;
9124
+ IsMine?: boolean | null | undefined;
9125
+ Owned?: boolean | null | undefined;
9126
+ Liked?: boolean | null | undefined;
9127
+ Favorited?: boolean | null | undefined;
9128
+ } | null | undefined;
9129
+ Resources?: {
9130
+ Grant?: {
9131
+ Standard?: {
9132
+ Entries?: {
9133
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
9134
+ CurrencyID?: string | null | undefined;
9135
+ Amount?: number | null | undefined;
9136
+ AmountUsd?: number | null | undefined;
9137
+ CatalogID?: string | null | undefined;
9138
+ ItemID?: string | null | undefined;
9139
+ ProductID?: string | null | undefined;
9140
+ }[] | null | undefined;
9141
+ EventTokens?: {
9142
+ Address?: {
9143
+ EntityID: string;
9144
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
9145
+ } | null | undefined;
9146
+ Amount?: number | null | undefined;
9147
+ Source?: string | null | undefined;
9148
+ }[] | null | undefined;
9149
+ } | null | undefined;
9150
+ PremiumBonuses?: unknown[] | null | undefined;
9151
+ PremiumTiers?: {
9152
+ MinPremiumTier?: number | null | undefined;
9153
+ RequiredPremiumID?: string | null | undefined;
9154
+ Resources?: {
9155
+ Entries?: {
9156
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
9157
+ CurrencyID?: string | null | undefined;
9158
+ Amount?: number | null | undefined;
9159
+ AmountUsd?: number | null | undefined;
9160
+ CatalogID?: string | null | undefined;
9161
+ ItemID?: string | null | undefined;
9162
+ ProductID?: string | null | undefined;
9163
+ }[] | null | undefined;
9164
+ EventTokens?: {
9165
+ Address?: {
9166
+ EntityID: string;
9167
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
9168
+ } | null | undefined;
9169
+ Amount?: number | null | undefined;
9170
+ Source?: string | null | undefined;
9171
+ }[] | null | undefined;
9172
+ } | null | undefined;
9173
+ }[] | null | undefined;
9174
+ } | null | undefined;
9175
+ Consume?: {
9176
+ Standard?: {
9177
+ Entries?: {
9178
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
9179
+ CurrencyID?: string | null | undefined;
9180
+ Amount?: number | null | undefined;
9181
+ AmountUsd?: number | null | undefined;
9182
+ CatalogID?: string | null | undefined;
9183
+ ItemID?: string | null | undefined;
9184
+ ProductID?: string | null | undefined;
9185
+ }[] | null | undefined;
9186
+ EventTokens?: {
9187
+ Address?: {
9188
+ EntityID: string;
9189
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
9190
+ } | null | undefined;
9191
+ Amount?: number | null | undefined;
9192
+ Source?: string | null | undefined;
9193
+ }[] | null | undefined;
9194
+ } | null | undefined;
9195
+ PremiumDiscounts?: unknown[] | null | undefined;
9196
+ PremiumTiers?: {
9197
+ MinPremiumTier?: number | null | undefined;
9198
+ RequiredPremiumID?: string | null | undefined;
9199
+ Resources?: {
9200
+ Entries?: {
9201
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
9202
+ CurrencyID?: string | null | undefined;
9203
+ Amount?: number | null | undefined;
9204
+ AmountUsd?: number | null | undefined;
9205
+ CatalogID?: string | null | undefined;
9206
+ ItemID?: string | null | undefined;
9207
+ ProductID?: string | null | undefined;
9208
+ }[] | null | undefined;
9209
+ EventTokens?: {
9210
+ Address?: {
9211
+ EntityID: string;
9212
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
9213
+ } | null | undefined;
9214
+ Amount?: number | null | undefined;
9215
+ Source?: string | null | undefined;
9216
+ }[] | null | undefined;
9217
+ } | null | undefined;
9218
+ }[] | null | undefined;
9219
+ } | null | undefined;
9220
+ } | null | undefined;
9221
+ }>>;
9222
+ updateContent(r: WorkshopRequest): Promise<OperationResult<{
9223
+ [x: string]: unknown;
9224
+ Content?: {
9225
+ [x: string]: unknown;
9226
+ ContentID?: string | null | undefined;
9227
+ ContentType?: string | null | undefined;
9228
+ CreatorUserID?: string | null | undefined;
9229
+ IsOfficial?: boolean | null | undefined;
9230
+ CreatorPublicData?: {
9231
+ [x: string]: unknown;
9232
+ Username?: string | null | undefined;
9233
+ Country?: string | null | undefined;
9234
+ AvatarUrl?: string | null | undefined;
9235
+ Premium?: boolean | null | undefined;
9236
+ Level?: number | null | undefined;
9237
+ Power?: number | null | undefined;
9238
+ BoardRank?: number | null | undefined;
9239
+ } | null | undefined;
9240
+ Title?: string | null | undefined;
9241
+ Description?: string | null | undefined;
9242
+ Tags?: string[] | null | undefined;
9243
+ Metadata?: Record<string, string> | null | undefined;
9244
+ ThumbnailUrl?: string | null | undefined;
9245
+ Visibility?: "Friends" | "Public" | "Unlisted" | null | undefined;
9246
+ Access?: {
9247
+ [x: string]: unknown;
9248
+ OptionID?: string | null | undefined;
9249
+ Mode?: "Price" | "Free" | "Holding" | null | undefined;
9250
+ Price?: {
9251
+ Entries?: {
9252
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
9253
+ CurrencyID?: string | null | undefined;
9254
+ Amount?: number | null | undefined;
9255
+ AmountUsd?: number | null | undefined;
9256
+ CatalogID?: string | null | undefined;
9257
+ ItemID?: string | null | undefined;
9258
+ ProductID?: string | null | undefined;
9259
+ }[] | null | undefined;
9260
+ EventTokens?: {
9261
+ Address?: {
9262
+ EntityID: string;
9263
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
9264
+ } | null | undefined;
9265
+ Amount?: number | null | undefined;
9266
+ Source?: string | null | undefined;
9267
+ }[] | null | undefined;
9268
+ } | null | undefined;
9269
+ Holding?: {
9270
+ [x: string]: unknown;
9271
+ Requirements?: {
9272
+ [x: string]: unknown;
9273
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
9274
+ CurrencyID?: string | null | undefined;
9275
+ CatalogID?: string | null | undefined;
9276
+ ItemID?: string | null | undefined;
9277
+ Amount?: number | null | undefined;
9278
+ MinLevel?: number | null | undefined;
9279
+ }[] | null | undefined;
9280
+ Match?: "All" | "Any" | null | undefined;
9281
+ Mode?: "WhileHeld" | "UnlockOnce" | null | undefined;
9282
+ } | null | undefined;
9283
+ }[] | null | undefined;
9284
+ Status?: "Hidden" | "Removed" | "Uploading" | "PendingReview" | "Published" | null | undefined;
9285
+ ModerationNote?: string | null | undefined;
9286
+ Stats?: {
9287
+ [x: string]: unknown;
9288
+ Acquisitions?: number | null | undefined;
9289
+ Downloads?: number | null | undefined;
9290
+ Likes?: number | null | undefined;
9291
+ Favorites?: number | null | undefined;
9292
+ ReportCount?: number | null | undefined;
9293
+ } | null | undefined;
9294
+ Revision?: number | null | undefined;
9295
+ FileCount?: number | null | undefined;
9296
+ TotalBytes?: number | null | undefined;
9297
+ CreatedAt?: string | null | undefined;
9298
+ UpdatedAt?: string | null | undefined;
9299
+ PublishedAt?: string | null | undefined;
9300
+ IsMine?: boolean | null | undefined;
9301
+ Owned?: boolean | null | undefined;
9302
+ Liked?: boolean | null | undefined;
9303
+ Favorited?: boolean | null | undefined;
9304
+ } | null | undefined;
9305
+ }>>;
9306
+ unpublish(r: WorkshopRequest): Promise<OperationResult<{
9307
+ [x: string]: unknown;
9308
+ Content?: {
9309
+ [x: string]: unknown;
9310
+ ContentID?: string | null | undefined;
9311
+ ContentType?: string | null | undefined;
9312
+ CreatorUserID?: string | null | undefined;
9313
+ IsOfficial?: boolean | null | undefined;
9314
+ CreatorPublicData?: {
9315
+ [x: string]: unknown;
9316
+ Username?: string | null | undefined;
9317
+ Country?: string | null | undefined;
9318
+ AvatarUrl?: string | null | undefined;
9319
+ Premium?: boolean | null | undefined;
9320
+ Level?: number | null | undefined;
9321
+ Power?: number | null | undefined;
9322
+ BoardRank?: number | null | undefined;
9323
+ } | null | undefined;
9324
+ Title?: string | null | undefined;
9325
+ Description?: string | null | undefined;
9326
+ Tags?: string[] | null | undefined;
9327
+ Metadata?: Record<string, string> | null | undefined;
9328
+ ThumbnailUrl?: string | null | undefined;
9329
+ Visibility?: "Friends" | "Public" | "Unlisted" | null | undefined;
9330
+ Access?: {
9331
+ [x: string]: unknown;
9332
+ OptionID?: string | null | undefined;
9333
+ Mode?: "Price" | "Free" | "Holding" | null | undefined;
9334
+ Price?: {
9335
+ Entries?: {
9336
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
9337
+ CurrencyID?: string | null | undefined;
9338
+ Amount?: number | null | undefined;
9339
+ AmountUsd?: number | null | undefined;
9340
+ CatalogID?: string | null | undefined;
9341
+ ItemID?: string | null | undefined;
9342
+ ProductID?: string | null | undefined;
9343
+ }[] | null | undefined;
9344
+ EventTokens?: {
9345
+ Address?: {
9346
+ EntityID: string;
9347
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
9348
+ } | null | undefined;
9349
+ Amount?: number | null | undefined;
9350
+ Source?: string | null | undefined;
9351
+ }[] | null | undefined;
9352
+ } | null | undefined;
9353
+ Holding?: {
9354
+ [x: string]: unknown;
9355
+ Requirements?: {
9356
+ [x: string]: unknown;
9357
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
9358
+ CurrencyID?: string | null | undefined;
9359
+ CatalogID?: string | null | undefined;
9360
+ ItemID?: string | null | undefined;
9361
+ Amount?: number | null | undefined;
9362
+ MinLevel?: number | null | undefined;
9363
+ }[] | null | undefined;
9364
+ Match?: "All" | "Any" | null | undefined;
9365
+ Mode?: "WhileHeld" | "UnlockOnce" | null | undefined;
9366
+ } | null | undefined;
9367
+ }[] | null | undefined;
9368
+ Status?: "Hidden" | "Removed" | "Uploading" | "PendingReview" | "Published" | null | undefined;
9369
+ ModerationNote?: string | null | undefined;
9370
+ Stats?: {
9371
+ [x: string]: unknown;
9372
+ Acquisitions?: number | null | undefined;
9373
+ Downloads?: number | null | undefined;
9374
+ Likes?: number | null | undefined;
9375
+ Favorites?: number | null | undefined;
9376
+ ReportCount?: number | null | undefined;
9377
+ } | null | undefined;
9378
+ Revision?: number | null | undefined;
9379
+ FileCount?: number | null | undefined;
9380
+ TotalBytes?: number | null | undefined;
9381
+ CreatedAt?: string | null | undefined;
9382
+ UpdatedAt?: string | null | undefined;
9383
+ PublishedAt?: string | null | undefined;
9384
+ IsMine?: boolean | null | undefined;
9385
+ Owned?: boolean | null | undefined;
9386
+ Liked?: boolean | null | undefined;
9387
+ Favorited?: boolean | null | undefined;
9388
+ } | null | undefined;
9389
+ }>>;
9390
+ getMyContent(r: WorkshopRequest): Promise<OperationResult<{
9391
+ [x: string]: unknown;
9392
+ Items?: {
9393
+ [x: string]: unknown;
9394
+ ContentID?: string | null | undefined;
9395
+ ContentType?: string | null | undefined;
9396
+ CreatorUserID?: string | null | undefined;
9397
+ IsOfficial?: boolean | null | undefined;
9398
+ CreatorPublicData?: {
9399
+ [x: string]: unknown;
9400
+ Username?: string | null | undefined;
9401
+ Country?: string | null | undefined;
9402
+ AvatarUrl?: string | null | undefined;
9403
+ Premium?: boolean | null | undefined;
9404
+ Level?: number | null | undefined;
9405
+ Power?: number | null | undefined;
9406
+ BoardRank?: number | null | undefined;
9407
+ } | null | undefined;
9408
+ Title?: string | null | undefined;
9409
+ Description?: string | null | undefined;
9410
+ Tags?: string[] | null | undefined;
9411
+ Metadata?: Record<string, string> | null | undefined;
9412
+ ThumbnailUrl?: string | null | undefined;
9413
+ Visibility?: "Friends" | "Public" | "Unlisted" | null | undefined;
9414
+ Access?: {
9415
+ [x: string]: unknown;
9416
+ OptionID?: string | null | undefined;
9417
+ Mode?: "Price" | "Free" | "Holding" | null | undefined;
9418
+ Price?: {
9419
+ Entries?: {
9420
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
9421
+ CurrencyID?: string | null | undefined;
9422
+ Amount?: number | null | undefined;
9423
+ AmountUsd?: number | null | undefined;
9424
+ CatalogID?: string | null | undefined;
9425
+ ItemID?: string | null | undefined;
9426
+ ProductID?: string | null | undefined;
9427
+ }[] | null | undefined;
9428
+ EventTokens?: {
9429
+ Address?: {
9430
+ EntityID: string;
9431
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
9432
+ } | null | undefined;
9433
+ Amount?: number | null | undefined;
9434
+ Source?: string | null | undefined;
9435
+ }[] | null | undefined;
9436
+ } | null | undefined;
9437
+ Holding?: {
9438
+ [x: string]: unknown;
9439
+ Requirements?: {
9440
+ [x: string]: unknown;
9441
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
9442
+ CurrencyID?: string | null | undefined;
9443
+ CatalogID?: string | null | undefined;
9444
+ ItemID?: string | null | undefined;
9445
+ Amount?: number | null | undefined;
9446
+ MinLevel?: number | null | undefined;
9447
+ }[] | null | undefined;
9448
+ Match?: "All" | "Any" | null | undefined;
9449
+ Mode?: "WhileHeld" | "UnlockOnce" | null | undefined;
9450
+ } | null | undefined;
9451
+ }[] | null | undefined;
9452
+ Status?: "Hidden" | "Removed" | "Uploading" | "PendingReview" | "Published" | null | undefined;
9453
+ ModerationNote?: string | null | undefined;
9454
+ Stats?: {
9455
+ [x: string]: unknown;
9456
+ Acquisitions?: number | null | undefined;
9457
+ Downloads?: number | null | undefined;
9458
+ Likes?: number | null | undefined;
9459
+ Favorites?: number | null | undefined;
9460
+ ReportCount?: number | null | undefined;
9461
+ } | null | undefined;
9462
+ Revision?: number | null | undefined;
9463
+ FileCount?: number | null | undefined;
9464
+ TotalBytes?: number | null | undefined;
9465
+ CreatedAt?: string | null | undefined;
9466
+ UpdatedAt?: string | null | undefined;
9467
+ PublishedAt?: string | null | undefined;
9468
+ IsMine?: boolean | null | undefined;
9469
+ Owned?: boolean | null | undefined;
9470
+ Liked?: boolean | null | undefined;
9471
+ Favorited?: boolean | null | undefined;
9472
+ }[] | null | undefined;
9473
+ ContinuationToken?: string | null | undefined;
9474
+ }>>;
9475
+ acquire(r: WorkshopRequest): Promise<OperationResult<{
9476
+ [x: string]: unknown;
9477
+ ContentID?: string | null | undefined;
9478
+ OptionID?: string | null | undefined;
9479
+ Source?: "Purchase" | "Free" | "Holding" | null | undefined;
9480
+ AlreadyOwned?: boolean | null | undefined;
9481
+ AccessActive?: boolean | null | undefined;
9482
+ Settlement?: {
9483
+ FromUserID?: string | null | undefined;
9484
+ ToUserID?: string | null | undefined;
9485
+ FromResult?: {
9486
+ Grant?: {
9487
+ Standard?: {
9488
+ Entries?: {
9489
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
9490
+ CurrencyID?: string | null | undefined;
9491
+ Amount?: number | null | undefined;
9492
+ AmountUsd?: number | null | undefined;
9493
+ CatalogID?: string | null | undefined;
9494
+ ItemID?: string | null | undefined;
9495
+ ProductID?: string | null | undefined;
9496
+ }[] | null | undefined;
9497
+ EventTokens?: {
9498
+ Address?: {
9499
+ EntityID: string;
9500
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
9501
+ } | null | undefined;
9502
+ Amount?: number | null | undefined;
9503
+ Source?: string | null | undefined;
9504
+ }[] | null | undefined;
9505
+ } | null | undefined;
9506
+ PremiumBonuses?: unknown[] | null | undefined;
9507
+ PremiumTiers?: {
9508
+ MinPremiumTier?: number | null | undefined;
9509
+ RequiredPremiumID?: string | null | undefined;
9510
+ Resources?: {
9511
+ Entries?: {
9512
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
9513
+ CurrencyID?: string | null | undefined;
9514
+ Amount?: number | null | undefined;
9515
+ AmountUsd?: number | null | undefined;
9516
+ CatalogID?: string | null | undefined;
9517
+ ItemID?: string | null | undefined;
9518
+ ProductID?: string | null | undefined;
9519
+ }[] | null | undefined;
9520
+ EventTokens?: {
9521
+ Address?: {
9522
+ EntityID: string;
9523
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
9524
+ } | null | undefined;
9525
+ Amount?: number | null | undefined;
9526
+ Source?: string | null | undefined;
9527
+ }[] | null | undefined;
9528
+ } | null | undefined;
9529
+ }[] | null | undefined;
9530
+ } | null | undefined;
9531
+ Consume?: {
9532
+ Standard?: {
9533
+ Entries?: {
9534
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
9535
+ CurrencyID?: string | null | undefined;
9536
+ Amount?: number | null | undefined;
9537
+ AmountUsd?: number | null | undefined;
9538
+ CatalogID?: string | null | undefined;
9539
+ ItemID?: string | null | undefined;
9540
+ ProductID?: string | null | undefined;
9541
+ }[] | null | undefined;
9542
+ EventTokens?: {
9543
+ Address?: {
9544
+ EntityID: string;
9545
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
9546
+ } | null | undefined;
9547
+ Amount?: number | null | undefined;
9548
+ Source?: string | null | undefined;
9549
+ }[] | null | undefined;
9550
+ } | null | undefined;
9551
+ PremiumDiscounts?: unknown[] | null | undefined;
9552
+ PremiumTiers?: {
9553
+ MinPremiumTier?: number | null | undefined;
9554
+ RequiredPremiumID?: string | null | undefined;
9555
+ Resources?: {
9556
+ Entries?: {
9557
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
9558
+ CurrencyID?: string | null | undefined;
9559
+ Amount?: number | null | undefined;
9560
+ AmountUsd?: number | null | undefined;
9561
+ CatalogID?: string | null | undefined;
9562
+ ItemID?: string | null | undefined;
9563
+ ProductID?: string | null | undefined;
9564
+ }[] | null | undefined;
9565
+ EventTokens?: {
9566
+ Address?: {
9567
+ EntityID: string;
9568
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
9569
+ } | null | undefined;
9570
+ Amount?: number | null | undefined;
9571
+ Source?: string | null | undefined;
9572
+ }[] | null | undefined;
9573
+ } | null | undefined;
9574
+ }[] | null | undefined;
9575
+ } | null | undefined;
9576
+ } | null | undefined;
9577
+ ToResult?: {
9578
+ Grant?: {
9579
+ Standard?: {
9580
+ Entries?: {
9581
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
9582
+ CurrencyID?: string | null | undefined;
9583
+ Amount?: number | null | undefined;
9584
+ AmountUsd?: number | null | undefined;
9585
+ CatalogID?: string | null | undefined;
9586
+ ItemID?: string | null | undefined;
9587
+ ProductID?: string | null | undefined;
9588
+ }[] | null | undefined;
9589
+ EventTokens?: {
9590
+ Address?: {
9591
+ EntityID: string;
9592
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
9593
+ } | null | undefined;
9594
+ Amount?: number | null | undefined;
9595
+ Source?: string | null | undefined;
9596
+ }[] | null | undefined;
9597
+ } | null | undefined;
9598
+ PremiumBonuses?: unknown[] | null | undefined;
9599
+ PremiumTiers?: {
9600
+ MinPremiumTier?: number | null | undefined;
9601
+ RequiredPremiumID?: string | null | undefined;
9602
+ Resources?: {
9603
+ Entries?: {
9604
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
9605
+ CurrencyID?: string | null | undefined;
9606
+ Amount?: number | null | undefined;
9607
+ AmountUsd?: number | null | undefined;
9608
+ CatalogID?: string | null | undefined;
9609
+ ItemID?: string | null | undefined;
9610
+ ProductID?: string | null | undefined;
9611
+ }[] | null | undefined;
9612
+ EventTokens?: {
9613
+ Address?: {
9614
+ EntityID: string;
9615
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
9616
+ } | null | undefined;
9617
+ Amount?: number | null | undefined;
9618
+ Source?: string | null | undefined;
9619
+ }[] | null | undefined;
9620
+ } | null | undefined;
9621
+ }[] | null | undefined;
9622
+ } | null | undefined;
9623
+ Consume?: {
9624
+ Standard?: {
9625
+ Entries?: {
9626
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
9627
+ CurrencyID?: string | null | undefined;
9628
+ Amount?: number | null | undefined;
9629
+ AmountUsd?: number | null | undefined;
9630
+ CatalogID?: string | null | undefined;
9631
+ ItemID?: string | null | undefined;
9632
+ ProductID?: string | null | undefined;
9633
+ }[] | null | undefined;
9634
+ EventTokens?: {
9635
+ Address?: {
9636
+ EntityID: string;
9637
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
9638
+ } | null | undefined;
9639
+ Amount?: number | null | undefined;
9640
+ Source?: string | null | undefined;
9641
+ }[] | null | undefined;
9642
+ } | null | undefined;
9643
+ PremiumDiscounts?: unknown[] | null | undefined;
9644
+ PremiumTiers?: {
9645
+ MinPremiumTier?: number | null | undefined;
9646
+ RequiredPremiumID?: string | null | undefined;
9647
+ Resources?: {
9648
+ Entries?: {
9649
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
9650
+ CurrencyID?: string | null | undefined;
9651
+ Amount?: number | null | undefined;
9652
+ AmountUsd?: number | null | undefined;
9653
+ CatalogID?: string | null | undefined;
9654
+ ItemID?: string | null | undefined;
9655
+ ProductID?: string | null | undefined;
9656
+ }[] | null | undefined;
9657
+ EventTokens?: {
9658
+ Address?: {
9659
+ EntityID: string;
9660
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
9661
+ } | null | undefined;
9662
+ Amount?: number | null | undefined;
9663
+ Source?: string | null | undefined;
9664
+ }[] | null | undefined;
9665
+ } | null | undefined;
9666
+ }[] | null | undefined;
9667
+ } | null | undefined;
9668
+ } | null | undefined;
9669
+ } | null | undefined;
9670
+ Resources?: {
9671
+ Grant?: {
9672
+ Standard?: {
9673
+ Entries?: {
9674
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
9675
+ CurrencyID?: string | null | undefined;
9676
+ Amount?: number | null | undefined;
9677
+ AmountUsd?: number | null | undefined;
9678
+ CatalogID?: string | null | undefined;
9679
+ ItemID?: string | null | undefined;
9680
+ ProductID?: string | null | undefined;
9681
+ }[] | null | undefined;
9682
+ EventTokens?: {
9683
+ Address?: {
9684
+ EntityID: string;
9685
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
9686
+ } | null | undefined;
9687
+ Amount?: number | null | undefined;
9688
+ Source?: string | null | undefined;
9689
+ }[] | null | undefined;
9690
+ } | null | undefined;
9691
+ PremiumBonuses?: unknown[] | null | undefined;
9692
+ PremiumTiers?: {
9693
+ MinPremiumTier?: number | null | undefined;
9694
+ RequiredPremiumID?: string | null | undefined;
9695
+ Resources?: {
9696
+ Entries?: {
9697
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
9698
+ CurrencyID?: string | null | undefined;
9699
+ Amount?: number | null | undefined;
9700
+ AmountUsd?: number | null | undefined;
9701
+ CatalogID?: string | null | undefined;
9702
+ ItemID?: string | null | undefined;
9703
+ ProductID?: string | null | undefined;
9704
+ }[] | null | undefined;
9705
+ EventTokens?: {
9706
+ Address?: {
9707
+ EntityID: string;
9708
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
9709
+ } | null | undefined;
9710
+ Amount?: number | null | undefined;
9711
+ Source?: string | null | undefined;
9712
+ }[] | null | undefined;
9713
+ } | null | undefined;
9714
+ }[] | null | undefined;
9715
+ } | null | undefined;
9716
+ Consume?: {
9717
+ Standard?: {
9718
+ Entries?: {
9719
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
9720
+ CurrencyID?: string | null | undefined;
9721
+ Amount?: number | null | undefined;
9722
+ AmountUsd?: number | null | undefined;
9723
+ CatalogID?: string | null | undefined;
9724
+ ItemID?: string | null | undefined;
9725
+ ProductID?: string | null | undefined;
9726
+ }[] | null | undefined;
9727
+ EventTokens?: {
9728
+ Address?: {
9729
+ EntityID: string;
9730
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
9731
+ } | null | undefined;
9732
+ Amount?: number | null | undefined;
9733
+ Source?: string | null | undefined;
9734
+ }[] | null | undefined;
9735
+ } | null | undefined;
9736
+ PremiumDiscounts?: unknown[] | null | undefined;
9737
+ PremiumTiers?: {
9738
+ MinPremiumTier?: number | null | undefined;
9739
+ RequiredPremiumID?: string | null | undefined;
9740
+ Resources?: {
9741
+ Entries?: {
9742
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
9743
+ CurrencyID?: string | null | undefined;
9744
+ Amount?: number | null | undefined;
9745
+ AmountUsd?: number | null | undefined;
9746
+ CatalogID?: string | null | undefined;
9747
+ ItemID?: string | null | undefined;
9748
+ ProductID?: string | null | undefined;
9749
+ }[] | null | undefined;
9750
+ EventTokens?: {
9751
+ Address?: {
9752
+ EntityID: string;
9753
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
9754
+ } | null | undefined;
9755
+ Amount?: number | null | undefined;
9756
+ Source?: string | null | undefined;
9757
+ }[] | null | undefined;
9758
+ } | null | undefined;
9759
+ }[] | null | undefined;
9760
+ } | null | undefined;
9761
+ } | null | undefined;
9762
+ CommissionTaken?: {
9763
+ Entries?: {
9764
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
9765
+ CurrencyID?: string | null | undefined;
9766
+ Amount?: number | null | undefined;
9767
+ AmountUsd?: number | null | undefined;
9768
+ CatalogID?: string | null | undefined;
9769
+ ItemID?: string | null | undefined;
9770
+ ProductID?: string | null | undefined;
9771
+ }[] | null | undefined;
9772
+ EventTokens?: {
9773
+ Address?: {
9774
+ EntityID: string;
9775
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
9776
+ } | null | undefined;
9777
+ Amount?: number | null | undefined;
9778
+ Source?: string | null | undefined;
9779
+ }[] | null | undefined;
9780
+ } | null | undefined;
9781
+ }>>;
9782
+ getDownload(r: WorkshopRequest): Promise<OperationResult<{
9783
+ [x: string]: unknown;
9784
+ ContentID?: string | null | undefined;
9785
+ ContentType?: string | null | undefined;
9786
+ Revision?: number | null | undefined;
9787
+ AccessVia?: "Creator" | "Free" | "Holding" | "License" | null | undefined;
9788
+ Files?: {
9789
+ [x: string]: unknown;
9790
+ Role?: string | null | undefined;
9791
+ Url?: string | null | undefined;
9792
+ ContentType?: string | null | undefined;
9793
+ Size?: number | null | undefined;
9794
+ }[] | null | undefined;
9795
+ ThumbnailUrl?: string | null | undefined;
9796
+ ExpiresAt?: string | null | undefined;
9797
+ }>>;
9798
+ getMyLicenses(r: WorkshopRequest): Promise<OperationResult<{
9799
+ [x: string]: unknown;
9800
+ Licenses?: {
9801
+ [x: string]: unknown;
9802
+ ContentID?: string | null | undefined;
9803
+ Source?: "Purchase" | "Free" | "Holding" | null | undefined;
9804
+ OptionID?: string | null | undefined;
9805
+ PricePaid?: {
9806
+ Entries?: {
9807
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
9808
+ CurrencyID?: string | null | undefined;
9809
+ Amount?: number | null | undefined;
9810
+ AmountUsd?: number | null | undefined;
9811
+ CatalogID?: string | null | undefined;
9812
+ ItemID?: string | null | undefined;
9813
+ ProductID?: string | null | undefined;
9814
+ }[] | null | undefined;
9815
+ EventTokens?: {
9816
+ Address?: {
9817
+ EntityID: string;
9818
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
9819
+ } | null | undefined;
9820
+ Amount?: number | null | undefined;
9821
+ Source?: string | null | undefined;
9822
+ }[] | null | undefined;
9823
+ } | null | undefined;
9824
+ AcquiredAt?: string | null | undefined;
9825
+ Content?: {
9826
+ [x: string]: unknown;
9827
+ ContentID?: string | null | undefined;
9828
+ ContentType?: string | null | undefined;
9829
+ CreatorUserID?: string | null | undefined;
9830
+ IsOfficial?: boolean | null | undefined;
9831
+ CreatorPublicData?: {
9832
+ [x: string]: unknown;
9833
+ Username?: string | null | undefined;
9834
+ Country?: string | null | undefined;
9835
+ AvatarUrl?: string | null | undefined;
9836
+ Premium?: boolean | null | undefined;
9837
+ Level?: number | null | undefined;
9838
+ Power?: number | null | undefined;
9839
+ BoardRank?: number | null | undefined;
9840
+ } | null | undefined;
9841
+ Title?: string | null | undefined;
9842
+ Description?: string | null | undefined;
9843
+ Tags?: string[] | null | undefined;
9844
+ Metadata?: Record<string, string> | null | undefined;
9845
+ ThumbnailUrl?: string | null | undefined;
9846
+ Visibility?: "Friends" | "Public" | "Unlisted" | null | undefined;
9847
+ Access?: {
9848
+ [x: string]: unknown;
9849
+ OptionID?: string | null | undefined;
9850
+ Mode?: "Price" | "Free" | "Holding" | null | undefined;
9851
+ Price?: {
9852
+ Entries?: {
9853
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
9854
+ CurrencyID?: string | null | undefined;
9855
+ Amount?: number | null | undefined;
9856
+ AmountUsd?: number | null | undefined;
9857
+ CatalogID?: string | null | undefined;
9858
+ ItemID?: string | null | undefined;
9859
+ ProductID?: string | null | undefined;
9860
+ }[] | null | undefined;
9861
+ EventTokens?: {
9862
+ Address?: {
9863
+ EntityID: string;
9864
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
9865
+ } | null | undefined;
9866
+ Amount?: number | null | undefined;
9867
+ Source?: string | null | undefined;
9868
+ }[] | null | undefined;
9869
+ } | null | undefined;
9870
+ Holding?: {
9871
+ [x: string]: unknown;
9872
+ Requirements?: {
9873
+ [x: string]: unknown;
9874
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
9875
+ CurrencyID?: string | null | undefined;
9876
+ CatalogID?: string | null | undefined;
9877
+ ItemID?: string | null | undefined;
9878
+ Amount?: number | null | undefined;
9879
+ MinLevel?: number | null | undefined;
9880
+ }[] | null | undefined;
9881
+ Match?: "All" | "Any" | null | undefined;
9882
+ Mode?: "WhileHeld" | "UnlockOnce" | null | undefined;
9883
+ } | null | undefined;
9884
+ }[] | null | undefined;
9885
+ Status?: "Hidden" | "Removed" | "Uploading" | "PendingReview" | "Published" | null | undefined;
9886
+ ModerationNote?: string | null | undefined;
9887
+ Stats?: {
9888
+ [x: string]: unknown;
9889
+ Acquisitions?: number | null | undefined;
9890
+ Downloads?: number | null | undefined;
9891
+ Likes?: number | null | undefined;
9892
+ Favorites?: number | null | undefined;
9893
+ ReportCount?: number | null | undefined;
9894
+ } | null | undefined;
9895
+ Revision?: number | null | undefined;
9896
+ FileCount?: number | null | undefined;
9897
+ TotalBytes?: number | null | undefined;
9898
+ CreatedAt?: string | null | undefined;
9899
+ UpdatedAt?: string | null | undefined;
9900
+ PublishedAt?: string | null | undefined;
9901
+ IsMine?: boolean | null | undefined;
9902
+ Owned?: boolean | null | undefined;
9903
+ Liked?: boolean | null | undefined;
9904
+ Favorited?: boolean | null | undefined;
9905
+ } | null | undefined;
9906
+ }[] | null | undefined;
9907
+ ContinuationToken?: string | null | undefined;
9908
+ }>>;
9909
+ react(action: "Like" | "Unlike" | "Favorite" | "Unfavorite", r: WorkshopRequest): Promise<OperationResult<{
9910
+ [x: string]: unknown;
9911
+ ContentID?: string | null | undefined;
9912
+ Kind?: "Like" | "Favorite" | null | undefined;
9913
+ Active?: boolean | null | undefined;
9914
+ Count?: number | null | undefined;
9915
+ }>>;
9916
+ getMyFavorites(r: WorkshopRequest): Promise<OperationResult<{
9917
+ [x: string]: unknown;
9918
+ Items?: {
9919
+ [x: string]: unknown;
9920
+ ContentID?: string | null | undefined;
9921
+ ContentType?: string | null | undefined;
9922
+ CreatorUserID?: string | null | undefined;
9923
+ IsOfficial?: boolean | null | undefined;
9924
+ CreatorPublicData?: {
9925
+ [x: string]: unknown;
9926
+ Username?: string | null | undefined;
9927
+ Country?: string | null | undefined;
9928
+ AvatarUrl?: string | null | undefined;
9929
+ Premium?: boolean | null | undefined;
9930
+ Level?: number | null | undefined;
9931
+ Power?: number | null | undefined;
9932
+ BoardRank?: number | null | undefined;
9933
+ } | null | undefined;
9934
+ Title?: string | null | undefined;
9935
+ Description?: string | null | undefined;
9936
+ Tags?: string[] | null | undefined;
9937
+ Metadata?: Record<string, string> | null | undefined;
9938
+ ThumbnailUrl?: string | null | undefined;
9939
+ Visibility?: "Friends" | "Public" | "Unlisted" | null | undefined;
9940
+ Access?: {
9941
+ [x: string]: unknown;
9942
+ OptionID?: string | null | undefined;
9943
+ Mode?: "Price" | "Free" | "Holding" | null | undefined;
9944
+ Price?: {
9945
+ Entries?: {
9946
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
9947
+ CurrencyID?: string | null | undefined;
9948
+ Amount?: number | null | undefined;
9949
+ AmountUsd?: number | null | undefined;
9950
+ CatalogID?: string | null | undefined;
9951
+ ItemID?: string | null | undefined;
9952
+ ProductID?: string | null | undefined;
9953
+ }[] | null | undefined;
9954
+ EventTokens?: {
9955
+ Address?: {
9956
+ EntityID: string;
9957
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
9958
+ } | null | undefined;
9959
+ Amount?: number | null | undefined;
9960
+ Source?: string | null | undefined;
9961
+ }[] | null | undefined;
9962
+ } | null | undefined;
9963
+ Holding?: {
9964
+ [x: string]: unknown;
9965
+ Requirements?: {
9966
+ [x: string]: unknown;
9967
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
9968
+ CurrencyID?: string | null | undefined;
9969
+ CatalogID?: string | null | undefined;
9970
+ ItemID?: string | null | undefined;
9971
+ Amount?: number | null | undefined;
9972
+ MinLevel?: number | null | undefined;
9973
+ }[] | null | undefined;
9974
+ Match?: "All" | "Any" | null | undefined;
9975
+ Mode?: "WhileHeld" | "UnlockOnce" | null | undefined;
9976
+ } | null | undefined;
9977
+ }[] | null | undefined;
9978
+ Status?: "Hidden" | "Removed" | "Uploading" | "PendingReview" | "Published" | null | undefined;
9979
+ ModerationNote?: string | null | undefined;
9980
+ Stats?: {
9981
+ [x: string]: unknown;
9982
+ Acquisitions?: number | null | undefined;
9983
+ Downloads?: number | null | undefined;
9984
+ Likes?: number | null | undefined;
9985
+ Favorites?: number | null | undefined;
9986
+ ReportCount?: number | null | undefined;
9987
+ } | null | undefined;
9988
+ Revision?: number | null | undefined;
9989
+ FileCount?: number | null | undefined;
9990
+ TotalBytes?: number | null | undefined;
9991
+ CreatedAt?: string | null | undefined;
9992
+ UpdatedAt?: string | null | undefined;
9993
+ PublishedAt?: string | null | undefined;
9994
+ IsMine?: boolean | null | undefined;
9995
+ Owned?: boolean | null | undefined;
9996
+ Liked?: boolean | null | undefined;
9997
+ Favorited?: boolean | null | undefined;
9998
+ }[] | null | undefined;
9999
+ ContinuationToken?: string | null | undefined;
10000
+ }>>;
10001
+ follow(action: "Follow" | "Unfollow", r: WorkshopRequest): Promise<OperationResult<{
10002
+ [x: string]: unknown;
10003
+ CreatorUserID?: string | null | undefined;
10004
+ Following?: boolean | null | undefined;
10005
+ FollowerCount?: number | null | undefined;
10006
+ }>>;
10007
+ report(r: WorkshopRequest): Promise<OperationResult<{
10008
+ [x: string]: unknown;
10009
+ ReportID?: string | null | undefined;
10010
+ AlreadyReported?: boolean | null | undefined;
10011
+ AutoHidden?: boolean | null | undefined;
10012
+ }>>;
10013
+ }
10014
+
10015
+ /**
10016
+ * Thin transport wrapper for DataCollections (port of DataCollections/DataCollections.cs) plus the
10017
+ * anonymous entry `v2/{titleID}/Public/DataCollections/{action}` used by sites without a session.
10018
+ *
10019
+ * ⚠ One route serves many DIFFERENT requests (every collection, every record, every page), so the
10020
+ * throttle/dedup key is the request itself, not the route: with the default key a second query to
10021
+ * another collection — or the next page — would be skipped as a duplicate.
10022
+ */
10023
+ declare class DataCollectionsApi {
10024
+ private readonly ctx;
10025
+ constructor(ctx: ClientContext);
10026
+ private send;
10027
+ private sendPublic;
10028
+ getDefinitions(r: DataCollectionsRequest): Promise<OperationResult<{
10029
+ Collections: Record<string, {
10030
+ Kind: "UserOwned" | "Shared" | "Temporary" | "Log";
10031
+ DisplayName?: string | null | undefined;
10032
+ Description?: string | null | undefined;
10033
+ Namespace?: string | null | undefined;
10034
+ Tags?: string[] | null | undefined;
10035
+ Enabled?: boolean | null | undefined;
10036
+ Mode?: "Strict" | "Loose" | undefined;
10037
+ SchemaVersion?: number | undefined;
10038
+ Fields?: Record<string, {
10039
+ Type: "Text" | "Date" | "String" | "Int" | "Bool" | "Json" | "Number" | "Array" | "Ref" | "File";
10040
+ ItemType?: "Text" | "Date" | "String" | "Int" | "Bool" | "Json" | "Number" | "Array" | "Ref" | "File" | null | undefined;
10041
+ Ref?: {
10042
+ Kind: "Item" | "Quest" | "Leaderboard" | "User" | "Currency" | "DataItem" | "ItemInstance" | "StoreOffer" | "WorkshopContent";
10043
+ Collection?: string | null | undefined;
10044
+ Validate?: boolean | null | undefined;
10045
+ } | null | undefined;
10046
+ Required?: boolean | undefined;
10047
+ Default?: string | null | undefined;
10048
+ Min?: number | null | undefined;
10049
+ Max?: number | null | undefined;
10050
+ MaxLength?: number | null | undefined;
10051
+ MaxItems?: number | null | undefined;
10052
+ Enum?: string[] | null | undefined;
10053
+ Unique?: boolean | undefined;
10054
+ UniqueIgnoreCase?: boolean | undefined;
10055
+ Indexed?: boolean | undefined;
10056
+ Visibility?: "Server" | "Everyone" | "Owner" | undefined;
10057
+ ClientWritable?: boolean | null | undefined;
10058
+ Immutable?: boolean | undefined;
10059
+ Description?: string | null | undefined;
10060
+ AllowedMimeTypes?: string[] | null | undefined;
10061
+ MaxFileBytes?: number | null | undefined;
10062
+ }> | null | undefined;
10063
+ SortKeys?: {
10064
+ ID: string;
10065
+ Components: {
10066
+ Field: string;
10067
+ Descending?: boolean | undefined;
10068
+ }[];
10069
+ }[] | null | undefined;
10070
+ Access?: {
10071
+ Read?: {
10072
+ Mode: "Anyone" | "Members" | "Server" | "Role" | "Owner" | "Authenticated";
10073
+ Role?: string | null | undefined;
10074
+ MembersField?: string | null | undefined;
10075
+ }[] | null | undefined;
10076
+ Create?: {
10077
+ Mode: "Anyone" | "Members" | "Server" | "Role" | "Owner" | "Authenticated";
10078
+ Role?: string | null | undefined;
10079
+ MembersField?: string | null | undefined;
10080
+ }[] | null | undefined;
10081
+ Update?: {
10082
+ Mode: "Anyone" | "Members" | "Server" | "Role" | "Owner" | "Authenticated";
10083
+ Role?: string | null | undefined;
10084
+ MembersField?: string | null | undefined;
10085
+ }[] | null | undefined;
10086
+ Delete?: {
10087
+ Mode: "Anyone" | "Members" | "Server" | "Role" | "Owner" | "Authenticated";
10088
+ Role?: string | null | undefined;
10089
+ MembersField?: string | null | undefined;
10090
+ }[] | null | undefined;
10091
+ } | null | undefined;
10092
+ Limits?: {
10093
+ MaxItemBytes?: number | null | undefined;
10094
+ MaxItemsPerOwner?: number | null | undefined;
10095
+ TtlSeconds?: number | null | undefined;
10096
+ } | null | undefined;
10097
+ OnOwnerDeleted?: "Delete" | "Anonymize" | "Keep" | undefined;
10098
+ Counters?: {
10099
+ ID: string;
10100
+ Kind: "Count" | "Sum";
10101
+ SumField?: string | null | undefined;
10102
+ GroupBy?: string | null | undefined;
10103
+ Visibility?: "Server" | "Everyone" | "Owner" | undefined;
10104
+ }[] | null | undefined;
10105
+ Economy?: {
10106
+ OnCreate?: {
10107
+ Cost?: {
10108
+ Entries?: {
10109
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
10110
+ CurrencyID?: string | null | undefined;
10111
+ Amount?: number | null | undefined;
10112
+ AmountUsd?: number | null | undefined;
10113
+ CatalogID?: string | null | undefined;
10114
+ ItemID?: string | null | undefined;
10115
+ ProductID?: string | null | undefined;
10116
+ }[] | null | undefined;
10117
+ EventTokens?: {
10118
+ Address?: {
10119
+ EntityID: string;
10120
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
10121
+ } | null | undefined;
10122
+ Amount?: number | null | undefined;
10123
+ Source?: string | null | undefined;
10124
+ }[] | null | undefined;
10125
+ } | null | undefined;
10126
+ Grant?: {
10127
+ Entries?: {
10128
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
10129
+ CurrencyID?: string | null | undefined;
10130
+ Amount?: number | null | undefined;
10131
+ AmountUsd?: number | null | undefined;
10132
+ CatalogID?: string | null | undefined;
10133
+ ItemID?: string | null | undefined;
10134
+ ProductID?: string | null | undefined;
10135
+ }[] | null | undefined;
10136
+ EventTokens?: {
10137
+ Address?: {
10138
+ EntityID: string;
10139
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
10140
+ } | null | undefined;
10141
+ Amount?: number | null | undefined;
10142
+ Source?: string | null | undefined;
10143
+ }[] | null | undefined;
10144
+ } | null | undefined;
10145
+ } | null | undefined;
10146
+ OnUpdate?: {
10147
+ Cost?: {
10148
+ Entries?: {
10149
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
10150
+ CurrencyID?: string | null | undefined;
10151
+ Amount?: number | null | undefined;
10152
+ AmountUsd?: number | null | undefined;
10153
+ CatalogID?: string | null | undefined;
10154
+ ItemID?: string | null | undefined;
10155
+ ProductID?: string | null | undefined;
10156
+ }[] | null | undefined;
10157
+ EventTokens?: {
10158
+ Address?: {
10159
+ EntityID: string;
10160
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
10161
+ } | null | undefined;
10162
+ Amount?: number | null | undefined;
10163
+ Source?: string | null | undefined;
10164
+ }[] | null | undefined;
10165
+ } | null | undefined;
10166
+ Grant?: {
10167
+ Entries?: {
10168
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
10169
+ CurrencyID?: string | null | undefined;
10170
+ Amount?: number | null | undefined;
10171
+ AmountUsd?: number | null | undefined;
10172
+ CatalogID?: string | null | undefined;
10173
+ ItemID?: string | null | undefined;
10174
+ ProductID?: string | null | undefined;
10175
+ }[] | null | undefined;
10176
+ EventTokens?: {
10177
+ Address?: {
10178
+ EntityID: string;
10179
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
10180
+ } | null | undefined;
10181
+ Amount?: number | null | undefined;
10182
+ Source?: string | null | undefined;
10183
+ }[] | null | undefined;
10184
+ } | null | undefined;
10185
+ } | null | undefined;
10186
+ OnDelete?: {
10187
+ Cost?: {
10188
+ Entries?: {
10189
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
10190
+ CurrencyID?: string | null | undefined;
10191
+ Amount?: number | null | undefined;
10192
+ AmountUsd?: number | null | undefined;
10193
+ CatalogID?: string | null | undefined;
10194
+ ItemID?: string | null | undefined;
10195
+ ProductID?: string | null | undefined;
10196
+ }[] | null | undefined;
10197
+ EventTokens?: {
10198
+ Address?: {
10199
+ EntityID: string;
10200
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
10201
+ } | null | undefined;
10202
+ Amount?: number | null | undefined;
10203
+ Source?: string | null | undefined;
10204
+ }[] | null | undefined;
10205
+ } | null | undefined;
10206
+ Grant?: {
10207
+ Entries?: {
10208
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
10209
+ CurrencyID?: string | null | undefined;
10210
+ Amount?: number | null | undefined;
10211
+ AmountUsd?: number | null | undefined;
10212
+ CatalogID?: string | null | undefined;
10213
+ ItemID?: string | null | undefined;
10214
+ ProductID?: string | null | undefined;
10215
+ }[] | null | undefined;
10216
+ EventTokens?: {
10217
+ Address?: {
10218
+ EntityID: string;
10219
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
10220
+ } | null | undefined;
10221
+ Amount?: number | null | undefined;
10222
+ Source?: string | null | undefined;
10223
+ }[] | null | undefined;
10224
+ } | null | undefined;
10225
+ } | null | undefined;
10226
+ } | null | undefined;
10227
+ WriteGate?: {
10228
+ [x: string]: unknown;
10229
+ Segments?: string[] | null | undefined;
10230
+ MinPremiumTier?: number | null | undefined;
10231
+ RequiredPremiumIDs?: string[] | null | undefined;
10232
+ MinLevel?: number | null | undefined;
10233
+ MaxLevel?: number | null | undefined;
10234
+ Countries?: string[] | null | undefined;
10235
+ RegisteredWithinDays?: number | null | undefined;
10236
+ ActiveWithinDays?: number | null | undefined;
10237
+ Experiment?: {
10238
+ [x: string]: unknown;
10239
+ ExperimentID?: string | null | undefined;
10240
+ Variants?: string[] | null | undefined;
10241
+ } | null | undefined;
10242
+ Tutorial?: {
10243
+ [x: string]: unknown;
10244
+ FlowIDs?: string[] | null | undefined;
10245
+ Mode?: "Completed" | "Started" | "StepReached" | null | undefined;
10246
+ StepID?: string | null | undefined;
10247
+ Negate?: boolean | null | undefined;
10248
+ SkippedCountsAsCompleted?: boolean | null | undefined;
10249
+ } | null | undefined;
10250
+ Platforms?: ("Unknown" | "Web" | "Android" | "Ios")[] | null | undefined;
10251
+ } | null | undefined;
10252
+ PublicViews?: {
10253
+ ID: string;
10254
+ SortKey: string;
10255
+ PartitionField?: string | null | undefined;
10256
+ PageSize?: number | undefined;
10257
+ MaxItems?: number | undefined;
10258
+ PublishItems?: boolean | undefined;
10259
+ }[] | null | undefined;
10260
+ AnonymousSearch?: boolean | null | undefined;
10261
+ }>;
10262
+ Enabled?: boolean | undefined;
10263
+ }>>;
10264
+ get(r: DataCollectionsRequest): Promise<OperationResult<{
10265
+ Item: {
10266
+ Collection: string;
10267
+ ItemID: string;
10268
+ Data: Record<string, unknown>;
10269
+ Version: number;
10270
+ CreatedAt: string;
10271
+ UpdatedAt: string;
10272
+ OwnerUserID?: string | null | undefined;
10273
+ ExpireAt?: string | null | undefined;
10274
+ Expanded?: Record<string, unknown> | null | undefined;
10275
+ Files?: Record<string, {
10276
+ FileID: string;
10277
+ Url: string;
10278
+ Size: number;
10279
+ ContentType?: string | null | undefined;
10280
+ }> | null | undefined;
10281
+ };
10282
+ }>>;
10283
+ getMany(r: DataCollectionsRequest): Promise<OperationResult<{
10284
+ Items: {
10285
+ Collection: string;
10286
+ ItemID: string;
10287
+ Data: Record<string, unknown>;
10288
+ Version: number;
10289
+ CreatedAt: string;
10290
+ UpdatedAt: string;
10291
+ OwnerUserID?: string | null | undefined;
10292
+ ExpireAt?: string | null | undefined;
10293
+ Expanded?: Record<string, unknown> | null | undefined;
10294
+ Files?: Record<string, {
10295
+ FileID: string;
10296
+ Url: string;
10297
+ Size: number;
10298
+ ContentType?: string | null | undefined;
10299
+ }> | null | undefined;
10300
+ }[];
10301
+ Missing: string[];
10302
+ }>>;
10303
+ query(r: DataCollectionsRequest): Promise<OperationResult<{
10304
+ Items: {
10305
+ Collection: string;
10306
+ ItemID: string;
10307
+ Data: Record<string, unknown>;
10308
+ Version: number;
10309
+ CreatedAt: string;
10310
+ UpdatedAt: string;
10311
+ OwnerUserID?: string | null | undefined;
10312
+ ExpireAt?: string | null | undefined;
10313
+ Expanded?: Record<string, unknown> | null | undefined;
10314
+ Files?: Record<string, {
10315
+ FileID: string;
10316
+ Url: string;
10317
+ Size: number;
10318
+ ContentType?: string | null | undefined;
10319
+ }> | null | undefined;
10320
+ }[];
10321
+ NextCursor?: string | null | undefined;
10322
+ }>>;
10323
+ count(r: DataCollectionsRequest): Promise<OperationResult<{
10324
+ Count: number;
10325
+ Capped?: boolean | undefined;
10326
+ }>>;
10327
+ create(r: DataCollectionsRequest): Promise<OperationResult<{
10328
+ Item: {
10329
+ Collection: string;
10330
+ ItemID: string;
10331
+ Data: Record<string, unknown>;
10332
+ Version: number;
10333
+ CreatedAt: string;
10334
+ UpdatedAt: string;
10335
+ OwnerUserID?: string | null | undefined;
10336
+ ExpireAt?: string | null | undefined;
10337
+ Expanded?: Record<string, unknown> | null | undefined;
10338
+ Files?: Record<string, {
10339
+ FileID: string;
10340
+ Url: string;
10341
+ Size: number;
10342
+ ContentType?: string | null | undefined;
10343
+ }> | null | undefined;
10344
+ };
10345
+ AlreadyExists?: boolean | undefined;
10346
+ Economy?: {
10347
+ Grant?: {
10348
+ Standard?: {
10349
+ Entries?: {
10350
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
10351
+ CurrencyID?: string | null | undefined;
10352
+ Amount?: number | null | undefined;
10353
+ AmountUsd?: number | null | undefined;
10354
+ CatalogID?: string | null | undefined;
10355
+ ItemID?: string | null | undefined;
10356
+ ProductID?: string | null | undefined;
10357
+ }[] | null | undefined;
10358
+ EventTokens?: {
10359
+ Address?: {
10360
+ EntityID: string;
10361
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
10362
+ } | null | undefined;
10363
+ Amount?: number | null | undefined;
10364
+ Source?: string | null | undefined;
10365
+ }[] | null | undefined;
10366
+ } | null | undefined;
10367
+ PremiumBonuses?: unknown[] | null | undefined;
10368
+ PremiumTiers?: {
10369
+ MinPremiumTier?: number | null | undefined;
10370
+ RequiredPremiumID?: string | null | undefined;
10371
+ Resources?: {
10372
+ Entries?: {
10373
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
10374
+ CurrencyID?: string | null | undefined;
10375
+ Amount?: number | null | undefined;
10376
+ AmountUsd?: number | null | undefined;
10377
+ CatalogID?: string | null | undefined;
10378
+ ItemID?: string | null | undefined;
10379
+ ProductID?: string | null | undefined;
10380
+ }[] | null | undefined;
10381
+ EventTokens?: {
10382
+ Address?: {
10383
+ EntityID: string;
10384
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
10385
+ } | null | undefined;
10386
+ Amount?: number | null | undefined;
10387
+ Source?: string | null | undefined;
10388
+ }[] | null | undefined;
10389
+ } | null | undefined;
10390
+ }[] | null | undefined;
10391
+ } | null | undefined;
10392
+ Consume?: {
10393
+ Standard?: {
10394
+ Entries?: {
10395
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
10396
+ CurrencyID?: string | null | undefined;
10397
+ Amount?: number | null | undefined;
10398
+ AmountUsd?: number | null | undefined;
10399
+ CatalogID?: string | null | undefined;
10400
+ ItemID?: string | null | undefined;
10401
+ ProductID?: string | null | undefined;
10402
+ }[] | null | undefined;
10403
+ EventTokens?: {
10404
+ Address?: {
10405
+ EntityID: string;
10406
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
10407
+ } | null | undefined;
10408
+ Amount?: number | null | undefined;
10409
+ Source?: string | null | undefined;
10410
+ }[] | null | undefined;
10411
+ } | null | undefined;
10412
+ PremiumDiscounts?: unknown[] | null | undefined;
10413
+ PremiumTiers?: {
10414
+ MinPremiumTier?: number | null | undefined;
10415
+ RequiredPremiumID?: string | null | undefined;
10416
+ Resources?: {
10417
+ Entries?: {
10418
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
10419
+ CurrencyID?: string | null | undefined;
10420
+ Amount?: number | null | undefined;
10421
+ AmountUsd?: number | null | undefined;
10422
+ CatalogID?: string | null | undefined;
10423
+ ItemID?: string | null | undefined;
10424
+ ProductID?: string | null | undefined;
10425
+ }[] | null | undefined;
10426
+ EventTokens?: {
10427
+ Address?: {
10428
+ EntityID: string;
10429
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
10430
+ } | null | undefined;
10431
+ Amount?: number | null | undefined;
10432
+ Source?: string | null | undefined;
10433
+ }[] | null | undefined;
10434
+ } | null | undefined;
10435
+ }[] | null | undefined;
10436
+ } | null | undefined;
10437
+ } | null | undefined;
10438
+ }>>;
10439
+ update(r: DataCollectionsRequest): Promise<OperationResult<{
10440
+ Item: {
10441
+ Collection: string;
10442
+ ItemID: string;
10443
+ Data: Record<string, unknown>;
10444
+ Version: number;
10445
+ CreatedAt: string;
10446
+ UpdatedAt: string;
10447
+ OwnerUserID?: string | null | undefined;
10448
+ ExpireAt?: string | null | undefined;
10449
+ Expanded?: Record<string, unknown> | null | undefined;
10450
+ Files?: Record<string, {
10451
+ FileID: string;
10452
+ Url: string;
10453
+ Size: number;
10454
+ ContentType?: string | null | undefined;
10455
+ }> | null | undefined;
10456
+ };
10457
+ AlreadyExists?: boolean | undefined;
10458
+ Economy?: {
10459
+ Grant?: {
10460
+ Standard?: {
10461
+ Entries?: {
10462
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
10463
+ CurrencyID?: string | null | undefined;
10464
+ Amount?: number | null | undefined;
10465
+ AmountUsd?: number | null | undefined;
10466
+ CatalogID?: string | null | undefined;
10467
+ ItemID?: string | null | undefined;
10468
+ ProductID?: string | null | undefined;
10469
+ }[] | null | undefined;
10470
+ EventTokens?: {
10471
+ Address?: {
10472
+ EntityID: string;
10473
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
10474
+ } | null | undefined;
10475
+ Amount?: number | null | undefined;
10476
+ Source?: string | null | undefined;
10477
+ }[] | null | undefined;
10478
+ } | null | undefined;
10479
+ PremiumBonuses?: unknown[] | null | undefined;
10480
+ PremiumTiers?: {
10481
+ MinPremiumTier?: number | null | undefined;
10482
+ RequiredPremiumID?: string | null | undefined;
10483
+ Resources?: {
10484
+ Entries?: {
10485
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
10486
+ CurrencyID?: string | null | undefined;
10487
+ Amount?: number | null | undefined;
10488
+ AmountUsd?: number | null | undefined;
10489
+ CatalogID?: string | null | undefined;
10490
+ ItemID?: string | null | undefined;
10491
+ ProductID?: string | null | undefined;
10492
+ }[] | null | undefined;
10493
+ EventTokens?: {
10494
+ Address?: {
10495
+ EntityID: string;
10496
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
10497
+ } | null | undefined;
10498
+ Amount?: number | null | undefined;
10499
+ Source?: string | null | undefined;
10500
+ }[] | null | undefined;
10501
+ } | null | undefined;
10502
+ }[] | null | undefined;
10503
+ } | null | undefined;
10504
+ Consume?: {
10505
+ Standard?: {
10506
+ Entries?: {
10507
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
10508
+ CurrencyID?: string | null | undefined;
10509
+ Amount?: number | null | undefined;
10510
+ AmountUsd?: number | null | undefined;
10511
+ CatalogID?: string | null | undefined;
10512
+ ItemID?: string | null | undefined;
10513
+ ProductID?: string | null | undefined;
10514
+ }[] | null | undefined;
10515
+ EventTokens?: {
10516
+ Address?: {
10517
+ EntityID: string;
10518
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
10519
+ } | null | undefined;
10520
+ Amount?: number | null | undefined;
10521
+ Source?: string | null | undefined;
10522
+ }[] | null | undefined;
10523
+ } | null | undefined;
10524
+ PremiumDiscounts?: unknown[] | null | undefined;
10525
+ PremiumTiers?: {
10526
+ MinPremiumTier?: number | null | undefined;
10527
+ RequiredPremiumID?: string | null | undefined;
10528
+ Resources?: {
10529
+ Entries?: {
10530
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
10531
+ CurrencyID?: string | null | undefined;
10532
+ Amount?: number | null | undefined;
10533
+ AmountUsd?: number | null | undefined;
10534
+ CatalogID?: string | null | undefined;
10535
+ ItemID?: string | null | undefined;
10536
+ ProductID?: string | null | undefined;
10537
+ }[] | null | undefined;
10538
+ EventTokens?: {
10539
+ Address?: {
10540
+ EntityID: string;
10541
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
10542
+ } | null | undefined;
10543
+ Amount?: number | null | undefined;
10544
+ Source?: string | null | undefined;
10545
+ }[] | null | undefined;
10546
+ } | null | undefined;
10547
+ }[] | null | undefined;
10548
+ } | null | undefined;
10549
+ } | null | undefined;
10550
+ }>>;
10551
+ delete(r: DataCollectionsRequest): Promise<OperationResult<{
10552
+ ItemID: string;
10553
+ Deleted: boolean;
10554
+ Economy?: {
10555
+ Grant?: {
10556
+ Standard?: {
10557
+ Entries?: {
10558
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
10559
+ CurrencyID?: string | null | undefined;
10560
+ Amount?: number | null | undefined;
10561
+ AmountUsd?: number | null | undefined;
10562
+ CatalogID?: string | null | undefined;
10563
+ ItemID?: string | null | undefined;
10564
+ ProductID?: string | null | undefined;
10565
+ }[] | null | undefined;
10566
+ EventTokens?: {
10567
+ Address?: {
10568
+ EntityID: string;
10569
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
10570
+ } | null | undefined;
10571
+ Amount?: number | null | undefined;
10572
+ Source?: string | null | undefined;
10573
+ }[] | null | undefined;
10574
+ } | null | undefined;
10575
+ PremiumBonuses?: unknown[] | null | undefined;
10576
+ PremiumTiers?: {
10577
+ MinPremiumTier?: number | null | undefined;
10578
+ RequiredPremiumID?: string | null | undefined;
10579
+ Resources?: {
10580
+ Entries?: {
10581
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
10582
+ CurrencyID?: string | null | undefined;
10583
+ Amount?: number | null | undefined;
10584
+ AmountUsd?: number | null | undefined;
10585
+ CatalogID?: string | null | undefined;
10586
+ ItemID?: string | null | undefined;
10587
+ ProductID?: string | null | undefined;
10588
+ }[] | null | undefined;
10589
+ EventTokens?: {
10590
+ Address?: {
10591
+ EntityID: string;
10592
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
10593
+ } | null | undefined;
10594
+ Amount?: number | null | undefined;
10595
+ Source?: string | null | undefined;
10596
+ }[] | null | undefined;
10597
+ } | null | undefined;
10598
+ }[] | null | undefined;
10599
+ } | null | undefined;
10600
+ Consume?: {
10601
+ Standard?: {
10602
+ Entries?: {
10603
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
10604
+ CurrencyID?: string | null | undefined;
10605
+ Amount?: number | null | undefined;
10606
+ AmountUsd?: number | null | undefined;
10607
+ CatalogID?: string | null | undefined;
10608
+ ItemID?: string | null | undefined;
10609
+ ProductID?: string | null | undefined;
10610
+ }[] | null | undefined;
10611
+ EventTokens?: {
10612
+ Address?: {
10613
+ EntityID: string;
10614
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
10615
+ } | null | undefined;
10616
+ Amount?: number | null | undefined;
10617
+ Source?: string | null | undefined;
10618
+ }[] | null | undefined;
10619
+ } | null | undefined;
10620
+ PremiumDiscounts?: unknown[] | null | undefined;
10621
+ PremiumTiers?: {
10622
+ MinPremiumTier?: number | null | undefined;
10623
+ RequiredPremiumID?: string | null | undefined;
10624
+ Resources?: {
10625
+ Entries?: {
10626
+ Type?: "Item" | "VirtualCurrency" | "CryptoCurrency" | "RewardedVideoCredit" | "Purchase" | null | undefined;
10627
+ CurrencyID?: string | null | undefined;
10628
+ Amount?: number | null | undefined;
10629
+ AmountUsd?: number | null | undefined;
10630
+ CatalogID?: string | null | undefined;
10631
+ ItemID?: string | null | undefined;
10632
+ ProductID?: string | null | undefined;
10633
+ }[] | null | undefined;
10634
+ EventTokens?: {
10635
+ Address?: {
10636
+ EntityID: string;
10637
+ Type?: "TimedEvent" | "Quest" | "Leaderboard" | "CoopEvent" | "Season" | null | undefined;
10638
+ } | null | undefined;
10639
+ Amount?: number | null | undefined;
10640
+ Source?: string | null | undefined;
10641
+ }[] | null | undefined;
10642
+ } | null | undefined;
10643
+ }[] | null | undefined;
10644
+ } | null | undefined;
10645
+ } | null | undefined;
10646
+ }>>;
10647
+ batch(r: DataCollectionsRequest): Promise<OperationResult<{
10648
+ Results: {
10649
+ Op: string;
10650
+ Collection: string;
10651
+ ItemID: string;
10652
+ Item?: {
10653
+ Collection: string;
10654
+ ItemID: string;
10655
+ Data: Record<string, unknown>;
10656
+ Version: number;
10657
+ CreatedAt: string;
10658
+ UpdatedAt: string;
10659
+ OwnerUserID?: string | null | undefined;
10660
+ ExpireAt?: string | null | undefined;
10661
+ Expanded?: Record<string, unknown> | null | undefined;
10662
+ Files?: Record<string, {
10663
+ FileID: string;
10664
+ Url: string;
10665
+ Size: number;
10666
+ ContentType?: string | null | undefined;
10667
+ }> | null | undefined;
10668
+ } | null | undefined;
10669
+ Deleted?: boolean | undefined;
10670
+ }[];
10671
+ }>>;
10672
+ getCounter(r: DataCollectionsRequest): Promise<OperationResult<{
10673
+ CounterID: string;
10674
+ Value: number;
10675
+ Group?: unknown;
10676
+ }>>;
10677
+ getMyRoles(r: DataCollectionsRequest): Promise<OperationResult<{
10678
+ Roles: string[];
10679
+ }>>;
10680
+ beginFileUpload(r: DataCollectionsRequest): Promise<OperationResult<{
10681
+ FileID: string;
10682
+ UploadUrl: string;
10683
+ ContentType: string;
10684
+ MaxBytes: number;
10685
+ ExpiresAt: string;
10686
+ }>>;
10687
+ publicGetViews(r: DataCollectionsRequest): Promise<OperationResult<{
10688
+ Views: Record<string, string>;
10689
+ ItemUrlTemplate?: string | null | undefined;
10690
+ }>>;
10691
+ publicGet(r: DataCollectionsRequest): Promise<OperationResult<{
10692
+ Item: {
10693
+ Collection: string;
10694
+ ItemID: string;
10695
+ Data: Record<string, unknown>;
10696
+ Version: number;
10697
+ CreatedAt: string;
10698
+ UpdatedAt: string;
10699
+ OwnerUserID?: string | null | undefined;
10700
+ ExpireAt?: string | null | undefined;
10701
+ Expanded?: Record<string, unknown> | null | undefined;
10702
+ Files?: Record<string, {
10703
+ FileID: string;
10704
+ Url: string;
10705
+ Size: number;
10706
+ ContentType?: string | null | undefined;
10707
+ }> | null | undefined;
10708
+ };
10709
+ }>>;
10710
+ publicQuery(r: DataCollectionsRequest): Promise<OperationResult<{
10711
+ Items: {
10712
+ Collection: string;
10713
+ ItemID: string;
10714
+ Data: Record<string, unknown>;
10715
+ Version: number;
10716
+ CreatedAt: string;
10717
+ UpdatedAt: string;
10718
+ OwnerUserID?: string | null | undefined;
10719
+ ExpireAt?: string | null | undefined;
10720
+ Expanded?: Record<string, unknown> | null | undefined;
10721
+ Files?: Record<string, {
10722
+ FileID: string;
10723
+ Url: string;
10724
+ Size: number;
10725
+ ContentType?: string | null | undefined;
10726
+ }> | null | undefined;
10727
+ }[];
10728
+ NextCursor?: string | null | undefined;
10729
+ }>>;
10730
+ }
10731
+
7088
10732
  interface IDosGamesClientConfig extends SettingsInput {
7089
10733
  /** Platform adapter (defaults to BrowserPlatformAdapter). Inject NoopPlatformAdapter in tests. */
7090
10734
  platform?: PlatformAdapter;
@@ -7160,6 +10804,10 @@ declare class ClientContext {
7160
10804
  blockchain: BlockchainApi;
7161
10805
  marketplace: MarketplaceApi;
7162
10806
  multiplayer: MultiplayerApi;
10807
+ workshop: WorkshopApi;
10808
+ dataCollections: DataCollectionsApi;
10809
+ analytics: AnalyticsApi;
10810
+ experiment: ExperimentApi;
7163
10811
  };
7164
10812
  readonly auth: AuthenticationService;
7165
10813
  readonly userService: UserService;
@@ -7198,6 +10846,12 @@ declare class ClientContext {
7198
10846
  readonly blockchain: BlockchainService;
7199
10847
  readonly marketplace: MarketplaceService;
7200
10848
  readonly multiplayer: MultiplayerService;
10849
+ readonly workshop: WorkshopService;
10850
+ /** Data collections: the title's own data structures (not `collection` — card sets). */
10851
+ readonly dataCollections: DataCollectionsService;
10852
+ /** Custom events; batched and delivered by itself — see the service docs. */
10853
+ readonly analytics: AnalyticsService;
10854
+ readonly experiments: ExperimentsService;
7201
10855
  constructor(config: IDosGamesClientConfig);
7202
10856
  /** Authed base request: UserID + ticket + buildKey + webAppLink + a fresh idempotency key. */
7203
10857
  buildAuthedBaseRequest(): BaseRequest;
@@ -7230,6 +10884,17 @@ declare class IDosGamesClient {
7230
10884
  get quest(): QuestService;
7231
10885
  /** Onboarding flows: start, advance, skip and claim tutorial steps. */
7232
10886
  get tutorial(): TutorialService;
10887
+ /**
10888
+ * Custom events, Firebase-style: `analytics.logEvent("level_complete", { level: 5 })`.
10889
+ * Batched (25 events / 30 s / tab hidden) — every batch is one billed call, so never flush per
10890
+ * event. Sends nothing while the title has event analytics switched off.
10891
+ */
10892
+ get analytics(): AnalyticsService;
10893
+ /**
10894
+ * A/B variants in effect for this player and their `Params`. Call `experiments.load()` once
10895
+ * per session; content gated by a variant is already resolved by the server.
10896
+ */
10897
+ get experiments(): ExperimentsService;
7233
10898
  /**
7234
10899
  * Creator reward programme: state, earnings and claiming.
7235
10900
  *
@@ -7269,12 +10934,12 @@ declare class IDosGamesClient {
7269
10934
  get match(): MatchService;
7270
10935
  get craft(): CraftService;
7271
10936
  /**
7272
- * In-game AI generation (text, images, video, speech, music, 3D) by `FeatureKey` — features,
10937
+ * InApp AI generation (text, images, video, speech, music, 3D) by `FeatureKey` — features,
7273
10938
  * models and player prices are configured by the publisher, never chosen by the client.
7274
10939
  *
7275
- * Video, 3D and `Async` text return `running`: poll `getVideo` / `getThreeD` / `getText`
7276
- * yourself until `ai.isTerminal(status)`, and only while the player is waiting — every poll is
7277
- * billed against the publisher's API quota.
10940
+ * Every generation is a job: a generate call returns `pending` / `running`, and
10941
+ * `ai.waitForGeneration(view)` polls it to the end. Wait only while the player needs the result —
10942
+ * every poll is billed against the publisher's API quota.
7278
10943
  */
7279
10944
  get ai(): AIService;
7280
10945
  get collection(): CollectionService;
@@ -7291,6 +10956,20 @@ declare class IDosGamesClient {
7291
10956
  get blockchain(): BlockchainService;
7292
10957
  get marketplace(): MarketplaceService;
7293
10958
  get multiplayer(): MultiplayerService;
10959
+ /**
10960
+ * Workshop: content made by players and the publisher (maps, levels, skins, models) and licenses
10961
+ * to it — publish, browse, acquire (free / for resources / by holding), download, like, follow,
10962
+ * report. `publish(...)` uploads straight to storage by signed URLs; `acquire(id, option)` sends
10963
+ * the price you showed, so a changed price is refused instead of charged.
10964
+ */
10965
+ get workshop(): WorkshopService;
10966
+ /**
10967
+ * Data collections: the title's own data structures (guilds, auctions, orders, catalogs, articles,
10968
+ * saved levels…) with declared fields, searchable fields, sort keys and access rules — for what no
10969
+ * ready module covers. ⚠ Not `collection` (collectible card sets). Public collections are readable
10970
+ * without login via `readPublicView` (CDN) and `searchPublic`.
10971
+ */
10972
+ get dataCollections(): DataCollectionsService;
7294
10973
  /** Local cache (config + user state). Read here; react via `on(...)`. */
7295
10974
  get data(): IDosGamesData;
7296
10975
  get platform(): PlatformAdapter;
@@ -7408,6 +11087,23 @@ declare function isCurveConfigured(spec: ScalarCurveSpec | null | undefined): bo
7408
11087
  */
7409
11088
  declare function roundAmount(value: number): number;
7410
11089
 
11090
+ /** What the user agent says about the device. */
11091
+ interface DeviceDescription {
11092
+ osName?: string;
11093
+ osVersion?: string;
11094
+ deviceCategory?: "phone" | "tablet" | "desktop";
11095
+ deviceModel?: string;
11096
+ }
11097
+ /**
11098
+ * Reads the OS, its version, the device class and — where the browser still tells — the model
11099
+ * from a user-agent string. Pure, so it is tested with fixed strings.
11100
+ *
11101
+ * `maxTouchPoints` exists for one case: iPadOS in its default "desktop" mode reports itself as a
11102
+ * Mac, and a touch screen is the only thing that gives it away. Counting those iPads as Macs would
11103
+ * put every tablet player of a title into the desktop slice.
11104
+ */
11105
+ declare function describeUserAgent(userAgent: string, maxTouchPoints?: number): DeviceDescription;
11106
+
7411
11107
  /** enum AdType — ad format. */
7412
11108
  declare const AdType: {
7413
11109
  readonly Banner: "Banner";
@@ -7494,7 +11190,7 @@ type BroadcastStatus = (typeof BroadcastStatus)[keyof typeof BroadcastStatus];
7494
11190
  type MailboxMessageTypeDefinition = { MessageTypeID?: null | string; DisplayName?: null | string; IconPath?: null | string; DisplayPriority?: null | number; ExpirationHours?: null | number; AutoClaim?: null | boolean; AllowP2P?: null | boolean; ShowBadge?: null | boolean; [key: string]: unknown; };
7495
11191
  type MailboxSegmentDefinition = { SegmentID?: null | string; DisplayName?: null | string; Gate?: null | SegmentGate; [key: string]: unknown; };
7496
11192
  type MailboxDefinition = { MaxMessagesPerUser?: null | number; ReadNoRewardRetentionHours?: null | number; ClaimedRetentionHours?: null | number; DefaultPageSize?: null | number; EnableAutoClaim?: null | boolean; MessageTypes?: null | Record<string, MailboxMessageTypeDefinition>; Segments?: null | Array<MailboxSegmentDefinition>; DailyP2PGiftLimit?: null | number; MaxRewardsPerP2PMessage?: null | number; [key: string]: unknown; };
7497
- type MailboxMessageDocument = { MessageID?: null | string; TitleID?: null | string; RecipientUserID?: null | string; MessageTypeID?: null | string; Source?: null | 'Quest' | 'Leaderboard' | 'CoopEvent' | 'Season' | 'Referral' | 'Admin' | 'Collection' | 'MilestoneEvent' | 'PlayerGift' | 'Social' | 'Compensation'; RelatedEntityID?: null | string; SenderUserID?: null | string; SenderPublicData?: null | UserPublicDataModel; Subject?: null | string; Body?: null | string; TemplateParams?: null | Record<string, string>; AssetPaths?: null | Record<string, string>; Rewards?: null | ResourceGrant; Claimed?: null | boolean; ClaimedAtUtc?: null | string; Status?: null | 'Expired' | 'Unread' | 'Read' | 'Deleted'; CreatedAtUtc?: null | string; ExpiresAtUtc?: null | string; ReadAtUtc?: null | string; BroadcastID?: null | string; Version?: null | number; [key: string]: unknown; };
11193
+ type MailboxMessageDocument = { MessageID?: null | string; TitleID?: null | string; RecipientUserID?: null | string; MessageTypeID?: null | string; Source?: null | 'Quest' | 'Leaderboard' | 'CoopEvent' | 'Season' | 'Referral' | 'Collection' | 'Admin' | 'MilestoneEvent' | 'PlayerGift' | 'Social' | 'Compensation'; RelatedEntityID?: null | string; SenderUserID?: null | string; SenderPublicData?: null | UserPublicDataModel; Subject?: null | string; Body?: null | string; TemplateParams?: null | Record<string, string>; AssetPaths?: null | Record<string, string>; Rewards?: null | ResourceGrant; Claimed?: null | boolean; ClaimedAtUtc?: null | string; Status?: null | 'Expired' | 'Read' | 'Deleted' | 'Unread'; CreatedAtUtc?: null | string; ExpiresAtUtc?: null | string; ReadAtUtc?: null | string; BroadcastID?: null | string; Version?: null | number; [key: string]: unknown; };
7498
11194
  type MailboxBroadcastDocument = { BroadcastID?: null | string; TitleID?: null | string; MessageTypeID?: null | string; Subject?: null | string; Body?: null | string; TemplateParams?: null | Record<string, string>; AssetPaths?: null | Record<string, string>; Rewards?: null | ResourceGrant; TargetSegmentID?: null | string; TargetUserIDs?: null | Array<string>; StartsAtUtc?: null | string; ExpiresAtUtc?: null | string; CreatedAtUtc?: null | string; CreatedByAdminID?: null | string; AdminComment?: null | string; Status?: null | 'Active' | 'Completed' | 'Cancelled' | 'Paused'; DeliveredCount?: null | number; ClaimedCount?: null | number; [key: string]: unknown; };
7499
11195
  type UserMailboxState = { UnreadCount?: null | number; UnclaimedRewardCount?: null | number; LastFetchCursor?: null | string; ReceivedBroadcastIDs?: null | Array<string>; ClaimedBroadcastIDs?: null | Array<string>; DailyP2PGiftsSent?: null | number; DailyGiftsResetDate?: null | string; LastOpenedAtUtc?: null | string; TotalMessagesReceived?: null | number; TotalRewardsClaimed?: null | number; [key: string]: unknown; };
7500
11196
 
@@ -7540,4 +11236,4 @@ declare class LocalizationCache {
7540
11236
  private versionsKey;
7541
11237
  }
7542
11238
 
7543
- export { AIAction, type AIAudioInput, type AIChatMessage, AIErrorCode, type AIGenerateOptions, type AIGenerationAssetView, type AIGenerationErrorView, type AIGenerationListView, AIGenerationStatus, type AIGenerationView, type AIHistoryQuery, type AIImageEditInput, type AIImageInput, type AIInputImage, AIModality, type AIMusicInput, type AIPublicDefinitions, type AIPublicFeature, type AIRequest, AIService, type AITextInput, type AIThreeDInput, type AIVideoInput, type AcceptTradeOfferResponse, AcquisitionCapture, type ActivateReferralCodeResponse, type ActivateTimedBoostResponse, type ActiveBoostWindowInfo, type ActiveCoopEventInfo, type ActiveDealSlotInfo, type ActiveEventInfo, type ActiveSeasonInfo, type ActiveTimedBoost, type AdConsentSettings, type AdConsentState, type AdCreditsData, type AdDailyData, type AdFraudFlags, type AdFrequencyCappingSettings, type AdPendingRequest, type AdPlacementDefinition, type AdPlacementUserState, type AdProviderDefinition, AdProviderKind, type AdSessionData, AdType, type AdUnitConfig, type AdVerificationSettings, type AddQuestProgressResponse, type AdvertisingDefinitions, type AppOpenSettings, AttackOutcome, type AttackResponse, type AttributionInput, type AuthContext, AuthType, AuthenticationAction, type AuthenticationRequest, AuthenticationService, BannerPosition, type BannerSettings, type BaseRequest, type BatchDeleteUserCustomDataResponse, type BatchGetPublicUserCustomDataResponse, type BatchItemResult, type BatchResponse, type BatchSetUserCustomDataResponse, type BattleResult, type BattleStepConfig, type BlockchainAccountSafetyPolicy, BlockchainAction, type BlockchainConfigResponse, type BlockchainDefinitions, type BlockchainNetworkDefinition, BlockchainNetworkType, type BlockchainNftCollectionBinding, BlockchainOperationCategory, type BlockchainRequest, BlockchainService, type BlockchainStats, type BlockchainSystemState, BlockchainTransactionStatus, BlockchainTransactionType, type BoardLoopDefinition, type BoardLoopState, type BoardPendingInteraction, type BoardRollResponse, BodyPart, type BoostTriggerCounter, BoostWindowKind, BroadcastStatus, type BuildResponse, type BuildingState, type CancelMatchResponse, type CancelTradeOfferResponse, type ChangeUsernameResponse, CharacterAction, type CharacterClassification, type CharacterDefinition, type CharacterDefinitions, type CharacterEquipment, type CharacterEquipmentSlot, type CharacterIdentity, type CharacterLevelRef, type CharacterModel, type CharacterRankLadder, type CharacterRequest, CharacterService, type CharacterSkinDefinition, type CharacterSkinItem, type CharacterSkinRequirements, type CharacterSkinSale, type CharacterSkinView, type CharacterSkins, type CharacterSkinsView, type CharacterStatRef, type CharacterUnequipResult, type CharacterUnlock, ChatAction, ChatAuthorType, ChatBlockedTermAction, type ChatChannelAvailability, type ChatChannelDefinition, type ChatChannelIdentity, type ChatChannelPresetBindings, type ChatChannelRetention, ChatChannelType, type ChatChannelView, type ChatChannelWriteRules, type ChatChannelsResponse, type ChatConversationView, type ChatConversationsResponse, type ChatCursor, type ChatDefinitions, ChatDirectAudience, type ChatDirectChannelResponse, type ChatHistoryResponse, type ChatMessageView, type ChatModerationSettings, ChatPartitioning, type ChatPollResponse, type ChatPollingSettings, type ChatPresetRegistry, ChatReportReason, type ChatReportResponse, type ChatRequest, type ChatRoomUpdate, type ChatSendResponse, type ChatStateResponse, CheckoutService, type ClaimAllRewardsBatchResponse, type ClaimAllRewardsResult, type ClaimComebackRewardResponse, type ClaimCycleRewardResponse, type ClaimCycleRewardsBatchResponse, type ClaimDailyRewardResponse, type ClaimDealMilestoneResponse, type ClaimDealMilestonesBatchResponse, type ClaimGrandPrizeResponse, type ClaimGroupCompletionRewardResponse, type ClaimInviteRewardResponse, type ClaimInviteRewardsBatchResponse, type ClaimLeaderboardMilestoneResponse, type ClaimLeaderboardMilestonesBatchResponse, type ClaimMilestoneRewardResponse, type ClaimMilestoneRewardsBatchResponse, type ClaimMilestonesBatchResponse, type ClaimQuestRewardResponse, type ClaimQuestRewardsBatchResponse, type ClaimRewardResponse, type ClaimSetRewardResponse, type ClaimSetRewardsBatchResponse, type ClaimTierRewardResponse, type ClaimTierRewardsBatchResponse, ClientPlatform, type ClientState, CloudCodeAction, CloudCodeErrorCode, type CloudCodeLogEntry, CloudCodeLogLevel, type CloudCodeRequest, CloudCodeRevisionSelection, CloudCodeService, type CodeExecutionError, type CollectIdleAccrualResponse, CollectionAction, type CollectionDefinitions, type CollectionGlobalSettings, type CollectionRequest, CollectionService, type CollectionSetRef, type CollectionTradeOfferDocument, CommissionSink, type CommunityAccrualLine, type CommunityCampaignSummary, type CommunityChestClaimResponse, type CommunityChestGroupDocument, type CommunityChestGroupStateResponse, type CommunityChestHistoryEntry, type CommunityChestLeaveResponse, type CommunityChestMember, CommunityChestMemberStatus, type CommunityChestSharedState, CommunityChestStatus, type CommunityChestUserStateResponse, type CommunityClaimResponse, CommunityCreatorStatus, type CommunityEarningsLine, type CommunityEarningsResponse, type CommunityEligibilityCondition, type CommunityEligibilityResponse, CommunityMarketingAction, type CommunityMarketingRequest, type CommunityMarketingState, CommunityMetricKind, CommunityParticipationMode, CommunityPayoutCurrencyKind, type CommunityPayoutSummary, type CommunitySolanaWithdrawalSignature, type CommunityWithdrawalResponse, type ConfirmWithdrawalResponse, type ConversionDailyCounter, ConversionRateMode, type ConversionTarget, type ConvertResponse, type CoopBuildObjectsMemberState, type CoopBuildObjectsState, type CoopClaimRewardResponse, CoopEventAction, type CoopEventDefinitions, type CoopEventRequest, CoopEventService, type CoopGroupDocument, type CoopGroupMember, type CoopGroupStateResponse, CoopGroupStatus, type CoopLeaveGroupResponse, CoopMemberStatus, type CoopPartnerObjectState, type CoopSpinResponse, type CoopUserStateResponse, CraftAction, type CraftBurnedInstance, type CraftDefinition, type CraftDefinitions, type CraftDefinitionsResponse, CraftInputSelectionMode, CraftOutputLevelMode, CraftOutputLevelOverflow, type CraftRequest, type CraftResponse, CraftService, type CraftSingleResult, CraftType, type CreateMatchResponse, type CryptoConvertResponse, type CryptoCurrencyDefinition, type CryptoCurrencyPermissions, type CryptoLimits, type CryptoNetworkBinding, type CryptoShortfall, CurrencyAction, type CurrencyAudit, type CurrencyConversion, type CurrencyDefinitions, type CurrencyRequest, CurrencyService, CurrencyStatus, CurrencyType, CurveInterpolation, type CurvePoint, CurveShape, CustomDataBucket, CustomDataValueType, CustomDataWriter, type CyclicSchedule, DEFAULT_BASE_URL, type DailyUsageRecord, type DealAvailability, DealComparisonOperator, type DealIdentity, type DealMilestoneBlock, type DealMilestoneProgressInfo, type DealNodeActionDefinition, type DealNodeDefinition, type DealNodePresetBindings, type DealNodePricing, type DealNodeReward, DealNodeRuntimeStatus, DealNodeType, type DealNodeUnlockRules, DealOfferAction, DealOfferActivationStatus, type DealOfferDefinition, type DealOfferDefinitions, type DealOfferGraph, type DealOfferPresetBindings, type DealOfferPresetRegistry, type DealOfferRequest, DealOfferService, type DealOffersDefinitionResponse, type DealRewardedVideoActionDefinition, type DealSlotBehaviour, type DealSlotDefinition, type DealSlotPresetBindings, type DealSlotQueueEntry, type DealTrackChange, type DealTrackDefinition, type DealTrackRequirement, type DeclineTradeOfferResponse, type DepositNFTResponse, type DepositTokenResponse, type DirectMessageSettings, type DismissDealResponse, type DonationResponse, EnvelopeType, type EquipItemsResponse, type EquipSkinResponse, type EquipSlotPair, type EquipmentPreset, type EquipmentSlot, type EquippedItem, type EventMap, type EventMilestoneClaimResponse, type EventTokenAddress, type EventTokenConversion, type EventTokenDefinition, type EventTokenGrantResponse, type EventTokenMilestoneData, type EventTokenOperation, type EventTokenSpendResponse, EventTokenType, type ExecuteCloudCodeResponse, type ExecuteNodeResponse, type ExperimentDefinition, type ExperimentDefinitions, type ExperimentVariant, type ExperimentVariantCondition, type FodderConsumedEntry, FodderSelectionMode, FodderValuationMode, type FriendActionResponse, FriendActionStatus, type FriendPublicProfile, type FriendsListResponse, GameLoopAction, type GameLoopDefinitions, type GameLoopRequest, GameLoopService, type GetActiveBoostWindowsResponse, type GetActiveDealsResponse, type GetActiveEventsResponse, type GetActiveTimedBoostsResponse, type GetCharacterSkinsResponse, type GetCharactersResponse, type GetLeaderboardResponse, type GetLeaderboardsBatchResponse, type GetMatchDefinitionsResponse, type GetMilestoneRewardMultiplierResponse, type GetMyProgressResponse, type GetMyUserCustomDataResponse, type GetOverviewBatchResponse, type GetProgressBatchResponse, type GetPublicTitleDataResponse, type GetPublicUserCustomDataResponse, type GetStorefrontResponse, type GetTradeOffersResponse, type GetUserQuestStateResponse, type GetUserTutorialStateResponse, type GrantStatusTokensResponse, type GrantTokensBatchResponse, type GrantedCollectible, type HeistCell, IDosGamesClient, type IDosGamesClientConfig, IDosGamesData, type IDosGamesSettings, type IapProductDefinition, type IapProductPurchaseState, type IapProductRules, IapProductType, IapPurchaseStatus, type IapStore, IapStore$1 as IapStoreValues, type IceServer, type InstantBattleDefinitions, type InstantBattleResponse, type InstantBattleRule, type InterstitialSettings, type InventoryDelta, ItemAction, type ItemCatalog, type ItemDefinition, type ItemDefinitions, type ItemEquipment, type ItemMetadata, type ItemRequest, ItemService, type ItemStats, type ItemTotals, type ItemUpgrade, type ItemUpgradeFodder, type ItemUpgradeRef, type JsonValue, KeyValueStorage, KycStatus, KycTier, LeaderboardAction, type LeaderboardDefinitions, type LeaderboardMilestoneRef, type LeaderboardOverview, type LeaderboardRequest, type LeaderboardScoreRef, LeaderboardService, type LeaderboardUserEntry, type LeaveRoomResponse, type LevelsPreset, type LimitSpec, type LinkedWalletInfo, type Listener, LocalizationAction, LocalizationCache, type LocalizationDefinitions, type LocalizationLocaleDefinition, type LocalizationLocaleInfo, type LocalizationManifestResponse, LocalizationMissingKeyMode, type LocalizationParams, type LocalizationRequest, LocalizationService, type LocalizationState, type LocalizationTableRef, type LocalizationTableResponse, LootboxAction, type LootboxAmountRange, type LootboxDefinitions, type LootboxDefinitionsResponse, type LootboxGlobalSettings, type LootboxOpenResponse, type LootboxPityRule, type LootboxPityTriggerResponse, type LootboxRequest, type LootboxRewardRoll, type LootboxRewardSlot, LootboxService, type LootboxSupplyRule, type MailboxBroadcastDocument, type MailboxDefinition, type MailboxMessageDocument, MailboxMessageSource, MailboxMessageStatus, type MailboxMessageTypeDefinition, type MailboxSegmentDefinition, MarketGoodsType, MarketOfferStatus, MarketOfferType, MarketplaceAction, type MarketplaceActionCounter, type MarketplaceAuctionSettings, type MarketplaceAuctionState, type MarketplaceBidRefund, type MarketplaceBrowseResponse, type MarketplaceBuyOrderSettings, type MarketplaceCommissionOverride, type MarketplaceCommissionPolicy, type MarketplaceCreateOfferResponse, type MarketplaceDefinitions, type MarketplaceDirectTradeSettings, type MarketplaceGetDefinitionsResponse, type MarketplaceGroupedOfferView, type MarketplaceGroupedOffersResponse, type MarketplaceHistoryEntryView, type MarketplaceHistoryResponse, type MarketplaceListingSettings, type MarketplaceMatchingSettings, type MarketplaceMyStateResponse, type MarketplaceOfferResponse, type MarketplaceOfferView, type MarketplacePlaceBidResponse, type MarketplacePricePolicy, type MarketplaceRequest, MarketplaceService, type MarketplaceSettlementResponse, type MarketplaceTradabilityPolicy, MatchAction, type MatchDefinitions, type MatchRequest, MatchService, MatchStatus, type MatchesPageResponse, type MilestoneClaimEntry, type MilestoneClaimRef, type MilestoneDefinition, MultiplayerAction, MultiplayerChatMode, type MultiplayerDefinitions, type MultiplayerRequest, MultiplayerService, type MultiplayerSystemState, MultiplayerTopology, type NFTModel, type NFTNetworkBinding, type NFTTransactionDocument, type NFTWithdrawalResponse, type NftCollectionStats, type NftStatsContainer, OFFER_NOT_IN_ROTATION, type OpenCollectionChestResponse, type OpenPackResponse, type OperationFailure, type OperationFailureReason, type OperationResult, type OperationSuccess, type PackOpenResult, type PaymentProof, type PaymentRequirement, type PendingWithdrawalRef, PlatformAdapter, type PlatformBlockchainState, type PlatformLoginResponse, type PlayerEconomyTuningState, PlaytimeTracker, type PollResponse, PremiumAction, type PremiumAdReduction, type PremiumDefinitions, type PremiumDefinitionsResponse, type PremiumPurchaseResponse, type PremiumRequest, PremiumService, type PremiumStateResponse, type PremiumSubscription, type PriceOption, type PriceOptions, type PublishResponse, PurchaseAction, type PurchaseBatchResponse, type PurchaseDefinitions, type PurchaseReceiptRef, type PurchaseRequest, PurchaseService, type PurchaseValidationBatchResponse, type PurchaseValidationResponse, PushAction, type PushConfigResponse, PushPermissionState, type PushRequest, type PushSubscribeOptions, type PushSubscribeResult, type PushSubscriptionListResponse, type PushSubscriptionView, PushTopic, type PushTopicView, PushTransport, type PvPMatch, QuestAction, type QuestAvailability, type QuestClaimRef, type QuestCycleDefinition, type QuestDefinition, type QuestDefinitions, type QuestGroupCompletionDefinition, type QuestIdentity, type QuestLinking, type QuestObjectiveDefinition, QuestObjectiveSource, type QuestPhaseDefinition, type QuestPointsTrackView, QuestPrerequisiteMode, type QuestPresetBindings, type QuestPresetRegistry, type QuestProgressUpdate, type QuestRequest, type QuestReward, QuestService, QuestStatus, RaidMode, type RaidResponse, type RealtimeEnvelope, type RechargeConfig, type RecordShowResponse, ReferralAction, type ReferralDefinitions, type ReferralDefinitionsResponse, type ReferralInviteRewardState, type ReferralRequest, ReferralService, type RelativeWindow, type ResourceBundle, type ResourceConsume, type ResourceDualPartyResult, type ResourceEntry, ResourceEntryType, type ResourceGrant, type ResourceOperation, type ResourceTransferResult, type RetryWithdrawalResponse, RewardAction, type RewardDefinitions, type RewardDefinitionsResponse, type RewardRequest, RewardService, type RewardedVideoSettings, type RollActionData, type RoomListItem, type RoomMemberView, type RoomSnapshotResponse, RoomVisibility, type RoomsPageResponse, SKIN_ALREADY_OWNED, SKIN_SLOT, type ScalarCurveSpec, type ScheduleChain, type ScheduleChainPhase, ScheduleMode, type ScheduleSpec, type ScheduledWindow, type SdkEvents, SeasonAction, type SeasonDefinitions, type SeasonRequest, SeasonService, type SeasonTierRewardBundle, type SeasonTierRewardMultiplier, type SeasonTierRewardSet, type SegmentGate, type SendTradeOfferResponse, type SetUserCustomDataResponse, type SettingsInput, SocialAction, type SocialCounters, type SocialRequest, SocialService, type SocialTimelineEvent, type SolanaWithdrawalSignature, type SpecialApplyMultiplierResponse, SpecialChoiceMode, type SpecialChooseResponse, type SpecialClaimResponse, type SpecialModeOfferData, type SpecialPendingState, type SpendRewardDefinition, type SpendTokensBatchResponse, type SsoCodeFromUrl, type StatDefinition, type StatRequirement, type StatsPreset, StoreAction, type StoreAvailability, type StoreDefinition, type StoreDefinitions, type StoreIdentity, type StoreLayout, type StoreOfferAvailability, type StoreOfferDefinition, type StoreOfferPricing, type StoreOfferReward, type StoreOfferStateView, type StorePurchaseRef, type StorePurchaseResponse, type StorePurchaseState, type StoreRequest, StoreRotationMode, type StoreRotationPurchaseState, type StoreSectionDefinition, StoreService, type StoreSlotDefinition, type StoreSlotPoolEntry, type StoreSlotRotation, StoreType, type StoredLocalizationTable, type StorefrontOfferView, type StorefrontPriceOptionView, type StorefrontSectionView, type StorefrontSlotView, type StorefrontView, type SubmitScoreResponse, type SubmitScoresBatchResponse, type SuccessResponse, TimedBoostAction, type TimedBoostDefinitions, type TimedBoostRequest, TimedBoostService, TimedBoostStackingPolicy, TimedEventAction, type TimedEventDefinitions, type TimedEventGrantRef, type TimedEventInstanceRef, type TimedEventMilestoneRef, type TimedEventRequest, TimedEventService, type TimedEventSpendRef, TimelineEventType, type TimelineResponse, TitleAction, TitleConfig, TitleCustomDataAction, type TitleCustomDataDefinitions, type TitleCustomDataKeyDefinition, type TitleCustomDataRecord, type TitleCustomDataRequest, TitleCustomDataService, TitleDataBucket, TitleDataScope, type TitlePublicConfigurationModel, type TitleRequest, TitleService, type TokenCurrencyStats, type TokenStatsContainer, type TokenTransactionDocument, type TokenWithdrawalResponse, TradeOfferStatus, TransactionDirection, type TransactionHistoryResponse, type TriggerContext, type TriggerSource, TutorialAction, type TutorialAvailability, type TutorialBlockingPolicy, TutorialBoardAction, type TutorialBoardScript, type TutorialClaimResponse, type TutorialDefinitions, type TutorialFlowBatchResponse, type TutorialFlowDefinition, type TutorialFlowPolicy, type TutorialFlowResponse, TutorialFlowStatus, type TutorialFlowView, type TutorialGateCondition, TutorialGateMode, type TutorialGlobalSettings, type TutorialIdentity, type TutorialPresetBindings, type TutorialPresetRegistry, type TutorialRequest, TutorialRestartPolicy, type TutorialReward, TutorialScriptModule, type TutorialScriptedOutcome, type TutorialStepCompletion, TutorialStepCompletionMode, type TutorialStepDefinition, type TutorialStepEffects, type TutorialStepIdentity, type TutorialStepPolicy, type TutorialStepProgress, TypedEmitter, type UnequipAllCharactersResponse, type UnequipItemsResponse, type UnequipSkinResponse, type UnlockCharacterResponse, type UnlockCharactersBatchResponse, type UnlockSkinResponse, type UnstackableItemInstanceState, type Unsubscribe, type UpdateMatchResponse, type UpgradeCharacterLevelResponse, type UpgradeCharacterLevelsBatchResponse, type UpgradeItemLevelResponse, type UpgradeLevelsBatchResponse, type UpgradeLevelsOptions, type UpgradeStatLevelResponse, type UpgradeStatLevelsBatchResponse, type UsagePeriodRecord, type UsageReactivationEvent, type UsageTimeStats, type UseCollectibleJokerResponse, UserAction, type UserAdvertisingState, type UserBlockchainState, type UserBlockchainStateResponse, type UserCharactersState, type UserChatChannelState, type UserChatLimitState, type UserChatState, type UserClaimRewardState, type UserCollectionState, type UserComebackState, type UserCommunityChestState, type UserCoopEventState, type UserCryptoComplianceCounters, type UserCryptoCurrencyState, UserCustomDataAction, type UserCustomDataBatchDeleteItem, type UserCustomDataBatchSetItem, type UserCustomDataDefinitions, type UserCustomDataKeyDefinition, type UserCustomDataRecord, type UserCustomDataRequest, UserCustomDataService, type UserCustomDataState, type UserDailyCalendarState, type UserDailyCounters, UserData, type UserDealNodeLifetimeCounts, type UserDealNodeState, type UserDealOfferActivationState, type UserDealOfferHistory, type UserDealOffersState, type UserDealOffersStateResponse, type UserDealSlotState, type UserDealTrackState, type UserDepositAddress, type UserEventTokenProgress, type UserEventTokensState, type UserGameLoopsState, type UserIdleAccrualState, type UserInventoryState, type UserKycState, type UserLeaderboardProgress, type UserLeaderboardsState, type UserLootboxPityCounter, type UserLootboxState, type UserMailboxState, type UserMarketplaceState, type UserMatchCreationLimitState, type UserMatchState, type UserPremiumState, type UserPublicDataModel, type UserPurchaseState, type UserQuestCycleState, type UserQuestObjectiveProgress, type UserQuestProgress, type UserQuestState, type UserReferralState, type UserReferralStateResponse, type UserRequest, type UserRewardState, type UserRewardsStateResponse, type UserSeasonState, type UserSeasonStateResponse, type UserSeasonsState, UserService, type UserSocialState, type UserState, type UserStateSlice, type UserStateVersions, type UserStoreState, type UserTimedBoostsState, type UserTimedEventStateResponse, type UserTutorialFlowState, type UserTutorialState, type UserTutorialStepState, type UserUsageState, type UserVirtualCurrencyState, type VirtualCurrencyDefinition, type VirtualCurrencyEconomy, type VirtualCurrencyPermissions, type WalletChallengeResponse, WalletLinkType, type WithdrawalSignatureResponse, type WithdrawalSplit, beginSsoRedirect, claimedMilestoneIDs, createIDosGamesClient, curveMultiplier, evaluateCurve, grantedPremiumTiers, isAIGenerationTerminal, isCurveConfigured, isFail, isMilestoneClaimed, isOk, isReservedSlot, normalizeBlockchainCategory, parseAIErrorCode, readSsoCodeFromUrl, roundAmount, zPaymentProof, zPriceOption, zPriceOptions };
11239
+ export { AIAction, type AIAudioInput, type AIChatMessage, AIErrorCode, type AIGenerateOptions, type AIGenerationAssetView, type AIGenerationErrorView, type AIGenerationListView, AIGenerationStatus, type AIGenerationView, type AIHistoryQuery, type AIImageEditInput, type AIImageInput, type AIInputImage, AIModality, type AIMusicInput, type AIPublicDefinitions, type AIPublicFeature, type AIRequest, AIService, type AITextInput, type AIThreeDInput, type AIVideoInput, type AIWaitOptions, type AcceptTradeOfferResponse, AcquisitionCapture, type ActivateReferralCodeResponse, type ActivateTimedBoostResponse, type ActiveBoostWindowInfo, type ActiveCoopEventInfo, type ActiveDealSlotInfo, type ActiveEventInfo, type ActiveSeasonInfo, type ActiveTimedBoost, type AdConsentSettings, type AdConsentState, type AdCreditsData, type AdDailyData, type AdFraudFlags, type AdFrequencyCappingSettings, type AdPendingRequest, type AdPlacementDefinition, type AdPlacementUserState, type AdProviderDefinition, AdProviderKind, type AdSessionData, AdType, type AdUnitConfig, type AdVerificationSettings, type AddQuestProgressResponse, type AdvertisingDefinitions, AnalyticsAction, type AnalyticsClientContext, type AnalyticsDefinitions, type AnalyticsDimensionDefinition, AnalyticsDropReason, type AnalyticsEventDefinition, type AnalyticsEventInput, AnalyticsEventNaming, AnalyticsLimits, type AnalyticsParamValue, type AnalyticsParams, type AnalyticsRequest, AnalyticsService, type AppOpenSettings, AttackOutcome, type AttackResponse, type AttributionInput, type AuthContext, AuthType, AuthenticationAction, type AuthenticationRequest, AuthenticationService, AutomaticEvent, BannerPosition, type BannerSettings, type BaseRequest, type BatchDeleteUserCustomDataResponse, type BatchGetPublicUserCustomDataResponse, type BatchItemResult, type BatchResponse, type BatchSetUserCustomDataResponse, type BattleResult, type BattleStepConfig, type BlockchainAccountSafetyPolicy, BlockchainAction, type BlockchainConfigResponse, type BlockchainDefinitions, type BlockchainNetworkDefinition, BlockchainNetworkType, type BlockchainNftCollectionBinding, BlockchainOperationCategory, type BlockchainRequest, BlockchainService, type BlockchainStats, type BlockchainSystemState, BlockchainTransactionStatus, BlockchainTransactionType, type BoardLoopDefinition, type BoardLoopState, type BoardPendingInteraction, type BoardRollResponse, BodyPart, type BoostTriggerCounter, BoostWindowKind, BroadcastStatus, type BuildResponse, type BuildingState, type CancelMatchResponse, type CancelTradeOfferResponse, type ChangeUsernameResponse, CharacterAction, type CharacterClassification, type CharacterDefinition, type CharacterDefinitions, type CharacterEquipment, type CharacterEquipmentSlot, type CharacterIdentity, type CharacterLevelRef, type CharacterModel, type CharacterRankLadder, type CharacterRequest, CharacterService, type CharacterSkinDefinition, type CharacterSkinItem, type CharacterSkinRequirements, type CharacterSkinSale, type CharacterSkinView, type CharacterSkins, type CharacterSkinsView, type CharacterStatRef, type CharacterUnequipResult, type CharacterUnlock, ChatAction, ChatAuthorType, ChatBlockedTermAction, type ChatChannelAvailability, type ChatChannelDefinition, type ChatChannelIdentity, type ChatChannelPresetBindings, type ChatChannelRetention, ChatChannelType, type ChatChannelView, type ChatChannelWriteRules, type ChatChannelsResponse, type ChatConversationView, type ChatConversationsResponse, type ChatCursor, type ChatDefinitions, ChatDirectAudience, type ChatDirectChannelResponse, type ChatHistoryResponse, type ChatMessageView, type ChatModerationSettings, ChatPartitioning, type ChatPollResponse, type ChatPollingSettings, type ChatPresetRegistry, ChatReportReason, type ChatReportResponse, type ChatRequest, type ChatRoomUpdate, type ChatSendResponse, type ChatStateResponse, CheckoutService, type ClaimAllRewardsBatchResponse, type ClaimAllRewardsResult, type ClaimComebackRewardResponse, type ClaimCycleRewardResponse, type ClaimCycleRewardsBatchResponse, type ClaimDailyRewardResponse, type ClaimDealMilestoneResponse, type ClaimDealMilestonesBatchResponse, type ClaimGrandPrizeResponse, type ClaimGroupCompletionRewardResponse, type ClaimInviteRewardResponse, type ClaimInviteRewardsBatchResponse, type ClaimLeaderboardMilestoneResponse, type ClaimLeaderboardMilestonesBatchResponse, type ClaimMilestoneRewardResponse, type ClaimMilestoneRewardsBatchResponse, type ClaimMilestonesBatchResponse, type ClaimQuestRewardResponse, type ClaimQuestRewardsBatchResponse, type ClaimRewardResponse, type ClaimSetRewardResponse, type ClaimSetRewardsBatchResponse, type ClaimTierRewardResponse, type ClaimTierRewardsBatchResponse, ClientPlatform, type ClientState, CloudCodeAction, CloudCodeErrorCode, type CloudCodeLogEntry, CloudCodeLogLevel, type CloudCodeRequest, CloudCodeRevisionSelection, CloudCodeService, type CodeExecutionError, type CollectIdleAccrualResponse, CollectionAction, type CollectionDefinitions, type CollectionGlobalSettings, type CollectionRequest, CollectionService, type CollectionSetRef, type CollectionTradeOfferDocument, CommissionSink, type CommunityAccrualLine, type CommunityCampaignSummary, type CommunityChestClaimResponse, type CommunityChestGroupDocument, type CommunityChestGroupStateResponse, type CommunityChestHistoryEntry, type CommunityChestLeaveResponse, type CommunityChestMember, CommunityChestMemberStatus, type CommunityChestSharedState, CommunityChestStatus, type CommunityChestUserStateResponse, type CommunityClaimResponse, CommunityCreatorStatus, type CommunityEarningsLine, type CommunityEarningsResponse, type CommunityEligibilityCondition, type CommunityEligibilityResponse, CommunityMarketingAction, type CommunityMarketingRequest, type CommunityMarketingState, CommunityMetricKind, CommunityParticipationMode, CommunityPayoutCurrencyKind, type CommunityPayoutSummary, type CommunitySolanaWithdrawalSignature, type CommunityWithdrawalResponse, type ConfirmWithdrawalResponse, type ConversionDailyCounter, ConversionRateMode, type ConversionTarget, type ConvertResponse, type CoopBuildObjectsMemberState, type CoopBuildObjectsState, type CoopClaimRewardResponse, CoopEventAction, type CoopEventDefinitions, type CoopEventRequest, CoopEventService, type CoopGroupDocument, type CoopGroupMember, type CoopGroupStateResponse, CoopGroupStatus, type CoopLeaveGroupResponse, CoopMemberStatus, type CoopPartnerObjectState, type CoopSpinResponse, type CoopUserStateResponse, CraftAction, type CraftBurnedInstance, type CraftDefinition, type CraftDefinitions, type CraftDefinitionsResponse, CraftInputSelectionMode, CraftOutputLevelMode, CraftOutputLevelOverflow, type CraftRequest, type CraftResponse, CraftService, type CraftSingleResult, CraftType, type CreateMatchResponse, type CryptoConvertResponse, type CryptoCurrencyDefinition, type CryptoCurrencyPermissions, type CryptoLimits, type CryptoNetworkBinding, type CryptoShortfall, CurrencyAction, type CurrencyAudit, type CurrencyConversion, type CurrencyDefinitions, type CurrencyRequest, CurrencyService, CurrencyStatus, CurrencyType, CurveInterpolation, type CurvePoint, CurveShape, CustomDataBucket, CustomDataValueType, CustomDataWriter, type CyclicSchedule, DEFAULT_BASE_URL, type DailyUsageRecord, DataAccessMode, type DataAccessRule, type DataBatchOperation, type DataBatchResponse, type DataCollectionDefinition, DataCollectionKind, DataCollectionSchemaMode, DataCollectionsAction, type DataCollectionsRequest, DataCollectionsService, type DataCountResponse, DataCounterKind, type DataCounterResponse, type DataDefinitionsResponse, type DataDeleteResponse, type DataFieldDefinition, DataFieldType, DataFieldVisibility, type DataFileUploadResponse, type DataFileView, type DataFilter, type DataFilterOp, type DataGetManyResponse, type DataGetResponse, type DataItemView, type DataOperationEconomy, DataOwnerDeletedPolicy, type DataPublicViewDefinition, type DataPublicViewPage, type DataPublicViewPointer, type DataPublicViewsResponse, type DataQueryResponse, type DataQuerySpec, type DataReadOptions, type DataRecord, DataRefKind, type DataRefTarget, type DataRolesResponse, type DataSortKeyDefinition, type DataUpdateSpec, type DataWriteResponse, type DealAvailability, DealComparisonOperator, type DealIdentity, type DealMilestoneBlock, type DealMilestoneProgressInfo, type DealNodeActionDefinition, type DealNodeDefinition, type DealNodePresetBindings, type DealNodePricing, type DealNodeReward, DealNodeRuntimeStatus, DealNodeType, type DealNodeUnlockRules, DealOfferAction, DealOfferActivationStatus, type DealOfferDefinition, type DealOfferDefinitions, type DealOfferGraph, type DealOfferPresetBindings, type DealOfferPresetRegistry, type DealOfferRequest, DealOfferService, type DealOffersDefinitionResponse, type DealRewardedVideoActionDefinition, type DealSlotBehaviour, type DealSlotDefinition, type DealSlotPresetBindings, type DealSlotQueueEntry, type DealTrackChange, type DealTrackDefinition, type DealTrackRequirement, type DeclineTradeOfferResponse, type DepositNFTResponse, type DepositTokenResponse, type DeviceDescription, type DirectMessageSettings, type DismissDealResponse, type DonationResponse, type DroppedEvent, EVENT_NAME_PATTERN, EnvelopeType, type EquipItemsResponse, type EquipSkinResponse, type EquipSlotPair, type EquipmentPreset, type EquipmentSlot, type EquippedItem, type EventMap, type EventMilestoneClaimResponse, type EventTokenAddress, type EventTokenConversion, type EventTokenDefinition, type EventTokenGrantResponse, type EventTokenMilestoneData, type EventTokenOperation, type EventTokenSpendResponse, EventTokenType, type ExecuteCloudCodeResponse, type ExecuteNodeResponse, ExperimentAction, type ExperimentDefinition, type ExperimentDefinitions, type ExperimentGoal, ExperimentGoalKind, type ExperimentRequest, type ExperimentVariant, type ExperimentVariantCondition, ExperimentsService, type FodderConsumedEntry, FodderSelectionMode, FodderValuationMode, type FriendActionResponse, FriendActionStatus, type FriendPublicProfile, type FriendsListResponse, GameLoopAction, type GameLoopDefinitions, type GameLoopRequest, GameLoopService, type GetActiveBoostWindowsResponse, type GetActiveDealsResponse, type GetActiveEventsResponse, type GetActiveTimedBoostsResponse, type GetCharacterSkinsResponse, type GetCharactersResponse, type GetExperimentsResponse, type GetLeaderboardResponse, type GetLeaderboardsBatchResponse, type GetMatchDefinitionsResponse, type GetMilestoneRewardMultiplierResponse, type GetMyProgressResponse, type GetMyUserCustomDataResponse, type GetOverviewBatchResponse, type GetProgressBatchResponse, type GetPublicTitleDataResponse, type GetPublicUserCustomDataResponse, type GetStorefrontResponse, type GetTradeOffersResponse, type GetUserQuestStateResponse, type GetUserTutorialStateResponse, type GrantStatusTokensResponse, type GrantTokensBatchResponse, type GrantedCollectible, type HeistCell, IDosGamesClient, type IDosGamesClientConfig, IDosGamesData, type IDosGamesSettings, type IapProductDefinition, type IapProductPurchaseState, type IapProductRules, IapProductType, IapPurchaseStatus, type IapStore, IapStore$1 as IapStoreValues, type IceServer, type InstantBattleDefinitions, type InstantBattleResponse, type InstantBattleRule, type InterstitialSettings, type InventoryDelta, ItemAction, type ItemCatalog, type ItemDefinition, type ItemDefinitions, type ItemEquipment, type ItemMetadata, type ItemRequest, ItemService, type ItemStats, type ItemTotals, type ItemUpgrade, type ItemUpgradeFodder, type ItemUpgradeRef, type JsonValue, KeyValueStorage, KycStatus, KycTier, LeaderboardAction, type LeaderboardDefinitions, type LeaderboardMilestoneRef, type LeaderboardOverview, type LeaderboardRequest, type LeaderboardScoreRef, LeaderboardService, type LeaderboardUserEntry, type LeaveRoomResponse, type LevelsPreset, type LimitSpec, type LinkedWalletInfo, type Listener, LocalizationAction, LocalizationCache, type LocalizationDefinitions, type LocalizationLocaleDefinition, type LocalizationLocaleInfo, type LocalizationManifestResponse, LocalizationMissingKeyMode, type LocalizationParams, type LocalizationRequest, LocalizationService, type LocalizationState, type LocalizationTableRef, type LocalizationTableResponse, type LogEventsResponse, LootboxAction, type LootboxAmountRange, type LootboxDefinitions, type LootboxDefinitionsResponse, type LootboxGlobalSettings, type LootboxOpenResponse, type LootboxPityRule, type LootboxPityTriggerResponse, type LootboxRequest, type LootboxRewardRoll, type LootboxRewardSlot, LootboxService, type LootboxSupplyRule, type MailboxBroadcastDocument, type MailboxDefinition, type MailboxMessageDocument, MailboxMessageSource, MailboxMessageStatus, type MailboxMessageTypeDefinition, type MailboxSegmentDefinition, MarketGoodsType, MarketOfferStatus, MarketOfferType, MarketplaceAction, type MarketplaceActionCounter, type MarketplaceAuctionSettings, type MarketplaceAuctionState, type MarketplaceBidRefund, type MarketplaceBrowseResponse, type MarketplaceBuyOrderSettings, type MarketplaceCommissionOverride, type MarketplaceCommissionPolicy, type MarketplaceCreateOfferResponse, type MarketplaceDefinitions, type MarketplaceDirectTradeSettings, type MarketplaceGetDefinitionsResponse, type MarketplaceGroupedOfferView, type MarketplaceGroupedOffersResponse, type MarketplaceHistoryEntryView, type MarketplaceHistoryResponse, type MarketplaceListingSettings, type MarketplaceMatchingSettings, type MarketplaceMyStateResponse, type MarketplaceOfferResponse, type MarketplaceOfferView, type MarketplacePlaceBidResponse, type MarketplacePricePolicy, type MarketplaceRequest, MarketplaceService, type MarketplaceSettlementResponse, type MarketplaceTradabilityPolicy, MatchAction, type MatchDefinitions, type MatchRequest, MatchService, MatchStatus, type MatchesPageResponse, type MilestoneClaimEntry, type MilestoneClaimRef, type MilestoneDefinition, MultiplayerAction, MultiplayerChatMode, type MultiplayerDefinitions, type MultiplayerRequest, MultiplayerService, type MultiplayerSystemState, MultiplayerTopology, type NFTModel, type NFTNetworkBinding, type NFTTransactionDocument, type NFTWithdrawalResponse, type NftCollectionStats, type NftStatsContainer, OFFER_NOT_IN_ROTATION, type OpenCollectionChestResponse, type OpenPackResponse, type OperationFailure, type OperationFailureReason, type OperationResult, type OperationSuccess, type PackOpenResult, type PaymentProof, type PaymentRequirement, type PendingWithdrawalRef, PlatformAdapter, type PlatformBlockchainState, type PlatformLoginResponse, type PlayerEconomyTuningState, PlayerExperimentStatus, type PlayerExperimentView, PlaytimeTracker, type PollResponse, PremiumAction, type PremiumAdReduction, type PremiumDefinitions, type PremiumDefinitionsResponse, type PremiumPurchaseResponse, type PremiumRequest, PremiumService, type PremiumStateResponse, type PremiumSubscription, type PriceOption, type PriceOptions, type PublishResponse, PurchaseAction, type PurchaseBatchResponse, type PurchaseDefinitions, type PurchaseReceiptRef, type PurchaseRequest, PurchaseService, type PurchaseValidationBatchResponse, type PurchaseValidationResponse, PushAction, type PushConfigResponse, PushPermissionState, type PushRequest, type PushSubscribeOptions, type PushSubscribeResult, type PushSubscriptionListResponse, type PushSubscriptionView, PushTopic, type PushTopicView, PushTransport, type PvPMatch, QuestAction, type QuestAvailability, type QuestClaimRef, type QuestCycleDefinition, type QuestDefinition, type QuestDefinitions, type QuestGroupCompletionDefinition, type QuestIdentity, type QuestLinking, type QuestObjectiveDefinition, QuestObjectiveSource, type QuestPhaseDefinition, type QuestPointsTrackView, QuestPrerequisiteMode, type QuestPresetBindings, type QuestPresetRegistry, type QuestProgressUpdate, type QuestRequest, type QuestReward, QuestService, QuestStatus, RaidMode, type RaidResponse, type RealtimeEnvelope, type RechargeConfig, type RecordShowResponse, ReferralAction, type ReferralDefinitions, type ReferralDefinitionsResponse, type ReferralInviteRewardState, type ReferralRequest, ReferralService, type RelativeWindow, type ResourceBundle, type ResourceConsume, type ResourceDualPartyResult, type ResourceEntry, ResourceEntryType, type ResourceGrant, type ResourceOperation, type ResourceTransferResult, type RetryWithdrawalResponse, RewardAction, type RewardDefinitions, type RewardDefinitionsResponse, type RewardRequest, RewardService, type RewardedVideoSettings, type RollActionData, type RoomListItem, type RoomMemberView, type RoomSnapshotResponse, RoomVisibility, type RoomsPageResponse, SKIN_ALREADY_OWNED, SKIN_SLOT, type ScalarCurveSpec, type ScheduleChain, type ScheduleChainPhase, ScheduleMode, type ScheduleSpec, type ScheduledWindow, type SdkEvents, SeasonAction, type SeasonDefinitions, type SeasonRequest, SeasonService, type SeasonTierRewardBundle, type SeasonTierRewardMultiplier, type SeasonTierRewardSet, type SegmentGate, type SendTradeOfferResponse, type SetUserCustomDataResponse, type SettingsInput, SocialAction, type SocialCounters, type SocialRequest, SocialService, type SocialTimelineEvent, type SolanaWithdrawalSignature, type SpecialApplyMultiplierResponse, SpecialChoiceMode, type SpecialChooseResponse, type SpecialClaimResponse, type SpecialModeOfferData, type SpecialPendingState, type SpendRewardDefinition, type SpendTokensBatchResponse, type SsoCodeFromUrl, type StatDefinition, type StatRequirement, type StatsPreset, StoreAction, type StoreAvailability, type StoreDefinition, type StoreDefinitions, type StoreIdentity, type StoreLayout, type StoreOfferAvailability, type StoreOfferDefinition, type StoreOfferPricing, type StoreOfferReward, type StoreOfferStateView, type StorePurchaseRef, type StorePurchaseResponse, type StorePurchaseState, type StoreRequest, StoreRotationMode, type StoreRotationPurchaseState, type StoreSectionDefinition, StoreService, type StoreSlotDefinition, type StoreSlotPoolEntry, type StoreSlotRotation, StoreType, type StoredLocalizationTable, type StorefrontOfferView, type StorefrontPriceOptionView, type StorefrontSectionView, type StorefrontSlotView, type StorefrontView, type SubmitScoreResponse, type SubmitScoresBatchResponse, type SuccessResponse, TimedBoostAction, type TimedBoostDefinitions, type TimedBoostRequest, TimedBoostService, TimedBoostStackingPolicy, TimedEventAction, type TimedEventDefinitions, type TimedEventGrantRef, type TimedEventInstanceRef, type TimedEventMilestoneRef, type TimedEventRequest, TimedEventService, type TimedEventSpendRef, TimelineEventType, type TimelineResponse, TitleAction, TitleConfig, TitleCustomDataAction, type TitleCustomDataDefinitions, type TitleCustomDataKeyDefinition, type TitleCustomDataRecord, type TitleCustomDataRequest, TitleCustomDataService, TitleDataBucket, TitleDataScope, type TitlePublicConfigurationModel, type TitleRequest, TitleService, type TokenCurrencyStats, type TokenStatsContainer, type TokenTransactionDocument, type TokenWithdrawalResponse, TradeOfferStatus, TransactionDirection, type TransactionHistoryResponse, type TriggerContext, type TriggerSource, TutorialAction, type TutorialAvailability, type TutorialBlockingPolicy, TutorialBoardAction, type TutorialBoardScript, type TutorialClaimResponse, type TutorialDefinitions, type TutorialFlowBatchResponse, type TutorialFlowDefinition, type TutorialFlowPolicy, type TutorialFlowResponse, TutorialFlowStatus, type TutorialFlowView, type TutorialGateCondition, TutorialGateMode, type TutorialGlobalSettings, type TutorialIdentity, type TutorialPresetBindings, type TutorialPresetRegistry, type TutorialRequest, TutorialRestartPolicy, type TutorialReward, TutorialScriptModule, type TutorialScriptedOutcome, type TutorialStepCompletion, TutorialStepCompletionMode, type TutorialStepDefinition, type TutorialStepEffects, type TutorialStepIdentity, type TutorialStepPolicy, type TutorialStepProgress, TypedEmitter, type UnequipAllCharactersResponse, type UnequipItemsResponse, type UnequipSkinResponse, type UnlockCharacterResponse, type UnlockCharactersBatchResponse, type UnlockSkinResponse, type UnstackableItemInstanceState, type Unsubscribe, type UpdateMatchResponse, type UpgradeCharacterLevelResponse, type UpgradeCharacterLevelsBatchResponse, type UpgradeItemLevelResponse, type UpgradeLevelsBatchResponse, type UpgradeLevelsOptions, type UpgradeStatLevelResponse, type UpgradeStatLevelsBatchResponse, type UsagePeriodRecord, type UsageReactivationEvent, type UsageTimeStats, type UseCollectibleJokerResponse, UserAction, type UserAdvertisingState, type UserBlockchainState, type UserBlockchainStateResponse, type UserCharactersState, type UserChatChannelState, type UserChatLimitState, type UserChatState, type UserClaimRewardState, type UserCollectionState, type UserComebackState, type UserCommunityChestState, type UserCoopEventState, type UserCryptoComplianceCounters, type UserCryptoCurrencyState, UserCustomDataAction, type UserCustomDataBatchDeleteItem, type UserCustomDataBatchSetItem, type UserCustomDataDefinitions, type UserCustomDataKeyDefinition, type UserCustomDataRecord, type UserCustomDataRequest, UserCustomDataService, type UserCustomDataState, type UserDailyCalendarState, type UserDailyCounters, UserData, type UserDealNodeLifetimeCounts, type UserDealNodeState, type UserDealOfferActivationState, type UserDealOfferHistory, type UserDealOffersState, type UserDealOffersStateResponse, type UserDealSlotState, type UserDealTrackState, type UserDepositAddress, type UserEventTokenProgress, type UserEventTokensState, type UserGameLoopsState, type UserIdleAccrualState, type UserInventoryState, type UserKycState, type UserLeaderboardProgress, type UserLeaderboardsState, type UserLootboxPityCounter, type UserLootboxState, type UserMailboxState, type UserMarketplaceState, type UserMatchCreationLimitState, type UserMatchState, type UserPremiumState, type UserPublicDataModel, type UserPurchaseState, type UserQuestCycleState, type UserQuestObjectiveProgress, type UserQuestProgress, type UserQuestState, type UserReferralState, type UserReferralStateResponse, type UserRequest, type UserRewardState, type UserRewardsStateResponse, type UserSeasonState, type UserSeasonStateResponse, type UserSeasonsState, UserService, type UserSocialState, type UserState, type UserStateSlice, type UserStateVersions, type UserStoreState, type UserTimedBoostsState, type UserTimedEventStateResponse, type UserTutorialFlowState, type UserTutorialState, type UserTutorialStepState, type UserUsageState, type UserVirtualCurrencyState, type VirtualCurrencyDefinition, type VirtualCurrencyEconomy, type VirtualCurrencyPermissions, type WalletChallengeResponse, WalletLinkType, type WithdrawalSignatureResponse, type WithdrawalSplit, WorkshopAccessMode, type WorkshopAccessOption, type WorkshopAccessOptionInput, type WorkshopAccessState, WorkshopAccessVia, type WorkshopAcquireResponse, WorkshopAction, type WorkshopBeginUploadResponse, type WorkshopBrowseQuery, type WorkshopBrowseResponse, type WorkshopCollection, type WorkshopCollectionResponse, type WorkshopCollectionView, type WorkshopContentMutationResponse, type WorkshopContentResponse, type WorkshopContentStats, WorkshopContentStatus, type WorkshopContentType, type WorkshopContentView, type WorkshopCreatorProfileResponse, type WorkshopDefinitions, type WorkshopDefinitionsResponse, type WorkshopDownloadFile, type WorkshopDownloadResponse, type WorkshopDownloadedFile, type WorkshopFileData, type WorkshopFileDeclaration, type WorkshopFileRole, type WorkshopFollowResponse, WorkshopHoldingMatch, WorkshopHoldingMode, type WorkshopHoldingPolicy, type WorkshopHoldingRequirement, type WorkshopHoldingRule, WorkshopLicenseSource, type WorkshopLicenseView, type WorkshopLicensesResponse, type WorkshopLimits, type WorkshopModerationSettings, type WorkshopPublishFile, type WorkshopPublishInput, type WorkshopPublishResponse, WorkshopReactionKind, type WorkshopReactionResponse, WorkshopReportReason, type WorkshopReportResponse, type WorkshopRequest, WorkshopService, WorkshopSort, type WorkshopUploadTarget, WorkshopVisibility, beginSsoRedirect, claimedMilestoneIDs, createIDosGamesClient, curveMultiplier, describeUserAgent, evaluateCurve, grantedPremiumTiers, isAIGenerationTerminal, isCurveConfigured, isFail, isMilestoneClaimed, isOk, isReservedSlot, normalizeBlockchainCategory, parseAIErrorCode, readSsoCodeFromUrl, roundAmount, where, zPaymentProof, zPriceOption, zPriceOptions };