@series-inc/venus-sdk 2.2.1 → 2.4.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.mts CHANGED
@@ -1,69 +1,11 @@
1
- import { A as AnalyticsApi, V as VenusAPI, N as NavigationApi, Q as QuitOptions, a as NavigationStackInfo, P as PushAppOptions, b as PopupsApi, c as ActionSheetItem, S as ShowActionSheetOptions, d as ShowAlertOptions, e as ShowConfirmOptions, f as ShowToastOptions, g as Profile, h as AiApi, i as AiChatCompletionRequest, j as AiChatCompletionData, H as HapticsApi, k as HapticFeedbackStyle, L as LifecycleApi, O as OnCleanupCallback, l as OnShowCallback, m as OnHideCallback, n as OnPauseCallback, o as OnPlayCallback, p as OnQuitCallback, q as OnResumeCallback, r as PlayContext, s as ShowContext, t as VenusSimulationConfig, R as RecipeRequirementResult, I as IapApi, u as SpendCurrencyOptions, v as AdsApi, w as Avatar3dApi, C as CdnApi, x as AssetManifest, y as Avatar3dConfig, z as ShowEditorOptions, B as Avatar3dEdits, D as SubPath, F as FetchBlobOptions } from './AdsApi-BbMHVPYM.mjs';
2
- export { E as AiMessage, G as Asset, J as Category, K as Insets, M as MockAvatarApi, T as PostInfo } from './AdsApi-BbMHVPYM.mjs';
1
+ import { A as AnalyticsApi, R as RpcRequest, a as RpcResponse, b as RpcNotification, c as RpcClient, V as VenusAPI, N as NavigationApi, Q as QuitOptions, d as NavigationStackInfo, P as PushAppOptions, e as NotificationsApi, S as ScheduleLocalNotification, f as ScheduleLocalNotificationOptions, g as PopupsApi, h as ActionSheetItem, i as ShowActionSheetOptions, j as ShowAlertOptions, k as ShowConfirmOptions, l as ShowToastOptions, m as Profile, n as AiApi, o as AiChatCompletionRequest, p as AiChatCompletionData, H as HapticsApi, q as HapticFeedbackStyle, L as LifecycleApi, O as OnCleanupCallback, r as OnShowCallback, s as OnHideCallback, t as OnPauseCallback, u as OnPlayCallback, v as OnQuitCallback, w as OnResumeCallback, x as PlayContext, y as ShowContext, z as VenusSimulationConfig, B as RecipeRequirementResult, I as IapApi, C as SpendCurrencyOptions, D as LoadEmbeddedAssetsResponse, E as SharedAssetsApi, F as AdsApi, G as Avatar3dApi, J as CdnApi, K as AssetManifest, M as Avatar3dConfig, T as ShowEditorOptions, U as Avatar3dEdits, W as SubPath, X as FetchBlobOptions } from './AdsApi-Cz0XgLM8.mjs';
2
+ export { Y as AiMessage, Z as Asset, a4 as CalendarTriggerInput, _ as Category, a5 as DailyTriggerInput, a3 as DateTriggerInput, a0 as Insets, ag as LoadEmbeddedAssetsRequest, $ as MockAvatarApi, a7 as MonthlyTriggerInput, a9 as NotificationTriggerInput, ad as OnNotificationCallback, ab as OnRequestCallback, ac as OnResponseCallback, a1 as PostInfo, af as RpcSharedAssetsApi, ae as RpcTransport, aa as Subscription, a2 as TimeIntervalTriggerInput, a6 as WeeklyTriggerInput, a8 as YearlyTriggerInput } from './AdsApi-Cz0XgLM8.mjs';
3
3
 
4
4
  declare class MockAnalyticsApi implements AnalyticsApi {
5
5
  recordCustomEvent(eventName: string, payload: Record<string, any>): Promise<void>;
6
6
  trackFunnelStep(stepNumber: number, stepName: string, funnelName?: string): Promise<void>;
7
7
  }
8
8
 
9
- interface RpcRequest {
10
- type: 'rpc-request';
11
- id: string;
12
- method: string;
13
- args?: any[];
14
- }
15
-
16
- interface RpcResponse {
17
- type: 'rpc-response';
18
- id: string;
19
- method: string;
20
- result?: any;
21
- error?: {
22
- message: string;
23
- stack?: string;
24
- };
25
- }
26
-
27
- interface RpcNotification {
28
- type: 'rpc-notification';
29
- id: string;
30
- payload?: any;
31
- }
32
-
33
- type OnRequestCallback = (request: RpcRequest) => Promise<boolean>;
34
- type OnResponseCallback = (response: RpcResponse) => Promise<boolean>;
35
- type OnNotificationCallback = (notification: RpcNotification) => void;
36
- interface RpcTransport {
37
- onRequest(callback: OnRequestCallback): Subscription;
38
- onResponse(callback: OnResponseCallback): Subscription;
39
- onNotification(callback: OnNotificationCallback): Subscription;
40
- sendRequest(request: RpcRequest): void;
41
- sendResponse(response: RpcResponse): void;
42
- }
43
-
44
- interface Subscription {
45
- unsubscribe: () => void;
46
- }
47
- declare class RpcClient {
48
- private readonly pendingCalls;
49
- private readonly notificationCallbacks;
50
- private onResponseSub;
51
- private onNotificationSub;
52
- private transport;
53
- start(transport: RpcTransport): void;
54
- stop(): void;
55
- onNotification<TPayload>(id: string, callback: (payload: TPayload) => void): Subscription;
56
- callT<TArgs, TResult>(method: string, args: TArgs, timeout?: number): Promise<TResult>;
57
- call<TResponse>(method: string, args?: any, timeout?: number): Promise<TResponse>;
58
- private hasPendingCall;
59
- private addPendingCall;
60
- private removePendingCall;
61
- private getPendingCall;
62
- private generateId;
63
- private handleRpcResponse;
64
- private handleRpcNotification;
65
- }
66
-
67
9
  type RpcMessage = RpcRequest | RpcResponse | RpcNotification;
68
10
 
