@series-inc/rundot-game-sdk 5.23.0-beta.2 → 5.23.0-beta.4

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.
@@ -1927,6 +1927,21 @@ interface LoadEmbeddedAssetsResponse {
1927
1927
  type SubscriptionTier = 'LITE' | 'CORE' | 'PLUS' | 'PRIME' | 'ULTIMATE';
1928
1928
  /** the different billing intervals RUN offers for subscriptions */
1929
1929
  type SubscriptionInterval = 'weekly' | 'monthly' | 'annual';
1930
+ /**
1931
+ * Billing intervals actually offered per subscription tier. Every tier ships
1932
+ * weekly; LITE is weekly-only, the rest add monthly + annual. Keep in sync with
1933
+ * the RevenueCat offerings — a tier must not advertise an interval it has no
1934
+ * package for.
1935
+ */
1936
+ declare const TIER_SUPPORTED_INTERVALS: Record<SubscriptionTier, readonly SubscriptionInterval[]>;
1937
+ /**
1938
+ * Rejects a purchase up front when `interval` is not offered for `tier` (e.g.
1939
+ * LITE only ships weekly), throwing a {@link RundotApiError} with the
1940
+ * `UNSUPPORTED_SUBSCRIPTION_INTERVAL` code. Called at the top of every
1941
+ * `purchaseSubscription` implementation so the game gets a clear rejection
1942
+ * instead of an opaque failed checkout.
1943
+ */
1944
+ declare function assertTierSupportsInterval(tier: SubscriptionTier, interval: SubscriptionInterval): void;
1930
1945
  interface IsPlayerSubscribedRequest {
1931
1946
  tier: SubscriptionTier;
1932
1947
  }
@@ -4587,4 +4602,4 @@ interface AdsApi {
4587
4602
  showInterstitialAd(options?: ShowInterstitialAdOptions): Promise<boolean>;
4588
4603
  }
4589
4604
 
4590
- export { type EnvironmentInfo as $, type AnalyticsApi as A, type BatchRecipeRequirementsResult as B, type NotificationsApi as C, type ScheduleLocalNotification as D, type ScheduleNotificationOptions as E, type RCSAvailabilityStatus as F, type ScheduleRCSInput as G, type Host as H, type ScheduleRCSResult as I, type RequestRCSOptInInput as J, type RequestRCSOptInResult as K, type PopupsApi as L, type ShowToastOptions as M, type NavigationApi as N, type LikeDialogResult as O, type Profile as P, type QuitOptions as Q, type RundotGameAPI as R, type SimulationActiveRunsUpdate as S, type CommentsPanelResult as T, type LikeStateResult as U, type ShowInterstitialAdOptions as V, type ShowRewardedAdOptions as W, type ProfileApi as X, type DeviceApi as Y, type DeviceInfo as Z, type EnvironmentApi as _, type RecipeRequirementQuery as a, type ListRoomsOptions as a$, type SystemApi as a0, type SafeArea as a1, type AddToHomeScreenResult as a2, type CdnApi as a3, type FetchFromCdnOptions as a4, type AssetUrlResult as a5, type TimeApi as a6, type ServerTimeData as a7, type GetFutureTimeOptions as a8, type AiApi as a9, type SimulationAvailableItem as aA, type SimulationPowerPreview as aB, type SimulationSlotMutationResult as aC, type SimulationSlotContainer as aD, type SimulationAssignment as aE, type SimulationState as aF, type ExecuteRecipeOptions as aG, type ExecuteRecipeResponse as aH, type CollectRecipeResult as aI, type ResetStateOptions as aJ, type ResetStateResult as aK, type GetActiveRunsOptions as aL, type ExecuteScopedRecipeOptions as aM, type ExecuteScopedRecipeResult as aN, type GetAvailableRecipesOptions as aO, type GetAvailableRecipesResult as aP, type Recipe as aQ, type GetBatchRecipeRequirements as aR, type TriggerRecipeChainOptions as aS, type RoomDataUpdate as aT, type RoomMessageEvent as aU, type ProposedMoveEvent as aV, RundotGameTransport as aW, type RoomsApi as aX, type CreateRoomOptions as aY, type JoinOrCreateRoomOptions as aZ, type JoinOrCreateResult as a_, type AiChatCompletionRequest as aa, type AiChatCompletionData as ab, type AiChatCompletionStreamOptions as ac, type AiChatCompletionStreamChunk as ad, type HapticsApi as ae, HapticFeedbackStyle as af, type GamepadSnapshot as ag, type GamepadConnectionEvent as ah, type Subscription as ai, type GamepadApi as aj, type GamepadLatencyStats as ak, type FeaturesApi as al, type Experiment as am, type LifecycleApi as an, type SleepCallback as ao, type AwakeCallback as ap, type PauseCallback as aq, type ResumeCallback as ar, type QuitCallback as as, type BackButtonCallback as at, type IdentityChangedCallback as au, type IdentityChangedEvent as av, type SimulationApi as aw, type SimulationSlotValidationResult as ax, type SimulationBatchOperation as ay, type SimulationBatchOperationsResult as az, type RecipeRequirementResult as b, type AdminThreeDGenApi as b$, type UpdateRoomDataOptions as b0, type RoomMessageRequest as b1, type StartRoomGameOptions as b2, type ProposeMoveRequest as b3, type ProposeMoveResult as b4, type ValidateMoveVerdict as b5, type ValidateMoveResult as b6, type RoomSubscriptionOptions as b7, type LoggingApi as b8, type IapApi as b9, type CanShareFileResult as bA, type EntitlementApi as bB, type Entitlement as bC, type LedgerEntry as bD, type StatsApi as bE, type GrantInfo as bF, type CollectiblesApi as bG, type CollectibleCard as bH, type VipClaimResult as bI, type ShopApi as bJ, type StorefrontResponse as bK, type StorefrontItem as bL, type ShopPurchaseResponse as bM, type ShopOrderHistoryResponse as bN, type PromptLoginResult as bO, type AccessTier as bP, type AccessGateApi as bQ, type TextGenApi as bR, type UgcApi as bS, type MultiplayerApi as bT, type VideoApi as bU, type AppApi as bV, type AdminUgcApi as bW, type AdminImageGenApi as bX, type AdminVideoGenApi as bY, type AdminSpriteGenApi as bZ, type AdminAudioGenApi as b_, type SpendCurrencyOptions as ba, type SpendCurrencyResult as bb, type SubscriptionTier as bc, type RunSubscriptionsResponse as bd, type SubscriptionInterval as be, type PurchaseSubscriptionResponse as bf, type OpenStoreResult as bg, type LoadEmbeddedAssetsResponse as bh, type SharedAssetsApi as bi, type CreditsApi as bj, type CreditsBillingContext as bk, type CreditBalance as bl, type CreditSubscription as bm, type CreditPlansCatalog as bn, type OpenPaywallOptions as bo, type CreditsPurchaseResult as bp, type Unsubscribe as bq, type PreloaderApi as br, type SocialApi as bs, type ShareMetadata as bt, type ShareLinkResult as bu, type SocialQRCodeOptions as bv, type QRCodeResult as bw, type ShareClickData as bx, type ShareFileOptions as by, type ShareFileResult as bz, type RundotGameAvailableRecipe as c, type AdminVideoGenResolveAction as c$, type AppRole as c0, type ResolveLaunchIntentOptions as c1, type LaunchIntent as c2, type ReleaseNote as c3, type AdminUgcBrowseParams as c4, type AdminUgcBrowseResponse as c5, type AdminUgcListReportsParams as c6, type AdminUgcListReportsResponse as c7, type AdminUgcResolveAction as c8, type AdminGenBrowseParams as c9, type ClipsSupport as cA, type ClipPersistOptions as cB, type ClipResult as cC, type UgcEntry as cD, type CaptureConsentStatus as cE, AccessDeniedError as cF, type AdminGenApi as cG, type AdminImageGenBrowseParams as cH, type AdminImageGenBrowseResponse as cI, type AdminImageGenListReportsParams as cJ, type AdminImageGenListReportsResponse as cK, type AdminImageGenResolveAction as cL, type AdminSpriteGenBrowseParams as cM, type AdminSpriteGenBrowseResponse as cN, type AdminSpriteGenListReportsParams as cO, type AdminSpriteGenListReportsResponse as cP, type AdminSpriteGenResolveAction as cQ, type AdminThreeDGenBrowseParams as cR, type AdminThreeDGenBrowseResponse as cS, type AdminThreeDGenListReportsParams as cT, type AdminThreeDGenListReportsResponse as cU, type AdminThreeDGenResolveAction as cV, type AdminUgcEntry as cW, type AdminVideoGenBrowseParams as cX, type AdminVideoGenBrowseResponse as cY, type AdminVideoGenListReportsParams as cZ, type AdminVideoGenListReportsResponse as c_, type AdminGenBrowseResponse as ca, type ImageGenEntry as cb, type AdminGenListReportsParams as cc, type AdminGenListReportsResponse as cd, type ImageGenReport as ce, type AdminGenResolveAction as cf, type SpriteGenEntry as cg, type SpriteGenReport as ch, type ThreeDGenEntry as ci, type ThreeDGenReport as cj, type Avatar3dApi as ck, type AssetManifest as cl, type Avatar3dConfig as cm, type ShowEditorOptions as cn, type Avatar3dEdits as co, type AdsApi as cp, type RawEnvironmentInfo as cq, type SharedStorageHostApi as cr, type FilesApi as cs, type ClipsApi as ct, type AttributionApi as cu, type InitializationContext as cv, type InitializationOptions as cw, type CaptureConsent as cx, type StartClipRecordingOptions as cy, type ClipBlob as cz, type RundotGameCollectRecipeResult as d, type RoomGamePhase as d$, type AiContentBlock as d0, type AiImageContent as d1, type AiImageUrlContent as d2, type AiMessage as d3, type AiResponseFormat as d4, type AiTextContent as d5, type AiToolResultContent as d6, type AiToolUseContent as d7, type Asset as d8, type AudioGenEntry as d9, type InboundForKeyEntry as dA, type InboundMethodIds as dB, type InboundStorageApi as dC, type IsPlayerSubscribedRequest as dD, type JoinOrCreateRoomEnvelopeResponse as dE, type JoinRoomMatchCriteria as dF, type LaunchIntentKind as dG, type ListUserRoomsOptions as dH, type LoadEmbeddedAssetsRequest as dI, type MatchmakeOptions as dJ, MockAvatarApi as dK, type NotificationTriggerInput as dL, type OnNotificationCallback as dM, type OnRequestCallback as dN, type OnResponseCallback as dO, type PlatformCapabilities as dP, type ProposedMovePayload as dQ, type Protocol as dR, type PurchaseSubscriptionRequest as dS, type RCSAvailabilityReason as dT, type RCSOptInStatus as dU, ROOM_GAME_PHASES as dV, type RealtimeRoomSummary as dW, type RecipeInfo as dX, type ReleaseType as dY, type RoomEnvelopeResponse as dZ, type RoomEvents as d_, type AudioGenReport as da, CLIP_CONTENT_TYPE as db, CREDITS_EXHAUSTED_CODE as dc, type Category as dd, type ChatMessageData as de, type ClipAudioOptions as df, type ClipCameraOptions as dg, type ClipPipLayout as dh, type ClipPipPosition as di, type ConnectionState as dj, type CreditFreeDailyInfo as dk, type CreditPlan as dl, type CreditTopUpPack as dm, type CreditsBilledTo as dn, CreditsExhaustedError as dp, type CreditsExhaustedErrorInfo as dq, type CreditsPurchaseOutcome as dr, GAMEPAD_BUTTON_NAMES as ds, type GamepadAxes as dt, type GamepadButtonName as du, type GamepadButtonState as dv, type GamepadSource as dw, type GetSubscriptionsForTierRequest as dx, type HudInsets as dy, type IdentityChangeReason as dz, type RundotGameExecuteRecipeOptions as e, type RoomMessageEventType as e0, type RoomMessagePayload as e1, type RoomsEnvelopeResponse as e2, RpcInboundStorageApi as e3, RpcSharedAssetsApi as e4, type RpcTransport as e5, type RunSubscription as e6, type RundotGameRoomCustomMetadata as e7, type RundotGameRoomPayload as e8, type RundotGameRoomRules as e9, isCreditsExhaustedError as eA, mapCreditsExhaustion as eB, resolveCollectionItemPrice as eC, type RundotGameRoomRulesGameState as ea, SHARE_FILE_ALLOWED_MIME_TYPES as eb, SHARE_FILE_MAX_SIZE_BYTES as ec, type ScheduleRCSStatus as ed, type ServerPlayer as ee, type ServerRoom as ef, type ShareFileMimeType as eg, type ShopOrder as eh, type SimulationBatchOperationAssign as ei, type SimulationBatchOperationRemove as ej, type SimulationBatchOperationResult as ek, type SimulationPersonalState as el, type SimulationRoomActiveRecipe as em, type SimulationRoomState as en, type StorefrontCollection as eo, type StorefrontCollectionItem as ep, type SubPath as eq, type Tool as er, type ToolChoice as es, type ToolUse as et, type TimeIntervalTriggerInput as eu, type UgcReport as ev, type VideoGenEntry as ew, type VideoGenReport as ex, asCreditsExhaustedError as ey, createHost as ez, type RundotGameExecuteRecipeResult as f, type RundotGameExecuteScopedRecipeOptions as g, RundotGameRoom as h, type RundotGameSimulationConfig as i, type RundotGameSimulationEffect as j, type RundotGameSimulationRecipe as k, type RundotGameSimulationStateResponse as l, type SimulationEntityUpdate as m, type SimulationRunSummary as n, type SimulationSnapshotUpdate as o, type SimulationSubscribeOptions as p, type SimulationUpdateData as q, type SimulationUpdateType as r, type RpcRequest as s, type RpcResponse as t, type RpcNotification as u, RpcClient as v, type StorageApi as w, type NavigationStackInfo as x, type PushAppOptions as y, type NavigateToGameOptions as z };
4605
+ export { type EnvironmentInfo as $, type AnalyticsApi as A, type BatchRecipeRequirementsResult as B, type NotificationsApi as C, type ScheduleLocalNotification as D, type ScheduleNotificationOptions as E, type RCSAvailabilityStatus as F, type ScheduleRCSInput as G, type Host as H, type ScheduleRCSResult as I, type RequestRCSOptInInput as J, type RequestRCSOptInResult as K, type PopupsApi as L, type ShowToastOptions as M, type NavigationApi as N, type LikeDialogResult as O, type Profile as P, type QuitOptions as Q, type RundotGameAPI as R, type SimulationActiveRunsUpdate as S, type CommentsPanelResult as T, type LikeStateResult as U, type ShowInterstitialAdOptions as V, type ShowRewardedAdOptions as W, type ProfileApi as X, type DeviceApi as Y, type DeviceInfo as Z, type EnvironmentApi as _, type RecipeRequirementQuery as a, type ListRoomsOptions as a$, type SystemApi as a0, type SafeArea as a1, type AddToHomeScreenResult as a2, type CdnApi as a3, type FetchFromCdnOptions as a4, type AssetUrlResult as a5, type TimeApi as a6, type ServerTimeData as a7, type GetFutureTimeOptions as a8, type AiApi as a9, type SimulationAvailableItem as aA, type SimulationPowerPreview as aB, type SimulationSlotMutationResult as aC, type SimulationSlotContainer as aD, type SimulationAssignment as aE, type SimulationState as aF, type ExecuteRecipeOptions as aG, type ExecuteRecipeResponse as aH, type CollectRecipeResult as aI, type ResetStateOptions as aJ, type ResetStateResult as aK, type GetActiveRunsOptions as aL, type ExecuteScopedRecipeOptions as aM, type ExecuteScopedRecipeResult as aN, type GetAvailableRecipesOptions as aO, type GetAvailableRecipesResult as aP, type Recipe as aQ, type GetBatchRecipeRequirements as aR, type TriggerRecipeChainOptions as aS, type RoomDataUpdate as aT, type RoomMessageEvent as aU, type ProposedMoveEvent as aV, RundotGameTransport as aW, type RoomsApi as aX, type CreateRoomOptions as aY, type JoinOrCreateRoomOptions as aZ, type JoinOrCreateResult as a_, type AiChatCompletionRequest as aa, type AiChatCompletionData as ab, type AiChatCompletionStreamOptions as ac, type AiChatCompletionStreamChunk as ad, type HapticsApi as ae, HapticFeedbackStyle as af, type GamepadSnapshot as ag, type GamepadConnectionEvent as ah, type Subscription as ai, type GamepadApi as aj, type GamepadLatencyStats as ak, type FeaturesApi as al, type Experiment as am, type LifecycleApi as an, type SleepCallback as ao, type AwakeCallback as ap, type PauseCallback as aq, type ResumeCallback as ar, type QuitCallback as as, type BackButtonCallback as at, type IdentityChangedCallback as au, type IdentityChangedEvent as av, type SimulationApi as aw, type SimulationSlotValidationResult as ax, type SimulationBatchOperation as ay, type SimulationBatchOperationsResult as az, type RecipeRequirementResult as b, type AdminThreeDGenApi as b$, type UpdateRoomDataOptions as b0, type RoomMessageRequest as b1, type StartRoomGameOptions as b2, type ProposeMoveRequest as b3, type ProposeMoveResult as b4, type ValidateMoveVerdict as b5, type ValidateMoveResult as b6, type RoomSubscriptionOptions as b7, type LoggingApi as b8, type IapApi as b9, type CanShareFileResult as bA, type EntitlementApi as bB, type Entitlement as bC, type LedgerEntry as bD, type StatsApi as bE, type GrantInfo as bF, type CollectiblesApi as bG, type CollectibleCard as bH, type VipClaimResult as bI, type ShopApi as bJ, type StorefrontResponse as bK, type StorefrontItem as bL, type ShopPurchaseResponse as bM, type ShopOrderHistoryResponse as bN, type PromptLoginResult as bO, type AccessTier as bP, type AccessGateApi as bQ, type TextGenApi as bR, type UgcApi as bS, type MultiplayerApi as bT, type VideoApi as bU, type AppApi as bV, type AdminUgcApi as bW, type AdminImageGenApi as bX, type AdminVideoGenApi as bY, type AdminSpriteGenApi as bZ, type AdminAudioGenApi as b_, type SpendCurrencyOptions as ba, type SpendCurrencyResult as bb, type SubscriptionTier as bc, type RunSubscriptionsResponse as bd, type SubscriptionInterval as be, type PurchaseSubscriptionResponse as bf, type OpenStoreResult as bg, type LoadEmbeddedAssetsResponse as bh, type SharedAssetsApi as bi, type CreditsApi as bj, type CreditsBillingContext as bk, type CreditBalance as bl, type CreditSubscription as bm, type CreditPlansCatalog as bn, type OpenPaywallOptions as bo, type CreditsPurchaseResult as bp, type Unsubscribe as bq, type PreloaderApi as br, type SocialApi as bs, type ShareMetadata as bt, type ShareLinkResult as bu, type SocialQRCodeOptions as bv, type QRCodeResult as bw, type ShareClickData as bx, type ShareFileOptions as by, type ShareFileResult as bz, type RundotGameAvailableRecipe as c, type AdminVideoGenResolveAction as c$, type AppRole as c0, type ResolveLaunchIntentOptions as c1, type LaunchIntent as c2, type ReleaseNote as c3, type AdminUgcBrowseParams as c4, type AdminUgcBrowseResponse as c5, type AdminUgcListReportsParams as c6, type AdminUgcListReportsResponse as c7, type AdminUgcResolveAction as c8, type AdminGenBrowseParams as c9, type ClipsSupport as cA, type ClipPersistOptions as cB, type ClipResult as cC, type UgcEntry as cD, type CaptureConsentStatus as cE, AccessDeniedError as cF, type AdminGenApi as cG, type AdminImageGenBrowseParams as cH, type AdminImageGenBrowseResponse as cI, type AdminImageGenListReportsParams as cJ, type AdminImageGenListReportsResponse as cK, type AdminImageGenResolveAction as cL, type AdminSpriteGenBrowseParams as cM, type AdminSpriteGenBrowseResponse as cN, type AdminSpriteGenListReportsParams as cO, type AdminSpriteGenListReportsResponse as cP, type AdminSpriteGenResolveAction as cQ, type AdminThreeDGenBrowseParams as cR, type AdminThreeDGenBrowseResponse as cS, type AdminThreeDGenListReportsParams as cT, type AdminThreeDGenListReportsResponse as cU, type AdminThreeDGenResolveAction as cV, type AdminUgcEntry as cW, type AdminVideoGenBrowseParams as cX, type AdminVideoGenBrowseResponse as cY, type AdminVideoGenListReportsParams as cZ, type AdminVideoGenListReportsResponse as c_, type AdminGenBrowseResponse as ca, type ImageGenEntry as cb, type AdminGenListReportsParams as cc, type AdminGenListReportsResponse as cd, type ImageGenReport as ce, type AdminGenResolveAction as cf, type SpriteGenEntry as cg, type SpriteGenReport as ch, type ThreeDGenEntry as ci, type ThreeDGenReport as cj, type Avatar3dApi as ck, type AssetManifest as cl, type Avatar3dConfig as cm, type ShowEditorOptions as cn, type Avatar3dEdits as co, type AdsApi as cp, type RawEnvironmentInfo as cq, type SharedStorageHostApi as cr, type FilesApi as cs, type ClipsApi as ct, type AttributionApi as cu, type InitializationContext as cv, type InitializationOptions as cw, type CaptureConsent as cx, type StartClipRecordingOptions as cy, type ClipBlob as cz, type RundotGameCollectRecipeResult as d, type RoomGamePhase as d$, type AiContentBlock as d0, type AiImageContent as d1, type AiImageUrlContent as d2, type AiMessage as d3, type AiResponseFormat as d4, type AiTextContent as d5, type AiToolResultContent as d6, type AiToolUseContent as d7, type Asset as d8, type AudioGenEntry as d9, type InboundForKeyEntry as dA, type InboundMethodIds as dB, type InboundStorageApi as dC, type IsPlayerSubscribedRequest as dD, type JoinOrCreateRoomEnvelopeResponse as dE, type JoinRoomMatchCriteria as dF, type LaunchIntentKind as dG, type ListUserRoomsOptions as dH, type LoadEmbeddedAssetsRequest as dI, type MatchmakeOptions as dJ, MockAvatarApi as dK, type NotificationTriggerInput as dL, type OnNotificationCallback as dM, type OnRequestCallback as dN, type OnResponseCallback as dO, type PlatformCapabilities as dP, type ProposedMovePayload as dQ, type Protocol as dR, type PurchaseSubscriptionRequest as dS, type RCSAvailabilityReason as dT, type RCSOptInStatus as dU, ROOM_GAME_PHASES as dV, type RealtimeRoomSummary as dW, type RecipeInfo as dX, type ReleaseType as dY, type RoomEnvelopeResponse as dZ, type RoomEvents as d_, type AudioGenReport as da, CLIP_CONTENT_TYPE as db, CREDITS_EXHAUSTED_CODE as dc, type Category as dd, type ChatMessageData as de, type ClipAudioOptions as df, type ClipCameraOptions as dg, type ClipPipLayout as dh, type ClipPipPosition as di, type ConnectionState as dj, type CreditFreeDailyInfo as dk, type CreditPlan as dl, type CreditTopUpPack as dm, type CreditsBilledTo as dn, CreditsExhaustedError as dp, type CreditsExhaustedErrorInfo as dq, type CreditsPurchaseOutcome as dr, GAMEPAD_BUTTON_NAMES as ds, type GamepadAxes as dt, type GamepadButtonName as du, type GamepadButtonState as dv, type GamepadSource as dw, type GetSubscriptionsForTierRequest as dx, type HudInsets as dy, type IdentityChangeReason as dz, type RundotGameExecuteRecipeOptions as e, type RoomMessageEventType as e0, type RoomMessagePayload as e1, type RoomsEnvelopeResponse as e2, RpcInboundStorageApi as e3, RpcSharedAssetsApi as e4, type RpcTransport as e5, type RunSubscription as e6, type RundotGameRoomCustomMetadata as e7, type RundotGameRoomPayload as e8, type RundotGameRoomRules as e9, assertTierSupportsInterval as eA, createHost as eB, isCreditsExhaustedError as eC, mapCreditsExhaustion as eD, resolveCollectionItemPrice as eE, type RundotGameRoomRulesGameState as ea, SHARE_FILE_ALLOWED_MIME_TYPES as eb, SHARE_FILE_MAX_SIZE_BYTES as ec, type ScheduleRCSStatus as ed, type ServerPlayer as ee, type ServerRoom as ef, type ShareFileMimeType as eg, type ShopOrder as eh, type SimulationBatchOperationAssign as ei, type SimulationBatchOperationRemove as ej, type SimulationBatchOperationResult as ek, type SimulationPersonalState as el, type SimulationRoomActiveRecipe as em, type SimulationRoomState as en, type StorefrontCollection as eo, type StorefrontCollectionItem as ep, type SubPath as eq, TIER_SUPPORTED_INTERVALS as er, type Tool as es, type ToolChoice as et, type ToolUse as eu, type TimeIntervalTriggerInput as ev, type UgcReport as ew, type VideoGenEntry as ex, type VideoGenReport as ey, asCreditsExhaustedError as ez, type RundotGameExecuteRecipeResult as f, type RundotGameExecuteScopedRecipeOptions as g, RundotGameRoom as h, type RundotGameSimulationConfig as i, type RundotGameSimulationEffect as j, type RundotGameSimulationRecipe as k, type RundotGameSimulationStateResponse as l, type SimulationEntityUpdate as m, type SimulationRunSummary as n, type SimulationSnapshotUpdate as o, type SimulationSubscribeOptions as p, type SimulationUpdateData as q, type SimulationUpdateType as r, type RpcRequest as s, type RpcResponse as t, type RpcNotification as u, RpcClient as v, type StorageApi as w, type NavigationStackInfo as x, type PushAppOptions as y, type NavigateToGameOptions as z };
@@ -1,4 +1,4 @@
1
- import { mapCreditsExhaustion, generateId, createRpcAdminGenApi, createMockAdminGenApi, PlaygroundAppApi, warnRenamed, SHARE_FILE_ALLOWED_MIME_TYPES, SHARE_FILE_MAX_SIZE_BYTES, RpcAdsApi, RpcAnalyticsApi, RpcStorageApi, RpcInboundStorageApi, DualEmitStorageApi, RpcAvatarApi, RpcNavigationApi, RpcNotificationsApi, RpcPopupsApi, HostProfileApi, HostDeviceApi, HostEnvironmentApi, HostSystemApi, HostCdnApi, HostTimeApi, RpcHapticsApi, RpcGamepadApi, RpcFeaturesApi, RpcLifecycleApi, RpcRoomsApi, RpcLoggingApi, RpcCreditsApi, RpcPreloaderApi, ClipsApiImpl, RpcEntitlementApi, RpcStatsApi, RpcCollectiblesApi, RpcShopApi, RpcVideoApi, RpcAttributionApi, RpcSharedAssetsApi, initializeRoomsApi, RpcAccessGateApi, WsMultiplayerApi, applyAccessGates, wireIdentityReplica, sanitizeProfile, utf8ByteLength, MockAdsApi, MockLifecycleApi, MockAnalyticsApi, createMockStorageApi, MockAvatarApi, MockNavigationApi, MockNotificationsApi, MockPopupsApi, MockProfileApi, MockDeviceApi, MockEnvironmentApi, MockSystemApi, MockCdnApi, MockTimeApi, MockHapticsApi, MockGamepadApi, MockFeaturesApi, MockLoggingApi, MockIapApi, MockCreditsApi, MockEntitlementApi, MockStatsApi, MockCollectiblesApi, MockShopApi, MockVideoApi, MockAppApi, MockAttributionApi, MockPreloaderApi, MockSharedAssetsApi, MockAccessGateApi, MockMultiplayerApi, asCreditsExhaustedError } from './chunk-V4I4PKDK.js';
1
+ import { mapCreditsExhaustion, assertTierSupportsInterval, generateId, createRpcAdminGenApi, createMockAdminGenApi, PlaygroundAppApi, warnRenamed, SHARE_FILE_ALLOWED_MIME_TYPES, SHARE_FILE_MAX_SIZE_BYTES, RpcAdsApi, RpcAnalyticsApi, RpcStorageApi, RpcInboundStorageApi, DualEmitStorageApi, RpcAvatarApi, RpcNavigationApi, RpcNotificationsApi, RpcPopupsApi, HostProfileApi, HostDeviceApi, HostEnvironmentApi, HostSystemApi, HostCdnApi, HostTimeApi, RpcHapticsApi, RpcGamepadApi, RpcFeaturesApi, RpcLifecycleApi, RpcRoomsApi, RpcLoggingApi, RpcCreditsApi, RpcPreloaderApi, ClipsApiImpl, RpcEntitlementApi, RpcStatsApi, RpcCollectiblesApi, RpcShopApi, RpcVideoApi, RpcAttributionApi, RpcSharedAssetsApi, initializeRoomsApi, RpcAccessGateApi, WsMultiplayerApi, applyAccessGates, wireIdentityReplica, sanitizeProfile, utf8ByteLength, MockAdsApi, MockLifecycleApi, MockAnalyticsApi, createMockStorageApi, MockAvatarApi, MockNavigationApi, MockNotificationsApi, MockPopupsApi, MockProfileApi, MockDeviceApi, MockEnvironmentApi, MockSystemApi, MockCdnApi, MockTimeApi, MockHapticsApi, MockGamepadApi, MockFeaturesApi, MockLoggingApi, MockIapApi, MockCreditsApi, MockEntitlementApi, MockStatsApi, MockCollectiblesApi, MockShopApi, MockVideoApi, MockAppApi, MockAttributionApi, MockPreloaderApi, MockSharedAssetsApi, MockAccessGateApi, MockMultiplayerApi, asCreditsExhaustedError } from './chunk-HG6QN3Q3.js';
2
2
  import { RundotApiError } from './chunk-HVVCNDSV.js';
3
3
 
4
4
  // src/ai/RpcAiApi.ts
@@ -313,11 +313,14 @@ var RpcIapApi = class {
313
313
  }
314
314
  /**
315
315
  * triggers the checkout for a given subscription, identified by tier and interval.
316
+ * Rejects with a `RundotApiError` (`UNSUPPORTED_SUBSCRIPTION_INTERVAL`) before
317
+ * any checkout when the tier does not offer that interval — LITE is weekly-only.
316
318
  * @example
317
319
  * // will trigger the checkout for the weekly CORE subscription
318
320
  * await purchaseSubscription('CORE', 'weekly')
319
321
  */
320
322
  async purchaseSubscription(tier, interval) {
323
+ assertTierSupportsInterval(tier, interval);
321
324
  return await this.rpcClient.callT("H5_IAP_PURCHASE_SUBSCRIPTION" /* H5_IAP_PURCHASE_SUBSCRIPTION */, { tier, interval }, -1);
322
325
  }
323
326
  /**
@@ -1023,7 +1026,7 @@ function initializeSimulation(rundotGameApi, host) {
1023
1026
  }
1024
1027
 
1025
1028
  // src/version.ts
1026
- var SDK_VERSION = "5.23.0-beta.2";
1029
+ var SDK_VERSION = "5.23.0-beta.4";
1027
1030
 
1028
1031
  // src/leaderboard/utils.ts
1029
1032
  var HASH_ALGORITHM_WEB_CRYPTO = "SHA-256";
@@ -4069,5 +4072,5 @@ function initializeClips(rundotGameApi, host) {
4069
4072
  }
4070
4073
 
4071
4074
  export { HASH_ALGORITHM_NODE, HASH_ALGORITHM_WEB_CRYPTO, MockAdminImageGenApi, MockAdminSpriteGenApi, MockAdminThreeDGenApi, MockAiApi, MockCaptureConsent, MockClipsApi, MockImageGenApi, MockLeaderboardApi, MockSocialApi, MockSpriteGenApi, RemoteHost, RpcAdminImageGenApi, RpcAdminSpriteGenApi, RpcAdminThreeDGenApi, RpcAdminUgcApi, RpcAiApi, RpcAppApi, RpcCaptureConsent, RpcClient, RpcIapApi, RpcImageGenApi, RpcLeaderboardApi, RpcSimulationApi, RpcSocialApi, RpcSpriteGenApi, SDK_VERSION, SandboxAppApi, buildInitializationContext, computeScoreHash, createHost, initializeAi, initializeApp, initializeAudioGen, initializeClips, initializeFiles, initializeIap, initializeImageGen, initializeLeaderboard, initializeSimulation, initializeSocial, initializeSpriteGen, initializeTextGen, initializeThreeDGen, initializeUgc, initializeVideoGen };
4072
- //# sourceMappingURL=chunk-7VLTROLB.js.map
4073
- //# sourceMappingURL=chunk-7VLTROLB.js.map
4075
+ //# sourceMappingURL=chunk-4VFWSW5V.js.map
4076
+ //# sourceMappingURL=chunk-4VFWSW5V.js.map