@series-inc/venus-sdk 3.2.1-beta.0 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -125,13 +125,6 @@ interface NotificationsApi {
125
125
  setLocalNotificationsEnabled(enabled: boolean): Promise<boolean>;
126
126
  }
127
127
 
128
- interface ShowConfirmOptions {
129
- confirmText?: string;
130
- cancelText?: string;
131
- }
132
- interface ShowAlertOptions {
133
- buttonText?: string;
134
- }
135
128
  interface ShowToastOptions {
136
129
  duration?: number;
137
130
  variant?: 'success' | 'error' | 'warning' | 'info';
@@ -140,21 +133,7 @@ interface ShowToastOptions {
140
133
  };
141
134
  }
142
135
  interface PopupsApi {
143
- showAlert(title: string, message: string, options?: ShowAlertOptions): Promise<void>;
144
- showConfirm(title: string, message: string, options?: ShowConfirmOptions): Promise<boolean>;
145
136
  showToast(message: string, options?: ShowToastOptions): Promise<boolean>;
146
- showActionSheet(items: ActionSheetItem[], options?: ShowActionSheetOptions): Promise<string | number | null>;
147
- }
148
- interface ActionSheetItem {
149
- id?: string;
150
- label: string;
151
- icon?: string;
152
- }
153
- interface ShowActionSheetOptions {
154
- title?: string;
155
- message?: string;
156
- cancelButtonText?: string;
157
- disableCancel?: boolean;
158
137
  }
159
138
 
