@series-inc/venus-sdk 3.0.6 → 3.1.1-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 +1 -1
- package/dist/{AdsApi-CIXV8I_p.d.mts → AdsApi-meVfUcZy.d.mts} +164 -355
- package/dist/{AdsApi-CIXV8I_p.d.ts → AdsApi-meVfUcZy.d.ts} +164 -355
- package/dist/chunk-2PDL7CQK.mjs +26 -0
- package/dist/chunk-2PDL7CQK.mjs.map +1 -0
- package/dist/{chunk-LBJFUHOH.mjs → chunk-EMVTVSGL.mjs} +1471 -737
- 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-MWUS3A7C.mjs → chunk-QABXMFND.mjs} +3 -7
- package/dist/chunk-QABXMFND.mjs.map +1 -0
- package/dist/core-5JLON75E.mjs +4 -0
- package/dist/{core-RDMPQV6U.mjs.map → core-5JLON75E.mjs.map} +1 -1
- package/dist/index.cjs +1883 -778
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +113 -61
- package/dist/index.d.ts +113 -61
- package/dist/index.mjs +8 -2
- package/dist/index.mjs.map +1 -1
- package/dist/venus-api/index.cjs +1806 -748
- 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 +311 -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 +23 -3
- package/dist/chunk-LBJFUHOH.mjs.map +0 -1
- package/dist/chunk-MWUS3A7C.mjs.map +0 -1
- package/dist/core-RDMPQV6U.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>;
|
|
@@ -293,41 +294,69 @@ declare function initializeLifecycleApi(venusApi: VenusAPI, host: Host): void;
|
|
|
293
294
|
declare class RpcSimulationApi implements SimulationApi {
|
|
294
295
|
private readonly rpcClient;
|
|
295
296
|
private _simulationConfig;
|
|
296
|
-
private readonly subscriptionCallbacks;
|
|
297
297
|
constructor(rpcClient: RpcClient);
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
getStateAsync(roomId?: string): Promise<SimulationState>;
|
|
298
|
+
validateSlotAssignmentAsync(containerId: string, slotId: string, itemId: string): Promise<any>;
|
|
299
|
+
sumContributions(contributions: Record<string, any>): Record<string, number>;
|
|
300
|
+
executeBatchOperationsAsync(operations: Array<any>, validateOnly?: boolean): Promise<any>;
|
|
301
|
+
getAvailableItemsAsync(containerId: string, slotId: string): Promise<Array<any>>;
|
|
302
|
+
calculatePowerPreviewAsync(containerId: string, slotId: string, candidateItemId: string): Promise<any>;
|
|
303
|
+
assignItemToSlotAsync(containerId: string, slotId: string, itemId: string): Promise<any>;
|
|
304
|
+
removeItemFromSlotAsync(containerId: string, slotId: string): Promise<any>;
|
|
305
|
+
getSlotContainersAsync(): Promise<any>;
|
|
306
|
+
getSlotAssignmentsAsync(containerId: string): Promise<any>;
|
|
307
|
+
getStateAsync(roomId?: string): Promise<any>;
|
|
309
308
|
getConfigAsync(roomId?: string): Promise<VenusSimulationConfig>;
|
|
310
|
-
executeRecipeAsync(recipeId: string, inputs?:
|
|
309
|
+
executeRecipeAsync(recipeId: string, inputs?: any, options?: ExecuteRecipeOptions): Promise<any>;
|
|
311
310
|
collectRecipeAsync(runId: string): Promise<CollectRecipeResult>;
|
|
312
|
-
getActiveRunsAsync(options?: GetActiveRunsOptions): Promise<
|
|
313
|
-
executeScopedRecipeAsync(recipeId: string, entity: string, inputs?:
|
|
311
|
+
getActiveRunsAsync(options?: GetActiveRunsOptions): Promise<any>;
|
|
312
|
+
executeScopedRecipeAsync(recipeId: string, entity: string, inputs?: any, options?: any): Promise<ExecuteScopedRecipeResult>;
|
|
313
|
+
getAvailableRecipesAsync(options?: GetAvailableRecipesOptions): Promise<GetAvailableRecipesResult>;
|
|
314
|
+
getRecipeRequirementsAsync(recipe: Recipe): Promise<any>;
|
|
315
|
+
getBatchRecipeRequirementsAsync(recipes: Recipe[]): Promise<GetBatchRecipeRequirements>;
|
|
316
|
+
triggerRecipeChainAsync(recipeId: string, options?: TriggerRecipeChainOptions): Promise<any>;
|
|
317
|
+
getEntityMetadataAsync(entityId: string): Promise<any>;
|
|
318
|
+
resolveFieldValueAsync(entityId: string, fieldPath: string, entity?: string): Promise<any>;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
declare class MockSimulationApi implements SimulationApi {
|
|
322
|
+
private readonly mockSimulationConfigs;
|
|
323
|
+
private readonly mockSimulationStates;
|
|
324
|
+
private readonly mockActiveTimers;
|
|
325
|
+
private readonly appId;
|
|
326
|
+
private readonly providedSimulationConfig;
|
|
327
|
+
constructor(simulationConfig?: VenusSimulationConfig | null);
|
|
328
|
+
sumContributions(contributions: Record<string, any>): Record<string, number>;
|
|
329
|
+
validateSlotAssignmentAsync(containerId: string, slotId: string, itemId: string): Promise<any>;
|
|
330
|
+
executeBatchOperationsAsync(operations: Array<any>, validateOnly?: boolean): Promise<any>;
|
|
331
|
+
getAvailableItemsAsync(containerId: string, slotId: string): Promise<Array<any>>;
|
|
332
|
+
calculatePowerPreviewAsync(containerId: string, slotId: string, candidateItemId: string): Promise<any>;
|
|
333
|
+
getSlotContainersAsync(): Promise<any>;
|
|
334
|
+
getSlotAssignmentsAsync(containerId: string): Promise<any>;
|
|
335
|
+
resolveFieldValueAsync(entityId: string, fieldPath: string, entity?: string): Promise<any>;
|
|
336
|
+
getEntityMetadataAsync(entityId: string): Promise<any>;
|
|
337
|
+
collectRecipeAsync(runId: string): Promise<CollectRecipeResult>;
|
|
338
|
+
executeRecipeAsync(recipeId: string, inputs?: any, options?: ExecuteRecipeOptions): Promise<any>;
|
|
339
|
+
executeScopedRecipeAsync(recipeId: string, entity: string, inputs?: any, options?: any): Promise<ExecuteScopedRecipeResult>;
|
|
340
|
+
getActiveRunsAsync(options?: GetActiveRunsOptions): Promise<any>;
|
|
314
341
|
getAvailableRecipesAsync(options?: GetAvailableRecipesOptions): Promise<GetAvailableRecipesResult>;
|
|
315
|
-
getRecipeRequirementsAsync(recipe: Recipe): Promise<RecipeRequirementResult>;
|
|
316
342
|
getBatchRecipeRequirementsAsync(recipes: Recipe[]): Promise<GetBatchRecipeRequirements>;
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
private
|
|
321
|
-
private
|
|
343
|
+
getRecipeRequirementsAsync(recipe: Recipe): Promise<RecipeRequirementResult>;
|
|
344
|
+
triggerRecipeChainAsync(recipeId: string, options?: TriggerRecipeChainOptions): Promise<any>;
|
|
345
|
+
private log;
|
|
346
|
+
private executeRecipe;
|
|
347
|
+
private initializeSimulationState;
|
|
348
|
+
private generateRunId;
|
|
349
|
+
private completeRun;
|
|
350
|
+
private createSeededRandom;
|
|
351
|
+
private applyEffects;
|
|
352
|
+
getConfigAsync(): Promise<any>;
|
|
353
|
+
getStateAsync(roomId?: string): Promise<any>;
|
|
354
|
+
assignItemToSlotAsync(containerId: string, slotId: string, itemId: string): Promise<any>;
|
|
355
|
+
removeItemFromSlotAsync(containerId: string, slotId: string): Promise<any>;
|
|
322
356
|
}
|
|
323
357
|
|
|
324
358
|
declare function initializeSimulation(venusApi: VenusAPI, host: Host): void;
|
|
325
359
|
|
|
326
|
-
interface RoomNotificationSubscriptionState {
|
|
327
|
-
data: Record<string, Array<(event: RoomDataUpdate) => void>>;
|
|
328
|
-
messages: Record<string, Array<(event: RoomMessageEvent) => void>>;
|
|
329
|
-
gameEvents: Record<string, Array<(event: ProposedMoveEvent) => void>>;
|
|
330
|
-
}
|
|
331
360
|
/**
|
|
332
361
|
* Set up room notification listeners using the transport's onVenusMessage hook.
|
|
333
362
|
* This routes host-sent room notifications (H5_ROOM_DATA_UPDATED, etc.) to the
|
|
@@ -335,34 +364,7 @@ interface RoomNotificationSubscriptionState {
|
|
|
335
364
|
* @param transport The Venus transport to listen for messages
|
|
336
365
|
* @param getSubscriptions Function to retrieve subscription state from RoomsApi
|
|
337
366
|
*/
|
|
338
|
-
declare function setupRoomNotifications(transport: VenusTransport, getSubscriptions: () =>
|
|
339
|
-
|
|
340
|
-
declare class RpcRoomsApi implements RoomsApi {
|
|
341
|
-
private readonly rpcClient;
|
|
342
|
-
private readonly subscriptions;
|
|
343
|
-
constructor(rpcClient: RpcClient);
|
|
344
|
-
/**
|
|
345
|
-
* Get the subscription state for external access (used by setupRoomNotifications)
|
|
346
|
-
*/
|
|
347
|
-
getSubscriptions(): RoomNotificationSubscriptionState;
|
|
348
|
-
/**
|
|
349
|
-
* Set up room notification routing from the transport
|
|
350
|
-
*/
|
|
351
|
-
setupNotifications(transport: VenusTransport): void;
|
|
352
|
-
createRoomAsync(options: CreateRoomOptions): Promise<VenusRoom>;
|
|
353
|
-
joinOrCreateRoomAsync(options: JoinOrCreateRoomOptions): Promise<JoinOrCreateResult>;
|
|
354
|
-
joinRoomByCodeAsync(roomCode: string): Promise<VenusRoom>;
|
|
355
|
-
getUserRoomsAsync(options?: ListRoomsOptions): Promise<VenusRoom[]>;
|
|
356
|
-
updateRoomDataAsync(room: VenusRoom, updates: Record<string, unknown>, options?: UpdateRoomDataOptions): Promise<void>;
|
|
357
|
-
getRoomDataAsync(room: VenusRoom): Promise<Record<string, unknown>>;
|
|
358
|
-
sendRoomMessageAsync(venusRoom: VenusRoom, request: RoomMessageRequest): Promise<string>;
|
|
359
|
-
leaveRoomAsync(room: VenusRoom): Promise<void>;
|
|
360
|
-
startRoomGameAsync(room: VenusRoom, options?: StartRoomGameOptions): Promise<void>;
|
|
361
|
-
proposeMoveAsync(room: VenusRoom, proposalPayload: ProposeMoveRequest): Promise<ProposeMoveResult>;
|
|
362
|
-
validateMoveAsync(_room: VenusRoom, moveId: string, verdict: ValidateMoveVerdict): Promise<ValidateMoveResult>;
|
|
363
|
-
subscribeAsync(room: VenusRoom, options?: RoomSubscriptionOptions): Promise<() => void>;
|
|
364
|
-
}
|
|
365
|
-
|
|
367
|
+
declare function setupRoomNotifications(transport: VenusTransport, getSubscriptions: () => any): Subscription;
|
|
366
368
|
declare function initializeRoomsApi(venusApi: VenusAPI, host: Host): void;
|
|
367
369
|
|
|
368
370
|
declare class MockLoggingApi implements LoggingApi {
|
|
@@ -396,7 +398,60 @@ declare class MockSharedAssetsApi implements SharedAssetsApi {
|
|
|
396
398
|
constructor(venusApi: VenusAPI);
|
|
397
399
|
loadBurgerTimeAssetsBundle(): Promise<ArrayBuffer>;
|
|
398
400
|
loadCharactersBundle(): Promise<ArrayBuffer>;
|
|
399
|
-
|
|
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;
|
|
400
455
|
|
|
401
456
|
declare class MockIapApi implements IapApi {
|
|
402
457
|
private _hardCurrency;
|
|
@@ -679,9 +734,6 @@ declare enum VenusMessageId {
|
|
|
679
734
|
H5_SIMULATION_GET_AVAILABLE_ITEMS = "H5_SIMULATION_GET_AVAILABLE_ITEMS",
|
|
680
735
|
H5_SIMULATION_VALIDATE_ASSIGNMENT = "H5_SIMULATION_VALIDATE_ASSIGNMENT",
|
|
681
736
|
H5_SIMULATION_BATCH_OPERATIONS = "H5_SIMULATION_BATCH_OPERATIONS",
|
|
682
|
-
H5_SIMULATION_SUBSCRIBE = "H5_SIMULATION_SUBSCRIBE",
|
|
683
|
-
H5_SIMULATION_UNSUBSCRIBE = "H5_SIMULATION_UNSUBSCRIBE",
|
|
684
|
-
H5_SIMULATION_UPDATE = "H5_SIMULATION_UPDATE",
|
|
685
737
|
H5_LEADERBOARD_CREATE_SCORE_TOKEN = "H5_LEADERBOARD_CREATE_SCORE_TOKEN",
|
|
686
738
|
H5_LEADERBOARD_SUBMIT_SCORE = "H5_LEADERBOARD_SUBMIT_SCORE",
|
|
687
739
|
H5_LEADERBOARD_GET_PAGED_SCORES = "H5_LEADERBOARD_GET_PAGED_SCORES",
|
|
@@ -764,4 +816,4 @@ interface InitResponse {
|
|
|
764
816
|
launchParams?: Record<string, string>;
|
|
765
817
|
}
|
|
766
818
|
|
|
767
|
-
export { ActionSheetItem, AdsApi, AiApi, AiChatCompletionData, AiChatCompletionRequest, AnalyticsApi, AssetManifest, Avatar3dApi, Avatar3dConfig, Avatar3dEdits, AwakeCallback, CdnApi, CollectRecipeResult,
|
|
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>;
|
|
@@ -293,41 +294,69 @@ declare function initializeLifecycleApi(venusApi: VenusAPI, host: Host): void;
|
|
|
293
294
|
declare class RpcSimulationApi implements SimulationApi {
|
|
294
295
|
private readonly rpcClient;
|
|
295
296
|
private _simulationConfig;
|
|
296
|
-
private readonly subscriptionCallbacks;
|
|
297
297
|
constructor(rpcClient: RpcClient);
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
getStateAsync(roomId?: string): Promise<SimulationState>;
|
|
298
|
+
validateSlotAssignmentAsync(containerId: string, slotId: string, itemId: string): Promise<any>;
|
|
299
|
+
sumContributions(contributions: Record<string, any>): Record<string, number>;
|
|
300
|
+
executeBatchOperationsAsync(operations: Array<any>, validateOnly?: boolean): Promise<any>;
|
|
301
|
+
getAvailableItemsAsync(containerId: string, slotId: string): Promise<Array<any>>;
|
|
302
|
+
calculatePowerPreviewAsync(containerId: string, slotId: string, candidateItemId: string): Promise<any>;
|
|
303
|
+
assignItemToSlotAsync(containerId: string, slotId: string, itemId: string): Promise<any>;
|
|
304
|
+
removeItemFromSlotAsync(containerId: string, slotId: string): Promise<any>;
|
|
305
|
+
getSlotContainersAsync(): Promise<any>;
|
|
306
|
+
getSlotAssignmentsAsync(containerId: string): Promise<any>;
|
|
307
|
+
getStateAsync(roomId?: string): Promise<any>;
|
|
309
308
|
getConfigAsync(roomId?: string): Promise<VenusSimulationConfig>;
|
|
310
|
-
executeRecipeAsync(recipeId: string, inputs?:
|
|
309
|
+
executeRecipeAsync(recipeId: string, inputs?: any, options?: ExecuteRecipeOptions): Promise<any>;
|
|
311
310
|
collectRecipeAsync(runId: string): Promise<CollectRecipeResult>;
|
|
312
|
-
getActiveRunsAsync(options?: GetActiveRunsOptions): Promise<
|
|
313
|
-
executeScopedRecipeAsync(recipeId: string, entity: string, inputs?:
|
|
311
|
+
getActiveRunsAsync(options?: GetActiveRunsOptions): Promise<any>;
|
|
312
|
+
executeScopedRecipeAsync(recipeId: string, entity: string, inputs?: any, options?: any): Promise<ExecuteScopedRecipeResult>;
|
|
313
|
+
getAvailableRecipesAsync(options?: GetAvailableRecipesOptions): Promise<GetAvailableRecipesResult>;
|
|
314
|
+
getRecipeRequirementsAsync(recipe: Recipe): Promise<any>;
|
|
315
|
+
getBatchRecipeRequirementsAsync(recipes: Recipe[]): Promise<GetBatchRecipeRequirements>;
|
|
316
|
+
triggerRecipeChainAsync(recipeId: string, options?: TriggerRecipeChainOptions): Promise<any>;
|
|
317
|
+
getEntityMetadataAsync(entityId: string): Promise<any>;
|
|
318
|
+
resolveFieldValueAsync(entityId: string, fieldPath: string, entity?: string): Promise<any>;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
declare class MockSimulationApi implements SimulationApi {
|
|
322
|
+
private readonly mockSimulationConfigs;
|
|
323
|
+
private readonly mockSimulationStates;
|
|
324
|
+
private readonly mockActiveTimers;
|
|
325
|
+
private readonly appId;
|
|
326
|
+
private readonly providedSimulationConfig;
|
|
327
|
+
constructor(simulationConfig?: VenusSimulationConfig | null);
|
|
328
|
+
sumContributions(contributions: Record<string, any>): Record<string, number>;
|
|
329
|
+
validateSlotAssignmentAsync(containerId: string, slotId: string, itemId: string): Promise<any>;
|
|
330
|
+
executeBatchOperationsAsync(operations: Array<any>, validateOnly?: boolean): Promise<any>;
|
|
331
|
+
getAvailableItemsAsync(containerId: string, slotId: string): Promise<Array<any>>;
|
|
332
|
+
calculatePowerPreviewAsync(containerId: string, slotId: string, candidateItemId: string): Promise<any>;
|
|
333
|
+
getSlotContainersAsync(): Promise<any>;
|
|
334
|
+
getSlotAssignmentsAsync(containerId: string): Promise<any>;
|
|
335
|
+
resolveFieldValueAsync(entityId: string, fieldPath: string, entity?: string): Promise<any>;
|
|
336
|
+
getEntityMetadataAsync(entityId: string): Promise<any>;
|
|
337
|
+
collectRecipeAsync(runId: string): Promise<CollectRecipeResult>;
|
|
338
|
+
executeRecipeAsync(recipeId: string, inputs?: any, options?: ExecuteRecipeOptions): Promise<any>;
|
|
339
|
+
executeScopedRecipeAsync(recipeId: string, entity: string, inputs?: any, options?: any): Promise<ExecuteScopedRecipeResult>;
|
|
340
|
+
getActiveRunsAsync(options?: GetActiveRunsOptions): Promise<any>;
|
|
314
341
|
getAvailableRecipesAsync(options?: GetAvailableRecipesOptions): Promise<GetAvailableRecipesResult>;
|
|
315
|
-
getRecipeRequirementsAsync(recipe: Recipe): Promise<RecipeRequirementResult>;
|
|
316
342
|
getBatchRecipeRequirementsAsync(recipes: Recipe[]): Promise<GetBatchRecipeRequirements>;
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
private
|
|
321
|
-
private
|
|
343
|
+
getRecipeRequirementsAsync(recipe: Recipe): Promise<RecipeRequirementResult>;
|
|
344
|
+
triggerRecipeChainAsync(recipeId: string, options?: TriggerRecipeChainOptions): Promise<any>;
|
|
345
|
+
private log;
|
|
346
|
+
private executeRecipe;
|
|
347
|
+
private initializeSimulationState;
|
|
348
|
+
private generateRunId;
|
|
349
|
+
private completeRun;
|
|
350
|
+
private createSeededRandom;
|
|
351
|
+
private applyEffects;
|
|
352
|
+
getConfigAsync(): Promise<any>;
|
|
353
|
+
getStateAsync(roomId?: string): Promise<any>;
|
|
354
|
+
assignItemToSlotAsync(containerId: string, slotId: string, itemId: string): Promise<any>;
|
|
355
|
+
removeItemFromSlotAsync(containerId: string, slotId: string): Promise<any>;
|
|
322
356
|
}
|
|
323
357
|
|
|
324
358
|
declare function initializeSimulation(venusApi: VenusAPI, host: Host): void;
|
|
325
359
|
|
|
326
|
-
interface RoomNotificationSubscriptionState {
|
|
327
|
-
data: Record<string, Array<(event: RoomDataUpdate) => void>>;
|
|
328
|
-
messages: Record<string, Array<(event: RoomMessageEvent) => void>>;
|
|
329
|
-
gameEvents: Record<string, Array<(event: ProposedMoveEvent) => void>>;
|
|
330
|
-
}
|
|
331
360
|
/**
|
|
332
361
|
* Set up room notification listeners using the transport's onVenusMessage hook.
|
|
333
362
|
* This routes host-sent room notifications (H5_ROOM_DATA_UPDATED, etc.) to the
|
|
@@ -335,34 +364,7 @@ interface RoomNotificationSubscriptionState {
|
|
|
335
364
|
* @param transport The Venus transport to listen for messages
|
|
336
365
|
* @param getSubscriptions Function to retrieve subscription state from RoomsApi
|
|
337
366
|
*/
|
|
338
|
-
declare function setupRoomNotifications(transport: VenusTransport, getSubscriptions: () =>
|
|
339
|
-
|
|
340
|
-
declare class RpcRoomsApi implements RoomsApi {
|
|
341
|
-
private readonly rpcClient;
|
|
342
|
-
private readonly subscriptions;
|
|
343
|
-
constructor(rpcClient: RpcClient);
|
|
344
|
-
/**
|
|
345
|
-
* Get the subscription state for external access (used by setupRoomNotifications)
|
|
346
|
-
*/
|
|
347
|
-
getSubscriptions(): RoomNotificationSubscriptionState;
|
|
348
|
-
/**
|
|
349
|
-
* Set up room notification routing from the transport
|
|
350
|
-
*/
|
|
351
|
-
setupNotifications(transport: VenusTransport): void;
|
|
352
|
-
createRoomAsync(options: CreateRoomOptions): Promise<VenusRoom>;
|
|
353
|
-
joinOrCreateRoomAsync(options: JoinOrCreateRoomOptions): Promise<JoinOrCreateResult>;
|
|
354
|
-
joinRoomByCodeAsync(roomCode: string): Promise<VenusRoom>;
|
|
355
|
-
getUserRoomsAsync(options?: ListRoomsOptions): Promise<VenusRoom[]>;
|
|
356
|
-
updateRoomDataAsync(room: VenusRoom, updates: Record<string, unknown>, options?: UpdateRoomDataOptions): Promise<void>;
|
|
357
|
-
getRoomDataAsync(room: VenusRoom): Promise<Record<string, unknown>>;
|
|
358
|
-
sendRoomMessageAsync(venusRoom: VenusRoom, request: RoomMessageRequest): Promise<string>;
|
|
359
|
-
leaveRoomAsync(room: VenusRoom): Promise<void>;
|
|
360
|
-
startRoomGameAsync(room: VenusRoom, options?: StartRoomGameOptions): Promise<void>;
|
|
361
|
-
proposeMoveAsync(room: VenusRoom, proposalPayload: ProposeMoveRequest): Promise<ProposeMoveResult>;
|
|
362
|
-
validateMoveAsync(_room: VenusRoom, moveId: string, verdict: ValidateMoveVerdict): Promise<ValidateMoveResult>;
|
|
363
|
-
subscribeAsync(room: VenusRoom, options?: RoomSubscriptionOptions): Promise<() => void>;
|
|
364
|
-
}
|
|
365
|
-
|
|
367
|
+
declare function setupRoomNotifications(transport: VenusTransport, getSubscriptions: () => any): Subscription;
|
|
366
368
|
declare function initializeRoomsApi(venusApi: VenusAPI, host: Host): void;
|
|
367
369
|
|
|
368
370
|
declare class MockLoggingApi implements LoggingApi {
|
|
@@ -396,7 +398,60 @@ declare class MockSharedAssetsApi implements SharedAssetsApi {
|
|
|
396
398
|
constructor(venusApi: VenusAPI);
|
|
397
399
|
loadBurgerTimeAssetsBundle(): Promise<ArrayBuffer>;
|
|
398
400
|
loadCharactersBundle(): Promise<ArrayBuffer>;
|
|
399
|
-
|
|
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;
|
|
400
455
|
|
|
401
456
|
declare class MockIapApi implements IapApi {
|
|
402
457
|
private _hardCurrency;
|
|
@@ -679,9 +734,6 @@ declare enum VenusMessageId {
|
|
|
679
734
|
H5_SIMULATION_GET_AVAILABLE_ITEMS = "H5_SIMULATION_GET_AVAILABLE_ITEMS",
|
|
680
735
|
H5_SIMULATION_VALIDATE_ASSIGNMENT = "H5_SIMULATION_VALIDATE_ASSIGNMENT",
|
|
681
736
|
H5_SIMULATION_BATCH_OPERATIONS = "H5_SIMULATION_BATCH_OPERATIONS",
|
|
682
|
-
H5_SIMULATION_SUBSCRIBE = "H5_SIMULATION_SUBSCRIBE",
|
|
683
|
-
H5_SIMULATION_UNSUBSCRIBE = "H5_SIMULATION_UNSUBSCRIBE",
|
|
684
|
-
H5_SIMULATION_UPDATE = "H5_SIMULATION_UPDATE",
|
|
685
737
|
H5_LEADERBOARD_CREATE_SCORE_TOKEN = "H5_LEADERBOARD_CREATE_SCORE_TOKEN",
|
|
686
738
|
H5_LEADERBOARD_SUBMIT_SCORE = "H5_LEADERBOARD_SUBMIT_SCORE",
|
|
687
739
|
H5_LEADERBOARD_GET_PAGED_SCORES = "H5_LEADERBOARD_GET_PAGED_SCORES",
|
|
@@ -764,4 +816,4 @@ interface InitResponse {
|
|
|
764
816
|
launchParams?: Record<string, string>;
|
|
765
817
|
}
|
|
766
818
|
|
|
767
|
-
export { ActionSheetItem, AdsApi, AiApi, AiChatCompletionData, AiChatCompletionRequest, AnalyticsApi, AssetManifest, Avatar3dApi, Avatar3dConfig, Avatar3dEdits, AwakeCallback, CdnApi, CollectRecipeResult,
|
|
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,4 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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';
|
|
6
|
+
|
|
7
|
+
// src/index.ts
|
|
8
|
+
init_rooms();
|
|
3
9
|
//# sourceMappingURL=index.mjs.map
|
|
4
10
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs"}
|
|
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"]}
|