@series-inc/venus-sdk 3.0.4 → 3.1.0-beta.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.
- package/README.md +324 -123
- package/dist/{AdsApi-CNGRf6j0.d.mts → AdsApi-meVfUcZy.d.mts} +37 -25
- package/dist/{AdsApi-CNGRf6j0.d.ts → AdsApi-meVfUcZy.d.ts} +37 -25
- package/dist/chunk-2PDL7CQK.mjs +26 -0
- package/dist/chunk-2PDL7CQK.mjs.map +1 -0
- package/dist/{chunk-PXWCNWJ6.mjs → chunk-EMVTVSGL.mjs} +421 -109
- package/dist/chunk-EMVTVSGL.mjs.map +1 -0
- package/dist/chunk-IZLOB7DV.mjs +343 -0
- package/dist/chunk-IZLOB7DV.mjs.map +1 -0
- package/dist/{chunk-W7IPHM67.mjs → chunk-QABXMFND.mjs} +3 -26
- package/dist/chunk-QABXMFND.mjs.map +1 -0
- package/dist/core-5JLON75E.mjs +4 -0
- package/dist/{core-R3FHW62G.mjs.map → core-5JLON75E.mjs.map} +1 -1
- package/dist/index.cjs +768 -105
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +140 -25
- package/dist/index.d.ts +140 -25
- package/dist/index.mjs +5 -3
- package/dist/index.mjs.map +1 -1
- package/dist/venus-api/index.cjs +452 -101
- package/dist/venus-api/index.cjs.map +1 -1
- package/dist/venus-api/index.d.mts +2 -2
- package/dist/venus-api/index.d.ts +2 -2
- package/dist/venus-api/index.mjs +46 -3
- package/dist/venus-api/index.mjs.map +1 -1
- package/dist/vite/index.cjs +534 -0
- package/dist/vite/index.cjs.map +1 -0
- package/dist/vite/index.mjs +527 -0
- package/dist/vite/index.mjs.map +1 -0
- package/dist/webview/index.cjs +346 -0
- package/dist/webview/index.cjs.map +1 -0
- package/dist/webview/index.d.mts +17 -0
- package/dist/webview/index.d.ts +17 -0
- package/dist/webview/index.mjs +4 -0
- package/dist/webview/index.mjs.map +1 -0
- package/package.json +19 -1
- package/dist/chunk-PXWCNWJ6.mjs.map +0 -1
- package/dist/chunk-W7IPHM67.mjs.map +0 -1
- package/dist/core-R3FHW62G.mjs +0 -3
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { j as AnalyticsApi, k as RpcRequest, l as RpcResponse, m as RpcNotification, n as RpcClient, V as VenusAPI, H as Host, S as StorageApi, N as NavigationApi, Q as QuitOptions, o as NavigationStackInfo, p as PushAppOptions, q as NotificationsApi, r as ScheduleLocalNotification, s as ScheduleNotificationOptions, t as PopupsApi, u as ActionSheetItem, v as ShowActionSheetOptions, w as ShowAlertOptions, x as ShowConfirmOptions, y as ShowToastOptions, z as ShowInterstitialAdOptions, C as ShowRewardedAdOptions, D as ProfileApi, P as Profile, E as CdnApi, F as SubPath, G as FetchBlobOptions, T as TimeApi, I as ServerTimeData, J as GetFutureTimeOptions, K as AiApi, L as AiChatCompletionRequest, M as AiChatCompletionData, O as HapticsApi, U as HapticFeedbackStyle, W as FeaturesApi, X as Experiment, Y as LifecycleApi, Z as SleepCallback, _ as Subscription, $ as AwakeCallback, a0 as PauseCallback, a1 as ResumeCallback, a2 as QuitCallback, a3 as SimulationApi, d as VenusSimulationConfig, a4 as ExecuteRecipeOptions, a5 as CollectRecipeResult, a6 as GetActiveRunsOptions, a7 as ExecuteScopedRecipeResult, a8 as GetAvailableRecipesOptions, a9 as GetAvailableRecipesResult, aa as Recipe, ab as GetBatchRecipeRequirements, ac as TriggerRecipeChainOptions, R as RecipeRequirementResult, ad as VenusTransport, ae as LoggingApi, af as IapApi, ag as SpendCurrencyOptions, ah as LoadEmbeddedAssetsResponse, ai as SharedAssetsApi, aj as LeaderboardApi, ak as ScoreToken, al as SubmitScoreParams, am as SubmitScoreResult, an as GetPagedScoresOptions, ao as PagedScoresResponse, ap as PlayerRankOptions, aq as PlayerRankResult, ar as GetPodiumScoresOptions, as as PodiumScoresResponse, at as PreloaderApi, au as SocialApi, av as ShareMetadata, aw as ShareLinkResult, ax as SocialQRCodeOptions, ay as QRCodeResult, az as Avatar3dApi, aA as AssetManifest, aB as Avatar3dConfig, aC as ShowEditorOptions, aD as Avatar3dEdits, aE as AdsApi, aF as PostApi, aG as RoomsApi, aH as InitializationOptions, aI as InitializationContext, aJ as HudInsets } from './AdsApi-meVfUcZy.mjs';
|
|
2
|
+
export { aK as AiMessage, aL as Asset, aM as Category, aU as CreateRoomOptions, a_ as ExecuteScopedRecipeOptions, aV as JoinOrCreateResult, b5 as LeaderboardAntiCheatConfig, b7 as LeaderboardConfig, b6 as LeaderboardDisplaySettings, b8 as LeaderboardEntry, b2 as LeaderboardModeConfig, b4 as LeaderboardPeriodConfig, b3 as LeaderboardPeriodType, b1 as LoadEmbeddedAssetsRequest, aN as MockAvatarApi, aP as NotificationTriggerInput, aS as OnNotificationCallback, aQ as OnRequestCallback, aR as OnResponseCallback, b9 as PodiumScoresContext, aX as ProposeMovePayload, aY as ProposeMoveResult, a$ as RecipeInfo, aW as RoomSubscriptionOptions, b0 as RpcSharedAssetsApi, aT as RpcTransport, aO as TimeIntervalTriggerInput, aZ as ValidateMoveResult, i as VenusRoom, ba as createHost } from './AdsApi-meVfUcZy.mjs';
|
|
3
|
+
export { WEBVIEW_LIBRARY_SHIM_SOURCE, getWebviewLibraryShimSource } from './webview/index.mjs';
|
|
3
4
|
|
|
4
5
|
declare class MockAnalyticsApi implements AnalyticsApi {
|
|
5
6
|
recordCustomEvent(eventName: string, payload: Record<string, any>): Promise<void>;
|
|
@@ -195,7 +196,8 @@ declare function initializeCdn(venusApi: VenusAPI, host: Host): void;
|
|
|
195
196
|
|
|
196
197
|
declare class HostTimeApi implements TimeApi {
|
|
197
198
|
private readonly rpcClient;
|
|
198
|
-
|
|
199
|
+
private readonly venusApi;
|
|
200
|
+
constructor(rpcClient: RpcClient, venusApi: VenusAPI);
|
|
199
201
|
requestTimeAsync(): Promise<ServerTimeData>;
|
|
200
202
|
formatTime(timestamp: number, options?: any): string;
|
|
201
203
|
formatNumber(value: number, options?: Intl.NumberFormatOptions): string;
|
|
@@ -211,7 +213,6 @@ declare class MockTimeApi implements TimeApi {
|
|
|
211
213
|
formatTime(timestamp: number, options?: any): string;
|
|
212
214
|
getFutureTimeAsync(options?: GetFutureTimeOptions): Promise<number>;
|
|
213
215
|
requestTimeAsync(): Promise<ServerTimeData>;
|
|
214
|
-
private getLocale;
|
|
215
216
|
}
|
|
216
217
|
|
|
217
218
|
declare function initializeTime(venusApi: VenusAPI, host: Host): void;
|
|
@@ -397,7 +398,60 @@ declare class MockSharedAssetsApi implements SharedAssetsApi {
|
|
|
397
398
|
constructor(venusApi: VenusAPI);
|
|
398
399
|
loadBurgerTimeAssetsBundle(): Promise<ArrayBuffer>;
|
|
399
400
|
loadCharactersBundle(): Promise<ArrayBuffer>;
|
|
400
|
-
|
|
401
|
+
loadLibraryCode(libraryKey: string): Promise<string>;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
type ModuleSpecifierMatch = 'exact' | 'prefix';
|
|
405
|
+
interface ModuleSpecifierConfig {
|
|
406
|
+
match: ModuleSpecifierMatch;
|
|
407
|
+
value: string;
|
|
408
|
+
behavior?: 'default' | 'react-jsx-runtime' | 'react-jsx-dev-runtime' | 'namespace';
|
|
409
|
+
}
|
|
410
|
+
interface EmbeddedLibraryDefinition {
|
|
411
|
+
libraryKey: string;
|
|
412
|
+
assetKey: string;
|
|
413
|
+
packageName: string;
|
|
414
|
+
version: string;
|
|
415
|
+
globalVar: string;
|
|
416
|
+
cdnPath: string;
|
|
417
|
+
moduleSpecifiers: ModuleSpecifierConfig[];
|
|
418
|
+
loadStage: number;
|
|
419
|
+
enabled: boolean;
|
|
420
|
+
}
|
|
421
|
+
declare const DEFAULT_SHARED_LIB_CDN_BASE = "https://venus-static-01293ak.web.app/libs";
|
|
422
|
+
declare const EMBEDDED_LIBRARIES: EmbeddedLibraryDefinition[];
|
|
423
|
+
declare const EMBEDDED_LIBRARY_BY_KEY: Record<string, EmbeddedLibraryDefinition>;
|
|
424
|
+
declare const MODULE_TO_LIBRARY_SPECIFIERS: {
|
|
425
|
+
libraryKey: string;
|
|
426
|
+
match: ModuleSpecifierMatch;
|
|
427
|
+
value: string;
|
|
428
|
+
behavior?: "default" | "react-jsx-runtime" | "react-jsx-dev-runtime" | "namespace";
|
|
429
|
+
}[];
|
|
430
|
+
/**
|
|
431
|
+
* Get library definition by key, throwing if not found.
|
|
432
|
+
* @param libraryKey - Library key (e.g., 'phaser@3.90.0')
|
|
433
|
+
* @returns Library definition
|
|
434
|
+
* @throws Error if library key is not found
|
|
435
|
+
*/
|
|
436
|
+
declare function getLibraryDefinition(libraryKey: string): EmbeddedLibraryDefinition;
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* Base64 encoding/decoding utilities for embedded assets and libraries.
|
|
440
|
+
*
|
|
441
|
+
* These utilities handle base64 data received from the Venus host via RPC,
|
|
442
|
+
* converting it to ArrayBuffer or UTF-8 strings with appropriate fallbacks
|
|
443
|
+
* for different JavaScript environments.
|
|
444
|
+
*/
|
|
445
|
+
/**
|
|
446
|
+
* Convert base64 string to ArrayBuffer.
|
|
447
|
+
* Uses native atob() when available for best performance.
|
|
448
|
+
*/
|
|
449
|
+
declare function base64ToArrayBuffer(base64: string): ArrayBuffer;
|
|
450
|
+
/**
|
|
451
|
+
* Convert base64 string to UTF-8 string.
|
|
452
|
+
* Tries multiple decoding strategies for maximum compatibility.
|
|
453
|
+
*/
|
|
454
|
+
declare function base64ToUtf8(base64: string): string;
|
|
401
455
|
|
|
402
456
|
declare class MockIapApi implements IapApi {
|
|
403
457
|
private _hardCurrency;
|
|
@@ -413,35 +467,96 @@ declare function initializeIap(venusApiInstance: VenusAPI, host: Host): void;
|
|
|
413
467
|
|
|
414
468
|
declare class RpcLeaderboardApi implements LeaderboardApi {
|
|
415
469
|
private readonly rpcClient;
|
|
470
|
+
/** Cache of score tokens for automatic hash computation */
|
|
471
|
+
private tokenCache;
|
|
416
472
|
constructor(rpcClient: RpcClient);
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
473
|
+
/**
|
|
474
|
+
* Create a score token for submitting a score.
|
|
475
|
+
* Token is cached for automatic hash computation if score sealing is enabled.
|
|
476
|
+
*
|
|
477
|
+
* @param mode - Optional game mode
|
|
478
|
+
* @returns Score token with sealing data if enabled
|
|
479
|
+
*/
|
|
480
|
+
createScoreToken(mode?: string): Promise<ScoreToken>;
|
|
481
|
+
/**
|
|
482
|
+
* Submit a score to the leaderboard.
|
|
483
|
+
* Automatically computes hash if score sealing is enabled and token was created via createScoreToken().
|
|
484
|
+
*
|
|
485
|
+
* @param params - Score submission parameters
|
|
486
|
+
* @returns Submission result with acceptance status and rank
|
|
487
|
+
* @throws Error if token not found in cache
|
|
488
|
+
*/
|
|
489
|
+
submitScore(params: SubmitScoreParams): Promise<SubmitScoreResult>;
|
|
490
|
+
getPagedScores(options?: GetPagedScoresOptions): Promise<PagedScoresResponse>;
|
|
491
|
+
getMyRank(options?: PlayerRankOptions): Promise<PlayerRankResult>;
|
|
492
|
+
getPodiumScores(options?: GetPodiumScoresOptions): Promise<PodiumScoresResponse>;
|
|
422
493
|
}
|
|
423
494
|
|
|
424
495
|
declare class MockLeaderboardApi implements LeaderboardApi {
|
|
425
|
-
private
|
|
496
|
+
private tokens;
|
|
497
|
+
/** Cache of score tokens for automatic hash computation */
|
|
498
|
+
private tokenCache;
|
|
426
499
|
private entriesByMode;
|
|
427
|
-
private
|
|
428
|
-
private
|
|
500
|
+
private tokenCounter;
|
|
501
|
+
private enableScoreSealing;
|
|
502
|
+
private scoreSealingSecret;
|
|
429
503
|
constructor(options?: {
|
|
430
|
-
|
|
504
|
+
enableScoreSealing?: boolean;
|
|
505
|
+
scoreSealingSecret?: string;
|
|
431
506
|
});
|
|
507
|
+
/**
|
|
508
|
+
* Configure mock leaderboard settings
|
|
509
|
+
*
|
|
510
|
+
* @param options - Configuration options
|
|
511
|
+
*/
|
|
432
512
|
configure(options: {
|
|
433
|
-
|
|
513
|
+
enableScoreSealing?: boolean;
|
|
514
|
+
scoreSealingSecret?: string;
|
|
434
515
|
}): void;
|
|
435
516
|
private generateNonce;
|
|
436
517
|
private getModeKey;
|
|
437
518
|
private getEntriesForMode;
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
519
|
+
/**
|
|
520
|
+
* Create a mock score token for testing.
|
|
521
|
+
* Token is cached for automatic hash computation if score sealing is enabled.
|
|
522
|
+
*
|
|
523
|
+
* @param mode - Optional game mode
|
|
524
|
+
* @returns Score token with sealing data if enabled
|
|
525
|
+
*/
|
|
526
|
+
createScoreToken(mode?: string): Promise<ScoreToken>;
|
|
527
|
+
/**
|
|
528
|
+
* Submit a mock score to the leaderboard.
|
|
529
|
+
* Automatically computes hash if score sealing is enabled and token was created via createScoreToken().
|
|
530
|
+
*
|
|
531
|
+
* @param params - Score submission parameters
|
|
532
|
+
* @returns Submission result with acceptance status and rank
|
|
533
|
+
* @throws Error if token not found in cache or validation fails
|
|
534
|
+
*/
|
|
535
|
+
submitScore(params: SubmitScoreParams): Promise<SubmitScoreResult>;
|
|
536
|
+
getPagedScores(options?: GetPagedScoresOptions): Promise<PagedScoresResponse>;
|
|
537
|
+
getMyRank(_options?: PlayerRankOptions): Promise<PlayerRankResult>;
|
|
538
|
+
getPodiumScores(options?: GetPodiumScoresOptions): Promise<PodiumScoresResponse>;
|
|
443
539
|
}
|
|
444
540
|
|
|
541
|
+
/**
|
|
542
|
+
* Hash algorithm used for score sealing
|
|
543
|
+
*/
|
|
544
|
+
declare const HASH_ALGORITHM_WEB_CRYPTO = "SHA-256";
|
|
545
|
+
declare const HASH_ALGORITHM_NODE = "sha256";
|
|
546
|
+
/**
|
|
547
|
+
* Compute HMAC-SHA256 hash for score sealing.
|
|
548
|
+
* Hash always includes: score, duration, token
|
|
549
|
+
* Matches server-side hash computation exactly.
|
|
550
|
+
*
|
|
551
|
+
* @param score - The score value
|
|
552
|
+
* @param duration - Duration in seconds
|
|
553
|
+
* @param token - Score token
|
|
554
|
+
* @param sealingNonce - One-time nonce for this submission
|
|
555
|
+
* @param sealingSecret - Secret key for HMAC
|
|
556
|
+
* @returns Hex-encoded hash string
|
|
557
|
+
*/
|
|
558
|
+
declare function computeScoreHash(score: number, duration: number, token: string, sealingNonce: string, sealingSecret: string): Promise<string>;
|
|
559
|
+
|
|
445
560
|
declare function initializeLeaderboard(venusApiInstance: VenusAPI, host: Host): void;
|
|
446
561
|
|
|
447
562
|
declare class MockPreloaderApi implements PreloaderApi {
|
|
@@ -619,11 +734,11 @@ declare enum VenusMessageId {
|
|
|
619
734
|
H5_SIMULATION_GET_AVAILABLE_ITEMS = "H5_SIMULATION_GET_AVAILABLE_ITEMS",
|
|
620
735
|
H5_SIMULATION_VALIDATE_ASSIGNMENT = "H5_SIMULATION_VALIDATE_ASSIGNMENT",
|
|
621
736
|
H5_SIMULATION_BATCH_OPERATIONS = "H5_SIMULATION_BATCH_OPERATIONS",
|
|
622
|
-
|
|
737
|
+
H5_LEADERBOARD_CREATE_SCORE_TOKEN = "H5_LEADERBOARD_CREATE_SCORE_TOKEN",
|
|
623
738
|
H5_LEADERBOARD_SUBMIT_SCORE = "H5_LEADERBOARD_SUBMIT_SCORE",
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
739
|
+
H5_LEADERBOARD_GET_PAGED_SCORES = "H5_LEADERBOARD_GET_PAGED_SCORES",
|
|
740
|
+
H5_LEADERBOARD_GET_PODIUM_SCORES = "H5_LEADERBOARD_GET_PODIUM_SCORES",
|
|
741
|
+
H5_LEADERBOARD_GET_MY_RANK = "H5_LEADERBOARD_GET_MY_RANK",
|
|
627
742
|
H5_ROOM_CREATE = "H5_ROOM_CREATE",
|
|
628
743
|
H5_ROOM_JOIN = "H5_ROOM_JOIN",
|
|
629
744
|
H5_ROOM_JOIN_OR_CREATE = "H5_ROOM_JOIN_OR_CREATE",
|
|
@@ -701,4 +816,4 @@ interface InitResponse {
|
|
|
701
816
|
launchParams?: Record<string, string>;
|
|
702
817
|
}
|
|
703
818
|
|
|
704
|
-
export { ActionSheetItem, AdsApi, AiApi, AiChatCompletionData, AiChatCompletionRequest, AnalyticsApi, AssetManifest, Avatar3dApi, Avatar3dConfig, Avatar3dEdits, AwakeCallback, CdnApi, CollectRecipeResult, ExecuteRecipeOptions, ExecuteScopedRecipeResult, Experiment, FeaturesApi, FetchBlobOptions, GetActiveRunsOptions, GetAvailableRecipesOptions, GetAvailableRecipesResult, GetBatchRecipeRequirements, GetFutureTimeOptions,
|
|
819
|
+
export { ActionSheetItem, AdsApi, AiApi, AiChatCompletionData, AiChatCompletionRequest, AnalyticsApi, AssetManifest, Avatar3dApi, Avatar3dConfig, Avatar3dEdits, AwakeCallback, CdnApi, CollectRecipeResult, DEFAULT_SHARED_LIB_CDN_BASE, EMBEDDED_LIBRARIES, EMBEDDED_LIBRARY_BY_KEY, type EmbeddedLibraryDefinition, ExecuteRecipeOptions, ExecuteScopedRecipeResult, Experiment, FeaturesApi, FetchBlobOptions, GetActiveRunsOptions, GetAvailableRecipesOptions, GetAvailableRecipesResult, GetBatchRecipeRequirements, GetFutureTimeOptions, GetPagedScoresOptions, GetPodiumScoresOptions, HASH_ALGORITHM_NODE, HASH_ALGORITHM_WEB_CRYPTO, HapticFeedbackStyle, HapticsApi, Host, HostCdnApi, HostProfileApi, HostTimeApi, HudInsets, IapApi, type InitResponse, InitializationContext, InitializationOptions, LeaderboardApi, LifecycleApi, LoadEmbeddedAssetsResponse, LoggingApi, MODULE_TO_LIBRARY_SPECIFIERS, type MethodIds, MockAdsApi, MockAiApi, MockAnalyticsApi, MockCdnApi, MockFeaturesApi, MockHapticsApi, MockIapApi, MockLeaderboardApi, MockLifecycleApi, MockLoggingApi, MockNavigationApi, MockNotificationsApi, MockPopupsApi, MockPreloaderApi, MockProfileApi, MockSharedAssetsApi, MockSimulationApi, MockSocialApi, MockStorageApi, MockTimeApi, type ModuleSpecifierConfig, type ModuleSpecifierMatch, NavigationApi, NavigationStackInfo, type NotificationContent, NotificationsApi, PagedScoresResponse, PauseCallback, PlayerRankOptions, PlayerRankResult, PodiumScoresResponse, PopupsApi, PreloaderApi, ProfileApi, PushAppOptions, QRCodeResult, QuitCallback, QuitOptions, Recipe, RemoteHost, ResumeCallback, RoomsApi, RpcAdsApi, RpcAiApi, RpcAnalyticsApi, RpcAvatarApi, RpcClient, RpcFeaturesApi, RpcHapticsApi, RpcIapApi, RpcLeaderboardApi, RpcLifecycleApi, RpcLoggingApi, type RpcMessage, RpcNavigationApi, RpcNotification, RpcNotificationsApi, RpcPopupsApi, RpcPreloaderApi, RpcRequest, RpcResponse, RpcSimulationApi, RpcSocialApi, RpcStorageApi, SDK_VERSION, ScheduleLocalNotification, ScheduleNotificationOptions, ScoreToken, ServerTimeData, ShareLinkResult, ShareMetadata, SharedAssetsApi, ShowActionSheetOptions, ShowAlertOptions, ShowConfirmOptions, ShowEditorOptions, ShowInterstitialAdOptions, ShowRewardedAdOptions, ShowToastOptions, type ShowToastResponse, SimulationApi, SleepCallback, SocialApi, SocialQRCodeOptions, SpendCurrencyOptions, StorageApi, type StorageType, SubPath, SubmitScoreParams, SubmitScoreResult, Subscription, TimeApi, TriggerRecipeChainOptions, VenusMessageId, base64ToArrayBuffer, base64ToUtf8, computeScoreHash, createMockStorageApi, getLibraryDefinition, initializeAds, initializeAi, initializeAnalytics, initializeAvatar3d, initializeCdn, initializeFeaturesApi, initializeHaptics, initializeIap, initializeLeaderboard, initializeLifecycleApi, initializeLocalNotifications, initializeLoggingApi, initializePopups, initializePreloader, initializeProfile, initializeRoomsApi, initializeSimulation, initializeSocial, initializeStackNavigation, initializeStorage, initializeTime, isPacificDaylightTime, setupRoomNotifications };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { j as AnalyticsApi, k as RpcRequest, l as RpcResponse, m as RpcNotification, n as RpcClient, V as VenusAPI, H as Host, S as StorageApi, N as NavigationApi, Q as QuitOptions, o as NavigationStackInfo, p as PushAppOptions, q as NotificationsApi, r as ScheduleLocalNotification, s as ScheduleNotificationOptions, t as PopupsApi, u as ActionSheetItem, v as ShowActionSheetOptions, w as ShowAlertOptions, x as ShowConfirmOptions, y as ShowToastOptions, z as ShowInterstitialAdOptions, C as ShowRewardedAdOptions, D as ProfileApi, P as Profile, E as CdnApi, F as SubPath, G as FetchBlobOptions, T as TimeApi, I as ServerTimeData, J as GetFutureTimeOptions, K as AiApi, L as AiChatCompletionRequest, M as AiChatCompletionData, O as HapticsApi, U as HapticFeedbackStyle, W as FeaturesApi, X as Experiment, Y as LifecycleApi, Z as SleepCallback, _ as Subscription, $ as AwakeCallback, a0 as PauseCallback, a1 as ResumeCallback, a2 as QuitCallback, a3 as SimulationApi, d as VenusSimulationConfig, a4 as ExecuteRecipeOptions, a5 as CollectRecipeResult, a6 as GetActiveRunsOptions, a7 as ExecuteScopedRecipeResult, a8 as GetAvailableRecipesOptions, a9 as GetAvailableRecipesResult, aa as Recipe, ab as GetBatchRecipeRequirements, ac as TriggerRecipeChainOptions, R as RecipeRequirementResult, ad as VenusTransport, ae as LoggingApi, af as IapApi, ag as SpendCurrencyOptions, ah as LoadEmbeddedAssetsResponse, ai as SharedAssetsApi, aj as LeaderboardApi, ak as ScoreToken, al as SubmitScoreParams, am as SubmitScoreResult, an as GetPagedScoresOptions, ao as PagedScoresResponse, ap as PlayerRankOptions, aq as PlayerRankResult, ar as GetPodiumScoresOptions, as as PodiumScoresResponse, at as PreloaderApi, au as SocialApi, av as ShareMetadata, aw as ShareLinkResult, ax as SocialQRCodeOptions, ay as QRCodeResult, az as Avatar3dApi, aA as AssetManifest, aB as Avatar3dConfig, aC as ShowEditorOptions, aD as Avatar3dEdits, aE as AdsApi, aF as PostApi, aG as RoomsApi, aH as InitializationOptions, aI as InitializationContext, aJ as HudInsets } from './AdsApi-meVfUcZy.js';
|
|
2
|
+
export { aK as AiMessage, aL as Asset, aM as Category, aU as CreateRoomOptions, a_ as ExecuteScopedRecipeOptions, aV as JoinOrCreateResult, b5 as LeaderboardAntiCheatConfig, b7 as LeaderboardConfig, b6 as LeaderboardDisplaySettings, b8 as LeaderboardEntry, b2 as LeaderboardModeConfig, b4 as LeaderboardPeriodConfig, b3 as LeaderboardPeriodType, b1 as LoadEmbeddedAssetsRequest, aN as MockAvatarApi, aP as NotificationTriggerInput, aS as OnNotificationCallback, aQ as OnRequestCallback, aR as OnResponseCallback, b9 as PodiumScoresContext, aX as ProposeMovePayload, aY as ProposeMoveResult, a$ as RecipeInfo, aW as RoomSubscriptionOptions, b0 as RpcSharedAssetsApi, aT as RpcTransport, aO as TimeIntervalTriggerInput, aZ as ValidateMoveResult, i as VenusRoom, ba as createHost } from './AdsApi-meVfUcZy.js';
|
|
3
|
+
export { WEBVIEW_LIBRARY_SHIM_SOURCE, getWebviewLibraryShimSource } from './webview/index.js';
|
|
3
4
|
|
|
4
5
|
declare class MockAnalyticsApi implements AnalyticsApi {
|
|
5
6
|
recordCustomEvent(eventName: string, payload: Record<string, any>): Promise<void>;
|
|
@@ -195,7 +196,8 @@ declare function initializeCdn(venusApi: VenusAPI, host: Host): void;
|
|
|
195
196
|
|
|
196
197
|
declare class HostTimeApi implements TimeApi {
|
|
197
198
|
private readonly rpcClient;
|
|
198
|
-
|
|
199
|
+
private readonly venusApi;
|
|
200
|
+
constructor(rpcClient: RpcClient, venusApi: VenusAPI);
|
|
199
201
|
requestTimeAsync(): Promise<ServerTimeData>;
|
|
200
202
|
formatTime(timestamp: number, options?: any): string;
|
|
201
203
|
formatNumber(value: number, options?: Intl.NumberFormatOptions): string;
|
|
@@ -211,7 +213,6 @@ declare class MockTimeApi implements TimeApi {
|
|
|
211
213
|
formatTime(timestamp: number, options?: any): string;
|
|
212
214
|
getFutureTimeAsync(options?: GetFutureTimeOptions): Promise<number>;
|
|
213
215
|
requestTimeAsync(): Promise<ServerTimeData>;
|
|
214
|
-
private getLocale;
|
|
215
216
|
}
|
|
216
217
|
|
|
217
218
|
declare function initializeTime(venusApi: VenusAPI, host: Host): void;
|
|
@@ -397,7 +398,60 @@ declare class MockSharedAssetsApi implements SharedAssetsApi {
|
|
|
397
398
|
constructor(venusApi: VenusAPI);
|
|
398
399
|
loadBurgerTimeAssetsBundle(): Promise<ArrayBuffer>;
|
|
399
400
|
loadCharactersBundle(): Promise<ArrayBuffer>;
|
|
400
|
-
|
|
401
|
+
loadLibraryCode(libraryKey: string): Promise<string>;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
type ModuleSpecifierMatch = 'exact' | 'prefix';
|
|
405
|
+
interface ModuleSpecifierConfig {
|
|
406
|
+
match: ModuleSpecifierMatch;
|
|
407
|
+
value: string;
|
|
408
|
+
behavior?: 'default' | 'react-jsx-runtime' | 'react-jsx-dev-runtime' | 'namespace';
|
|
409
|
+
}
|
|
410
|
+
interface EmbeddedLibraryDefinition {
|
|
411
|
+
libraryKey: string;
|
|
412
|
+
assetKey: string;
|
|
413
|
+
packageName: string;
|
|
414
|
+
version: string;
|
|
415
|
+
globalVar: string;
|
|
416
|
+
cdnPath: string;
|
|
417
|
+
moduleSpecifiers: ModuleSpecifierConfig[];
|
|
418
|
+
loadStage: number;
|
|
419
|
+
enabled: boolean;
|
|
420
|
+
}
|
|
421
|
+
declare const DEFAULT_SHARED_LIB_CDN_BASE = "https://venus-static-01293ak.web.app/libs";
|
|
422
|
+
declare const EMBEDDED_LIBRARIES: EmbeddedLibraryDefinition[];
|
|
423
|
+
declare const EMBEDDED_LIBRARY_BY_KEY: Record<string, EmbeddedLibraryDefinition>;
|
|
424
|
+
declare const MODULE_TO_LIBRARY_SPECIFIERS: {
|
|
425
|
+
libraryKey: string;
|
|
426
|
+
match: ModuleSpecifierMatch;
|
|
427
|
+
value: string;
|
|
428
|
+
behavior?: "default" | "react-jsx-runtime" | "react-jsx-dev-runtime" | "namespace";
|
|
429
|
+
}[];
|
|
430
|
+
/**
|
|
431
|
+
* Get library definition by key, throwing if not found.
|
|
432
|
+
* @param libraryKey - Library key (e.g., 'phaser@3.90.0')
|
|
433
|
+
* @returns Library definition
|
|
434
|
+
* @throws Error if library key is not found
|
|
435
|
+
*/
|
|
436
|
+
declare function getLibraryDefinition(libraryKey: string): EmbeddedLibraryDefinition;
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* Base64 encoding/decoding utilities for embedded assets and libraries.
|
|
440
|
+
*
|
|
441
|
+
* These utilities handle base64 data received from the Venus host via RPC,
|
|
442
|
+
* converting it to ArrayBuffer or UTF-8 strings with appropriate fallbacks
|
|
443
|
+
* for different JavaScript environments.
|
|
444
|
+
*/
|
|
445
|
+
/**
|
|
446
|
+
* Convert base64 string to ArrayBuffer.
|
|
447
|
+
* Uses native atob() when available for best performance.
|
|
448
|
+
*/
|
|
449
|
+
declare function base64ToArrayBuffer(base64: string): ArrayBuffer;
|
|
450
|
+
/**
|
|
451
|
+
* Convert base64 string to UTF-8 string.
|
|
452
|
+
* Tries multiple decoding strategies for maximum compatibility.
|
|
453
|
+
*/
|
|
454
|
+
declare function base64ToUtf8(base64: string): string;
|
|
401
455
|
|
|
402
456
|
declare class MockIapApi implements IapApi {
|
|
403
457
|
private _hardCurrency;
|
|
@@ -413,35 +467,96 @@ declare function initializeIap(venusApiInstance: VenusAPI, host: Host): void;
|
|
|
413
467
|
|
|
414
468
|
declare class RpcLeaderboardApi implements LeaderboardApi {
|
|
415
469
|
private readonly rpcClient;
|
|
470
|
+
/** Cache of score tokens for automatic hash computation */
|
|
471
|
+
private tokenCache;
|
|
416
472
|
constructor(rpcClient: RpcClient);
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
473
|
+
/**
|
|
474
|
+
* Create a score token for submitting a score.
|
|
475
|
+
* Token is cached for automatic hash computation if score sealing is enabled.
|
|
476
|
+
*
|
|
477
|
+
* @param mode - Optional game mode
|
|
478
|
+
* @returns Score token with sealing data if enabled
|
|
479
|
+
*/
|
|
480
|
+
createScoreToken(mode?: string): Promise<ScoreToken>;
|
|
481
|
+
/**
|
|
482
|
+
* Submit a score to the leaderboard.
|
|
483
|
+
* Automatically computes hash if score sealing is enabled and token was created via createScoreToken().
|
|
484
|
+
*
|
|
485
|
+
* @param params - Score submission parameters
|
|
486
|
+
* @returns Submission result with acceptance status and rank
|
|
487
|
+
* @throws Error if token not found in cache
|
|
488
|
+
*/
|
|
489
|
+
submitScore(params: SubmitScoreParams): Promise<SubmitScoreResult>;
|
|
490
|
+
getPagedScores(options?: GetPagedScoresOptions): Promise<PagedScoresResponse>;
|
|
491
|
+
getMyRank(options?: PlayerRankOptions): Promise<PlayerRankResult>;
|
|
492
|
+
getPodiumScores(options?: GetPodiumScoresOptions): Promise<PodiumScoresResponse>;
|
|
422
493
|
}
|
|
423
494
|
|
|
424
495
|
declare class MockLeaderboardApi implements LeaderboardApi {
|
|
425
|
-
private
|
|
496
|
+
private tokens;
|
|
497
|
+
/** Cache of score tokens for automatic hash computation */
|
|
498
|
+
private tokenCache;
|
|
426
499
|
private entriesByMode;
|
|
427
|
-
private
|
|
428
|
-
private
|
|
500
|
+
private tokenCounter;
|
|
501
|
+
private enableScoreSealing;
|
|
502
|
+
private scoreSealingSecret;
|
|
429
503
|
constructor(options?: {
|
|
430
|
-
|
|
504
|
+
enableScoreSealing?: boolean;
|
|
505
|
+
scoreSealingSecret?: string;
|
|
431
506
|
});
|
|
507
|
+
/**
|
|
508
|
+
* Configure mock leaderboard settings
|
|
509
|
+
*
|
|
510
|
+
* @param options - Configuration options
|
|
511
|
+
*/
|
|
432
512
|
configure(options: {
|
|
433
|
-
|
|
513
|
+
enableScoreSealing?: boolean;
|
|
514
|
+
scoreSealingSecret?: string;
|
|
434
515
|
}): void;
|
|
435
516
|
private generateNonce;
|
|
436
517
|
private getModeKey;
|
|
437
518
|
private getEntriesForMode;
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
519
|
+
/**
|
|
520
|
+
* Create a mock score token for testing.
|
|
521
|
+
* Token is cached for automatic hash computation if score sealing is enabled.
|
|
522
|
+
*
|
|
523
|
+
* @param mode - Optional game mode
|
|
524
|
+
* @returns Score token with sealing data if enabled
|
|
525
|
+
*/
|
|
526
|
+
createScoreToken(mode?: string): Promise<ScoreToken>;
|
|
527
|
+
/**
|
|
528
|
+
* Submit a mock score to the leaderboard.
|
|
529
|
+
* Automatically computes hash if score sealing is enabled and token was created via createScoreToken().
|
|
530
|
+
*
|
|
531
|
+
* @param params - Score submission parameters
|
|
532
|
+
* @returns Submission result with acceptance status and rank
|
|
533
|
+
* @throws Error if token not found in cache or validation fails
|
|
534
|
+
*/
|
|
535
|
+
submitScore(params: SubmitScoreParams): Promise<SubmitScoreResult>;
|
|
536
|
+
getPagedScores(options?: GetPagedScoresOptions): Promise<PagedScoresResponse>;
|
|
537
|
+
getMyRank(_options?: PlayerRankOptions): Promise<PlayerRankResult>;
|
|
538
|
+
getPodiumScores(options?: GetPodiumScoresOptions): Promise<PodiumScoresResponse>;
|
|
443
539
|
}
|
|
444
540
|
|
|
541
|
+
/**
|
|
542
|
+
* Hash algorithm used for score sealing
|
|
543
|
+
*/
|
|
544
|
+
declare const HASH_ALGORITHM_WEB_CRYPTO = "SHA-256";
|
|
545
|
+
declare const HASH_ALGORITHM_NODE = "sha256";
|
|
546
|
+
/**
|
|
547
|
+
* Compute HMAC-SHA256 hash for score sealing.
|
|
548
|
+
* Hash always includes: score, duration, token
|
|
549
|
+
* Matches server-side hash computation exactly.
|
|
550
|
+
*
|
|
551
|
+
* @param score - The score value
|
|
552
|
+
* @param duration - Duration in seconds
|
|
553
|
+
* @param token - Score token
|
|
554
|
+
* @param sealingNonce - One-time nonce for this submission
|
|
555
|
+
* @param sealingSecret - Secret key for HMAC
|
|
556
|
+
* @returns Hex-encoded hash string
|
|
557
|
+
*/
|
|
558
|
+
declare function computeScoreHash(score: number, duration: number, token: string, sealingNonce: string, sealingSecret: string): Promise<string>;
|
|
559
|
+
|
|
445
560
|
declare function initializeLeaderboard(venusApiInstance: VenusAPI, host: Host): void;
|
|
446
561
|
|
|
447
562
|
declare class MockPreloaderApi implements PreloaderApi {
|
|
@@ -619,11 +734,11 @@ declare enum VenusMessageId {
|
|
|
619
734
|
H5_SIMULATION_GET_AVAILABLE_ITEMS = "H5_SIMULATION_GET_AVAILABLE_ITEMS",
|
|
620
735
|
H5_SIMULATION_VALIDATE_ASSIGNMENT = "H5_SIMULATION_VALIDATE_ASSIGNMENT",
|
|
621
736
|
H5_SIMULATION_BATCH_OPERATIONS = "H5_SIMULATION_BATCH_OPERATIONS",
|
|
622
|
-
|
|
737
|
+
H5_LEADERBOARD_CREATE_SCORE_TOKEN = "H5_LEADERBOARD_CREATE_SCORE_TOKEN",
|
|
623
738
|
H5_LEADERBOARD_SUBMIT_SCORE = "H5_LEADERBOARD_SUBMIT_SCORE",
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
739
|
+
H5_LEADERBOARD_GET_PAGED_SCORES = "H5_LEADERBOARD_GET_PAGED_SCORES",
|
|
740
|
+
H5_LEADERBOARD_GET_PODIUM_SCORES = "H5_LEADERBOARD_GET_PODIUM_SCORES",
|
|
741
|
+
H5_LEADERBOARD_GET_MY_RANK = "H5_LEADERBOARD_GET_MY_RANK",
|
|
627
742
|
H5_ROOM_CREATE = "H5_ROOM_CREATE",
|
|
628
743
|
H5_ROOM_JOIN = "H5_ROOM_JOIN",
|
|
629
744
|
H5_ROOM_JOIN_OR_CREATE = "H5_ROOM_JOIN_OR_CREATE",
|
|
@@ -701,4 +816,4 @@ interface InitResponse {
|
|
|
701
816
|
launchParams?: Record<string, string>;
|
|
702
817
|
}
|
|
703
818
|
|
|
704
|
-
export { ActionSheetItem, AdsApi, AiApi, AiChatCompletionData, AiChatCompletionRequest, AnalyticsApi, AssetManifest, Avatar3dApi, Avatar3dConfig, Avatar3dEdits, AwakeCallback, CdnApi, CollectRecipeResult, ExecuteRecipeOptions, ExecuteScopedRecipeResult, Experiment, FeaturesApi, FetchBlobOptions, GetActiveRunsOptions, GetAvailableRecipesOptions, GetAvailableRecipesResult, GetBatchRecipeRequirements, GetFutureTimeOptions,
|
|
819
|
+
export { ActionSheetItem, AdsApi, AiApi, AiChatCompletionData, AiChatCompletionRequest, AnalyticsApi, AssetManifest, Avatar3dApi, Avatar3dConfig, Avatar3dEdits, AwakeCallback, CdnApi, CollectRecipeResult, DEFAULT_SHARED_LIB_CDN_BASE, EMBEDDED_LIBRARIES, EMBEDDED_LIBRARY_BY_KEY, type EmbeddedLibraryDefinition, ExecuteRecipeOptions, ExecuteScopedRecipeResult, Experiment, FeaturesApi, FetchBlobOptions, GetActiveRunsOptions, GetAvailableRecipesOptions, GetAvailableRecipesResult, GetBatchRecipeRequirements, GetFutureTimeOptions, GetPagedScoresOptions, GetPodiumScoresOptions, HASH_ALGORITHM_NODE, HASH_ALGORITHM_WEB_CRYPTO, HapticFeedbackStyle, HapticsApi, Host, HostCdnApi, HostProfileApi, HostTimeApi, HudInsets, IapApi, type InitResponse, InitializationContext, InitializationOptions, LeaderboardApi, LifecycleApi, LoadEmbeddedAssetsResponse, LoggingApi, MODULE_TO_LIBRARY_SPECIFIERS, type MethodIds, MockAdsApi, MockAiApi, MockAnalyticsApi, MockCdnApi, MockFeaturesApi, MockHapticsApi, MockIapApi, MockLeaderboardApi, MockLifecycleApi, MockLoggingApi, MockNavigationApi, MockNotificationsApi, MockPopupsApi, MockPreloaderApi, MockProfileApi, MockSharedAssetsApi, MockSimulationApi, MockSocialApi, MockStorageApi, MockTimeApi, type ModuleSpecifierConfig, type ModuleSpecifierMatch, NavigationApi, NavigationStackInfo, type NotificationContent, NotificationsApi, PagedScoresResponse, PauseCallback, PlayerRankOptions, PlayerRankResult, PodiumScoresResponse, PopupsApi, PreloaderApi, ProfileApi, PushAppOptions, QRCodeResult, QuitCallback, QuitOptions, Recipe, RemoteHost, ResumeCallback, RoomsApi, RpcAdsApi, RpcAiApi, RpcAnalyticsApi, RpcAvatarApi, RpcClient, RpcFeaturesApi, RpcHapticsApi, RpcIapApi, RpcLeaderboardApi, RpcLifecycleApi, RpcLoggingApi, type RpcMessage, RpcNavigationApi, RpcNotification, RpcNotificationsApi, RpcPopupsApi, RpcPreloaderApi, RpcRequest, RpcResponse, RpcSimulationApi, RpcSocialApi, RpcStorageApi, SDK_VERSION, ScheduleLocalNotification, ScheduleNotificationOptions, ScoreToken, ServerTimeData, ShareLinkResult, ShareMetadata, SharedAssetsApi, ShowActionSheetOptions, ShowAlertOptions, ShowConfirmOptions, ShowEditorOptions, ShowInterstitialAdOptions, ShowRewardedAdOptions, ShowToastOptions, type ShowToastResponse, SimulationApi, SleepCallback, SocialApi, SocialQRCodeOptions, SpendCurrencyOptions, StorageApi, type StorageType, SubPath, SubmitScoreParams, SubmitScoreResult, Subscription, TimeApi, TriggerRecipeChainOptions, VenusMessageId, base64ToArrayBuffer, base64ToUtf8, computeScoreHash, createMockStorageApi, getLibraryDefinition, initializeAds, initializeAi, initializeAnalytics, initializeAvatar3d, initializeCdn, initializeFeaturesApi, initializeHaptics, initializeIap, initializeLeaderboard, initializeLifecycleApi, initializeLocalNotifications, initializeLoggingApi, initializePopups, initializePreloader, initializeProfile, initializeRoomsApi, initializeSimulation, initializeSocial, initializeStackNavigation, initializeStorage, initializeTime, isPacificDaylightTime, setupRoomNotifications };
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { init_rooms } from './chunk-
|
|
2
|
-
export { HapticFeedbackStyle, HostCdnApi, HostProfileApi, HostTimeApi, MockAdsApi, MockAiApi, MockAnalyticsApi, MockAvatarApi, MockCdnApi, MockFeaturesApi, MockHapticsApi, MockIapApi, MockLeaderboardApi, MockLifecycleApi, MockLoggingApi, MockNavigationApi, MockNotificationsApi, MockPopupsApi, MockPreloaderApi, MockProfileApi, MockSharedAssetsApi, MockSimulationApi, MockSocialApi, MockStorageApi, MockTimeApi, RemoteHost, RpcAdsApi, RpcAiApi, RpcAnalyticsApi, RpcAvatarApi, RpcClient, RpcFeaturesApi, RpcHapticsApi, RpcIapApi, RpcLeaderboardApi, RpcLifecycleApi, RpcLoggingApi, RpcNavigationApi, RpcNotificationsApi, RpcPopupsApi, RpcPreloaderApi, RpcSharedAssetsApi, RpcSimulationApi, RpcSocialApi, RpcStorageApi, SDK_VERSION, VenusMessageId, VenusRoom, createHost, createMockStorageApi, initializeAds, initializeAi, initializeAnalytics, initializeAvatar3d, initializeCdn, initializeFeaturesApi, initializeHaptics, initializeIap, initializeLeaderboard, initializeLifecycleApi, initializeLocalNotifications, initializeLoggingApi, initializePopups, initializePreloader, initializeProfile, initializeRoomsApi, initializeSimulation, initializeSocial, initializeStackNavigation, initializeStorage, initializeTime, isPacificDaylightTime, setupRoomNotifications } from './chunk-
|
|
3
|
-
|
|
1
|
+
import { init_rooms } from './chunk-EMVTVSGL.mjs';
|
|
2
|
+
export { DEFAULT_SHARED_LIB_CDN_BASE, EMBEDDED_LIBRARIES, EMBEDDED_LIBRARY_BY_KEY, HASH_ALGORITHM_NODE, HASH_ALGORITHM_WEB_CRYPTO, HapticFeedbackStyle, HostCdnApi, HostProfileApi, HostTimeApi, MODULE_TO_LIBRARY_SPECIFIERS, MockAdsApi, MockAiApi, MockAnalyticsApi, MockAvatarApi, MockCdnApi, MockFeaturesApi, MockHapticsApi, MockIapApi, MockLeaderboardApi, MockLifecycleApi, MockLoggingApi, MockNavigationApi, MockNotificationsApi, MockPopupsApi, MockPreloaderApi, MockProfileApi, MockSharedAssetsApi, MockSimulationApi, MockSocialApi, MockStorageApi, MockTimeApi, RemoteHost, RpcAdsApi, RpcAiApi, RpcAnalyticsApi, RpcAvatarApi, RpcClient, RpcFeaturesApi, RpcHapticsApi, RpcIapApi, RpcLeaderboardApi, RpcLifecycleApi, RpcLoggingApi, RpcNavigationApi, RpcNotificationsApi, RpcPopupsApi, RpcPreloaderApi, 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, initializeTime, isPacificDaylightTime, setupRoomNotifications } from './chunk-EMVTVSGL.mjs';
|
|
3
|
+
export { WEBVIEW_LIBRARY_SHIM_SOURCE, getWebviewLibraryShimSource } from './chunk-IZLOB7DV.mjs';
|
|
4
|
+
import './chunk-QABXMFND.mjs';
|
|
5
|
+
import './chunk-2PDL7CQK.mjs';
|
|
4
6
|
|
|
5
7
|
// src/index.ts
|
|
6
8
|
init_rooms();
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;AAeA,UAAA,EAAA","file":"index.mjs","sourcesContent":["export * from './ads'\r\nexport * from './ai'\r\nexport * from './analytics'\r\nexport * from './avatar3d'\r\nexport * from './cdn'\r\nexport * from './features'\r\nexport * from './haptics'\r\nexport * from './iap'\r\nexport * from './lifecycles'\r\nexport * from './logging'\r\nexport * from './navigation'\r\nexport * from './notifications'\r\nexport * from './popups'\r\nexport * from './profile'\r\nexport * from './rpc'\r\nexport * from './rooms'\r\nexport * from './storage'\r\nexport * from './simulation'\r\nexport * from './time'\r\nexport * from './version'\r\nexport * from './shared-assets'\r\nexport * from './VenusMessageId'\r\nexport * from './leaderboard'\r\nexport * from './game-preloader'\r\nexport * from './Host'\r\nexport * from './RemoteHost'\r\nexport * from './social'\r\nexport * from './webview'\r\n// NOTE: Vite plugin is exported separately via './vite' subpath import\r\n// Use: import { venusLibrariesPlugin } from '@series-inc/venus-sdk/vite'\r\n"]}
|