@series-inc/rundot-game-sdk 5.15.0 → 5.15.1-beta.2

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.
@@ -1061,7 +1061,7 @@ interface RundotGameMessage {
1061
1061
  * host app (venus client). Both sides MUST agree on this field name.
1062
1062
  *
1063
1063
  * DO NOT RENAME THIS FIELD without coordinating a synchronized release of:
1064
- * 1. venus-sdk (this file)
1064
+ * 1. packages/sdk (this file)
1065
1065
  * 2. venus/client H5MessageBus.ts
1066
1066
  *
1067
1067
  * Renaming breaks RPC - responses will not correlate and all API calls will timeout.
@@ -1899,8 +1899,234 @@ interface ImageGenResult {
1899
1899
  imageUrl: string;
1900
1900
  prompt: string;
1901
1901
  }
1902
+ interface ImageGenJobEvent {
1903
+ jobId: string;
1904
+ status: 'completed' | 'failed';
1905
+ params: ImageGenParams;
1906
+ result?: ImageGenResult;
1907
+ error?: string;
1908
+ }
1902
1909
  interface ImageGenApi {
1903
1910
  generate(params: ImageGenParams): Promise<ImageGenResult>;
1911
+ getCompletedJobs(): Promise<ImageGenJobEvent[]>;
1912
+ }
1913
+
1914
+ type AudioGenType = 'sfx' | 'music' | 'tts';
1915
+ type AudioGenProvider = 'elevenlabs';
1916
+ interface AudioGenSFXParams {
1917
+ type: 'sfx';
1918
+ provider?: AudioGenProvider;
1919
+ /** Describe materials, intensity, context — "sword clashing against metal shield, heavy impact" */
1920
+ description: string;
1921
+ /** Duration in seconds (0.5–30). Omit for model-decided. */
1922
+ durationSec?: number;
1923
+ }
1924
+ interface AudioGenMusicParams {
1925
+ type: 'music';
1926
+ provider?: AudioGenProvider;
1927
+ /** Genre, tempo, instruments, mood — "orchestral victory fanfare, triumphant brass" */
1928
+ prompt: string;
1929
+ /** Duration in seconds (REQUIRED, 1–300). */
1930
+ durationSec: number;
1931
+ }
1932
+ type TTSModel = 'eleven_v3' | 'eleven_multilingual_v2';
1933
+ interface AudioGenTTSParams {
1934
+ type: 'tts';
1935
+ provider?: AudioGenProvider;
1936
+ /** Text to speak. Supports ElevenLabs v3 audio tags: [whispers], [shouts], [pause]. */
1937
+ text: string;
1938
+ /** ElevenLabs voice ID. Use a known voice ID from the ElevenLabs library. */
1939
+ voiceId: string;
1940
+ /** TTS model. Default: 'eleven_v3'. */
1941
+ model?: TTSModel;
1942
+ /** 0–1. Lower = more expressive. Default: 0.5. */
1943
+ stability?: number;
1944
+ /** 0–1. Voice similarity boost. Default: 0.8. */
1945
+ similarityBoost?: number;
1946
+ /** Speech speed 0.5–2.0. Default: 1.0. */
1947
+ speed?: number;
1948
+ }
1949
+ type AudioGenParams = AudioGenSFXParams | AudioGenMusicParams | AudioGenTTSParams;
1950
+ interface AudioGenResult {
1951
+ generationId: string;
1952
+ audioUrl: string;
1953
+ type: AudioGenType;
1954
+ durationSec: number;
1955
+ prompt: string;
1956
+ }
1957
+ interface AudioGenApi {
1958
+ generate(params: AudioGenParams): Promise<AudioGenResult>;
1959
+ }
1960
+
1961
+ type VideoGenProvider = 'seedance-2.0' | 'seedance-2.0-fast' | 'kling-3.0-standard';
1962
+ type VideoGenMode = 'text-to-video' | 'image-to-video' | 'reference-to-video';
1963
+ type VideoGenAspectRatio = '21:9' | '16:9' | '4:3' | '1:1' | '3:4' | '9:16';
1964
+ type VideoGenResolution = '480p' | '720p' | '1080p';
1965
+ interface VideoGenBase {
1966
+ prompt?: string;
1967
+ seed?: number;
1968
+ requestOrigin?: string;
1969
+ clientRef?: string;
1970
+ }
1971
+ interface SeedanceBase extends VideoGenBase {
1972
+ provider: 'seedance-2.0' | 'seedance-2.0-fast';
1973
+ aspectRatio?: VideoGenAspectRatio;
1974
+ resolution?: VideoGenResolution;
1975
+ durationSeconds?: 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
1976
+ generateAudio?: boolean;
1977
+ cameraFixed?: boolean;
1978
+ }
1979
+ interface SeedanceTextToVideoParams extends SeedanceBase {
1980
+ mode: 'text-to-video';
1981
+ }
1982
+ interface SeedanceImageToVideoParams extends SeedanceBase {
1983
+ mode: 'image-to-video';
1984
+ startImageUrl: string;
1985
+ endImageUrl?: string;
1986
+ }
1987
+ interface SeedanceReferenceToVideoParams extends SeedanceBase {
1988
+ mode: 'reference-to-video';
1989
+ imageReferences?: string[];
1990
+ videoReferences?: string[];
1991
+ audioReferences?: string[];
1992
+ }
1993
+ interface KlingMultiPromptElement {
1994
+ prompt: string;
1995
+ durationSeconds?: number;
1996
+ }
1997
+ interface KlingBase extends VideoGenBase {
1998
+ provider: 'kling-3.0-standard';
1999
+ aspectRatio?: '16:9' | '9:16' | '1:1';
2000
+ durationSeconds?: 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
2001
+ generateAudio?: boolean;
2002
+ negativePrompt?: string;
2003
+ cfgScale?: number;
2004
+ shotType?: 'customize' | 'intelligent';
2005
+ multiPrompt?: KlingMultiPromptElement[];
2006
+ }
2007
+ interface KlingTextToVideoParams extends KlingBase {
2008
+ mode: 'text-to-video';
2009
+ }
2010
+ interface KlingImageToVideoParams extends KlingBase {
2011
+ mode: 'image-to-video';
2012
+ startImageUrl: string;
2013
+ endImageUrl?: string;
2014
+ }
2015
+ type VideoGenParams = SeedanceTextToVideoParams | SeedanceImageToVideoParams | SeedanceReferenceToVideoParams | KlingTextToVideoParams | KlingImageToVideoParams;
2016
+ interface VideoGenResult {
2017
+ generationId: string;
2018
+ videoUrl: string;
2019
+ posterUrl?: string;
2020
+ durationSeconds: number;
2021
+ width: number;
2022
+ height: number;
2023
+ provider: VideoGenProvider;
2024
+ mode: VideoGenMode;
2025
+ prompt: string;
2026
+ seed: number;
2027
+ }
2028
+ interface VideoGenJobEvent {
2029
+ jobId: string;
2030
+ status: 'completed' | 'failed';
2031
+ params: VideoGenParams;
2032
+ result?: VideoGenResult;
2033
+ error?: string;
2034
+ }
2035
+ interface VideoGenApi {
2036
+ generate(params: VideoGenParams): Promise<VideoGenResult>;
2037
+ getCompletedJobs(): Promise<VideoGenJobEvent[]>;
2038
+ }
2039
+
2040
+ interface FileEntry {
2041
+ key: string;
2042
+ sizeBytes: number;
2043
+ contentType: string;
2044
+ visibility: 'private' | 'public';
2045
+ url: string;
2046
+ createdAt: string;
2047
+ updatedAt: string;
2048
+ mediaMetadata?: MediaMetadata;
2049
+ }
2050
+ interface MediaMetadata {
2051
+ width?: number;
2052
+ height?: number;
2053
+ durationMs?: number;
2054
+ codec?: string;
2055
+ }
2056
+ interface UploadParams {
2057
+ key: string;
2058
+ contentType: string;
2059
+ sizeBytes: number;
2060
+ visibility?: 'private' | 'public';
2061
+ }
2062
+ interface UploadResult {
2063
+ uploadUrl: string;
2064
+ key: string;
2065
+ expiresAt: number;
2066
+ }
2067
+ interface ListParams {
2068
+ cursor?: string;
2069
+ limit?: number;
2070
+ targetAppId?: string;
2071
+ }
2072
+ interface ListResult {
2073
+ files: FileEntry[];
2074
+ nextCursor?: string;
2075
+ }
2076
+ interface GetUrlParams {
2077
+ key: string;
2078
+ targetAppId?: string;
2079
+ targetProfileId?: string;
2080
+ }
2081
+ interface GetMetadataParams {
2082
+ key: string;
2083
+ targetAppId?: string;
2084
+ targetProfileId?: string;
2085
+ }
2086
+ interface StorageQuota {
2087
+ usedBytes: number;
2088
+ capBytes: number;
2089
+ availableBytes: number;
2090
+ maxFileBytes: number;
2091
+ tier: number;
2092
+ }
2093
+ type TransformParams = {
2094
+ op: 'concat';
2095
+ inputs: string[];
2096
+ outputKey: string;
2097
+ deleteInputs?: boolean;
2098
+ } | {
2099
+ op: 'trim';
2100
+ input: string;
2101
+ outputKey: string;
2102
+ startMs: number;
2103
+ endMs: number;
2104
+ } | {
2105
+ op: 'thumbnail';
2106
+ input: string;
2107
+ outputKey: string;
2108
+ atMs?: number;
2109
+ width?: number;
2110
+ height?: number;
2111
+ } | {
2112
+ op: 'copy';
2113
+ input: string;
2114
+ outputKey: string;
2115
+ };
2116
+ interface TransformResult {
2117
+ jobId: string;
2118
+ entry: FileEntry;
2119
+ }
2120
+ interface FilesApi {
2121
+ upload(params: UploadParams): Promise<UploadResult>;
2122
+ confirmUpload(key: string): Promise<FileEntry>;
2123
+ getUrl(params: GetUrlParams): Promise<string>;
2124
+ getMetadata(params: GetMetadataParams): Promise<FileEntry>;
2125
+ delete(key: string): Promise<void>;
2126
+ list(params?: ListParams): Promise<ListResult>;
2127
+ getQuota(): Promise<StorageQuota>;
2128
+ setVisibility(key: string, visibility: 'private' | 'public'): Promise<FileEntry>;
2129
+ transform(params: TransformParams): Promise<TransformResult>;
1904
2130
  }
1905
2131
 
1906
2132
  interface Entitlement {
@@ -2415,6 +2641,9 @@ interface Host {
2415
2641
  readonly preloader: PreloaderApi;
2416
2642
  readonly social: SocialApi;
2417
2643
  readonly imageGen: ImageGenApi;
2644
+ readonly audioGen: AudioGenApi;
2645
+ readonly videoGen: VideoGenApi;
2646
+ readonly files: FilesApi;
2418
2647
  readonly entitlements: EntitlementApi;
2419
2648
  readonly shop: ShopApi;
2420
2649
  readonly accessGate: AccessGateApi;
@@ -2904,6 +3133,9 @@ interface RundotGameAPI {
2904
3133
  lifecycles: LifecycleApi;
2905
3134
  social: SocialApi;
2906
3135
  imageGen: ImageGenApi;
3136
+ audioGen: AudioGenApi;
3137
+ videoGen: VideoGenApi;
3138
+ files: FilesApi;
2907
3139
  entitlements: EntitlementApi;
2908
3140
  shop: ShopApi;
2909
3141
  accessGate: AccessGateApi;
@@ -2928,4 +3160,4 @@ interface AdsApi {
2928
3160
  showInterstitialAd(options?: ShowInterstitialAdOptions): Promise<boolean>;
2929
3161
  }
2930
3162
 
2931
- export { type FetchFromCdnOptions as $, type AnalyticsApi as A, type BatchRecipeRequirementsResult as B, type NotificationsApi as C, type ScheduleLocalNotification as D, type ScheduleNotificationOptions as E, type RCSAvailabilityStatus as F, type ScheduleRCSInput as G, type Host as H, type ScheduleRCSResult as I, type PopupsApi as J, type ShowToastOptions as K, type ShowInterstitialAdOptions as L, type ShowRewardedAdOptions as M, type NavigationApi as N, type ProfileApi as O, type Profile as P, type QuitOptions as Q, type RundotGameAPI as R, type SimulationActiveRunsUpdate as S, type DeviceApi as T, type DeviceInfo as U, type EnvironmentApi as V, type EnvironmentInfo as W, type SystemApi as X, type SafeArea as Y, type AddToHomeScreenResult as Z, type CdnApi as _, type RecipeRequirementQuery as a, type SubscriptionTier as a$, type AssetUrlResult as a0, type TimeApi as a1, type ServerTimeData as a2, type GetFutureTimeOptions as a3, type AiApi as a4, type AiChatCompletionRequest as a5, type AiChatCompletionData as a6, type HapticsApi as a7, HapticFeedbackStyle as a8, type FeaturesApi as a9, type ExecuteScopedRecipeResult as aA, type GetAvailableRecipesOptions as aB, type GetAvailableRecipesResult as aC, type Recipe as aD, type GetBatchRecipeRequirements as aE, type TriggerRecipeChainOptions as aF, type RoomDataUpdate as aG, type RoomMessageEvent as aH, type ProposedMoveEvent as aI, RundotGameTransport as aJ, type RoomsApi as aK, type CreateRoomOptions as aL, type JoinOrCreateRoomOptions as aM, type JoinOrCreateResult as aN, type ListRoomsOptions as aO, type UpdateRoomDataOptions as aP, type RoomMessageRequest as aQ, type StartRoomGameOptions as aR, type ProposeMoveRequest as aS, type ProposeMoveResult as aT, type ValidateMoveVerdict as aU, type ValidateMoveResult as aV, type RoomSubscriptionOptions as aW, type LoggingApi as aX, type IapApi as aY, type SpendCurrencyOptions as aZ, type SpendCurrencyResult as a_, type Experiment as aa, type LifecycleApi as ab, type SleepCallback as ac, type Subscription as ad, type AwakeCallback as ae, type PauseCallback as af, type ResumeCallback as ag, type QuitCallback as ah, type BackButtonCallback as ai, type SimulationApi as aj, type SimulationSlotValidationResult as ak, type SimulationBatchOperation as al, type SimulationBatchOperationsResult as am, type SimulationAvailableItem as an, type SimulationPowerPreview as ao, type SimulationSlotMutationResult as ap, type SimulationSlotContainer as aq, type SimulationAssignment as ar, type SimulationState as as, type ExecuteRecipeOptions as at, type ExecuteRecipeResponse as au, type CollectRecipeResult as av, type ResetStateOptions as aw, type ResetStateResult as ax, type GetActiveRunsOptions as ay, type ExecuteScopedRecipeOptions as az, type RecipeRequirementResult as b, type InitializationOptions as b$, type RunSubscriptionsResponse as b0, type SubscriptionInterval as b1, type PurchaseSubscriptionResponse as b2, type OpenStoreResult as b3, type LoadEmbeddedAssetsResponse as b4, type SharedAssetsApi as b5, type LeaderboardApi as b6, type ScoreToken as b7, type SubmitScoreParams as b8, type SubmitScoreResult as b9, type VideoApi as bA, type AppApi as bB, type AdminUgcApi as bC, type AdminImageGenApi as bD, type AppRole as bE, type AdminUgcBrowseParams as bF, type AdminUgcBrowseResponse as bG, type AdminUgcListReportsParams as bH, type AdminUgcListReportsResponse as bI, type AdminUgcResolveAction as bJ, type AdminImageGenBrowseParams as bK, type AdminImageGenBrowseResponse as bL, type AdminImageGenListReportsParams as bM, type AdminImageGenListReportsResponse as bN, type AdminImageGenResolveAction as bO, type Avatar3dApi as bP, type AssetManifest as bQ, type Avatar3dConfig as bR, type ShowEditorOptions as bS, type Avatar3dEdits as bT, type AdsApi as bU, type ImageGenParams as bV, type ImageGenResult as bW, type SharedStorageHostApi as bX, type MultiplayerApi as bY, type AttributionApi as bZ, type InitializationContext as b_, type GetPagedScoresOptions as ba, type PagedScoresResponse as bb, type PlayerRankOptions as bc, type PlayerRankResult as bd, type GetPodiumScoresOptions as be, type PodiumScoresResponse as bf, type PreloaderApi as bg, type SocialApi as bh, type ShareMetadata as bi, type ShareLinkResult as bj, type SocialQRCodeOptions as bk, type QRCodeResult as bl, type ShareClickData as bm, type EntitlementApi as bn, type Entitlement as bo, type LedgerEntry as bp, type ShopApi as bq, type StorefrontResponse as br, type StorefrontItem as bs, type ShopPurchaseResponse as bt, type ShopOrderHistoryResponse as bu, type PromptLoginResult as bv, type AccessTier as bw, type AccessGateApi as bx, type ImageGenApi as by, type UgcApi as bz, type RundotGameAvailableRecipe as c, type SimulationRoomActiveRecipe as c$, AccessDeniedError as c0, type AdminUgcEntry as c1, type AiContentBlock as c2, type AiImageContent as c3, type AiImageUrlContent as c4, type AiMessage as c5, type AiTextContent as c6, type Asset as c7, type Category as c8, type ConnectionState as c9, type Protocol as cA, type PurchaseSubscriptionRequest as cB, type RCSAvailabilityReason as cC, ROOM_GAME_PHASES as cD, type RecipeInfo as cE, type RoomEnvelopeResponse as cF, type RoomEvents as cG, type RoomGamePhase as cH, type RoomMessageEventType as cI, type RoomMessagePayload as cJ, type RoomsEnvelopeResponse as cK, RpcInboundStorageApi as cL, RpcSharedAssetsApi as cM, type RpcTransport as cN, type RunSubscription as cO, type RundotGameRoomCustomMetadata as cP, type RundotGameRoomPayload as cQ, type RundotGameRoomRules as cR, type RundotGameRoomRulesGameState as cS, type ScheduleRCSStatus as cT, type ServerPlayer as cU, type ServerRoom as cV, type ShopOrder as cW, type SimulationBatchOperationAssign as cX, type SimulationBatchOperationRemove as cY, type SimulationBatchOperationResult as cZ, type SimulationPersonalState as c_, type GetSubscriptionsForTierRequest as ca, type HudInsets as cb, type ImageGenEntry as cc, type ImageGenModel as cd, type ImageGenReport as ce, type InboundForKeyEntry as cf, type InboundMethodIds as cg, type InboundStorageApi as ch, type IsPlayerSubscribedRequest as ci, type JoinOrCreateRoomEnvelopeResponse as cj, type JoinRoomMatchCriteria as ck, type LeaderboardAntiCheatConfig as cl, type LeaderboardConfig as cm, type LeaderboardDisplaySettings as cn, type LeaderboardEntry as co, type LeaderboardModeConfig as cp, type LeaderboardPeriodConfig as cq, type LeaderboardPeriodType as cr, type LoadEmbeddedAssetsRequest as cs, MockAvatarApi as ct, type NotificationTriggerInput as cu, type OnNotificationCallback as cv, type OnRequestCallback as cw, type OnResponseCallback as cx, type PodiumScoresContext as cy, type ProposedMovePayload as cz, type RundotGameCollectRecipeResult as d, type SimulationRoomState as d0, type StorefrontCollection as d1, type StorefrontCollectionItem as d2, type SubPath as d3, type TimeIntervalTriggerInput as d4, type UgcReport as d5, createHost as d6, resolveCollectionItemPrice as d7, type RundotGameExecuteRecipeOptions as e, type RundotGameExecuteRecipeResult as f, type RundotGameExecuteScopedRecipeOptions as g, RundotGameRoom as h, type RundotGameSimulationConfig as i, type RundotGameSimulationEffect as j, type RundotGameSimulationRecipe as k, type RundotGameSimulationStateResponse as l, type SimulationEntityUpdate as m, type SimulationRunSummary as n, type SimulationSnapshotUpdate as o, type SimulationSubscribeOptions as p, type SimulationUpdateData as q, type SimulationUpdateType as r, type RpcRequest as s, type RpcResponse as t, type RpcNotification as u, RpcClient as v, type StorageApi as w, type NavigationStackInfo as x, type PushAppOptions as y, type NavigateToGameOptions as z };
3163
+ export { type FetchFromCdnOptions as $, type AnalyticsApi as A, type BatchRecipeRequirementsResult as B, type NotificationsApi as C, type ScheduleLocalNotification as D, type ScheduleNotificationOptions as E, type RCSAvailabilityStatus as F, type ScheduleRCSInput as G, type Host as H, type ScheduleRCSResult as I, type PopupsApi as J, type ShowToastOptions as K, type ShowInterstitialAdOptions as L, type ShowRewardedAdOptions as M, type NavigationApi as N, type ProfileApi as O, type Profile as P, type QuitOptions as Q, type RundotGameAPI as R, type SimulationActiveRunsUpdate as S, type DeviceApi as T, type DeviceInfo as U, type EnvironmentApi as V, type EnvironmentInfo as W, type SystemApi as X, type SafeArea as Y, type AddToHomeScreenResult as Z, type CdnApi as _, type RecipeRequirementQuery as a, type SubscriptionTier as a$, type AssetUrlResult as a0, type TimeApi as a1, type ServerTimeData as a2, type GetFutureTimeOptions as a3, type AiApi as a4, type AiChatCompletionRequest as a5, type AiChatCompletionData as a6, type HapticsApi as a7, HapticFeedbackStyle as a8, type FeaturesApi as a9, type ExecuteScopedRecipeResult as aA, type GetAvailableRecipesOptions as aB, type GetAvailableRecipesResult as aC, type Recipe as aD, type GetBatchRecipeRequirements as aE, type TriggerRecipeChainOptions as aF, type RoomDataUpdate as aG, type RoomMessageEvent as aH, type ProposedMoveEvent as aI, RundotGameTransport as aJ, type RoomsApi as aK, type CreateRoomOptions as aL, type JoinOrCreateRoomOptions as aM, type JoinOrCreateResult as aN, type ListRoomsOptions as aO, type UpdateRoomDataOptions as aP, type RoomMessageRequest as aQ, type StartRoomGameOptions as aR, type ProposeMoveRequest as aS, type ProposeMoveResult as aT, type ValidateMoveVerdict as aU, type ValidateMoveResult as aV, type RoomSubscriptionOptions as aW, type LoggingApi as aX, type IapApi as aY, type SpendCurrencyOptions as aZ, type SpendCurrencyResult as a_, type Experiment as aa, type LifecycleApi as ab, type SleepCallback as ac, type Subscription as ad, type AwakeCallback as ae, type PauseCallback as af, type ResumeCallback as ag, type QuitCallback as ah, type BackButtonCallback as ai, type SimulationApi as aj, type SimulationSlotValidationResult as ak, type SimulationBatchOperation as al, type SimulationBatchOperationsResult as am, type SimulationAvailableItem as an, type SimulationPowerPreview as ao, type SimulationSlotMutationResult as ap, type SimulationSlotContainer as aq, type SimulationAssignment as ar, type SimulationState as as, type ExecuteRecipeOptions as at, type ExecuteRecipeResponse as au, type CollectRecipeResult as av, type ResetStateOptions as aw, type ResetStateResult as ax, type GetActiveRunsOptions as ay, type ExecuteScopedRecipeOptions as az, type RecipeRequirementResult as b, type FilesApi as b$, type RunSubscriptionsResponse as b0, type SubscriptionInterval as b1, type PurchaseSubscriptionResponse as b2, type OpenStoreResult as b3, type LoadEmbeddedAssetsResponse as b4, type SharedAssetsApi as b5, type LeaderboardApi as b6, type ScoreToken as b7, type SubmitScoreParams as b8, type SubmitScoreResult as b9, type UgcApi as bA, type VideoApi as bB, type AppApi as bC, type AdminUgcApi as bD, type AdminImageGenApi as bE, type AppRole as bF, type AdminUgcBrowseParams as bG, type AdminUgcBrowseResponse as bH, type AdminUgcListReportsParams as bI, type AdminUgcListReportsResponse as bJ, type AdminUgcResolveAction as bK, type AdminImageGenBrowseParams as bL, type AdminImageGenBrowseResponse as bM, type AdminImageGenListReportsParams as bN, type AdminImageGenListReportsResponse as bO, type AdminImageGenResolveAction as bP, type Avatar3dApi as bQ, type AssetManifest as bR, type Avatar3dConfig as bS, type ShowEditorOptions as bT, type Avatar3dEdits as bU, type AdsApi as bV, type ImageGenParams as bW, type ImageGenResult as bX, type ImageGenJobEvent as bY, type SharedStorageHostApi as bZ, type VideoGenApi as b_, type GetPagedScoresOptions as ba, type PagedScoresResponse as bb, type PlayerRankOptions as bc, type PlayerRankResult as bd, type GetPodiumScoresOptions as be, type PodiumScoresResponse as bf, type PreloaderApi as bg, type SocialApi as bh, type ShareMetadata as bi, type ShareLinkResult as bj, type SocialQRCodeOptions as bk, type QRCodeResult as bl, type ShareClickData as bm, type EntitlementApi as bn, type Entitlement as bo, type LedgerEntry as bp, type ShopApi as bq, type StorefrontResponse as br, type StorefrontItem as bs, type ShopPurchaseResponse as bt, type ShopOrderHistoryResponse as bu, type PromptLoginResult as bv, type AccessTier as bw, type AccessGateApi as bx, type ImageGenApi as by, type AudioGenApi as bz, type RundotGameAvailableRecipe as c, type SimulationBatchOperationAssign as c$, type MultiplayerApi as c0, type AttributionApi as c1, type InitializationContext as c2, type InitializationOptions as c3, AccessDeniedError as c4, type AdminUgcEntry as c5, type AiContentBlock as c6, type AiImageContent as c7, type AiImageUrlContent as c8, type AiMessage as c9, type OnRequestCallback as cA, type OnResponseCallback as cB, type PodiumScoresContext as cC, type ProposedMovePayload as cD, type Protocol as cE, type PurchaseSubscriptionRequest as cF, type RCSAvailabilityReason as cG, ROOM_GAME_PHASES as cH, type RecipeInfo as cI, type RoomEnvelopeResponse as cJ, type RoomEvents as cK, type RoomGamePhase as cL, type RoomMessageEventType as cM, type RoomMessagePayload as cN, type RoomsEnvelopeResponse as cO, RpcInboundStorageApi as cP, RpcSharedAssetsApi as cQ, type RpcTransport as cR, type RunSubscription as cS, type RundotGameRoomCustomMetadata as cT, type RundotGameRoomPayload as cU, type RundotGameRoomRules as cV, type RundotGameRoomRulesGameState as cW, type ScheduleRCSStatus as cX, type ServerPlayer as cY, type ServerRoom as cZ, type ShopOrder as c_, type AiTextContent as ca, type Asset as cb, type Category as cc, type ConnectionState as cd, type GetSubscriptionsForTierRequest as ce, type HudInsets as cf, type ImageGenEntry as cg, type ImageGenModel as ch, type ImageGenReport as ci, type InboundForKeyEntry as cj, type InboundMethodIds as ck, type InboundStorageApi as cl, type IsPlayerSubscribedRequest as cm, type JoinOrCreateRoomEnvelopeResponse as cn, type JoinRoomMatchCriteria as co, type LeaderboardAntiCheatConfig as cp, type LeaderboardConfig as cq, type LeaderboardDisplaySettings as cr, type LeaderboardEntry as cs, type LeaderboardModeConfig as ct, type LeaderboardPeriodConfig as cu, type LeaderboardPeriodType as cv, type LoadEmbeddedAssetsRequest as cw, MockAvatarApi as cx, type NotificationTriggerInput as cy, type OnNotificationCallback as cz, type RundotGameCollectRecipeResult as d, type SimulationBatchOperationRemove as d0, type SimulationBatchOperationResult as d1, type SimulationPersonalState as d2, type SimulationRoomActiveRecipe as d3, type SimulationRoomState as d4, type StorefrontCollection as d5, type StorefrontCollectionItem as d6, type SubPath as d7, type TimeIntervalTriggerInput as d8, type UgcReport as d9, createHost as da, resolveCollectionItemPrice as db, type RundotGameExecuteRecipeOptions as e, type RundotGameExecuteRecipeResult as f, type RundotGameExecuteScopedRecipeOptions as g, RundotGameRoom as h, type RundotGameSimulationConfig as i, type RundotGameSimulationEffect as j, type RundotGameSimulationRecipe as k, type RundotGameSimulationStateResponse as l, type SimulationEntityUpdate as m, type SimulationRunSummary as n, type SimulationSnapshotUpdate as o, type SimulationSubscribeOptions as p, type SimulationUpdateData as q, type SimulationUpdateType as r, type RpcRequest as s, type RpcResponse as t, type RpcNotification as u, RpcClient as v, type StorageApi as w, type NavigationStackInfo as x, type PushAppOptions as y, type NavigateToGameOptions as z };
@@ -1,4 +1,4 @@
1
- import { generateId, MockAdminUgcApi, MockAdminImageGenApi, RpcAdsApi, RpcAnalyticsApi, RpcStorageApi, RpcInboundStorageApi, DualEmitStorageApi, RpcAvatarApi, RpcNavigationApi, RpcNotificationsApi, RpcPopupsApi, HostProfileApi, HostDeviceApi, HostEnvironmentApi, HostSystemApi, HostCdnApi, HostTimeApi, RpcHapticsApi, RpcFeaturesApi, RpcLifecycleApi, RpcRoomsApi, RpcLoggingApi, RpcIapApi, RpcPreloaderApi, RpcEntitlementApi, RpcShopApi, RpcVideoApi, RpcAttributionApi, RpcSharedAssetsApi, initializeRoomsApi, RpcAccessGateApi, applyAccessGates, WsMultiplayerApi, MockAdsApi, MockLifecycleApi, MockAnalyticsApi, createMockStorageApi, MockAvatarApi, MockNavigationApi, MockNotificationsApi, MockPopupsApi, MockProfileApi, MockDeviceApi, MockEnvironmentApi, MockSystemApi, MockCdnApi, MockTimeApi, MockHapticsApi, MockFeaturesApi, MockLoggingApi, MockIapApi, MockEntitlementApi, MockShopApi, MockVideoApi, MockAttributionApi, MockPreloaderApi, MockSharedAssetsApi, MockAccessGateApi, MockMultiplayerApi } from './chunk-44QXQD5L.js';
1
+ import { generateId, MockAdminUgcApi, MockAdminImageGenApi, RpcAdsApi, RpcAnalyticsApi, RpcStorageApi, RpcInboundStorageApi, DualEmitStorageApi, RpcAvatarApi, RpcNavigationApi, RpcNotificationsApi, RpcPopupsApi, HostProfileApi, HostDeviceApi, HostEnvironmentApi, HostSystemApi, HostCdnApi, HostTimeApi, RpcHapticsApi, RpcFeaturesApi, RpcLifecycleApi, RpcRoomsApi, RpcLoggingApi, RpcIapApi, RpcPreloaderApi, RpcEntitlementApi, RpcShopApi, RpcVideoApi, RpcAttributionApi, RpcSharedAssetsApi, initializeRoomsApi, RpcAccessGateApi, applyAccessGates, WsMultiplayerApi, MockAdsApi, MockLifecycleApi, MockAnalyticsApi, createMockStorageApi, MockAvatarApi, MockNavigationApi, MockNotificationsApi, MockPopupsApi, MockProfileApi, MockDeviceApi, MockEnvironmentApi, MockSystemApi, MockCdnApi, MockTimeApi, MockHapticsApi, MockFeaturesApi, MockLoggingApi, MockIapApi, MockEntitlementApi, MockShopApi, MockVideoApi, MockAttributionApi, MockPreloaderApi, MockSharedAssetsApi, MockAccessGateApi, MockMultiplayerApi } from './chunk-NFREALED.js';
2
2
 
3
3
  // src/ai/RpcAiApi.ts
4
4
  var RpcAiApi = class {
@@ -221,6 +221,12 @@ var RpcImageGenApi = class {
221
221
  // Infinite timeout, matching RpcAiApi pattern
222
222
  );
223
223
  }
224
+ async getCompletedJobs() {
225
+ return this.rpcClient.call(
226
+ "H5_POLL_COMPLETED_JOBS" /* H5_POLL_COMPLETED_JOBS */,
227
+ { type: "imageGen" }
228
+ );
229
+ }
224
230
  };
225
231
 
226
232
  // src/imageGen/MockImageGenApi.ts
@@ -229,6 +235,9 @@ var MockImageGenApi = class {
229
235
  console.warn("[RUN] Image generation API not available in mock mode");
230
236
  throw new Error("Image generation API requires backend connection");
231
237
  }
238
+ async getCompletedJobs() {
239
+ return [];
240
+ }
232
241
  };
233
242
 
234
243
  // src/imageGen/index.ts
@@ -603,7 +612,7 @@ function initializeSimulation(rundotGameApi, host) {
603
612
  }
604
613
 
605
614
  // src/version.ts
606
- var SDK_VERSION = "5.15.0";
615
+ var SDK_VERSION = "5.15.1-beta.2";
607
616
 
608
617
  // src/leaderboard/utils.ts
609
618
  var HASH_ALGORITHM_WEB_CRYPTO = "SHA-256";
@@ -1253,6 +1262,172 @@ var MockSocialApi = class {
1253
1262
  }
1254
1263
  };
1255
1264
 
1265
+ // src/audioGen/RpcAudioGenApi.ts
1266
+ var RpcAudioGenApi = class {
1267
+ constructor(rpcClient) {
1268
+ this.rpcClient = rpcClient;
1269
+ }
1270
+ rpcClient;
1271
+ async generate(params) {
1272
+ return this.rpcClient.call(
1273
+ "H5_AUDIO_GEN_GENERATE" /* H5_AUDIO_GEN_GENERATE */,
1274
+ params,
1275
+ -1
1276
+ );
1277
+ }
1278
+ };
1279
+
1280
+ // src/audioGen/MockAudioGenApi.ts
1281
+ var MockAudioGenApi = class {
1282
+ async generate(_params) {
1283
+ console.warn("[RUN] Audio generation API not available in mock mode");
1284
+ throw new Error("Audio generation API requires backend connection");
1285
+ }
1286
+ };
1287
+
1288
+ // src/audioGen/index.ts
1289
+ function initializeAudioGen(rundotGameApi, host) {
1290
+ rundotGameApi.audioGen = host.audioGen;
1291
+ }
1292
+
1293
+ // src/videoGen/RpcVideoGenApi.ts
1294
+ var RpcVideoGenApi = class {
1295
+ constructor(rpcClient) {
1296
+ this.rpcClient = rpcClient;
1297
+ }
1298
+ rpcClient;
1299
+ async generate(params) {
1300
+ return this.rpcClient.call(
1301
+ "H5_VIDEO_GEN_GENERATE" /* H5_VIDEO_GEN_GENERATE */,
1302
+ params,
1303
+ -1
1304
+ );
1305
+ }
1306
+ async getCompletedJobs() {
1307
+ return this.rpcClient.call(
1308
+ "H5_POLL_COMPLETED_JOBS" /* H5_POLL_COMPLETED_JOBS */,
1309
+ { type: "videoGen" }
1310
+ );
1311
+ }
1312
+ };
1313
+
1314
+ // src/videoGen/MockVideoGenApi.ts
1315
+ var MockVideoGenApi = class {
1316
+ async generate(_params) {
1317
+ console.warn("[RUN] Video generation API not available in mock mode");
1318
+ throw new Error("Video generation API requires backend connection");
1319
+ }
1320
+ async getCompletedJobs() {
1321
+ return [];
1322
+ }
1323
+ };
1324
+
1325
+ // src/videoGen/index.ts
1326
+ function initializeVideoGen(rundotGameApi, host) {
1327
+ rundotGameApi.videoGen = host.videoGen;
1328
+ }
1329
+
1330
+ // src/files/RpcFilesApi.ts
1331
+ var RpcFilesApi = class {
1332
+ constructor(rpcClient) {
1333
+ this.rpcClient = rpcClient;
1334
+ }
1335
+ rpcClient;
1336
+ async upload(params) {
1337
+ return this.rpcClient.call(
1338
+ "H5_FILES_UPLOAD" /* H5_FILES_UPLOAD */,
1339
+ params
1340
+ );
1341
+ }
1342
+ async confirmUpload(key) {
1343
+ return this.rpcClient.call(
1344
+ "H5_FILES_CONFIRM_UPLOAD" /* H5_FILES_CONFIRM_UPLOAD */,
1345
+ { key }
1346
+ );
1347
+ }
1348
+ async getUrl(params) {
1349
+ const result = await this.rpcClient.call(
1350
+ "H5_FILES_GET_URL" /* H5_FILES_GET_URL */,
1351
+ params
1352
+ );
1353
+ return result.url;
1354
+ }
1355
+ async getMetadata(params) {
1356
+ return this.rpcClient.call(
1357
+ "H5_FILES_GET_METADATA" /* H5_FILES_GET_METADATA */,
1358
+ params
1359
+ );
1360
+ }
1361
+ async delete(key) {
1362
+ await this.rpcClient.call(
1363
+ "H5_FILES_DELETE" /* H5_FILES_DELETE */,
1364
+ { key }
1365
+ );
1366
+ }
1367
+ async list(params) {
1368
+ return this.rpcClient.call(
1369
+ "H5_FILES_LIST" /* H5_FILES_LIST */,
1370
+ params ?? {}
1371
+ );
1372
+ }
1373
+ async getQuota() {
1374
+ return this.rpcClient.call(
1375
+ "H5_FILES_GET_QUOTA" /* H5_FILES_GET_QUOTA */,
1376
+ {}
1377
+ );
1378
+ }
1379
+ async setVisibility(key, visibility) {
1380
+ return this.rpcClient.call(
1381
+ "H5_FILES_SET_VISIBILITY" /* H5_FILES_SET_VISIBILITY */,
1382
+ { key, visibility }
1383
+ );
1384
+ }
1385
+ async transform(params) {
1386
+ return this.rpcClient.call(
1387
+ "H5_FILES_TRANSFORM" /* H5_FILES_TRANSFORM */,
1388
+ params,
1389
+ -1
1390
+ );
1391
+ }
1392
+ };
1393
+
1394
+ // src/files/MockFilesApi.ts
1395
+ var MockFilesApi = class {
1396
+ async upload(_params) {
1397
+ console.warn("[RUN] Files API not available in mock mode");
1398
+ throw new Error("Files API requires backend connection");
1399
+ }
1400
+ async confirmUpload(_key) {
1401
+ throw new Error("Files API requires backend connection");
1402
+ }
1403
+ async getUrl(_params) {
1404
+ throw new Error("Files API requires backend connection");
1405
+ }
1406
+ async getMetadata(_params) {
1407
+ throw new Error("Files API requires backend connection");
1408
+ }
1409
+ async delete(_key) {
1410
+ throw new Error("Files API requires backend connection");
1411
+ }
1412
+ async list(_params) {
1413
+ return { files: [] };
1414
+ }
1415
+ async getQuota() {
1416
+ return { usedBytes: 0, capBytes: 0, availableBytes: 0, maxFileBytes: 0, tier: 5 };
1417
+ }
1418
+ async setVisibility(_key, _visibility) {
1419
+ throw new Error("Files API requires backend connection");
1420
+ }
1421
+ async transform(_params) {
1422
+ throw new Error("Files API requires backend connection");
1423
+ }
1424
+ };
1425
+
1426
+ // src/files/index.ts
1427
+ function initializeFiles(rundotGameApi, host) {
1428
+ rundotGameApi.files = host.files;
1429
+ }
1430
+
1256
1431
  // src/app/RpcAdminUgcApi.ts
1257
1432
  var RpcAdminUgcApi = class {
1258
1433
  rpcClient;
@@ -1675,6 +1850,9 @@ var RemoteHost = class {
1675
1850
  preloader;
1676
1851
  social;
1677
1852
  imageGen;
1853
+ audioGen;
1854
+ videoGen;
1855
+ files;
1678
1856
  entitlements;
1679
1857
  shop;
1680
1858
  accessGate;
@@ -1805,6 +1983,9 @@ var RemoteHost = class {
1805
1983
  this.preloader = new RpcPreloaderApi(rpcClient);
1806
1984
  this.social = new RpcSocialApi(rpcClient);
1807
1985
  this.imageGen = new RpcImageGenApi(rpcClient);
1986
+ this.audioGen = new RpcAudioGenApi(rpcClient);
1987
+ this.videoGen = new RpcVideoGenApi(rpcClient);
1988
+ this.files = new RpcFilesApi(rpcClient);
1808
1989
  this.entitlements = new RpcEntitlementApi(rpcClient);
1809
1990
  this.shop = new RpcShopApi(rpcClient);
1810
1991
  this.video = new RpcVideoApi(rpcClient);
@@ -2022,6 +2203,9 @@ var MockHost = class {
2022
2203
  preloader;
2023
2204
  social;
2024
2205
  imageGen;
2206
+ audioGen;
2207
+ videoGen;
2208
+ files;
2025
2209
  entitlements;
2026
2210
  shop;
2027
2211
  accessGate;
@@ -2100,6 +2284,9 @@ var MockHost = class {
2100
2284
  this.iap = new MockIapApi();
2101
2285
  this.social = new MockSocialApi();
2102
2286
  this.imageGen = new MockImageGenApi();
2287
+ this.audioGen = new MockAudioGenApi();
2288
+ this.videoGen = new MockVideoGenApi();
2289
+ this.files = new MockFilesApi();
2103
2290
  this.entitlements = new MockEntitlementApi();
2104
2291
  this.shop = new MockShopApi();
2105
2292
  this.video = new MockVideoApi();
@@ -2505,6 +2692,6 @@ function initializeSocial(rundotGameApi, host) {
2505
2692
  rundotGameApi.social = host.social;
2506
2693
  }
2507
2694
 
2508
- export { HASH_ALGORITHM_NODE, HASH_ALGORITHM_WEB_CRYPTO, MockAiApi, MockAppApi, MockImageGenApi, MockLeaderboardApi, MockSocialApi, RemoteHost, RpcAdminImageGenApi, RpcAdminUgcApi, RpcAiApi, RpcAppApi, RpcClient, RpcImageGenApi, RpcLeaderboardApi, RpcSimulationApi, RpcSocialApi, SDK_VERSION, computeScoreHash, createHost, initializeAi, initializeApp, initializeImageGen, initializeLeaderboard, initializeSimulation, initializeSocial, initializeUgc };
2509
- //# sourceMappingURL=chunk-DMTZ3DKG.js.map
2510
- //# sourceMappingURL=chunk-DMTZ3DKG.js.map
2695
+ export { HASH_ALGORITHM_NODE, HASH_ALGORITHM_WEB_CRYPTO, MockAiApi, MockAppApi, MockImageGenApi, MockLeaderboardApi, MockSocialApi, RemoteHost, RpcAdminImageGenApi, RpcAdminUgcApi, RpcAiApi, RpcAppApi, RpcClient, RpcImageGenApi, RpcLeaderboardApi, RpcSimulationApi, RpcSocialApi, SDK_VERSION, computeScoreHash, createHost, initializeAi, initializeApp, initializeAudioGen, initializeFiles, initializeImageGen, initializeLeaderboard, initializeSimulation, initializeSocial, initializeUgc, initializeVideoGen };
2696
+ //# sourceMappingURL=chunk-L7V4IIHB.js.map
2697
+ //# sourceMappingURL=chunk-L7V4IIHB.js.map