160
139
  interface ProfileApi {
@@ -1357,11 +1336,6 @@ interface VenusExecuteRecipeResult {
1357
1336
  amountFulfilled?: number;
1358
1337
  partialSuccess?: boolean;
1359
1338
  }
1360
- interface ActionSheetOption {
1361
- label: string;
1362
- icon?: string;
1363
- id?: string;
1364
- }
1365
1339
  interface Profile {
1366
1340
  id: string;
1367
1341
  username: string;
@@ -1428,44 +1402,6 @@ interface VenusAPI {
1428
1402
  getLaunchParams(): Record<string, string>;
1429
1403
  getLocale(): string;
1430
1404
  getLanguageCode(): string;
1431
- /**
1432
- * @deprecated Please use the popups API. (e.g, VenusAPI.popups)
1433
- */
1434
- showToast(message: string | {
1435
- message: string;
1436
- duration?: number;
1437
- variant?: string;
1438
- action?: {
1439
- label: string;
1440
- };
1441
- }): Promise<boolean>;
1442
- /**
1443
- * @deprecated Please use the popups API. (e.g, VenusAPI.popups)
1444
- */
1445
- showAlert(options: {
1446
- title: string;
1447
- message: string;
1448
- buttonText?: string;
1449
- }): Promise<void>;
1450
- /**
1451
- * @deprecated Please use the popups API. (e.g, VenusAPI.popups)
1452
- */
1453
- showConfirm(options: {
1454
- title: string;
1455
- message: string;
1456
- confirmText?: string;
1457
- cancelText?: string;
1458
- }): Promise<boolean>;
1459
- /**
1460
- * @deprecated Please use the popups API. (e.g, VenusAPI.popups)
1461
- */
1462
- showActionSheet(options: {
1463
- title: string;
1464
- message?: string;
1465
- options: ActionSheetOption[];
1466
- cancelButtonText?: string;
1467
- disableCancel?: boolean;
1468
- }): Promise<string | number | null>;
1469
1405
  triggerHapticAsync(style: HapticFeedbackStyle): Promise<void>;
1470
1406
  deviceCache: {
1471
1407
  setItem(key: string, value: string): Promise<void>;
@@ -1612,4 +1548,4 @@ interface AdsApi {
1612
1548
  showInterstitialAd(options?: ShowInterstitialAdOptions): Promise<boolean>;
1613
1549
  }
1614
1550
 
1615
- export { type SubPath as $, type ActionSheetOption as A, type BatchRecipeRequirementsResult as B, type ScheduleLocalNotification as C, type ScheduleNotificationOptions as D, type PopupsApi as E, type ActionSheetItem as F, type ShowActionSheetOptions as G, type Host as H, type ShowAlertOptions as I, type ShowConfirmOptions as J, type ShowToastOptions as K, type ShowInterstitialAdOptions as L, type ShowRewardedAdOptions as M, type NavigationApi as N, type ProfileApi as O, type Profile as P, type QuitOptions as Q, type RecipeRequirementResult as R, type SimulationRunSummary as S, type DeviceApi as T, type DeviceInfo as U, type VenusAPI as V, type EnvironmentApi as W, type EnvironmentInfo as X, type SystemApi as Y, type SafeArea as Z, type CdnApi as _, type VenusSimulationStateResponse as a, type SubmitScoreParams as a$, type FetchBlobOptions as a0, type TimeApi as a1, type ServerTimeData as a2, type GetFutureTimeOptions as a3, type AiApi as a4, type AiChatCompletionRequest as a5, type AiChatCompletionData as a6, type HapticsApi as a7, HapticFeedbackStyle as a8, type FeaturesApi as a9, type Recipe as aA, type GetBatchRecipeRequirements as aB, type TriggerRecipeChainOptions as aC, type RoomDataUpdate as aD, type RoomMessageEvent as aE, type ProposedMoveEvent as aF, VenusTransport as aG, type RoomsApi as aH, type CreateRoomOptions as aI, type JoinOrCreateRoomOptions as aJ, type JoinOrCreateResult as aK, type ListRoomsOptions as aL, type UpdateRoomDataOptions as aM, type RoomMessageRequest as aN, type StartRoomGameOptions as aO, type ProposeMoveRequest as aP, type ProposeMoveResult as aQ, type ValidateMoveVerdict as aR, type ValidateMoveResult as aS, type RoomSubscriptionOptions as aT, type LoggingApi as aU, type IapApi as aV, type SpendCurrencyOptions as aW, type LoadEmbeddedAssetsResponse as aX, type SharedAssetsApi as aY, type LeaderboardApi as aZ, type ScoreToken as a_, type Experiment as aa, type LifecycleApi as ab, type SleepCallback as ac, type Subscription as ad, type AwakeCallback as ae, type PauseCallback as af, type ResumeCallback as ag, type QuitCallback as ah, type SimulationApi as ai, type SimulationSlotValidationResult as aj, type SimulationBatchOperation as ak, type SimulationBatchOperationsResult as al, type SimulationAvailableItem as am, type SimulationPowerPreview as an, type SimulationSlotMutationResult as ao, type SimulationSlotContainer as ap, type SimulationAssignment as aq, type SimulationState as ar, type ExecuteRecipeOptions as as, type ExecuteRecipeResponse as at, type CollectRecipeResult as au, type GetActiveRunsOptions as av, type ExecuteScopedRecipeOptions as aw, type ExecuteScopedRecipeResult as ax, type GetAvailableRecipesOptions as ay, type GetAvailableRecipesResult as az, type SimulationUpdateType as b, type SubmitScoreResult as b0, type GetPagedScoresOptions as b1, type PagedScoresResponse as b2, type PlayerRankOptions as b3, type PlayerRankResult as b4, type GetPodiumScoresOptions as b5, type PodiumScoresResponse as b6, type PreloaderApi as b7, type SocialApi as b8, type ShareMetadata as b9, type SimulationRoomActiveRecipe as bA, type SimulationRoomState as bB, type SimulationBatchOperationAssign as bC, type SimulationBatchOperationRemove as bD, type SimulationBatchOperationResult as bE, RpcSharedAssetsApi as bF, type LoadEmbeddedAssetsRequest as bG, type LeaderboardModeConfig as bH, type LeaderboardPeriodType as bI, type LeaderboardPeriodConfig as bJ, type LeaderboardAntiCheatConfig as bK, type LeaderboardDisplaySettings as bL, type LeaderboardConfig as bM, type LeaderboardEntry as bN, type PodiumScoresContext as bO, type HudInsets as bP, createHost as bQ, type ShareLinkResult as ba, type SocialQRCodeOptions as bb, type QRCodeResult as bc, type Avatar3dApi as bd, type AssetManifest as be, type Avatar3dConfig as bf, type ShowEditorOptions as bg, type Avatar3dEdits as bh, type AdsApi as bi, type InitializationOptions as bj, type InitializationContext as bk, type AiMessage as bl, type Asset as bm, type Category as bn, MockAvatarApi as bo, type TimeIntervalTriggerInput as bp, type NotificationTriggerInput as bq, type OnRequestCallback as br, type OnResponseCallback as bs, type OnNotificationCallback as bt, type RpcTransport as bu, type JoinRoomMatchCriteria as bv, type RoomMessageEventType as bw, type VenusRoomPayload as bx, type RecipeInfo as by, type SimulationPersonalState as bz, type SimulationEntityUpdate as c, type SimulationActiveRunsUpdate as d, type SimulationSnapshotUpdate as e, type SimulationUpdateData as f, type SimulationSubscribeOptions as g, type VenusSimulationEffect as h, type VenusSimulationRecipe as i, type VenusSimulationConfig as j, type RecipeRequirementQuery as k, type VenusExecuteRecipeOptions as l, type VenusExecuteScopedRecipeOptions as m, type VenusAvailableRecipe as n, type VenusCollectRecipeResult as o, type VenusExecuteRecipeResult as p, VenusRoom as q, type AnalyticsApi 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 NotificationsApi as z };
1551
+ export { type AiApi as $, type AnalyticsApi as A, type BatchRecipeRequirementsResult as B, type ScheduleNotificationOptions as C, type PopupsApi as D, type ShowToastOptions as E, type ShowInterstitialAdOptions as F, type ShowRewardedAdOptions as G, type Host as H, type ProfileApi as I, type DeviceApi as J, type DeviceInfo as K, type EnvironmentApi as L, type EnvironmentInfo as M, type NavigationApi as N, type SystemApi as O, type Profile as P, type QuitOptions as Q, type RecipeRequirementResult as R, type SimulationRunSummary as S, type SafeArea as T, type CdnApi as U, type VenusAPI as V, type SubPath as W, type FetchBlobOptions as X, type TimeApi as Y, type ServerTimeData as Z, type GetFutureTimeOptions as _, type VenusSimulationStateResponse as a, type PlayerRankResult as a$, type AiChatCompletionRequest as a0, type AiChatCompletionData as a1, type HapticsApi as a2, HapticFeedbackStyle as a3, type FeaturesApi as a4, type Experiment as a5, type LifecycleApi as a6, type SleepCallback as a7, type Subscription as a8, type AwakeCallback as a9, type ProposedMoveEvent as aA, VenusTransport as aB, type RoomsApi as aC, type CreateRoomOptions as aD, type JoinOrCreateRoomOptions as aE, type JoinOrCreateResult as aF, type ListRoomsOptions as aG, type UpdateRoomDataOptions as aH, type RoomMessageRequest as aI, type StartRoomGameOptions as aJ, type ProposeMoveRequest as aK, type ProposeMoveResult as aL, type ValidateMoveVerdict as aM, type ValidateMoveResult as aN, type RoomSubscriptionOptions as aO, type LoggingApi as aP, type IapApi as aQ, type SpendCurrencyOptions as aR, type LoadEmbeddedAssetsResponse as aS, type SharedAssetsApi as aT, type LeaderboardApi as aU, type ScoreToken as aV, type SubmitScoreParams as aW, type SubmitScoreResult as aX, type GetPagedScoresOptions as aY, type PagedScoresResponse as aZ, type PlayerRankOptions as a_, type PauseCallback as aa, type ResumeCallback as ab, type QuitCallback as ac, type SimulationApi as ad, type SimulationSlotValidationResult as ae, type SimulationBatchOperation as af, type SimulationBatchOperationsResult as ag, type SimulationAvailableItem as ah, type SimulationPowerPreview as ai, type SimulationSlotMutationResult as aj, type SimulationSlotContainer as ak, type SimulationAssignment as al, type SimulationState as am, type ExecuteRecipeOptions as an, type ExecuteRecipeResponse as ao, type CollectRecipeResult as ap, type GetActiveRunsOptions as aq, type ExecuteScopedRecipeOptions as ar, type ExecuteScopedRecipeResult as as, type GetAvailableRecipesOptions as at, type GetAvailableRecipesResult as au, type Recipe as av, type GetBatchRecipeRequirements as aw, type TriggerRecipeChainOptions as ax, type RoomDataUpdate as ay, type RoomMessageEvent as az, type SimulationUpdateType as b, type GetPodiumScoresOptions as b0, type PodiumScoresResponse as b1, type PreloaderApi as b2, type SocialApi as b3, type ShareMetadata as b4, type ShareLinkResult as b5, type SocialQRCodeOptions as b6, type QRCodeResult as b7, type Avatar3dApi as b8, type AssetManifest as b9, RpcSharedAssetsApi as bA, type LoadEmbeddedAssetsRequest as bB, type LeaderboardModeConfig as bC, type LeaderboardPeriodType as bD, type LeaderboardPeriodConfig as bE, type LeaderboardAntiCheatConfig as bF, type LeaderboardDisplaySettings as bG, type LeaderboardConfig as bH, type LeaderboardEntry as bI, type PodiumScoresContext as bJ, type HudInsets as bK, createHost as bL, type Avatar3dConfig as ba, type ShowEditorOptions as bb, type Avatar3dEdits as bc, type AdsApi as bd, type InitializationOptions as be, type InitializationContext as bf, type AiMessage as bg, type Asset as bh, type Category as bi, MockAvatarApi as bj, type TimeIntervalTriggerInput as bk, type NotificationTriggerInput as bl, type OnRequestCallback as bm, type OnResponseCallback as bn, type OnNotificationCallback as bo, type RpcTransport as bp, type JoinRoomMatchCriteria as bq, type RoomMessageEventType as br, type VenusRoomPayload as bs, type RecipeInfo as bt, type SimulationPersonalState as bu, type SimulationRoomActiveRecipe as bv, type SimulationRoomState as bw, type SimulationBatchOperationAssign as bx, type SimulationBatchOperationRemove as by, type SimulationBatchOperationResult as bz, type SimulationEntityUpdate as c, type SimulationActiveRunsUpdate as d, type SimulationSnapshotUpdate as e, type SimulationUpdateData as f, type SimulationSubscribeOptions as g, type VenusSimulationEffect as h, type VenusSimulationRecipe as i, type VenusSimulationConfig as j, type RecipeRequirementQuery as k, type VenusExecuteRecipeOptions as l, type VenusExecuteScopedRecipeOptions as m, type VenusAvailableRecipe as n, type VenusCollectRecipeResult as o, type VenusExecuteRecipeResult as p, VenusRoom as q, type RpcRequest as r, type RpcResponse as s, type RpcNotification as t, RpcClient as u, type StorageApi as v, type NavigationStackInfo as w, type PushAppOptions as x, type NotificationsApi as y, type ScheduleLocalNotification as z };
@@ -125,13 +125,6 @@ interface NotificationsApi {
125
125
  setLocalNotificationsEnabled(enabled: boolean): Promise<boolean>;
126
126
  }
127
127
 
128
- interface ShowConfirmOptions {
129
- confirmText?: string;
130
- cancelText?: string;
131
- }
132
- interface ShowAlertOptions {
133
- buttonText?: string;
134
- }
135
128
  interface ShowToastOptions {
136
129
  duration?: number;
137
130
  variant?: 'success' | 'error' | 'warning' | 'info';
@@ -140,21 +133,7 @@ interface ShowToastOptions {
140
133
  };
141
134
  }
142
135
  interface PopupsApi {
143
- showAlert(title: string, message: string, options?: ShowAlertOptions): Promise<void>;
144
- showConfirm(title: string, message: string, options?: ShowConfirmOptions): Promise<boolean>;
145
136
  showToast(message: string, options?: ShowToastOptions): Promise<boolean>;
146
- showActionSheet(items: ActionSheetItem[], options?: ShowActionSheetOptions): Promise<string | number | null>;
147
- }
148
- interface ActionSheetItem {
149
- id?: string;
150
- label: string;
151
- icon?: string;
152
- }
153
- interface ShowActionSheetOptions {
154
- title?: string;
155
- message?: string;
156
- cancelButtonText?: string;
157
- disableCancel?: boolean;
158
137
  }
159
138
 
160
139
  interface ProfileApi {
@@ -1357,11 +1336,6 @@ interface VenusExecuteRecipeResult {
1357
1336
  amountFulfilled?: number;
1358
1337
  partialSuccess?: boolean;
1359
1338
  }
1360
- interface ActionSheetOption {
1361
- label: string;
1362
- icon?: string;
1363
- id?: string;
1364
- }
1365
1339
  interface Profile {
1366
1340
  id: string;
1367
1341
  username: string;
@@ -1428,44 +1402,6 @@ interface VenusAPI {
1428
1402
  getLaunchParams(): Record<string, string>;
1429
1403
  getLocale(): string;
1430
1404
  getLanguageCode(): string;
1431
- /**
1432
- * @deprecated Please use the popups API. (e.g, VenusAPI.popups)
1433
- */
1434
- showToast(message: string | {
1435
- message: string;
1436
- duration?: number;
1437
- variant?: string;
1438
- action?: {
1439
- label: string;
1440
- };
1441
- }): Promise<boolean>;
1442
- /**
1443
- * @deprecated Please use the popups API. (e.g, VenusAPI.popups)
1444
- */
1445
- showAlert(options: {
1446
- title: string;
1447
- message: string;
1448
- buttonText?: string;
1449
- }): Promise<void>;
1450
- /**
1451
- * @deprecated Please use the popups API. (e.g, VenusAPI.popups)
1452
- */
1453
- showConfirm(options: {
1454
- title: string;
1455
- message: string;
1456
- confirmText?: string;
1457
- cancelText?: string;
1458
- }): Promise<boolean>;
1459
- /**
1460
- * @deprecated Please use the popups API. (e.g, VenusAPI.popups)
1461
- */
1462
- showActionSheet(options: {
1463
- title: string;
1464
- message?: string;
1465
- options: ActionSheetOption[];
1466
- cancelButtonText?: string;
1467
- disableCancel?: boolean;
1468
- }): Promise<string | number | null>;
1469
1405
  triggerHapticAsync(style: HapticFeedbackStyle): Promise<void>;
1470
1406
  deviceCache: {
1471
1407
  setItem(key: string, value: string): Promise<void>;
@@ -1612,4 +1548,4 @@ interface AdsApi {
1612
1548
  showInterstitialAd(options?: ShowInterstitialAdOptions): Promise<boolean>;
1613
1549
  }
1614
1550
 
1615
- export { type SubPath as $, type ActionSheetOption as A, type BatchRecipeRequirementsResult as B, type ScheduleLocalNotification as C, type ScheduleNotificationOptions as D, type PopupsApi as E, type ActionSheetItem as F, type ShowActionSheetOptions as G, type Host as H, type ShowAlertOptions as I, type ShowConfirmOptions as J, type ShowToastOptions as K, type ShowInterstitialAdOptions as L, type ShowRewardedAdOptions as M, type NavigationApi as N, type ProfileApi as O, type Profile as P, type QuitOptions as Q, type RecipeRequirementResult as R, type SimulationRunSummary as S, type DeviceApi as T, type DeviceInfo as U, type VenusAPI as V, type EnvironmentApi as W, type EnvironmentInfo as X, type SystemApi as Y, type SafeArea as Z, type CdnApi as _, type VenusSimulationStateResponse as a, type SubmitScoreParams as a$, type FetchBlobOptions as a0, type TimeApi as a1, type ServerTimeData as a2, type GetFutureTimeOptions as a3, type AiApi as a4, type AiChatCompletionRequest as a5, type AiChatCompletionData as a6, type HapticsApi as a7, HapticFeedbackStyle as a8, type FeaturesApi as a9, type Recipe as aA, type GetBatchRecipeRequirements as aB, type TriggerRecipeChainOptions as aC, type RoomDataUpdate as aD, type RoomMessageEvent as aE, type ProposedMoveEvent as aF, VenusTransport as aG, type RoomsApi as aH, type CreateRoomOptions as aI, type JoinOrCreateRoomOptions as aJ, type JoinOrCreateResult as aK, type ListRoomsOptions as aL, type UpdateRoomDataOptions as aM, type RoomMessageRequest as aN, type StartRoomGameOptions as aO, type ProposeMoveRequest as aP, type ProposeMoveResult as aQ, type ValidateMoveVerdict as aR, type ValidateMoveResult as aS, type RoomSubscriptionOptions as aT, type LoggingApi as aU, type IapApi as aV, type SpendCurrencyOptions as aW, type LoadEmbeddedAssetsResponse as aX, type SharedAssetsApi as aY, type LeaderboardApi as aZ, type ScoreToken as a_, type Experiment as aa, type LifecycleApi as ab, type SleepCallback as ac, type Subscription as ad, type AwakeCallback as ae, type PauseCallback as af, type ResumeCallback as ag, type QuitCallback as ah, type SimulationApi as ai, type SimulationSlotValidationResult as aj, type SimulationBatchOperation as ak, type SimulationBatchOperationsResult as al, type SimulationAvailableItem as am, type SimulationPowerPreview as an, type SimulationSlotMutationResult as ao, type SimulationSlotContainer as ap, type SimulationAssignment as aq, type SimulationState as ar, type ExecuteRecipeOptions as as, type ExecuteRecipeResponse as at, type CollectRecipeResult as au, type GetActiveRunsOptions as av, type ExecuteScopedRecipeOptions as aw, type ExecuteScopedRecipeResult as ax, type GetAvailableRecipesOptions as ay, type GetAvailableRecipesResult as az, type SimulationUpdateType as b, type SubmitScoreResult as b0, type GetPagedScoresOptions as b1, type PagedScoresResponse as b2, type PlayerRankOptions as b3, type PlayerRankResult as b4, type GetPodiumScoresOptions as b5, type PodiumScoresResponse as b6, type PreloaderApi as b7, type SocialApi as b8, type ShareMetadata as b9, type SimulationRoomActiveRecipe as bA, type SimulationRoomState as bB, type SimulationBatchOperationAssign as bC, type SimulationBatchOperationRemove as bD, type SimulationBatchOperationResult as bE, RpcSharedAssetsApi as bF, type LoadEmbeddedAssetsRequest as bG, type LeaderboardModeConfig as bH, type LeaderboardPeriodType as bI, type LeaderboardPeriodConfig as bJ, type LeaderboardAntiCheatConfig as bK, type LeaderboardDisplaySettings as bL, type LeaderboardConfig as bM, type LeaderboardEntry as bN, type PodiumScoresContext as bO, type HudInsets as bP, createHost as bQ, type ShareLinkResult as ba, type SocialQRCodeOptions as bb, type QRCodeResult as bc, type Avatar3dApi as bd, type AssetManifest as be, type Avatar3dConfig as bf, type ShowEditorOptions as bg, type Avatar3dEdits as bh, type AdsApi as bi, type InitializationOptions as bj, type InitializationContext as bk, type AiMessage as bl, type Asset as bm, type Category as bn, MockAvatarApi as bo, type TimeIntervalTriggerInput as bp, type NotificationTriggerInput as bq, type OnRequestCallback as br, type OnResponseCallback as bs, type OnNotificationCallback as bt, type RpcTransport as bu, type JoinRoomMatchCriteria as bv, type RoomMessageEventType as bw, type VenusRoomPayload as bx, type RecipeInfo as by, type SimulationPersonalState as bz, type SimulationEntityUpdate as c, type SimulationActiveRunsUpdate as d, type SimulationSnapshotUpdate as e, type SimulationUpdateData as f, type SimulationSubscribeOptions as g, type VenusSimulationEffect as h, type VenusSimulationRecipe as i, type VenusSimulationConfig as j, type RecipeRequirementQuery as k, type VenusExecuteRecipeOptions as l, type VenusExecuteScopedRecipeOptions as m, type VenusAvailableRecipe as n, type VenusCollectRecipeResult as o, type VenusExecuteRecipeResult as p, VenusRoom as q, type AnalyticsApi 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 NotificationsApi as z };
1551
+ export { type AiApi as $, type AnalyticsApi as A, type BatchRecipeRequirementsResult as B, type ScheduleNotificationOptions as C, type PopupsApi as D, type ShowToastOptions as E, type ShowInterstitialAdOptions as F, type ShowRewardedAdOptions as G, type Host as H, type ProfileApi as I, type DeviceApi as J, type DeviceInfo as K, type EnvironmentApi as L, type EnvironmentInfo as M, type NavigationApi as N, type SystemApi as O, type Profile as P, type QuitOptions as Q, type RecipeRequirementResult as R, type SimulationRunSummary as S, type SafeArea as T, type CdnApi as U, type VenusAPI as V, type SubPath as W, type FetchBlobOptions as X, type TimeApi as Y, type ServerTimeData as Z, type GetFutureTimeOptions as _, type VenusSimulationStateResponse as a, type PlayerRankResult as a$, type AiChatCompletionRequest as a0, type AiChatCompletionData as a1, type HapticsApi as a2, HapticFeedbackStyle as a3, type FeaturesApi as a4, type Experiment as a5, type LifecycleApi as a6, type SleepCallback as a7, type Subscription as a8, type AwakeCallback as a9, type ProposedMoveEvent as aA, VenusTransport as aB, type RoomsApi as aC, type CreateRoomOptions as aD, type JoinOrCreateRoomOptions as aE, type JoinOrCreateResult as aF, type ListRoomsOptions as aG, type UpdateRoomDataOptions as aH, type RoomMessageRequest as aI, type StartRoomGameOptions as aJ, type ProposeMoveRequest as aK, type ProposeMoveResult as aL, type ValidateMoveVerdict as aM, type ValidateMoveResult as aN, type RoomSubscriptionOptions as aO, type LoggingApi as aP, type IapApi as aQ, type SpendCurrencyOptions as aR, type LoadEmbeddedAssetsResponse as aS, type SharedAssetsApi as aT, type LeaderboardApi as aU, type ScoreToken as aV, type SubmitScoreParams as aW, type SubmitScoreResult as aX, type GetPagedScoresOptions as aY, type PagedScoresResponse as aZ, type PlayerRankOptions as a_, type PauseCallback as aa, type ResumeCallback as ab, type QuitCallback as ac, type SimulationApi as ad, type SimulationSlotValidationResult as ae, type SimulationBatchOperation as af, type SimulationBatchOperationsResult as ag, type SimulationAvailableItem as ah, type SimulationPowerPreview as ai, type SimulationSlotMutationResult as aj, type SimulationSlotContainer as ak, type SimulationAssignment as al, type SimulationState as am, type ExecuteRecipeOptions as an, type ExecuteRecipeResponse as ao, type CollectRecipeResult as ap, type GetActiveRunsOptions as aq, type ExecuteScopedRecipeOptions as ar, type ExecuteScopedRecipeResult as as, type GetAvailableRecipesOptions as at, type GetAvailableRecipesResult as au, type Recipe as av, type GetBatchRecipeRequirements as aw, type TriggerRecipeChainOptions as ax, type RoomDataUpdate as ay, type RoomMessageEvent as az, type SimulationUpdateType as b, type GetPodiumScoresOptions as b0, type PodiumScoresResponse as b1, type PreloaderApi as b2, type SocialApi as b3, type ShareMetadata as b4, type ShareLinkResult as b5, type SocialQRCodeOptions as b6, type QRCodeResult as b7, type Avatar3dApi as b8, type AssetManifest as b9, RpcSharedAssetsApi as bA, type LoadEmbeddedAssetsRequest as bB, type LeaderboardModeConfig as bC, type LeaderboardPeriodType as bD, type LeaderboardPeriodConfig as bE, type LeaderboardAntiCheatConfig as bF, type LeaderboardDisplaySettings as bG, type LeaderboardConfig as bH, type LeaderboardEntry as bI, type PodiumScoresContext as bJ, type HudInsets as bK, createHost as bL, type Avatar3dConfig as ba, type ShowEditorOptions as bb, type Avatar3dEdits as bc, type AdsApi as bd, type InitializationOptions as be, type InitializationContext as bf, type AiMessage as bg, type Asset as bh, type Category as bi, MockAvatarApi as bj, type TimeIntervalTriggerInput as bk, type NotificationTriggerInput as bl, type OnRequestCallback as bm, type OnResponseCallback as bn, type OnNotificationCallback as bo, type RpcTransport as bp, type JoinRoomMatchCriteria as bq, type RoomMessageEventType as br, type VenusRoomPayload as bs, type RecipeInfo as bt, type SimulationPersonalState as bu, type SimulationRoomActiveRecipe as bv, type SimulationRoomState as bw, type SimulationBatchOperationAssign as bx, type SimulationBatchOperationRemove as by, type SimulationBatchOperationResult as bz, type SimulationEntityUpdate as c, type SimulationActiveRunsUpdate as d, type SimulationSnapshotUpdate as e, type SimulationUpdateData as f, type SimulationSubscribeOptions as g, type VenusSimulationEffect as h, type VenusSimulationRecipe as i, type VenusSimulationConfig as j, type RecipeRequirementQuery as k, type VenusExecuteRecipeOptions as l, type VenusExecuteScopedRecipeOptions as m, type VenusAvailableRecipe as n, type VenusCollectRecipeResult as o, type VenusExecuteRecipeResult as p, VenusRoom as q, type RpcRequest as r, type RpcResponse as s, type RpcNotification as t, RpcClient as u, type StorageApi as v, type NavigationStackInfo as w, type PushAppOptions as x, type NotificationsApi as y, type ScheduleLocalNotification as z };
@@ -43,9 +43,6 @@ var VenusMessageId = /* @__PURE__ */ ((VenusMessageId2) => {
43
43
  VenusMessageId2["IS_LOCAL_NOTIFICATIONS_ENABLED"] = "H5_IS_LOCAL_NOTIFICATIONS_ENABLED";
44
44
  VenusMessageId2["SET_LOCAL_NOTIFICATIONS_ENABLED"] = "H5_SET_LOCAL_NOTIFICATIONS_ENABLED";
45
45
  VenusMessageId2["TOAST"] = "H5_TOAST";
46
- VenusMessageId2["ALERT_DIALOG"] = "H5_ALERT_DIALOG";
47
- VenusMessageId2["CONFIRM_DIALOG"] = "H5_CONFIRM_DIALOG";
48
- VenusMessageId2["ACTION_SHEET_SHOW"] = "H5_ACTION_SHEET_SHOW";
49
46
  VenusMessageId2["REQUEST_SERVER_TIME"] = "H5_REQUEST_SERVER_TIME";
50
47
  VenusMessageId2["SHARE_LINK"] = "H5_SHARE_LINK";
51
48
  VenusMessageId2["CREATE_SHARE_QRCODE"] = "H5_CREATE_SHARE_QRCODE";
@@ -949,7 +946,7 @@ var MockCdnApi = class {
949
946
  const cleanSubPath = subPath.startsWith("/") ? subPath.slice(1) : subPath;
950
947
  const isLocalhost = typeof window !== "undefined" && (window.location.hostname === "localhost" || window.location.hostname === "127.0.0.1");
951
948
  if (isLocalhost && !this.forceRemoteCdn) {
952
- return `/${cleanSubPath}`;
949
+ return `cdn/${cleanSubPath}`;
953
950
  }
954
951
  const pathParts = cleanSubPath.split("/");
955
952
  const encodedParts = pathParts.map((part, index) => {
@@ -1914,40 +1911,6 @@ var RpcPopupsApi = class {
1914
1911
  __publicField(this, "rpcClient");
1915
1912
  this.rpcClient = rpcClient;
1916
1913
  }
1917
- async showActionSheet(items, options) {
1918
- const result = await this.rpcClient.call(
1919
- "H5_ACTION_SHEET_SHOW" /* ACTION_SHEET_SHOW */,
1920
- {
1921
- title: options?.title || "",
1922
- message: options?.message || "",
1923
- options: items,
1924
- cancelButtonText: options?.cancelButtonText || "Cancel"
1925
- }
1926
- );
1927
- return result;
1928
- }
1929
- async showAlert(title, message, options) {
1930
- const buttonText = options?.buttonText || "OK";
1931
- await this.rpcClient.call("H5_ALERT_DIALOG" /* ALERT_DIALOG */, {
1932
- title,
1933
- message,
1934
- buttonText
1935
- });
1936
- }
1937
- async showConfirm(title, message, options) {
1938
- const confirmText = options?.confirmText || "OK";
1939
- const cancelText = options?.cancelText || "Cancel";
1940
- const result = await this.rpcClient.call(
1941
- "H5_CONFIRM_DIALOG" /* CONFIRM_DIALOG */,
1942
- {
1943
- title,
1944
- message,
1945
- confirmText,
1946
- cancelText
1947
- }
1948
- );
1949
- return result;
1950
- }
1951
1914
  async showToast(message, options) {
1952
1915
  const duration = options?.duration ?? 3e3;
1953
1916
  const variant = options?.variant ?? "info";
@@ -1971,21 +1934,6 @@ var MockPopupsApi = class {
1971
1934
  __publicField(this, "overlay");
1972
1935
  this.overlay = override;
1973
1936
  }
1974
- showActionSheet(items, options) {
1975
- console.log(
1976
- `[Venus Mock] Show Action sheet, items: ${JSON.stringify(items, null, 2)}, options: ${JSON.stringify(options, null, 2)}`
1977
- );
1978
- return this.overlay.showActionSheet(items, options);
1979
- }
1980
- async showAlert(title, message, options) {
1981
- window.alert(`${title}
1982
- ${message}`);
1983
- }
1984
- async showConfirm(title, message, options) {
1985
- const result = window.confirm(`${title || "Confirm"}
1986
- ${message}`);
1987
- return result;
1988
- }
1989
1937
  async showToast(message, options) {
1990
1938
  const variant = options?.variant ?? "info";
1991
1939
  const duration = options?.duration ?? 3e3;
@@ -2012,41 +1960,6 @@ ${message}`);
2012
1960
 
2013
1961
  // src/popups/index.ts
2014
1962
  function initializePopups(venusApi, host) {
2015
- venusApi.showToast = async (input) => {
2016
- if (typeof input === "string") {
2017
- return await host.popups.showToast(input);
2018
- } else {
2019
- return await host.popups.showToast(input.message, {
2020
- duration: input.duration,
2021
- action: input.action,
2022
- variant: "success"
2023
- });
2024
- }
2025
- };
2026
- venusApi.showAlert = async (input) => {
2027
- await host.popups.showAlert(input.title, input.message, {
2028
- buttonText: input.buttonText
2029
- });
2030
- };
2031
- venusApi.showConfirm = async (input) => {
2032
- const confirmed = await host.popups.showConfirm(
2033
- input.title,
2034
- input.message,
2035
- {
2036
- confirmText: input.confirmText,
2037
- cancelText: input.cancelText
2038
- }
2039
- );
2040
- return confirmed;
2041
- };
2042
- venusApi.showActionSheet = async (input) => {
2043
- return await host.popups.showActionSheet(input.options, {
2044
- title: input.title,
2045
- message: input.message,
2046
- cancelButtonText: input.cancelButtonText,
2047
- disableCancel: input.disableCancel
2048
- });
2049
- };
2050
1963
  venusApi.popups = host.popups;
2051
1964
  }
2052
1965
 
@@ -3550,7 +3463,7 @@ function initializeTime(venusApi, host) {
3550
3463
  }
3551
3464
 
3552
3465
  // src/version.ts
3553
- var SDK_VERSION = "3.2.1-beta.0";
3466
+ var SDK_VERSION = "3.3.0";
3554
3467
 
3555
3468
  // src/shared-assets/base64Utils.ts
3556
3469
  function base64ToArrayBuffer(base64) {
@@ -4557,7 +4470,7 @@ var RemoteHost = class {
4557
4470
  5e3
4558
4471
  );
4559
4472
  transport.instanceId = response.instanceId;
4560
- this.log(`Remote Host Initialized with id: ${transport.instanceId}, response: ${JSON.stringify(response)}`);
4473
+ this.log(`Remote Host Initialized with id: ${transport.instanceId}`);
4561
4474
  const profile = response.profile;
4562
4475
  const sanitizedProfile = {
4563
4476
  id: profile.id,
@@ -5241,5 +5154,5 @@ function initializeSocial(venusApi, host) {
5241
5154
  }
5242
5155
 
5243
5156
  export { DEFAULT_SHARED_LIB_CDN_BASE, EMBEDDED_LIBRARIES, EMBEDDED_LIBRARY_BY_KEY, HASH_ALGORITHM_NODE, HASH_ALGORITHM_WEB_CRYPTO, HapticFeedbackStyle, HostCdnApi, HostDeviceApi, HostEnvironmentApi, HostProfileApi, HostSystemApi, HostTimeApi, MODULE_TO_LIBRARY_SPECIFIERS, MockAdsApi, MockAiApi, MockAnalyticsApi, MockAvatarApi, MockCdnApi, MockDeviceApi, MockEnvironmentApi, MockFeaturesApi, MockHapticsApi, MockIapApi, MockLeaderboardApi, MockLifecycleApi, MockLoggingApi, MockNavigationApi, MockNotificationsApi, MockPopupsApi, MockPreloaderApi, MockProfileApi, MockSharedAssetsApi, MockSocialApi, MockStorageApi, MockSystemApi, MockTimeApi, RemoteHost, RpcAdsApi, RpcAiApi, RpcAnalyticsApi, RpcAvatarApi, RpcClient, RpcFeaturesApi, RpcHapticsApi, RpcIapApi, RpcLeaderboardApi, RpcLifecycleApi, RpcLoggingApi, RpcNavigationApi, RpcNotificationsApi, RpcPopupsApi, RpcPreloaderApi, RpcRoomsApi, RpcSharedAssetsApi, RpcSimulationApi, RpcSocialApi, RpcStorageApi, SDK_VERSION, VenusMessageId, VenusRoom, base64ToArrayBuffer, base64ToUtf8, computeScoreHash, createHost, createMockStorageApi, getLibraryDefinition, initializeAds, initializeAi, initializeAnalytics, initializeAvatar3d, initializeCdn, initializeFeaturesApi, initializeHaptics, initializeIap, initializeLeaderboard, initializeLifecycleApi, initializeLocalNotifications, initializeLoggingApi, initializePopups, initializePreloader, initializeProfile, initializeRoomsApi, initializeSimulation, initializeSocial, initializeStackNavigation, initializeStorage, initializeSystem, initializeTime, isPacificDaylightTime, setupRoomNotifications };
5244
- //# sourceMappingURL=chunk-YOBDYPKZ.mjs.map
5245
- //# sourceMappingURL=chunk-YOBDYPKZ.mjs.map
5157
+ //# sourceMappingURL=chunk-FFDRA6ET.mjs.map
5158
+ //# sourceMappingURL=chunk-FFDRA6ET.mjs.map