69
11
  declare class RpcAnalyticsApi implements AnalyticsApi {
@@ -112,25 +54,6 @@ declare class RpcNavigationApi implements NavigationApi {
112
54
 
113
55
  declare function initializeStackNavigation(venusApi: VenusAPI, host: Host): void;
114
56
 
115
- interface ScheduleLocalNotificationOptions {
116
- priority?: number;
117
- groupId?: string;
118
- payload?: Record<string, any>;
119
- }
120
- interface ScheduleLocalNotification {
121
- id: string;
122
- title?: string | null;
123
- body?: string | null;
124
- payload?: Record<string, any>;
125
- }
126
- interface NotificationsApi {
127
- scheduleLocalNotification(title: string, body: string, options?: ScheduleLocalNotificationOptions): Promise<string | null>;
128
- cancelLocalNotification(notificationId: string): Promise<boolean>;
129
- getAllScheduledLocalNotifications(): Promise<ScheduleLocalNotification[]>;
130
- isLocalNotificationsEnabled(): Promise<boolean>;
131
- setLocalNotificationsEnabled(enabled: boolean): Promise<boolean>;
132
- }
133
-
134
57
  declare class MockNotificationsApi implements NotificationsApi {
135
58
  private readonly venusApi;
136
59
  constructor(venusApi: VenusAPI);
@@ -166,10 +89,7 @@ interface MockOverlay {
166
89
  showActionSheet: (items: ActionSheetItem[], options?: ShowActionSheetOptions) => Promise<string | number | null>;
167
90
  }
168
91
  interface OverlayElements {
169
- visibility: HTMLElement;
170
- play: HTMLElement;
171
- close: HTMLElement;
172
- [id: string]: HTMLElement;
92
+ menuButton: HTMLElement;
173
93
  }
174
94
 
175
95
  declare class MockPopupsApi implements PopupsApi {
@@ -545,6 +465,15 @@ declare class RpcIapApi implements IapApi {
545
465
  constructor(rpcClient: RpcClient);
546
466
  getHardCurrencyBalance(): Promise<number>;
547
467
  spendCurrency(productId: string, cost: number, options?: SpendCurrencyOptions): Promise<void>;
468
+ openStore(): Promise<void>;
469
+ getCurrencyIcon(): Promise<LoadEmbeddedAssetsResponse>;
470
+ }
471
+
472
+ declare class MockSharedAssetsApi implements SharedAssetsApi {
473
+ private readonly venusApi;
474
+ constructor(venusApi: VenusAPI);
475
+ loadBurgerTimeAssetsBundle(): Promise<ArrayBuffer>;
476
+ loadCharactersBundle(): Promise<ArrayBuffer>;
548
477
  }
549
478
 
550
479
  declare class MockIapApi implements IapApi {
@@ -553,6 +482,8 @@ declare class MockIapApi implements IapApi {
553
482
  set hardCurrency(value: number);
554
483
  spendCurrency(productId: string, cost: number, options?: SpendCurrencyOptions): Promise<void>;
555
484
  getHardCurrencyBalance(): Promise<number>;
485
+ openStore(): Promise<void>;
486
+ getCurrencyIcon(): Promise<LoadEmbeddedAssetsResponse>;
556
487
  }
557
488
 
558
489
  declare function initializeIap(venusApiInstance: VenusAPI, host: Host): void;
@@ -699,4 +630,125 @@ declare function initializeStorage(venusApiInstance: VenusAPI, host: Host): void
699
630
 
700
631
  declare const SDK_VERSION: string;
701
632
 
702
- export { ActionSheetItem, AdsApi, AiApi, AiChatCompletionData, AiChatCompletionRequest, AnalyticsApi, AssetManifest, Avatar3dApi, Avatar3dConfig, Avatar3dEdits, CdnApi, type CollectRecipeResult, type ExecuteRecipeOptions, type ExecuteScopedRecipeOptions, type ExecuteScopedRecipeResult, type Experiment, type FeaturesApi, FetchBlobOptions, type GetActiveRunsOptions, type GetAvailableRecipesOptions, type GetAvailableRecipesResult, type GetBatchRecipeRequirements, type GetFutureTimeOptions, HapticFeedbackStyle, HapticsApi, HostCdnApi, HostProfileApi, HostTimeApi, IapApi, LifecycleApi, type LoggingApi, type MethodIds, MockAdsApi, MockAiApi, MockAnalyticsApi, MockCdnApi, MockFeaturesApi, MockHapticsApi, MockIapApi, MockLifecycleApi, MockLoggingApi, MockNavigationApi, MockNotificationsApi, MockPopupsApi, MockProfileApi, MockSimulationApi, MockStorageApi, MockTimeApi, NavigationApi, NavigationStackInfo, type NotificationsApi, OnCleanupCallback, OnHideCallback, type OnNotificationCallback, OnPauseCallback, OnPlayCallback, OnQuitCallback, type OnRequestCallback, type OnResponseCallback, OnResumeCallback, OnShowCallback, PlayContext, PopupsApi, type ProfileApi, PushAppOptions, QuitOptions, type Recipe, type RecipeInfo, RpcAdsApi, RpcAiApi, RpcAnalyticsApi, RpcAvatarApi, RpcClient, RpcFeaturesApi, RpcHapticsApi, RpcIapApi, RpcLifecycleApi, RpcLoggingApi, type RpcMessage, RpcNavigationApi, type RpcNotification, RpcPopupsApi, type RpcRequest, type RpcResponse, RpcSimulationApi, RpcStorageApi, type RpcTransport, SDK_VERSION, type ScheduleLocalNotification, type ScheduleLocalNotificationOptions, type ServerTimeData, ShowActionSheetOptions, ShowAlertOptions, ShowConfirmOptions, ShowContext, ShowEditorOptions, ShowToastOptions, type ShowToastResponse, type SimulationApi, SpendCurrencyOptions, type StorageApi, type StorageType, SubPath, type Subscription, type TimeApi, type TriggerRecipeChainOptions, createMockStorageApi, initializeAds, initializeAi, initializeAnalytics, initializeAvatar3d, initializeCdn, initializeFeaturesApi, initializeHaptics, initializeIap, initializeLifecycleApi, initializeLocalNotifications, initializeLoggingApi, initializePopups, initializeProfile, initializeSimulation, initializeStackNavigation, initializeStorage, initializeTime, isPacificDaylightTime };
633
+ declare enum VenusMessageId {
634
+ H5_RESPONSE = "H5_RESPONSE",
635
+ IS_REWARDED_AD_READY = "H5_IS_REWARDED_AD_READY",
636
+ SHOW_REWARDED_AD = "H5_SHOW_REWARDED_AD",
637
+ LOG_ANALYTICS_EVENT = "H5_LOG_ANALYTICS_EVENT",
638
+ TRACK_FUNNEL_STEP = "H5_TRACK_FUNNEL_STEP",
639
+ DEVICE_CACHE_GET_ITEM = "H5_DEVICE_CACHE_GET_ITEM",
640
+ DEVICE_CACHE_SET_ITEM = "H5_DEVICE_CACHE_SET_ITEM",
641
+ DEVICE_CACHE_REMOVE_ITEM = "H5_DEVICE_CACHE_REMOVE_ITEM",
642
+ DEVICE_CACHE_CLEAR = "H5_DEVICE_CACHE_CLEAR",
643
+ DEVICE_CACHE_KEY = "H5_DEVICE_CACHE_KEY",
644
+ DEVICE_CACHE_LENGTH = "H5_DEVICE_CACHE_LENGTH",
645
+ APP_STORAGE_GET_ITEM = "H5_APP_STORAGE_GET_ITEM",
646
+ APP_STORAGE_SET_ITEM = "H5_APP_STORAGE_SET_ITEM",
647
+ APP_STORAGE_REMOVE_ITEM = "H5_APP_STORAGE_REMOVE_ITEM",
648
+ APP_STORAGE_CLEAR = "H5_APP_STORAGE_CLEAR",
649
+ APP_STORAGE_KEY = "H5_APP_STORAGE_KEY",
650
+ APP_STORAGE_LENGTH = "H5_APP_STORAGE_LENGTH",
651
+ APP_STORAGE_GET_ALL_ITEMS = "H5_APP_STORAGE_GET_ALL_ITEMS",
652
+ APP_STORAGE_SET_MULTIPLE_ITEMS = "H5_APP_STORAGE_SET_MULTIPLE_ITEMS",
653
+ APP_STORAGE_REMOVE_MULTIPLE_ITEMS = "H5_APP_STORAGE_REMOVE_MULTIPLE_ITEMS",
654
+ GLOBAL_STORAGE_GET_ITEM = "H5_GLOBAL_STORAGE_GET_ITEM",
655
+ GLOBAL_STORAGE_SET_ITEM = "H5_GLOBAL_STORAGE_SET_ITEM",
656
+ GLOBAL_STORAGE_REMOVE_ITEM = "H5_GLOBAL_STORAGE_REMOVE_ITEM",
657
+ GLOBAL_STORAGE_CLEAR = "H5_GLOBAL_STORAGE_CLEAR",
658
+ GLOBAL_STORAGE_KEY = "H5_GLOBAL_STORAGE_KEY",
659
+ GLOBAL_STORAGE_LENGTH = "H5_GLOBAL_STORAGE_LENGTH",
660
+ GLOBAL_STORAGE_GET_ALL_ITEMS = "H5_GLOBAL_STORAGE_GET_ALL_ITEMS",
661
+ GLOBAL_STORAGE_SET_MULTIPLE_ITEMS = "H5_GLOBAL_STORAGE_SET_MULTIPLE_ITEMS",
662
+ GLOBAL_STORAGE_REMOVE_MULTIPLE_ITEMS = "H5_GLOBAL_STORAGE_REMOVE_MULTIPLE_ITEMS",
663
+ AVATAR3D_LOAD = "H5_AVATAR3D_LOAD",
664
+ AVATAR3D_SAVE = "H5_AVATAR3D_SAVE",
665
+ AVATAR3D_DELETE = "H5_AVATAR3D_DELETE",
666
+ H5_STACK_PUSH_REQUEST = "H5_STACK_PUSH_REQUEST",
667
+ H5_STACK_POP_REQUEST = "H5_STACK_POP_REQUEST",
668
+ SCHEDULE_LOCAL_NOTIFICATION = "H5_SCHEDULE_LOCAL_NOTIFICATION",
669
+ CANCEL_LOCAL_NOTIFICATION = "H5_CANCEL_LOCAL_NOTIFICATION",
670
+ GET_ALL_SCHEDULED_LOCAL_NOTIFICATIONS = "H5_GET_ALL_SCHEDULED_LOCAL_NOTIFICATIONS",
671
+ IS_LOCAL_NOTIFICATIONS_ENABLED = "H5_IS_LOCAL_NOTIFICATIONS_ENABLED",
672
+ SET_LOCAL_NOTIFICATIONS_ENABLED = "H5_SET_LOCAL_NOTIFICATIONS_ENABLED",
673
+ TOAST = "H5_TOAST",
674
+ ALERT_DIALOG = "H5_ALERT_DIALOG",
675
+ CONFIRM_DIALOG = "H5_CONFIRM_DIALOG",
676
+ ACTION_SHEET_SHOW = "H5_ACTION_SHEET_SHOW",
677
+ REQUEST_SERVER_TIME = "H5_REQUEST_SERVER_TIME",
678
+ GET_POST_INTERACTIONS = "H5_GET_POST_INTERACTIONS",
679
+ TOGGLE_LIKE = "H5_TOGGLE_LIKE",
680
+ OPEN_COMMENTS = "H5_OPEN_COMMENTS",// For opening comments with callback support
681
+ TOGGLE_FOLLOW = "H5_TOGGLE_FOLLOW",
682
+ SHARE_POST = "H5_SHARE_POST",
683
+ AI_CHAT_COMPLETION = "H5_AI_CHAT_COMPLETION",
684
+ AI_GET_AVAILABLE_MODELS = "H5_AI_GET_AVAILABLE_MODELS",
685
+ TRIGGER_HAPTIC = "H5_TRIGGER_HAPTIC",
686
+ DEBUG = "H5_DEBUG",
687
+ H5_IAP_GET_WALLET = "H5_IAP_GET_WALLET",
688
+ H5_IAP_SPEND_CURRENCY = "H5_IAP_SPEND_CURRENCY",
689
+ SHOW_INTERSTITIAL_AD = "H5_SHOW_INTERSTITIAL_AD",
690
+ IAP_SPEND_CURRENCY_COMPLETE = "IAP_SPEND_CURRENCY_COMPLETE",
691
+ IAP_WALLET_UPDATE = "IAP_WALLET_UPDATE",
692
+ READY = "READY",
693
+ INIT_SDK = "INITIALIZE_SDK",
694
+ PLAY = "PLAY",
695
+ PAUSE = "PAUSE",
696
+ RESUME = "RESUME",
697
+ SHOWN = "SHOWN",// Previously AWAKE
698
+ HIDDEN = "HIDDEN",// Previously SLEEP
699
+ QUIT = "QUIT",// Previously STOP
700
+ CLEANUP = "CLEANUP",
701
+ /** given the experiment name, returns the entire experiment object as configured for the current user */
702
+ GET_EXPERIMENT = "H5_GET_EXPERIMENT",
703
+ /** returns the boolean value for a feature flag using the statsig parameter store, or the feature flags constants as fallback */
704
+ GET_FEATURE_FLAG = "H5_GET_FEATURE_FLAG",
705
+ /** returns the gate value (boolean) for a given feature gate for the current user */
706
+ GET_FEATURE_GATE = "H5_GET_FEATURE_GATE",
707
+ H5_SIMULATION_EXECUTE_RECIPE = "H5_SIMULATION_EXECUTE_RECIPE",
708
+ H5_SIMULATION_GET_ACTIVE_RUNS = "H5_SIMULATION_GET_ACTIVE_RUNS",
709
+ H5_SIMULATION_COLLECT_RECIPE = "H5_SIMULATION_COLLECT_RECIPE",
710
+ H5_SIMULATION_EXECUTE_SCOPED_RECIPE = "H5_SIMULATION_EXECUTE_SCOPED_RECIPE",
711
+ H5_SIMULATION_GET_AVAILABLE_RECIPES = "H5_SIMULATION_GET_AVAILABLE_RECIPES",
712
+ H5_SIMULATION_GET_RECIPE_REQUIREMENTS = "H5_SIMULATION_GET_RECIPE_REQUIREMENTS",
713
+ H5_SIMULATION_GET_BATCH_RECIPE_REQUIREMENTS = "H5_SIMULATION_GET_BATCH_RECIPE_REQUIREMENTS",
714
+ H5_SIMULATION_TRIGGER_RECIPE_CHAIN = "H5_SIMULATION_TRIGGER_RECIPE_CHAIN",
715
+ H5_SIMULATION_RESOLVE_VALUE = "H5_SIMULATION_RESOLVE_VALUE",
716
+ H5_SIMULATION_GET_ENTITY_METADATA = "H5_SIMULATION_GET_ENTITY_METADATA",
717
+ H5_SIMULATION_GET_STATE = "H5_SIMULATION_GET_STATE",
718
+ H5_SIMULATION_GET_CONFIG = "H5_SIMULATION_GET_CONFIG",
719
+ H5_SIMULATION_GET_CONTAINERS = "H5_SIMULATION_GET_CONTAINERS",
720
+ H5_SIMULATION_GET_ASSIGNMENTS = "H5_SIMULATION_GET_ASSIGNMENTS",
721
+ H5_SIMULATION_ASSIGN_ITEM = "H5_SIMULATION_ASSIGN_ITEM",
722
+ H5_SIMULATION_REMOVE_ITEM = "H5_SIMULATION_REMOVE_ITEM",
723
+ H5_SIMULATION_CALCULATE_POWER_PREVIEW = "H5_SIMULATION_CALCULATE_POWER_PREVIEW",
724
+ H5_SIMULATION_GET_AVAILABLE_ITEMS = "H5_SIMULATION_GET_AVAILABLE_ITEMS",
725
+ H5_SIMULATION_VALIDATE_ASSIGNMENT = "H5_SIMULATION_VALIDATE_ASSIGNMENT",
726
+ H5_SIMULATION_BATCH_OPERATIONS = "H5_SIMULATION_BATCH_OPERATIONS",
727
+ H5_ROOM_CREATE = "H5_ROOM_CREATE",
728
+ H5_ROOM_JOIN = "H5_ROOM_JOIN",
729
+ H5_ROOM_JOIN_OR_CREATE = "H5_ROOM_JOIN_OR_CREATE",
730
+ H5_ROOM_LEAVE = "H5_ROOM_LEAVE",
731
+ H5_ROOM_UPDATE_DATA = "H5_ROOM_UPDATE_DATA",
732
+ H5_ROOM_GET_DATA = "H5_ROOM_GET_DATA",
733
+ H5_ROOM_SUBSCRIBE = "H5_ROOM_SUBSCRIBE",
734
+ H5_ROOM_UNSUBSCRIBE = "H5_ROOM_UNSUBSCRIBE",
735
+ H5_ROOM_SEND_MESSAGE = "H5_ROOM_SEND_MESSAGE",
736
+ H5_ROOM_GET_MESSAGES = "H5_ROOM_GET_MESSAGES",
737
+ H5_ROOM_LIST_ROOMS = "H5_ROOM_LIST_ROOMS",
738
+ H5_ROOM_LIST_PUBLIC = "H5_ROOM_LIST_PUBLIC",
739
+ H5_ROOM_SEARCH = "H5_ROOM_SEARCH",
740
+ H5_ROOM_JOIN_BY_CODE = "H5_ROOM_JOIN_BY_CODE",
741
+ H5_ROOM_GET_USER_ROOMS = "H5_ROOM_GET_USER_ROOMS",
742
+ H5_ROOM_GET_PLAYERS = "H5_ROOM_GET_PLAYERS",
743
+ H5_ROOM_UPDATE_PLAYER_DATA = "H5_ROOM_UPDATE_PLAYER_DATA",
744
+ H5_ROOM_START_GAME = "H5_ROOM_START_GAME",
745
+ H5_ROOM_PROPOSE_MOVE = "h5:room:proposeMove",
746
+ H5_ROOM_END_GAME = "H5_ROOM_END_GAME",
747
+ H5_ROOM_ELIMINATE_PLAYER = "H5_ROOM_ELIMINATE_PLAYER",
748
+ H5_ROOM_PROMOTE_TO_SPECTATOR = "H5_ROOM_PROMOTE_TO_SPECTATOR",
749
+ H5_LOAD_EMBEDDED_ASSET = "H5_LOAD_EMBEDDED_ASSET",
750
+ H5_IAP_OPEN_STORE = "H5_IAP_OPEN_STORE",
751
+ H5_IAP_GET_CURRENCY_ICON = "H5_IAP_GET_CURRENCY_ICON"
752
+ }
753
+
754
+ export { ActionSheetItem, AdsApi, AiApi, AiChatCompletionData, AiChatCompletionRequest, AnalyticsApi, AssetManifest, Avatar3dApi, Avatar3dConfig, Avatar3dEdits, CdnApi, type CollectRecipeResult, type ExecuteRecipeOptions, type ExecuteScopedRecipeOptions, type ExecuteScopedRecipeResult, type Experiment, type FeaturesApi, FetchBlobOptions, type GetActiveRunsOptions, type GetAvailableRecipesOptions, type GetAvailableRecipesResult, type GetBatchRecipeRequirements, type GetFutureTimeOptions, HapticFeedbackStyle, HapticsApi, HostCdnApi, HostProfileApi, HostTimeApi, IapApi, LifecycleApi, LoadEmbeddedAssetsResponse, type LoggingApi, type MethodIds, MockAdsApi, MockAiApi, MockAnalyticsApi, MockCdnApi, MockFeaturesApi, MockHapticsApi, MockIapApi, MockLifecycleApi, MockLoggingApi, MockNavigationApi, MockNotificationsApi, MockPopupsApi, MockProfileApi, MockSharedAssetsApi, MockSimulationApi, MockStorageApi, MockTimeApi, NavigationApi, NavigationStackInfo, NotificationsApi, OnCleanupCallback, OnHideCallback, OnPauseCallback, OnPlayCallback, OnQuitCallback, OnResumeCallback, OnShowCallback, PlayContext, PopupsApi, type ProfileApi, PushAppOptions, QuitOptions, type Recipe, type RecipeInfo, RpcAdsApi, RpcAiApi, RpcAnalyticsApi, RpcAvatarApi, RpcClient, RpcFeaturesApi, RpcHapticsApi, RpcIapApi, RpcLifecycleApi, RpcLoggingApi, type RpcMessage, RpcNavigationApi, RpcNotification, RpcPopupsApi, RpcRequest, RpcResponse, RpcSimulationApi, RpcStorageApi, SDK_VERSION, ScheduleLocalNotification, ScheduleLocalNotificationOptions, type ServerTimeData, SharedAssetsApi, ShowActionSheetOptions, ShowAlertOptions, ShowConfirmOptions, ShowContext, ShowEditorOptions, ShowToastOptions, type ShowToastResponse, type SimulationApi, SpendCurrencyOptions, type StorageApi, type StorageType, SubPath, type TimeApi, type TriggerRecipeChainOptions, VenusMessageId, createMockStorageApi, initializeAds, initializeAi, initializeAnalytics, initializeAvatar3d, initializeCdn, initializeFeaturesApi, initializeHaptics, initializeIap, initializeLifecycleApi, initializeLocalNotifications, initializeLoggingApi, initializePopups, initializeProfile, initializeSimulation, initializeStackNavigation, initializeStorage, initializeTime, isPacificDaylightTime };
package/dist/index.d.ts CHANGED
@@ -1,69 +1,11 @@
1
- import { A as AnalyticsApi, V as VenusAPI, N as NavigationApi, Q as QuitOptions, a as NavigationStackInfo, P as PushAppOptions, b as PopupsApi, c as ActionSheetItem, S as ShowActionSheetOptions, d as ShowAlertOptions, e as ShowConfirmOptions, f as ShowToastOptions, g as Profile, h as AiApi, i as AiChatCompletionRequest, j as AiChatCompletionData, H as HapticsApi, k as HapticFeedbackStyle, L as LifecycleApi, O as OnCleanupCallback, l as OnShowCallback, m as OnHideCallback, n as OnPauseCallback, o as OnPlayCallback, p as OnQuitCallback, q as OnResumeCallback, r as PlayContext, s as ShowContext, t as VenusSimulationConfig, R as RecipeRequirementResult, I as IapApi, u as SpendCurrencyOptions, v as AdsApi, w as Avatar3dApi, C as CdnApi, x as AssetManifest, y as Avatar3dConfig, z as ShowEditorOptions, B as Avatar3dEdits, D as SubPath, F as FetchBlobOptions } from './AdsApi-BbMHVPYM.js';
2
- export { E as AiMessage, G as Asset, J as Category, K as Insets, M as MockAvatarApi, T as PostInfo } from './AdsApi-BbMHVPYM.js';
1
+ import { A as AnalyticsApi, R as RpcRequest, a as RpcResponse, b as RpcNotification, c as RpcClient, V as VenusAPI, N as NavigationApi, Q as QuitOptions, d as NavigationStackInfo, P as PushAppOptions, e as NotificationsApi, S as ScheduleLocalNotification, f as ScheduleLocalNotificationOptions, g as PopupsApi, h as ActionSheetItem, i as ShowActionSheetOptions, j as ShowAlertOptions, k as ShowConfirmOptions, l as ShowToastOptions, m as Profile, n as AiApi, o as AiChatCompletionRequest, p as AiChatCompletionData, H as HapticsApi, q as HapticFeedbackStyle, L as LifecycleApi, O as OnCleanupCallback, r as OnShowCallback, s as OnHideCallback, t as OnPauseCallback, u as OnPlayCallback, v as OnQuitCallback, w as OnResumeCallback, x as PlayContext, y as ShowContext, z as VenusSimulationConfig, B as RecipeRequirementResult, I as IapApi, C as SpendCurrencyOptions, D as LoadEmbeddedAssetsResponse, E as SharedAssetsApi, F as AdsApi, G as Avatar3dApi, J as CdnApi, K as AssetManifest, M as Avatar3dConfig, T as ShowEditorOptions, U as Avatar3dEdits, W as SubPath, X as FetchBlobOptions } from './AdsApi-Cz0XgLM8.js';
2
+ export { Y as AiMessage, Z as Asset, a4 as CalendarTriggerInput, _ as Category, a5 as DailyTriggerInput, a3 as DateTriggerInput, a0 as Insets, ag as LoadEmbeddedAssetsRequest, $ as MockAvatarApi, a7 as MonthlyTriggerInput, a9 as NotificationTriggerInput, ad as OnNotificationCallback, ab as OnRequestCallback, ac as OnResponseCallback, a1 as PostInfo, af as RpcSharedAssetsApi, ae as RpcTransport, aa as Subscription, a2 as TimeIntervalTriggerInput, a6 as WeeklyTriggerInput, a8 as YearlyTriggerInput } from './AdsApi-Cz0XgLM8.js';
3
3
 
4
4
  declare class MockAnalyticsApi implements AnalyticsApi {
5
5
  recordCustomEvent(eventName: string, payload: Record<string, any>): Promise<void>;
6
6
  trackFunnelStep(stepNumber: number, stepName: string, funnelName?: string): Promise<void>;
7
7
  }
8
8
 
9
- interface RpcRequest {
10
- type: 'rpc-request';
11
- id: string;
12
- method: string;
13
- args?: any[];
14
- }
15
-
16
- interface RpcResponse {
17
- type: 'rpc-response';
18
- id: string;
19
- method: string;
20
- result?: any;
21
- error?: {
22
- message: string;
23
- stack?: string;
24
- };
25
- }
26
-
27
- interface RpcNotification {
28
- type: 'rpc-notification';
29
- id: string;
30
- payload?: any;
31
- }
32
-
33
- type OnRequestCallback = (request: RpcRequest) => Promise<boolean>;
34
- type OnResponseCallback = (response: RpcResponse) => Promise<boolean>;
35
- type OnNotificationCallback = (notification: RpcNotification) => void;
36
- interface RpcTransport {
37
- onRequest(callback: OnRequestCallback): Subscription;
38
- onResponse(callback: OnResponseCallback): Subscription;
39
- onNotification(callback: OnNotificationCallback): Subscription;
40
- sendRequest(request: RpcRequest): void;
41
- sendResponse(response: RpcResponse): void;
42
- }
43
-
44
- interface Subscription {
45
- unsubscribe: () => void;
46
- }
47
- declare class RpcClient {
48
- private readonly pendingCalls;
49
- private readonly notificationCallbacks;
50
- private onResponseSub;
51
- private onNotificationSub;
52
- private transport;
53
- start(transport: RpcTransport): void;
54
- stop(): void;
55
- onNotification<TPayload>(id: string, callback: (payload: TPayload) => void): Subscription;
56
- callT<TArgs, TResult>(method: string, args: TArgs, timeout?: number): Promise<TResult>;
57
- call<TResponse>(method: string, args?: any, timeout?: number): Promise<TResponse>;
58
- private hasPendingCall;
59
- private addPendingCall;
60
- private removePendingCall;
61
- private getPendingCall;
62
- private generateId;
63
- private handleRpcResponse;
64
- private handleRpcNotification;
65
- }
66
-
67
9
  type RpcMessage = RpcRequest | RpcResponse | RpcNotification;
68
10
 
69
11
  declare class RpcAnalyticsApi implements AnalyticsApi {
@@ -112,25 +54,6 @@ declare class RpcNavigationApi implements NavigationApi {
112
54
 
113
55
  declare function initializeStackNavigation(venusApi: VenusAPI, host: Host): void;
114
56
 
115
- interface ScheduleLocalNotificationOptions {
116
- priority?: number;
117
- groupId?: string;
118
- payload?: Record<string, any>;
119
- }
120
- interface ScheduleLocalNotification {
121
- id: string;
122
- title?: string | null;
123
- body?: string | null;
124
- payload?: Record<string, any>;
125
- }
126
- interface NotificationsApi {
127
- scheduleLocalNotification(title: string, body: string, options?: ScheduleLocalNotificationOptions): Promise<string | null>;
128
- cancelLocalNotification(notificationId: string): Promise<boolean>;
129
- getAllScheduledLocalNotifications(): Promise<ScheduleLocalNotification[]>;
130
- isLocalNotificationsEnabled(): Promise<boolean>;
131
- setLocalNotificationsEnabled(enabled: boolean): Promise<boolean>;
132
- }
133
-
134
57
  declare class MockNotificationsApi implements NotificationsApi {
135
58
  private readonly venusApi;
136
59
  constructor(venusApi: VenusAPI);
@@ -166,10 +89,7 @@ interface MockOverlay {
166
89
  showActionSheet: (items: ActionSheetItem[], options?: ShowActionSheetOptions) => Promise<string | number | null>;
167
90
  }
168
91
  interface OverlayElements {
169
- visibility: HTMLElement;
170
- play: HTMLElement;
171
- close: HTMLElement;
172
- [id: string]: HTMLElement;
92
+ menuButton: HTMLElement;
173
93
  }
174
94
 
175
95
  declare class MockPopupsApi implements PopupsApi {
@@ -545,6 +465,15 @@ declare class RpcIapApi implements IapApi {
545
465
  constructor(rpcClient: RpcClient);
546
466
  getHardCurrencyBalance(): Promise<number>;
547
467
  spendCurrency(productId: string, cost: number, options?: SpendCurrencyOptions): Promise<void>;
468
+ openStore(): Promise<void>;
469
+ getCurrencyIcon(): Promise<LoadEmbeddedAssetsResponse>;
470
+ }
471
+
472
+ declare class MockSharedAssetsApi implements SharedAssetsApi {
473
+ private readonly venusApi;
474
+ constructor(venusApi: VenusAPI);
475
+ loadBurgerTimeAssetsBundle(): Promise<ArrayBuffer>;
476
+ loadCharactersBundle(): Promise<ArrayBuffer>;
548
477
  }
549
478
 
550
479
  declare class MockIapApi implements IapApi {
@@ -553,6 +482,8 @@ declare class MockIapApi implements IapApi {
553
482
  set hardCurrency(value: number);
554
483
  spendCurrency(productId: string, cost: number, options?: SpendCurrencyOptions): Promise<void>;
555
484
  getHardCurrencyBalance(): Promise<number>;
485
+ openStore(): Promise<void>;
486
+ getCurrencyIcon(): Promise<LoadEmbeddedAssetsResponse>;
556
487
  }
557
488
 
558
489
  declare function initializeIap(venusApiInstance: VenusAPI, host: Host): void;
@@ -699,4 +630,125 @@ declare function initializeStorage(venusApiInstance: VenusAPI, host: Host): void
699
630
 
700
631
  declare const SDK_VERSION: string;
701
632
 
702
- export { ActionSheetItem, AdsApi, AiApi, AiChatCompletionData, AiChatCompletionRequest, AnalyticsApi, AssetManifest, Avatar3dApi, Avatar3dConfig, Avatar3dEdits, CdnApi, type CollectRecipeResult, type ExecuteRecipeOptions, type ExecuteScopedRecipeOptions, type ExecuteScopedRecipeResult, type Experiment, type FeaturesApi, FetchBlobOptions, type GetActiveRunsOptions, type GetAvailableRecipesOptions, type GetAvailableRecipesResult, type GetBatchRecipeRequirements, type GetFutureTimeOptions, HapticFeedbackStyle, HapticsApi, HostCdnApi, HostProfileApi, HostTimeApi, IapApi, LifecycleApi, type LoggingApi, type MethodIds, MockAdsApi, MockAiApi, MockAnalyticsApi, MockCdnApi, MockFeaturesApi, MockHapticsApi, MockIapApi, MockLifecycleApi, MockLoggingApi, MockNavigationApi, MockNotificationsApi, MockPopupsApi, MockProfileApi, MockSimulationApi, MockStorageApi, MockTimeApi, NavigationApi, NavigationStackInfo, type NotificationsApi, OnCleanupCallback, OnHideCallback, type OnNotificationCallback, OnPauseCallback, OnPlayCallback, OnQuitCallback, type OnRequestCallback, type OnResponseCallback, OnResumeCallback, OnShowCallback, PlayContext, PopupsApi, type ProfileApi, PushAppOptions, QuitOptions, type Recipe, type RecipeInfo, RpcAdsApi, RpcAiApi, RpcAnalyticsApi, RpcAvatarApi, RpcClient, RpcFeaturesApi, RpcHapticsApi, RpcIapApi, RpcLifecycleApi, RpcLoggingApi, type RpcMessage, RpcNavigationApi, type RpcNotification, RpcPopupsApi, type RpcRequest, type RpcResponse, RpcSimulationApi, RpcStorageApi, type RpcTransport, SDK_VERSION, type ScheduleLocalNotification, type ScheduleLocalNotificationOptions, type ServerTimeData, ShowActionSheetOptions, ShowAlertOptions, ShowConfirmOptions, ShowContext, ShowEditorOptions, ShowToastOptions, type ShowToastResponse, type SimulationApi, SpendCurrencyOptions, type StorageApi, type StorageType, SubPath, type Subscription, type TimeApi, type TriggerRecipeChainOptions, createMockStorageApi, initializeAds, initializeAi, initializeAnalytics, initializeAvatar3d, initializeCdn, initializeFeaturesApi, initializeHaptics, initializeIap, initializeLifecycleApi, initializeLocalNotifications, initializeLoggingApi, initializePopups, initializeProfile, initializeSimulation, initializeStackNavigation, initializeStorage, initializeTime, isPacificDaylightTime };
633
+ declare enum VenusMessageId {
634
+ H5_RESPONSE = "H5_RESPONSE",
635
+ IS_REWARDED_AD_READY = "H5_IS_REWARDED_AD_READY",
636
+ SHOW_REWARDED_AD = "H5_SHOW_REWARDED_AD",
637
+ LOG_ANALYTICS_EVENT = "H5_LOG_ANALYTICS_EVENT",
638
+ TRACK_FUNNEL_STEP = "H5_TRACK_FUNNEL_STEP",
639
+ DEVICE_CACHE_GET_ITEM = "H5_DEVICE_CACHE_GET_ITEM",
640
+ DEVICE_CACHE_SET_ITEM = "H5_DEVICE_CACHE_SET_ITEM",
641
+ DEVICE_CACHE_REMOVE_ITEM = "H5_DEVICE_CACHE_REMOVE_ITEM",
642
+ DEVICE_CACHE_CLEAR = "H5_DEVICE_CACHE_CLEAR",
643
+ DEVICE_CACHE_KEY = "H5_DEVICE_CACHE_KEY",
644
+ DEVICE_CACHE_LENGTH = "H5_DEVICE_CACHE_LENGTH",
645
+ APP_STORAGE_GET_ITEM = "H5_APP_STORAGE_GET_ITEM",
646
+ APP_STORAGE_SET_ITEM = "H5_APP_STORAGE_SET_ITEM",
647
+ APP_STORAGE_REMOVE_ITEM = "H5_APP_STORAGE_REMOVE_ITEM",
648
+ APP_STORAGE_CLEAR = "H5_APP_STORAGE_CLEAR",
649
+ APP_STORAGE_KEY = "H5_APP_STORAGE_KEY",
650
+ APP_STORAGE_LENGTH = "H5_APP_STORAGE_LENGTH",
651
+ APP_STORAGE_GET_ALL_ITEMS = "H5_APP_STORAGE_GET_ALL_ITEMS",
652
+ APP_STORAGE_SET_MULTIPLE_ITEMS = "H5_APP_STORAGE_SET_MULTIPLE_ITEMS",
653
+ APP_STORAGE_REMOVE_MULTIPLE_ITEMS = "H5_APP_STORAGE_REMOVE_MULTIPLE_ITEMS",
654
+ GLOBAL_STORAGE_GET_ITEM = "H5_GLOBAL_STORAGE_GET_ITEM",
655
+ GLOBAL_STORAGE_SET_ITEM = "H5_GLOBAL_STORAGE_SET_ITEM",
656
+ GLOBAL_STORAGE_REMOVE_ITEM = "H5_GLOBAL_STORAGE_REMOVE_ITEM",
657
+ GLOBAL_STORAGE_CLEAR = "H5_GLOBAL_STORAGE_CLEAR",
658
+ GLOBAL_STORAGE_KEY = "H5_GLOBAL_STORAGE_KEY",
659
+ GLOBAL_STORAGE_LENGTH = "H5_GLOBAL_STORAGE_LENGTH",
660
+ GLOBAL_STORAGE_GET_ALL_ITEMS = "H5_GLOBAL_STORAGE_GET_ALL_ITEMS",
661
+ GLOBAL_STORAGE_SET_MULTIPLE_ITEMS = "H5_GLOBAL_STORAGE_SET_MULTIPLE_ITEMS",
662
+ GLOBAL_STORAGE_REMOVE_MULTIPLE_ITEMS = "H5_GLOBAL_STORAGE_REMOVE_MULTIPLE_ITEMS",
663
+ AVATAR3D_LOAD = "H5_AVATAR3D_LOAD",
664
+ AVATAR3D_SAVE = "H5_AVATAR3D_SAVE",
665
+ AVATAR3D_DELETE = "H5_AVATAR3D_DELETE",
666
+ H5_STACK_PUSH_REQUEST = "H5_STACK_PUSH_REQUEST",
667
+ H5_STACK_POP_REQUEST = "H5_STACK_POP_REQUEST",
668
+ SCHEDULE_LOCAL_NOTIFICATION = "H5_SCHEDULE_LOCAL_NOTIFICATION",
669
+ CANCEL_LOCAL_NOTIFICATION = "H5_CANCEL_LOCAL_NOTIFICATION",
670
+ GET_ALL_SCHEDULED_LOCAL_NOTIFICATIONS = "H5_GET_ALL_SCHEDULED_LOCAL_NOTIFICATIONS",
671
+ IS_LOCAL_NOTIFICATIONS_ENABLED = "H5_IS_LOCAL_NOTIFICATIONS_ENABLED",
672
+ SET_LOCAL_NOTIFICATIONS_ENABLED = "H5_SET_LOCAL_NOTIFICATIONS_ENABLED",
673
+ TOAST = "H5_TOAST",
674
+ ALERT_DIALOG = "H5_ALERT_DIALOG",
675
+ CONFIRM_DIALOG = "H5_CONFIRM_DIALOG",
676
+ ACTION_SHEET_SHOW = "H5_ACTION_SHEET_SHOW",
677
+ REQUEST_SERVER_TIME = "H5_REQUEST_SERVER_TIME",
678
+ GET_POST_INTERACTIONS = "H5_GET_POST_INTERACTIONS",
679
+ TOGGLE_LIKE = "H5_TOGGLE_LIKE",
680
+ OPEN_COMMENTS = "H5_OPEN_COMMENTS",// For opening comments with callback support
681
+ TOGGLE_FOLLOW = "H5_TOGGLE_FOLLOW",
682
+ SHARE_POST = "H5_SHARE_POST",
683
+ AI_CHAT_COMPLETION = "H5_AI_CHAT_COMPLETION",
684
+ AI_GET_AVAILABLE_MODELS = "H5_AI_GET_AVAILABLE_MODELS",
685
+ TRIGGER_HAPTIC = "H5_TRIGGER_HAPTIC",
686
+ DEBUG = "H5_DEBUG",
687
+ H5_IAP_GET_WALLET = "H5_IAP_GET_WALLET",
688
+ H5_IAP_SPEND_CURRENCY = "H5_IAP_SPEND_CURRENCY",
689
+ SHOW_INTERSTITIAL_AD = "H5_SHOW_INTERSTITIAL_AD",
690
+ IAP_SPEND_CURRENCY_COMPLETE = "IAP_SPEND_CURRENCY_COMPLETE",
691
+ IAP_WALLET_UPDATE = "IAP_WALLET_UPDATE",
692
+ READY = "READY",
693
+ INIT_SDK = "INITIALIZE_SDK",
694
+ PLAY = "PLAY",
695
+ PAUSE = "PAUSE",
696
+ RESUME = "RESUME",
697
+ SHOWN = "SHOWN",// Previously AWAKE
698
+ HIDDEN = "HIDDEN",// Previously SLEEP
699
+ QUIT = "QUIT",// Previously STOP
700
+ CLEANUP = "CLEANUP",
701
+ /** given the experiment name, returns the entire experiment object as configured for the current user */
702
+ GET_EXPERIMENT = "H5_GET_EXPERIMENT",
703
+ /** returns the boolean value for a feature flag using the statsig parameter store, or the feature flags constants as fallback */
704
+ GET_FEATURE_FLAG = "H5_GET_FEATURE_FLAG",
705
+ /** returns the gate value (boolean) for a given feature gate for the current user */
706
+ GET_FEATURE_GATE = "H5_GET_FEATURE_GATE",
707
+ H5_SIMULATION_EXECUTE_RECIPE = "H5_SIMULATION_EXECUTE_RECIPE",
708
+ H5_SIMULATION_GET_ACTIVE_RUNS = "H5_SIMULATION_GET_ACTIVE_RUNS",
709
+ H5_SIMULATION_COLLECT_RECIPE = "H5_SIMULATION_COLLECT_RECIPE",
710
+ H5_SIMULATION_EXECUTE_SCOPED_RECIPE = "H5_SIMULATION_EXECUTE_SCOPED_RECIPE",
711
+ H5_SIMULATION_GET_AVAILABLE_RECIPES = "H5_SIMULATION_GET_AVAILABLE_RECIPES",
712
+ H5_SIMULATION_GET_RECIPE_REQUIREMENTS = "H5_SIMULATION_GET_RECIPE_REQUIREMENTS",
713
+ H5_SIMULATION_GET_BATCH_RECIPE_REQUIREMENTS = "H5_SIMULATION_GET_BATCH_RECIPE_REQUIREMENTS",
714
+ H5_SIMULATION_TRIGGER_RECIPE_CHAIN = "H5_SIMULATION_TRIGGER_RECIPE_CHAIN",
715
+ H5_SIMULATION_RESOLVE_VALUE = "H5_SIMULATION_RESOLVE_VALUE",
716
+ H5_SIMULATION_GET_ENTITY_METADATA = "H5_SIMULATION_GET_ENTITY_METADATA",
717
+ H5_SIMULATION_GET_STATE = "H5_SIMULATION_GET_STATE",
718
+ H5_SIMULATION_GET_CONFIG = "H5_SIMULATION_GET_CONFIG",
719
+ H5_SIMULATION_GET_CONTAINERS = "H5_SIMULATION_GET_CONTAINERS",
720
+ H5_SIMULATION_GET_ASSIGNMENTS = "H5_SIMULATION_GET_ASSIGNMENTS",
721
+ H5_SIMULATION_ASSIGN_ITEM = "H5_SIMULATION_ASSIGN_ITEM",
722
+ H5_SIMULATION_REMOVE_ITEM = "H5_SIMULATION_REMOVE_ITEM",
723
+ H5_SIMULATION_CALCULATE_POWER_PREVIEW = "H5_SIMULATION_CALCULATE_POWER_PREVIEW",
724
+ H5_SIMULATION_GET_AVAILABLE_ITEMS = "H5_SIMULATION_GET_AVAILABLE_ITEMS",
725
+ H5_SIMULATION_VALIDATE_ASSIGNMENT = "H5_SIMULATION_VALIDATE_ASSIGNMENT",
726
+ H5_SIMULATION_BATCH_OPERATIONS = "H5_SIMULATION_BATCH_OPERATIONS",
727
+ H5_ROOM_CREATE = "H5_ROOM_CREATE",
728
+ H5_ROOM_JOIN = "H5_ROOM_JOIN",
729
+ H5_ROOM_JOIN_OR_CREATE = "H5_ROOM_JOIN_OR_CREATE",
730
+ H5_ROOM_LEAVE = "H5_ROOM_LEAVE",
731
+ H5_ROOM_UPDATE_DATA = "H5_ROOM_UPDATE_DATA",
732
+ H5_ROOM_GET_DATA = "H5_ROOM_GET_DATA",
733
+ H5_ROOM_SUBSCRIBE = "H5_ROOM_SUBSCRIBE",
734
+ H5_ROOM_UNSUBSCRIBE = "H5_ROOM_UNSUBSCRIBE",
735
+ H5_ROOM_SEND_MESSAGE = "H5_ROOM_SEND_MESSAGE",
736
+ H5_ROOM_GET_MESSAGES = "H5_ROOM_GET_MESSAGES",
737
+ H5_ROOM_LIST_ROOMS = "H5_ROOM_LIST_ROOMS",
738
+ H5_ROOM_LIST_PUBLIC = "H5_ROOM_LIST_PUBLIC",
739
+ H5_ROOM_SEARCH = "H5_ROOM_SEARCH",
740
+ H5_ROOM_JOIN_BY_CODE = "H5_ROOM_JOIN_BY_CODE",
741
+ H5_ROOM_GET_USER_ROOMS = "H5_ROOM_GET_USER_ROOMS",
742
+ H5_ROOM_GET_PLAYERS = "H5_ROOM_GET_PLAYERS",
743
+ H5_ROOM_UPDATE_PLAYER_DATA = "H5_ROOM_UPDATE_PLAYER_DATA",
744
+ H5_ROOM_START_GAME = "H5_ROOM_START_GAME",
745
+ H5_ROOM_PROPOSE_MOVE = "h5:room:proposeMove",
746
+ H5_ROOM_END_GAME = "H5_ROOM_END_GAME",
747
+ H5_ROOM_ELIMINATE_PLAYER = "H5_ROOM_ELIMINATE_PLAYER",
748
+ H5_ROOM_PROMOTE_TO_SPECTATOR = "H5_ROOM_PROMOTE_TO_SPECTATOR",
749
+ H5_LOAD_EMBEDDED_ASSET = "H5_LOAD_EMBEDDED_ASSET",
750
+ H5_IAP_OPEN_STORE = "H5_IAP_OPEN_STORE",
751
+ H5_IAP_GET_CURRENCY_ICON = "H5_IAP_GET_CURRENCY_ICON"
752
+ }
753
+
754
+ export { ActionSheetItem, AdsApi, AiApi, AiChatCompletionData, AiChatCompletionRequest, AnalyticsApi, AssetManifest, Avatar3dApi, Avatar3dConfig, Avatar3dEdits, CdnApi, type CollectRecipeResult, type ExecuteRecipeOptions, type ExecuteScopedRecipeOptions, type ExecuteScopedRecipeResult, type Experiment, type FeaturesApi, FetchBlobOptions, type GetActiveRunsOptions, type GetAvailableRecipesOptions, type GetAvailableRecipesResult, type GetBatchRecipeRequirements, type GetFutureTimeOptions, HapticFeedbackStyle, HapticsApi, HostCdnApi, HostProfileApi, HostTimeApi, IapApi, LifecycleApi, LoadEmbeddedAssetsResponse, type LoggingApi, type MethodIds, MockAdsApi, MockAiApi, MockAnalyticsApi, MockCdnApi, MockFeaturesApi, MockHapticsApi, MockIapApi, MockLifecycleApi, MockLoggingApi, MockNavigationApi, MockNotificationsApi, MockPopupsApi, MockProfileApi, MockSharedAssetsApi, MockSimulationApi, MockStorageApi, MockTimeApi, NavigationApi, NavigationStackInfo, NotificationsApi, OnCleanupCallback, OnHideCallback, OnPauseCallback, OnPlayCallback, OnQuitCallback, OnResumeCallback, OnShowCallback, PlayContext, PopupsApi, type ProfileApi, PushAppOptions, QuitOptions, type Recipe, type RecipeInfo, RpcAdsApi, RpcAiApi, RpcAnalyticsApi, RpcAvatarApi, RpcClient, RpcFeaturesApi, RpcHapticsApi, RpcIapApi, RpcLifecycleApi, RpcLoggingApi, type RpcMessage, RpcNavigationApi, RpcNotification, RpcPopupsApi, RpcRequest, RpcResponse, RpcSimulationApi, RpcStorageApi, SDK_VERSION, ScheduleLocalNotification, ScheduleLocalNotificationOptions, type ServerTimeData, SharedAssetsApi, ShowActionSheetOptions, ShowAlertOptions, ShowConfirmOptions, ShowContext, ShowEditorOptions, ShowToastOptions, type ShowToastResponse, type SimulationApi, SpendCurrencyOptions, type StorageApi, type StorageType, SubPath, type TimeApi, type TriggerRecipeChainOptions, VenusMessageId, createMockStorageApi, initializeAds, initializeAi, initializeAnalytics, initializeAvatar3d, initializeCdn, initializeFeaturesApi, initializeHaptics, initializeIap, initializeLifecycleApi, initializeLocalNotifications, initializeLoggingApi, initializePopups, initializeProfile, initializeSimulation, initializeStackNavigation, initializeStorage, initializeTime, isPacificDaylightTime };
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { HapticFeedbackStyle, HostCdnApi, HostProfileApi, HostTimeApi, MockAdsApi, MockAiApi, MockAnalyticsApi, MockAvatarApi, MockCdnApi, MockFeaturesApi, MockHapticsApi, MockIapApi, MockLifecycleApi, MockLoggingApi, MockNavigationApi, MockNotificationsApi, MockPopupsApi, MockProfileApi, MockSimulationApi, MockStorageApi, MockTimeApi, RpcAdsApi, RpcAiApi, RpcAnalyticsApi, RpcAvatarApi, RpcClient, RpcFeaturesApi, RpcHapticsApi, RpcIapApi, RpcLifecycleApi, RpcLoggingApi, RpcNavigationApi, RpcPopupsApi, RpcSimulationApi, RpcStorageApi, SDK_VERSION, createMockStorageApi, initializeAds, initializeAi, initializeAnalytics, initializeAvatar3d, initializeCdn, initializeFeaturesApi, initializeHaptics, initializeIap, initializeLifecycleApi, initializeLocalNotifications, initializeLoggingApi, initializePopups, initializeProfile, initializeSimulation, initializeStackNavigation, initializeStorage, initializeTime, isPacificDaylightTime } from './chunk-AMGTKSDN.mjs';
2
- import './chunk-D4JRVWNC.mjs';
1
+ export { HapticFeedbackStyle, HostCdnApi, HostProfileApi, HostTimeApi, MockAdsApi, MockAiApi, MockAnalyticsApi, MockAvatarApi, MockCdnApi, MockFeaturesApi, MockHapticsApi, MockIapApi, MockLifecycleApi, MockLoggingApi, MockNavigationApi, MockNotificationsApi, MockPopupsApi, MockProfileApi, MockSharedAssetsApi, MockSimulationApi, MockStorageApi, MockTimeApi, RpcAdsApi, RpcAiApi, RpcAnalyticsApi, RpcAvatarApi, RpcClient, RpcFeaturesApi, RpcHapticsApi, RpcIapApi, RpcLifecycleApi, RpcLoggingApi, RpcNavigationApi, RpcPopupsApi, RpcSharedAssetsApi, RpcSimulationApi, RpcStorageApi, SDK_VERSION, VenusMessageId, createMockStorageApi, initializeAds, initializeAi, initializeAnalytics, initializeAvatar3d, initializeCdn, initializeFeaturesApi, initializeHaptics, initializeIap, initializeLifecycleApi, initializeLocalNotifications, initializeLoggingApi, initializePopups, initializeProfile, initializeSimulation, initializeStackNavigation, initializeStorage, initializeTime, isPacificDaylightTime } from './chunk-KQZIPQLJ.mjs';
2
+ import './chunk-MWUS3A7C.mjs';
3
3
  //# sourceMappingURL=index.mjs.map
4
4
  //# sourceMappingURL=index.mjs.map