@series-inc/venus-sdk 2.2.1 → 2.4.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.
@@ -26,6 +26,78 @@ interface NavigationApi {
26
26
  requestPopOrQuit(options?: QuitOptions): Promise<boolean>;
27
27
  }
28
28
 
29
+ type TimeIntervalTriggerInput = {
30
+ type: 'timeInterval';
31
+ seconds: number;
32
+ repeats?: boolean;
33
+ channelId?: string;
34
+ };
35
+ type DateTriggerInput = {
36
+ type: 'date';
37
+ date: string;
38
+ channelId?: string;
39
+ };
40
+ type CalendarTriggerInput = {
41
+ type: 'calendar';
42
+ year?: number;
43
+ month?: number;
44
+ day?: number;
45
+ hour?: number;
46
+ minute?: number;
47
+ second?: number;
48
+ repeats?: boolean;
49
+ channelId?: string;
50
+ };
51
+ type DailyTriggerInput = {
52
+ type: 'daily';
53
+ hour: number;
54
+ minute: number;
55
+ channelId?: string;
56
+ };
57
+ type WeeklyTriggerInput = {
58
+ type: 'weekly';
59
+ weekday: number;
60
+ hour: number;
61
+ minute: number;
62
+ channelId?: string;
63
+ };
64
+ type MonthlyTriggerInput = {
65
+ type: 'monthly';
66
+ day: number;
67
+ hour: number;
68
+ minute: number;
69
+ channelId?: string;
70
+ };
71
+ type YearlyTriggerInput = {
72
+ type: 'yearly';
73
+ month: number;
74
+ day: number;
75
+ hour: number;
76
+ minute: number;
77
+ channelId?: string;
78
+ };
79
+ type NotificationTriggerInput = null | TimeIntervalTriggerInput | DateTriggerInput | CalendarTriggerInput | DailyTriggerInput | WeeklyTriggerInput | MonthlyTriggerInput | YearlyTriggerInput;
80
+ interface ScheduleLocalNotificationOptions {
81
+ priority?: number;
82
+ groupId?: string;
83
+ payload?: Record<string, any>;
84
+ trigger?: NotificationTriggerInput;
85
+ }
86
+ interface ScheduleLocalNotification {
87
+ id: string;
88
+ title?: string | null;
89
+ body?: string | null;
90
+ payload?: Record<string, any>;
91
+ trigger?: NotificationTriggerInput;
92
+ }
93
+ interface NotificationsApi {
94
+ scheduleLocalNotification(title: string, body: string, options?: ScheduleLocalNotificationOptions): Promise<string | null>;
95
+ cancelLocalNotification(notificationId: string): Promise<boolean>;
96
+ getAllScheduledLocalNotifications(): Promise<ScheduleLocalNotification[]>;
97
+ isLocalNotificationsEnabled(): Promise<boolean>;
98
+ setLocalNotificationsEnabled(enabled: boolean): Promise<boolean>;
99
+ }
100
+
29
101
  interface ShowConfirmOptions {
30
102
  confirmText?: string;
31
103
  cancelText?: string;
@@ -269,6 +341,11 @@ declare class MockAvatarApi implements Avatar3dApi {
269
341
  private log;
270
342
  }
271
343
 
344
+ interface SharedAssetsApi {
345
+ loadCharactersBundle(): Promise<ArrayBuffer>;
346
+ loadBurgerTimeAssetsBundle(): Promise<ArrayBuffer>;
347
+ }
348
+
272
349
  /**
273
350
  * DEFINITIVE TypeScript definitions for Venus H5 API
274
351
  *
@@ -624,13 +701,17 @@ interface VenusAPI {
624
701
  scheduleLocalNotifAsync(options: {
625
702
  title: string;
626
703
  body: string;
627
- timeFromNow: number;
704
+ timeFromNow?: number;
705
+ trigger?: NotificationTriggerInput;
706
+ priority?: number;
707
+ groupId?: string;
708
+ payload?: any;
628
709
  data?: any;
629
710
  sound?: string;
630
711
  badge?: number;
631
712
  }): Promise<string>;
632
713
  cancelLocalNotifAsync(notificationId: string): Promise<void>;
633
- getAllLocalNotifsAsync(): Promise<Array<any>>;
714
+ getAllLocalNotifsAsync(): Promise<ScheduleLocalNotification[]>;
634
715
  isLocalNotifEnabledAsync(): Promise<boolean>;
635
716
  setLocalNotifEnabledAsync(enabled: boolean): Promise<void>;
636
717
  showAvatar3dEditorAsync(options: {
@@ -681,6 +762,7 @@ interface VenusAPI {
681
762
  ai: AiApi;
682
763
  popups: PopupsApi;
683
764
  analytics: AnalyticsApi;
765
+ sharedAssets: SharedAssetsApi;
684
766
  }
685
767
 
686
768
  interface AdsApi {
@@ -689,4 +771,4 @@ interface AdsApi {
689
771
  showInterstitialAd(): Promise<boolean>;
690
772
  }
691
773
 
692
- export { type VenusConfig as $, type AnalyticsApi as A, type Avatar3dEdits as B, type CdnApi as C, type SubPath as D, type AiMessage as E, type FetchBlobOptions as F, type Asset as G, type HapticsApi as H, type IapApi as I, type Category as J, type Insets as K, type LifecycleApi as L, MockAvatarApi as M, type NavigationApi as N, type OnCleanupCallback as O, type PushAppOptions as P, type QuitOptions as Q, type RecipeRequirementResult as R, type ShowActionSheetOptions as S, type PostInfo as T, type VenusSimulationState as U, type VenusAPI as V, type VenusSimulationEffect as W, type VenusSimulationRecipe as X, type RecipeRequirementQuery as Y, type BatchRecipeRequirementsResult as Z, type VenusSimulationAPI as _, type NavigationStackInfo as a, type ActionSheetOption as a0, type PopupsApi as b, type ActionSheetItem as c, type ShowAlertOptions as d, type ShowConfirmOptions as e, type ShowToastOptions as f, type Profile as g, type AiApi as h, type AiChatCompletionRequest as i, type AiChatCompletionData as j, HapticFeedbackStyle as k, type OnShowCallback as l, type OnHideCallback as m, type OnPauseCallback as n, type OnPlayCallback as o, type OnQuitCallback as p, type OnResumeCallback as q, type PlayContext as r, type ShowContext as s, type VenusSimulationConfig as t, type SpendCurrencyOptions as u, type AdsApi as v, type Avatar3dApi as w, type AssetManifest as x, type Avatar3dConfig as y, type ShowEditorOptions as z };
774
+ export { type CalendarTriggerInput as $, type AnalyticsApi as A, type AssetManifest as B, type CdnApi as C, type Avatar3dConfig as D, type ShowEditorOptions as E, type Avatar3dEdits as F, type SubPath as G, type HapticsApi as H, type IapApi as I, type FetchBlobOptions as J, type SharedAssetsApi as K, type LifecycleApi as L, type AiMessage as M, type NavigationApi as N, type OnCleanupCallback as O, type PushAppOptions as P, type QuitOptions as Q, type RecipeRequirementResult as R, type ScheduleLocalNotification as S, type Asset as T, type Category as U, type VenusAPI as V, MockAvatarApi as W, type Insets as X, type PostInfo as Y, type TimeIntervalTriggerInput as Z, type DateTriggerInput as _, type NavigationStackInfo as a, type DailyTriggerInput as a0, type WeeklyTriggerInput as a1, type MonthlyTriggerInput as a2, type YearlyTriggerInput as a3, type NotificationTriggerInput as a4, type VenusSimulationState as a5, type VenusSimulationEffect as a6, type VenusSimulationRecipe as a7, type RecipeRequirementQuery as a8, type BatchRecipeRequirementsResult as a9, type VenusSimulationAPI as aa, type VenusConfig as ab, type ActionSheetOption as ac, type NotificationsApi as b, type ScheduleLocalNotificationOptions as c, type PopupsApi as d, type ActionSheetItem as e, type ShowActionSheetOptions as f, type ShowAlertOptions as g, type ShowConfirmOptions as h, type ShowToastOptions as i, type Profile as j, type AiApi as k, type AiChatCompletionRequest as l, type AiChatCompletionData as m, HapticFeedbackStyle as n, type OnShowCallback as o, type OnHideCallback as p, type OnPauseCallback as q, type OnPlayCallback as r, type OnQuitCallback as s, type OnResumeCallback as t, type PlayContext as u, type ShowContext as v, type VenusSimulationConfig as w, type SpendCurrencyOptions as x, type AdsApi as y, type Avatar3dApi as z };
@@ -26,6 +26,78 @@ interface NavigationApi {
26
26
  requestPopOrQuit(options?: QuitOptions): Promise<boolean>;
27
27
  }
28
28
 
29
+ type TimeIntervalTriggerInput = {
30
+ type: 'timeInterval';
31
+ seconds: number;
32
+ repeats?: boolean;
33
+ channelId?: string;
34
+ };
35
+ type DateTriggerInput = {
36
+ type: 'date';
37
+ date: string;
38
+ channelId?: string;
39
+ };
40
+ type CalendarTriggerInput = {
41
+ type: 'calendar';
42
+ year?: number;
43
+ month?: number;
44
+ day?: number;
45
+ hour?: number;
46
+ minute?: number;
47
+ second?: number;
48
+ repeats?: boolean;
49
+ channelId?: string;
50
+ };
51
+ type DailyTriggerInput = {
52
+ type: 'daily';
53
+ hour: number;
54
+ minute: number;
55
+ channelId?: string;
56
+ };
57
+ type WeeklyTriggerInput = {
58
+ type: 'weekly';
59
+ weekday: number;
60
+ hour: number;
61
+ minute: number;
62
+ channelId?: string;
63
+ };
64
+ type MonthlyTriggerInput = {
65
+ type: 'monthly';
66
+ day: number;
67
+ hour: number;
68
+ minute: number;
69
+ channelId?: string;
70
+ };
71
+ type YearlyTriggerInput = {
72
+ type: 'yearly';
73
+ month: number;
74
+ day: number;
75
+ hour: number;
76
+ minute: number;
77
+ channelId?: string;
78
+ };
79
+ type NotificationTriggerInput = null | TimeIntervalTriggerInput | DateTriggerInput | CalendarTriggerInput | DailyTriggerInput | WeeklyTriggerInput | MonthlyTriggerInput | YearlyTriggerInput;
80
+ interface ScheduleLocalNotificationOptions {
81
+ priority?: number;
82
+ groupId?: string;
83
+ payload?: Record<string, any>;
84
+ trigger?: NotificationTriggerInput;
85
+ }
86
+ interface ScheduleLocalNotification {
87
+ id: string;
88
+ title?: string | null;
89
+ body?: string | null;
90
+ payload?: Record<string, any>;
91
+ trigger?: NotificationTriggerInput;
92
+ }
93
+ interface NotificationsApi {
94
+ scheduleLocalNotification(title: string, body: string, options?: ScheduleLocalNotificationOptions): Promise<string | null>;
95
+ cancelLocalNotification(notificationId: string): Promise<boolean>;
96
+ getAllScheduledLocalNotifications(): Promise<ScheduleLocalNotification[]>;
97
+ isLocalNotificationsEnabled(): Promise<boolean>;
98
+ setLocalNotificationsEnabled(enabled: boolean): Promise<boolean>;
99
+ }
100
+
29
101
  interface ShowConfirmOptions {
30
102
  confirmText?: string;
31
103
  cancelText?: string;
@@ -269,6 +341,11 @@ declare class MockAvatarApi implements Avatar3dApi {
269
341
  private log;
270
342
  }
271
343
 
344
+ interface SharedAssetsApi {
345
+ loadCharactersBundle(): Promise<ArrayBuffer>;
346
+ loadBurgerTimeAssetsBundle(): Promise<ArrayBuffer>;
347
+ }
348
+
272
349
  /**
273
350
  * DEFINITIVE TypeScript definitions for Venus H5 API
274
351
  *
@@ -624,13 +701,17 @@ interface VenusAPI {
624
701
  scheduleLocalNotifAsync(options: {
625
702
  title: string;
626
703
  body: string;
627
- timeFromNow: number;
704
+ timeFromNow?: number;
705
+ trigger?: NotificationTriggerInput;
706
+ priority?: number;
707
+ groupId?: string;
708
+ payload?: any;
628
709
  data?: any;
629
710
  sound?: string;
630
711
  badge?: number;
631
712
  }): Promise<string>;
632
713
  cancelLocalNotifAsync(notificationId: string): Promise<void>;
633
- getAllLocalNotifsAsync(): Promise<Array<any>>;
714
+ getAllLocalNotifsAsync(): Promise<ScheduleLocalNotification[]>;
634
715
  isLocalNotifEnabledAsync(): Promise<boolean>;
635
716
  setLocalNotifEnabledAsync(enabled: boolean): Promise<void>;
636
717
  showAvatar3dEditorAsync(options: {
@@ -681,6 +762,7 @@ interface VenusAPI {
681
762
  ai: AiApi;
682
763
  popups: PopupsApi;
683
764
  analytics: AnalyticsApi;
765
+ sharedAssets: SharedAssetsApi;
684
766
  }
685
767
 
686
768
  interface AdsApi {
@@ -689,4 +771,4 @@ interface AdsApi {
689
771
  showInterstitialAd(): Promise<boolean>;
690
772
  }
691
773
 
692
- export { type VenusConfig as $, type AnalyticsApi as A, type Avatar3dEdits as B, type CdnApi as C, type SubPath as D, type AiMessage as E, type FetchBlobOptions as F, type Asset as G, type HapticsApi as H, type IapApi as I, type Category as J, type Insets as K, type LifecycleApi as L, MockAvatarApi as M, type NavigationApi as N, type OnCleanupCallback as O, type PushAppOptions as P, type QuitOptions as Q, type RecipeRequirementResult as R, type ShowActionSheetOptions as S, type PostInfo as T, type VenusSimulationState as U, type VenusAPI as V, type VenusSimulationEffect as W, type VenusSimulationRecipe as X, type RecipeRequirementQuery as Y, type BatchRecipeRequirementsResult as Z, type VenusSimulationAPI as _, type NavigationStackInfo as a, type ActionSheetOption as a0, type PopupsApi as b, type ActionSheetItem as c, type ShowAlertOptions as d, type ShowConfirmOptions as e, type ShowToastOptions as f, type Profile as g, type AiApi as h, type AiChatCompletionRequest as i, type AiChatCompletionData as j, HapticFeedbackStyle as k, type OnShowCallback as l, type OnHideCallback as m, type OnPauseCallback as n, type OnPlayCallback as o, type OnQuitCallback as p, type OnResumeCallback as q, type PlayContext as r, type ShowContext as s, type VenusSimulationConfig as t, type SpendCurrencyOptions as u, type AdsApi as v, type Avatar3dApi as w, type AssetManifest as x, type Avatar3dConfig as y, type ShowEditorOptions as z };
774
+ export { type CalendarTriggerInput as $, type AnalyticsApi as A, type AssetManifest as B, type CdnApi as C, type Avatar3dConfig as D, type ShowEditorOptions as E, type Avatar3dEdits as F, type SubPath as G, type HapticsApi as H, type IapApi as I, type FetchBlobOptions as J, type SharedAssetsApi as K, type LifecycleApi as L, type AiMessage as M, type NavigationApi as N, type OnCleanupCallback as O, type PushAppOptions as P, type QuitOptions as Q, type RecipeRequirementResult as R, type ScheduleLocalNotification as S, type Asset as T, type Category as U, type VenusAPI as V, MockAvatarApi as W, type Insets as X, type PostInfo as Y, type TimeIntervalTriggerInput as Z, type DateTriggerInput as _, type NavigationStackInfo as a, type DailyTriggerInput as a0, type WeeklyTriggerInput as a1, type MonthlyTriggerInput as a2, type YearlyTriggerInput as a3, type NotificationTriggerInput as a4, type VenusSimulationState as a5, type VenusSimulationEffect as a6, type VenusSimulationRecipe as a7, type RecipeRequirementQuery as a8, type BatchRecipeRequirementsResult as a9, type VenusSimulationAPI as aa, type VenusConfig as ab, type ActionSheetOption as ac, type NotificationsApi as b, type ScheduleLocalNotificationOptions as c, type PopupsApi as d, type ActionSheetItem as e, type ShowActionSheetOptions as f, type ShowAlertOptions as g, type ShowConfirmOptions as h, type ShowToastOptions as i, type Profile as j, type AiApi as k, type AiChatCompletionRequest as l, type AiChatCompletionData as m, HapticFeedbackStyle as n, type OnShowCallback as o, type OnHideCallback as p, type OnPauseCallback as q, type OnPlayCallback as r, type OnQuitCallback as s, type OnResumeCallback as t, type PlayContext as u, type ShowContext as v, type VenusSimulationConfig as w, type SpendCurrencyOptions as x, type AdsApi as y, type Avatar3dApi as z };
@@ -1,4 +1,122 @@
1
- import { __publicField, createMockDelay, MOCK_DELAYS, isWebPlatform } from './chunk-D4JRVWNC.mjs';
1
+ import { __publicField, createMockDelay, MOCK_DELAYS, isWebPlatform } from './chunk-MWUS3A7C.mjs';
2
+
3
+ // src/VenusMessageId.ts
4
+ var VenusMessageId = /* @__PURE__ */ ((VenusMessageId2) => {
5
+ VenusMessageId2["H5_RESPONSE"] = "H5_RESPONSE";
6
+ VenusMessageId2["IS_REWARDED_AD_READY"] = "H5_IS_REWARDED_AD_READY";
7
+ VenusMessageId2["SHOW_REWARDED_AD"] = "H5_SHOW_REWARDED_AD";
8
+ VenusMessageId2["LOG_ANALYTICS_EVENT"] = "H5_LOG_ANALYTICS_EVENT";
9
+ VenusMessageId2["TRACK_FUNNEL_STEP"] = "H5_TRACK_FUNNEL_STEP";
10
+ VenusMessageId2["DEVICE_CACHE_GET_ITEM"] = "H5_DEVICE_CACHE_GET_ITEM";
11
+ VenusMessageId2["DEVICE_CACHE_SET_ITEM"] = "H5_DEVICE_CACHE_SET_ITEM";
12
+ VenusMessageId2["DEVICE_CACHE_REMOVE_ITEM"] = "H5_DEVICE_CACHE_REMOVE_ITEM";
13
+ VenusMessageId2["DEVICE_CACHE_CLEAR"] = "H5_DEVICE_CACHE_CLEAR";
14
+ VenusMessageId2["DEVICE_CACHE_KEY"] = "H5_DEVICE_CACHE_KEY";
15
+ VenusMessageId2["DEVICE_CACHE_LENGTH"] = "H5_DEVICE_CACHE_LENGTH";
16
+ VenusMessageId2["APP_STORAGE_GET_ITEM"] = "H5_APP_STORAGE_GET_ITEM";
17
+ VenusMessageId2["APP_STORAGE_SET_ITEM"] = "H5_APP_STORAGE_SET_ITEM";
18
+ VenusMessageId2["APP_STORAGE_REMOVE_ITEM"] = "H5_APP_STORAGE_REMOVE_ITEM";
19
+ VenusMessageId2["APP_STORAGE_CLEAR"] = "H5_APP_STORAGE_CLEAR";
20
+ VenusMessageId2["APP_STORAGE_KEY"] = "H5_APP_STORAGE_KEY";
21
+ VenusMessageId2["APP_STORAGE_LENGTH"] = "H5_APP_STORAGE_LENGTH";
22
+ VenusMessageId2["APP_STORAGE_GET_ALL_ITEMS"] = "H5_APP_STORAGE_GET_ALL_ITEMS";
23
+ VenusMessageId2["APP_STORAGE_SET_MULTIPLE_ITEMS"] = "H5_APP_STORAGE_SET_MULTIPLE_ITEMS";
24
+ VenusMessageId2["APP_STORAGE_REMOVE_MULTIPLE_ITEMS"] = "H5_APP_STORAGE_REMOVE_MULTIPLE_ITEMS";
25
+ VenusMessageId2["GLOBAL_STORAGE_GET_ITEM"] = "H5_GLOBAL_STORAGE_GET_ITEM";
26
+ VenusMessageId2["GLOBAL_STORAGE_SET_ITEM"] = "H5_GLOBAL_STORAGE_SET_ITEM";
27
+ VenusMessageId2["GLOBAL_STORAGE_REMOVE_ITEM"] = "H5_GLOBAL_STORAGE_REMOVE_ITEM";
28
+ VenusMessageId2["GLOBAL_STORAGE_CLEAR"] = "H5_GLOBAL_STORAGE_CLEAR";
29
+ VenusMessageId2["GLOBAL_STORAGE_KEY"] = "H5_GLOBAL_STORAGE_KEY";
30
+ VenusMessageId2["GLOBAL_STORAGE_LENGTH"] = "H5_GLOBAL_STORAGE_LENGTH";
31
+ VenusMessageId2["GLOBAL_STORAGE_GET_ALL_ITEMS"] = "H5_GLOBAL_STORAGE_GET_ALL_ITEMS";
32
+ VenusMessageId2["GLOBAL_STORAGE_SET_MULTIPLE_ITEMS"] = "H5_GLOBAL_STORAGE_SET_MULTIPLE_ITEMS";
33
+ VenusMessageId2["GLOBAL_STORAGE_REMOVE_MULTIPLE_ITEMS"] = "H5_GLOBAL_STORAGE_REMOVE_MULTIPLE_ITEMS";
34
+ VenusMessageId2["AVATAR3D_LOAD"] = "H5_AVATAR3D_LOAD";
35
+ VenusMessageId2["AVATAR3D_SAVE"] = "H5_AVATAR3D_SAVE";
36
+ VenusMessageId2["AVATAR3D_DELETE"] = "H5_AVATAR3D_DELETE";
37
+ VenusMessageId2["H5_STACK_PUSH_REQUEST"] = "H5_STACK_PUSH_REQUEST";
38
+ VenusMessageId2["H5_STACK_POP_REQUEST"] = "H5_STACK_POP_REQUEST";
39
+ VenusMessageId2["SCHEDULE_LOCAL_NOTIFICATION"] = "H5_SCHEDULE_LOCAL_NOTIFICATION";
40
+ VenusMessageId2["CANCEL_LOCAL_NOTIFICATION"] = "H5_CANCEL_LOCAL_NOTIFICATION";
41
+ VenusMessageId2["GET_ALL_SCHEDULED_LOCAL_NOTIFICATIONS"] = "H5_GET_ALL_SCHEDULED_LOCAL_NOTIFICATIONS";
42
+ VenusMessageId2["IS_LOCAL_NOTIFICATIONS_ENABLED"] = "H5_IS_LOCAL_NOTIFICATIONS_ENABLED";
43
+ VenusMessageId2["SET_LOCAL_NOTIFICATIONS_ENABLED"] = "H5_SET_LOCAL_NOTIFICATIONS_ENABLED";
44
+ VenusMessageId2["TOAST"] = "H5_TOAST";
45
+ VenusMessageId2["ALERT_DIALOG"] = "H5_ALERT_DIALOG";
46
+ VenusMessageId2["CONFIRM_DIALOG"] = "H5_CONFIRM_DIALOG";
47
+ VenusMessageId2["ACTION_SHEET_SHOW"] = "H5_ACTION_SHEET_SHOW";
48
+ VenusMessageId2["REQUEST_SERVER_TIME"] = "H5_REQUEST_SERVER_TIME";
49
+ VenusMessageId2["GET_POST_INTERACTIONS"] = "H5_GET_POST_INTERACTIONS";
50
+ VenusMessageId2["TOGGLE_LIKE"] = "H5_TOGGLE_LIKE";
51
+ VenusMessageId2["OPEN_COMMENTS"] = "H5_OPEN_COMMENTS";
52
+ VenusMessageId2["TOGGLE_FOLLOW"] = "H5_TOGGLE_FOLLOW";
53
+ VenusMessageId2["SHARE_POST"] = "H5_SHARE_POST";
54
+ VenusMessageId2["AI_CHAT_COMPLETION"] = "H5_AI_CHAT_COMPLETION";
55
+ VenusMessageId2["AI_GET_AVAILABLE_MODELS"] = "H5_AI_GET_AVAILABLE_MODELS";
56
+ VenusMessageId2["TRIGGER_HAPTIC"] = "H5_TRIGGER_HAPTIC";
57
+ VenusMessageId2["DEBUG"] = "H5_DEBUG";
58
+ VenusMessageId2["H5_IAP_GET_WALLET"] = "H5_IAP_GET_WALLET";
59
+ VenusMessageId2["H5_IAP_SPEND_CURRENCY"] = "H5_IAP_SPEND_CURRENCY";
60
+ VenusMessageId2["SHOW_INTERSTITIAL_AD"] = "H5_SHOW_INTERSTITIAL_AD";
61
+ VenusMessageId2["IAP_SPEND_CURRENCY_COMPLETE"] = "IAP_SPEND_CURRENCY_COMPLETE";
62
+ VenusMessageId2["IAP_WALLET_UPDATE"] = "IAP_WALLET_UPDATE";
63
+ VenusMessageId2["READY"] = "READY";
64
+ VenusMessageId2["INIT_SDK"] = "INITIALIZE_SDK";
65
+ VenusMessageId2["PLAY"] = "PLAY";
66
+ VenusMessageId2["PAUSE"] = "PAUSE";
67
+ VenusMessageId2["RESUME"] = "RESUME";
68
+ VenusMessageId2["SHOWN"] = "SHOWN";
69
+ VenusMessageId2["HIDDEN"] = "HIDDEN";
70
+ VenusMessageId2["QUIT"] = "QUIT";
71
+ VenusMessageId2["CLEANUP"] = "CLEANUP";
72
+ VenusMessageId2["GET_EXPERIMENT"] = "H5_GET_EXPERIMENT";
73
+ VenusMessageId2["GET_FEATURE_FLAG"] = "H5_GET_FEATURE_FLAG";
74
+ VenusMessageId2["GET_FEATURE_GATE"] = "H5_GET_FEATURE_GATE";
75
+ VenusMessageId2["H5_SIMULATION_EXECUTE_RECIPE"] = "H5_SIMULATION_EXECUTE_RECIPE";
76
+ VenusMessageId2["H5_SIMULATION_GET_ACTIVE_RUNS"] = "H5_SIMULATION_GET_ACTIVE_RUNS";
77
+ VenusMessageId2["H5_SIMULATION_COLLECT_RECIPE"] = "H5_SIMULATION_COLLECT_RECIPE";
78
+ VenusMessageId2["H5_SIMULATION_EXECUTE_SCOPED_RECIPE"] = "H5_SIMULATION_EXECUTE_SCOPED_RECIPE";
79
+ VenusMessageId2["H5_SIMULATION_GET_AVAILABLE_RECIPES"] = "H5_SIMULATION_GET_AVAILABLE_RECIPES";
80
+ VenusMessageId2["H5_SIMULATION_GET_RECIPE_REQUIREMENTS"] = "H5_SIMULATION_GET_RECIPE_REQUIREMENTS";
81
+ VenusMessageId2["H5_SIMULATION_GET_BATCH_RECIPE_REQUIREMENTS"] = "H5_SIMULATION_GET_BATCH_RECIPE_REQUIREMENTS";
82
+ VenusMessageId2["H5_SIMULATION_TRIGGER_RECIPE_CHAIN"] = "H5_SIMULATION_TRIGGER_RECIPE_CHAIN";
83
+ VenusMessageId2["H5_SIMULATION_RESOLVE_VALUE"] = "H5_SIMULATION_RESOLVE_VALUE";
84
+ VenusMessageId2["H5_SIMULATION_GET_ENTITY_METADATA"] = "H5_SIMULATION_GET_ENTITY_METADATA";
85
+ VenusMessageId2["H5_SIMULATION_GET_STATE"] = "H5_SIMULATION_GET_STATE";
86
+ VenusMessageId2["H5_SIMULATION_GET_CONFIG"] = "H5_SIMULATION_GET_CONFIG";
87
+ VenusMessageId2["H5_SIMULATION_GET_CONTAINERS"] = "H5_SIMULATION_GET_CONTAINERS";
88
+ VenusMessageId2["H5_SIMULATION_GET_ASSIGNMENTS"] = "H5_SIMULATION_GET_ASSIGNMENTS";
89
+ VenusMessageId2["H5_SIMULATION_ASSIGN_ITEM"] = "H5_SIMULATION_ASSIGN_ITEM";
90
+ VenusMessageId2["H5_SIMULATION_REMOVE_ITEM"] = "H5_SIMULATION_REMOVE_ITEM";
91
+ VenusMessageId2["H5_SIMULATION_CALCULATE_POWER_PREVIEW"] = "H5_SIMULATION_CALCULATE_POWER_PREVIEW";
92
+ VenusMessageId2["H5_SIMULATION_GET_AVAILABLE_ITEMS"] = "H5_SIMULATION_GET_AVAILABLE_ITEMS";
93
+ VenusMessageId2["H5_SIMULATION_VALIDATE_ASSIGNMENT"] = "H5_SIMULATION_VALIDATE_ASSIGNMENT";
94
+ VenusMessageId2["H5_SIMULATION_BATCH_OPERATIONS"] = "H5_SIMULATION_BATCH_OPERATIONS";
95
+ VenusMessageId2["H5_ROOM_CREATE"] = "H5_ROOM_CREATE";
96
+ VenusMessageId2["H5_ROOM_JOIN"] = "H5_ROOM_JOIN";
97
+ VenusMessageId2["H5_ROOM_JOIN_OR_CREATE"] = "H5_ROOM_JOIN_OR_CREATE";
98
+ VenusMessageId2["H5_ROOM_LEAVE"] = "H5_ROOM_LEAVE";
99
+ VenusMessageId2["H5_ROOM_UPDATE_DATA"] = "H5_ROOM_UPDATE_DATA";
100
+ VenusMessageId2["H5_ROOM_GET_DATA"] = "H5_ROOM_GET_DATA";
101
+ VenusMessageId2["H5_ROOM_SUBSCRIBE"] = "H5_ROOM_SUBSCRIBE";
102
+ VenusMessageId2["H5_ROOM_UNSUBSCRIBE"] = "H5_ROOM_UNSUBSCRIBE";
103
+ VenusMessageId2["H5_ROOM_SEND_MESSAGE"] = "H5_ROOM_SEND_MESSAGE";
104
+ VenusMessageId2["H5_ROOM_GET_MESSAGES"] = "H5_ROOM_GET_MESSAGES";
105
+ VenusMessageId2["H5_ROOM_LIST_ROOMS"] = "H5_ROOM_LIST_ROOMS";
106
+ VenusMessageId2["H5_ROOM_LIST_PUBLIC"] = "H5_ROOM_LIST_PUBLIC";
107
+ VenusMessageId2["H5_ROOM_SEARCH"] = "H5_ROOM_SEARCH";
108
+ VenusMessageId2["H5_ROOM_JOIN_BY_CODE"] = "H5_ROOM_JOIN_BY_CODE";
109
+ VenusMessageId2["H5_ROOM_GET_USER_ROOMS"] = "H5_ROOM_GET_USER_ROOMS";
110
+ VenusMessageId2["H5_ROOM_GET_PLAYERS"] = "H5_ROOM_GET_PLAYERS";
111
+ VenusMessageId2["H5_ROOM_UPDATE_PLAYER_DATA"] = "H5_ROOM_UPDATE_PLAYER_DATA";
112
+ VenusMessageId2["H5_ROOM_START_GAME"] = "H5_ROOM_START_GAME";
113
+ VenusMessageId2["H5_ROOM_PROPOSE_MOVE"] = "h5:room:proposeMove";
114
+ VenusMessageId2["H5_ROOM_END_GAME"] = "H5_ROOM_END_GAME";
115
+ VenusMessageId2["H5_ROOM_ELIMINATE_PLAYER"] = "H5_ROOM_ELIMINATE_PLAYER";
116
+ VenusMessageId2["H5_ROOM_PROMOTE_TO_SPECTATOR"] = "H5_ROOM_PROMOTE_TO_SPECTATOR";
117
+ VenusMessageId2["H5_LOAD_EMBEDDED_ASSET"] = "H5_LOAD_EMBEDDED_ASSET";
118
+ return VenusMessageId2;
119
+ })(VenusMessageId || {});
2
120
 
3
121
  // src/ads/RpcAdsApi.ts
4
122
  var RpcAdsApi = class {
@@ -1510,7 +1628,13 @@ function initializeLocalNotifications(venusApi, host) {
1510
1628
  venusApi.scheduleLocalNotifAsync = async (options) => {
1511
1629
  const id = await host.notifications.scheduleLocalNotification(
1512
1630
  options.title,
1513
- options.body
1631
+ options.body,
1632
+ {
1633
+ trigger: options.trigger,
1634
+ priority: options.priority,
1635
+ groupId: options.groupId,
1636
+ payload: options.payload
1637
+ }
1514
1638
  );
1515
1639
  if (id) {
1516
1640
  return id;
@@ -3128,8 +3252,77 @@ function initializeTime(venusApi, host) {
3128
3252
  }
3129
3253
 
3130
3254
  // src/version.ts
3131
- var SDK_VERSION = "2.2.1";
3255
+ var SDK_VERSION = "2.3.0";
3256
+
3257
+ // src/shared-assets/consts.ts
3258
+ var BurgerTimeAssetsCdnPath = "burger-time/Core.stow";
3259
+ var CharacterAssetsCdnPath = "burger-time/Character.stow";
3260
+
3261
+ // src/shared-assets/RpcSharedAssetsApi.ts
3262
+ var RpcSharedAssetsApi = class {
3263
+ constructor(rpcClient, venusApi) {
3264
+ __publicField(this, "venusApi");
3265
+ __publicField(this, "rpcClient");
3266
+ this.rpcClient = rpcClient;
3267
+ this.venusApi = venusApi;
3268
+ }
3269
+ async loadBurgerTimeAssetsBundle() {
3270
+ try {
3271
+ const response = await this.rpcClient.callT("H5_LOAD_EMBEDDED_ASSET" /* H5_LOAD_EMBEDDED_ASSET */, {
3272
+ assetKey: "burgerTimeCoreBundle"
3273
+ });
3274
+ return base64ToArrayBuffer(response.base64Data);
3275
+ } catch (err) {
3276
+ try {
3277
+ const blob = await this.venusApi.cdn.fetchBlob(BurgerTimeAssetsCdnPath);
3278
+ return await blob.arrayBuffer();
3279
+ } catch (e) {
3280
+ throw new Error("Failed to load burgerTimeAssetsBundle");
3281
+ }
3282
+ }
3283
+ }
3284
+ async loadCharactersBundle() {
3285
+ try {
3286
+ const response = await this.rpcClient.callT("H5_LOAD_EMBEDDED_ASSET" /* H5_LOAD_EMBEDDED_ASSET */, {
3287
+ assetKey: "characters"
3288
+ });
3289
+ return base64ToArrayBuffer(response.base64Data);
3290
+ } catch (err) {
3291
+ try {
3292
+ const blob = await this.venusApi.cdn.fetchBlob(CharacterAssetsCdnPath);
3293
+ return await blob.arrayBuffer();
3294
+ } catch (e) {
3295
+ throw new Error("Failed to load charactersBundle");
3296
+ }
3297
+ }
3298
+ }
3299
+ };
3300
+ function base64ToArrayBuffer(base64) {
3301
+ const binaryString = atob(base64);
3302
+ const len = binaryString.length;
3303
+ const bytes = new Uint8Array(len);
3304
+ for (let i = 0; i < len; i++) {
3305
+ bytes[i] = binaryString.charCodeAt(i);
3306
+ }
3307
+ return bytes.buffer;
3308
+ }
3309
+
3310
+ // src/shared-assets/MockSharedAssetsApi.ts
3311
+ var MockSharedAssetsApi = class {
3312
+ constructor(venusApi) {
3313
+ __publicField(this, "venusApi");
3314
+ this.venusApi = venusApi;
3315
+ }
3316
+ async loadBurgerTimeAssetsBundle() {
3317
+ const blob = await this.venusApi.cdn.fetchBlob(BurgerTimeAssetsCdnPath);
3318
+ return await blob.arrayBuffer();
3319
+ }
3320
+ async loadCharactersBundle() {
3321
+ const blob = await this.venusApi.cdn.fetchBlob(CharacterAssetsCdnPath);
3322
+ return await blob.arrayBuffer();
3323
+ }
3324
+ };
3132
3325
 
3133
- 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 };
3134
- //# sourceMappingURL=chunk-AMGTKSDN.mjs.map
3135
- //# sourceMappingURL=chunk-AMGTKSDN.mjs.map
3326
+ 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 };
3327
+ //# sourceMappingURL=chunk-BQQCR2RO.mjs.map
3328
+ //# sourceMappingURL=chunk-BQQCR2RO.mjs.map