@series-inc/rundot-game-sdk 5.24.0-beta.1 → 5.24.0-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.
Files changed (52) hide show
  1. package/dist/{AdsApi-qZCBWQM4.d.ts → AdsApi-CDJtVB3I.d.ts} +129 -3
  2. package/dist/{LeaderboardApi-BJIye4S7.d.ts → LeaderboardApi-CrWxakrr.d.ts} +5 -1
  3. package/dist/{SyncplayRoomTransport-7F_e94v9.d.ts → SyncplayRoomTransport-BZFFN-il.d.ts} +1 -1
  4. package/dist/{chunk-RKWUCLFV.js → chunk-3MDWJBCR.js} +146 -20
  5. package/dist/chunk-3MDWJBCR.js.map +1 -0
  6. package/dist/{chunk-I3S5ZVHT.js → chunk-7RIEVFDA.js} +55 -9
  7. package/dist/chunk-7RIEVFDA.js.map +1 -0
  8. package/dist/{chunk-TIOJVMES.js → chunk-DMKR7SVQ.js} +51 -3
  9. package/dist/chunk-DMKR7SVQ.js.map +1 -0
  10. package/dist/chunk-N5MASNTK.js +33015 -0
  11. package/dist/chunk-N5MASNTK.js.map +1 -0
  12. package/dist/{chunk-5JSI7LA6.js → chunk-YSK7K2OH.js} +2506 -3019
  13. package/dist/chunk-YSK7K2OH.js.map +1 -0
  14. package/dist/host-http.d.ts +2 -2
  15. package/dist/{index-C_6su2d5.d.ts → index-BrvMOxG0.d.ts} +2 -5
  16. package/dist/index.d.ts +38 -9
  17. package/dist/index.js +2 -2
  18. package/dist/multiplayer-service-BPEWIL4F.d.ts +1834 -0
  19. package/dist/playground/index.js +22 -4
  20. package/dist/playground/index.js.map +1 -1
  21. package/dist/rundot-game-api/index.d.ts +4 -4
  22. package/dist/rundot-game-api/index.js +2 -2
  23. package/dist/{session-promotion-CN7lr85d.d.ts → session-promotion-BMoIRgKe.d.ts} +3 -3
  24. package/dist/syncplay/browser.d.ts +722 -1663
  25. package/dist/syncplay/browser.js +17518 -24249
  26. package/dist/syncplay/browser.js.map +1 -1
  27. package/dist/syncplay/creator.d.ts +5 -5
  28. package/dist/syncplay/creator.js +2 -2
  29. package/dist/syncplay/index.d.ts +2 -2
  30. package/dist/syncplay/index.js +2 -2
  31. package/dist/syncplay/node.d.ts +3 -774
  32. package/dist/syncplay/node.js +5518 -36740
  33. package/dist/syncplay/node.js.map +1 -1
  34. package/dist/syncplay/testing.d.ts +4908 -0
  35. package/dist/syncplay/testing.js +3808 -0
  36. package/dist/syncplay/testing.js.map +1 -0
  37. package/dist/{types-BXxDmID0.d.ts → types-BV8uchSD.d.ts} +21 -2
  38. package/docs/rundot-developer-platform/api/AI.md +43 -1
  39. package/docs/rundot-developer-platform/api/FILES.md +20 -1
  40. package/docs/rundot-developer-platform/api/NOTIFICATIONS.md +92 -221
  41. package/docs/rundot-developer-platform/api/SHARING.md +6 -1
  42. package/docs/rundot-developer-platform/api/SPRITE_GEN.md +5 -3
  43. package/docs/rundot-developer-platform/api/SYNCPLAY-MOVEMENT.md +2 -2
  44. package/docs/rundot-developer-platform/api/SYNCPLAY-PHYSICS.md +67 -5
  45. package/docs/rundot-developer-platform/api/SYNCPLAY.md +41 -3
  46. package/docs/rundot-developer-platform/cli-reference.md +13 -8
  47. package/docs/rundot-developer-platform/playground.md +33 -1
  48. package/package.json +6 -1
  49. package/dist/chunk-5JSI7LA6.js.map +0 -1
  50. package/dist/chunk-I3S5ZVHT.js.map +0 -1
  51. package/dist/chunk-RKWUCLFV.js.map +0 -1
  52. package/dist/chunk-TIOJVMES.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { $ as ProviderErrorDetail, M as LeaderboardApi, I as ImageGenApi, A as AudioGenApi, V as VideoGenApi, q as SpriteGenApi, T as ThreeDGenApi } from './LeaderboardApi-BJIye4S7.js';
1
+ import { $ as ProviderErrorDetail, M as LeaderboardApi, I as ImageGenApi, A as AudioGenApi, V as VideoGenApi, q as SpriteGenApi, T as ThreeDGenApi } from './LeaderboardApi-CrWxakrr.js';
2
2
  import { M as MultiplayerApi } from './MultiplayerApi-nnrGTTcO.js';
3
3
 
4
4
  interface StorageApi {
@@ -241,10 +241,17 @@ interface ScheduleRCSInput {
241
241
  /** Seconds from now; mutually exclusive with triggerAt; max 7 days */
242
242
  delaySeconds?: number;
243
243
  }
244
- type ScheduleRCSStatus = 'pending' | 'sent' | 'dry_run' | 'failed';
244
+ /**
245
+ * `skipped` — nothing was scheduled for a benign reason (e.g. the user is not
246
+ * RCS-reachable, or an identical message is already scheduled). Distinct from
247
+ * `failed`, which indicates a hard scheduling error. See `ScheduleRCSResult.reason`.
248
+ */
249
+ type ScheduleRCSStatus = 'pending' | 'sent' | 'dry_run' | 'skipped' | 'failed';
245
250
  interface ScheduleRCSResult {
246
251
  scheduleId: string;
247
252
  status: ScheduleRCSStatus;
253
+ /** Why the schedule was skipped. Only set when `status === 'skipped'`. */
254
+ reason?: string;
248
255
  /**
249
256
  * Reserved for a future schedule-status API. Not returned by
250
257
  * `scheduleRCSAsync` in v1 (rate-cap deferral is handled internally at
@@ -292,14 +299,50 @@ interface RequestRCSOptInResult {
292
299
  */
293
300
  newlySubscribed: boolean;
294
301
  }
302
+ type SubmitMessageChannel = 'local' | 'rcs';
303
+ interface SubmitMessageInput {
304
+ channels: SubmitMessageChannel[];
305
+ title?: string;
306
+ body?: string;
307
+ templateId?: string;
308
+ params?: Record<string, string>;
309
+ collapseKey?: string;
310
+ ctaUrl?: string;
311
+ continuationParams?: Record<string, string>;
312
+ image?: string;
313
+ triggerAt?: string;
314
+ delaySeconds?: number;
315
+ payload?: Record<string, unknown>;
316
+ notificationId?: string;
317
+ priority?: number;
318
+ groupId?: string;
319
+ }
320
+ type SubmitMessageResultChannel = 'local' | 'rcs' | 'inbox';
321
+ interface SubmitMessageChannelResult {
322
+ channel: SubmitMessageResultChannel;
323
+ status: 'scheduled' | 'skipped';
324
+ id?: string;
325
+ reason?: string;
326
+ }
327
+ interface SubmitMessageResult {
328
+ messageId: string;
329
+ results: SubmitMessageChannelResult[];
330
+ }
295
331
  interface NotificationsApi {
332
+ /**
333
+ * @deprecated Use `submitMessageAsync({ channels: ['local'], ... })` instead.
334
+ */
296
335
  scheduleAsync(title: string, body: string, seconds: number, notificationId?: string, options?: ScheduleNotificationOptions): Promise<string | null>;
297
336
  cancelNotification(notificationId: string): Promise<boolean>;
298
337
  getAllScheduledLocalNotifications(): Promise<ScheduleLocalNotification[]>;
299
338
  isLocalNotificationsEnabled(): Promise<boolean>;
300
339
  setLocalNotificationsEnabled(enabled: boolean): Promise<boolean>;
301
340
  getRCSAvailableAsync(): Promise<RCSAvailabilityStatus>;
341
+ /**
342
+ * @deprecated Use `submitMessageAsync({ channels: ['rcs'], ... })` instead.
343
+ */
302
344
  scheduleRCSAsync(input: ScheduleRCSInput): Promise<ScheduleRCSResult>;
345
+ submitMessageAsync(input: SubmitMessageInput): Promise<SubmitMessageResult>;
303
346
  /**
304
347
  * Trigger the platform-owned RCS opt-in modal. The host shows one of the
305
348
  * three modal states depending on whether the user has a phone on file and
@@ -896,6 +939,25 @@ type AiChatCompletionStreamChunk = {
896
939
  finishReason: string;
897
940
  usage: AiChatCompletionData['usage'];
898
941
  };
942
+ /**
943
+ * Request for a templated ("prompt") completion. Games whose textGen config is
944
+ * `mode: 'templated'` don't send raw `model`/`system`/`messages` — they invoke
945
+ * a server-authored prompt by id. The server owns the model, the system
946
+ * prompt, and any `{{var}}` slots; the game contributes only the player's
947
+ * turn via `input`.
948
+ */
949
+ interface PromptCompletionRequest {
950
+ /** Id of a server-authored prompt declared in rundot/textGen.config.json. */
951
+ promptId: string;
952
+ /** The player's turn; isolation-wrapped server-side. Text-only in v1. */
953
+ input?: string;
954
+ }
955
+ /**
956
+ * Builds the wire object for a templated prompt call explicitly (never
957
+ * spreads the caller's object) so only the templated-call fields ride the
958
+ * wire. Shared by every AiApi transport.
959
+ */
960
+ declare function toPromptWireRequest(request: PromptCompletionRequest): PromptCompletionRequest;
899
961
  interface AiChatCompletionStreamOptions {
900
962
  /**
901
963
  * Caller-supplied AbortSignal. Aborting causes the iterable to stop
@@ -977,6 +1039,53 @@ interface AiApi {
977
1039
  * is non-empty.
978
1040
  */
979
1041
  requestChatCompletionStreamAsync(request: AiChatCompletionRequest, options?: AiChatCompletionStreamOptions): AsyncIterable<AiChatCompletionStreamChunk>;
1042
+ /**
1043
+ * Invoke a server-authored prompt by id (templated textGen mode).
1044
+ *
1045
+ * Unlike `requestChatCompletionAsync`, the game does not choose the model
1046
+ * or author the messages — those live server-side in the prompt declared in
1047
+ * `rundot/textGen.config.json`. The optional `input` carries the player's
1048
+ * turn and is isolation-wrapped server-side; it is text-only in v1.
1049
+ *
1050
+ * There are no client-supplied variables in v1: `{{var}}` slots in the
1051
+ * server-side prompt resolve entirely from a trusted server-side bag, so
1052
+ * the call carries nothing to reconcile or sanitize beyond `input`.
1053
+ *
1054
+ * Note: against a templated game, the open-mode
1055
+ * `requestChatCompletionAsync` is rejected with HTTP 403 and error code
1056
+ * `AI_POLICY_DENIED` — use this method instead.
1057
+ *
1058
+ * @example
1059
+ * ```ts
1060
+ * const response = await textGen.requestPromptCompletionAsync({
1061
+ * promptId: 'npc-banter',
1062
+ * input: 'What do you think of the swamp zone?',
1063
+ * })
1064
+ * console.log(response.choices[0].message.content)
1065
+ * ```
1066
+ */
1067
+ requestPromptCompletionAsync(request: PromptCompletionRequest): Promise<AiChatCompletionData>;
1068
+ /**
1069
+ * Streaming sibling of `requestPromptCompletionAsync`. Returns an async
1070
+ * iterable of chunks — the same chunk contract as
1071
+ * `requestChatCompletionStreamAsync` (see its docs for chunk buffering and
1072
+ * cancellation semantics). Cancel by `break`ing out of `for await`, calling
1073
+ * `return()` on the iterator, or aborting the optional `signal`.
1074
+ *
1075
+ * @example
1076
+ * ```ts
1077
+ * const stream = textGen.requestPromptCompletionStreamAsync({
1078
+ * promptId: 'npc-banter',
1079
+ * input: 'Tell me a story.',
1080
+ * })
1081
+ * let text = ''
1082
+ * for await (const chunk of stream) {
1083
+ * if (chunk.type === 'delta') text += chunk.text
1084
+ * if (chunk.type === 'done') console.log('usage', chunk.usage)
1085
+ * }
1086
+ * ```
1087
+ */
1088
+ requestPromptCompletionStreamAsync(request: PromptCompletionRequest, options?: AiChatCompletionStreamOptions): AsyncIterable<AiChatCompletionStreamChunk>;
980
1089
  }
981
1090
 
982
1091
  type TextGenApi = AiApi;
@@ -2664,6 +2773,13 @@ interface ComposeSocialPostOptions {
2664
2773
  title?: string;
2665
2774
  /** Target subreddit (bare name, no `r/` prefix), used only when routed to Reddit. */
2666
2775
  subreddit?: string;
2776
+ /**
2777
+ * OpenGraph metadata for the tracked share link minted from `shareParams`
2778
+ * (same semantics as `shareLinkAsync`). Fields left absent fall back to the
2779
+ * game's values (name/thumbnail). Ignored when `shareParams` is absent — no
2780
+ * link is minted, so there is nothing to attach a preview to.
2781
+ */
2782
+ metadata?: ShareMetadata;
2667
2783
  }
2668
2784
  interface ComposeSocialPostResult {
2669
2785
  /**
@@ -2997,6 +3113,16 @@ type TransformParams = {
2997
3113
  outputKey: string;
2998
3114
  maxDurationSec: number;
2999
3115
  clientRef?: string;
3116
+ } | {
3117
+ op: 'overlay';
3118
+ input: string;
3119
+ overlay: string;
3120
+ outputKey: string;
3121
+ position?: 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
3122
+ scale?: number;
3123
+ margin?: number;
3124
+ opacity?: number;
3125
+ clientRef?: string;
3000
3126
  } | ArchiveExtractParams;
3001
3127
  interface TransformResult {
3002
3128
  jobId: string;
@@ -4593,4 +4719,4 @@ interface AdsApi {
4593
4719
  showInterstitialAd(options?: ShowInterstitialAdOptions): Promise<boolean>;
4594
4720
  }
4595
4721
 
4596
- export { type EnvironmentInfo 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 RequestRCSOptInInput as J, type RequestRCSOptInResult as K, type PopupsApi as L, type ShowToastOptions as M, type NavigationApi as N, type LikeDialogResult as O, type Profile as P, type QuitOptions as Q, type RundotGameAPI as R, type SimulationActiveRunsUpdate as S, type CommentsPanelResult as T, type LikeStateResult as U, type ShowInterstitialAdOptions as V, type ShowRewardedAdOptions as W, type ProfileApi as X, type DeviceApi as Y, type DeviceInfo as Z, type EnvironmentApi as _, type RecipeRequirementQuery as a, type RoomsApi as a$, type SystemApi as a0, type SafeArea as a1, type AddToHomeScreenResult as a2, type CdnApi as a3, type FetchFromCdnOptions as a4, type AssetUrlResult as a5, type TimeApi as a6, type ServerTimeData as a7, type GetFutureTimeOptions as a8, type AiApi as a9, type SimulationApi as aA, type SimulationSlotValidationResult as aB, type SimulationBatchOperation as aC, type SimulationBatchOperationsResult as aD, type SimulationAvailableItem as aE, type SimulationPowerPreview as aF, type SimulationSlotMutationResult as aG, type SimulationSlotContainer as aH, type SimulationAssignment as aI, type SimulationState as aJ, type ExecuteRecipeOptions as aK, type ExecuteRecipeResponse as aL, type CollectRecipeResult as aM, type ResetStateOptions as aN, type ResetStateResult as aO, type GetActiveRunsOptions as aP, type ExecuteScopedRecipeOptions as aQ, type ExecuteScopedRecipeResult as aR, type GetAvailableRecipesOptions as aS, type GetAvailableRecipesResult as aT, type Recipe as aU, type GetBatchRecipeRequirements as aV, type TriggerRecipeChainOptions as aW, type RoomDataUpdate as aX, type RoomMessageEvent as aY, type ProposedMoveEvent as aZ, RundotGameTransport as a_, type AiChatCompletionRequest as aa, type AiChatCompletionData as ab, type AiChatCompletionStreamOptions as ac, type AiChatCompletionStreamChunk as ad, type HapticsApi as ae, HapticFeedbackStyle as af, type GamepadSnapshot as ag, type GamepadConnectionEvent as ah, type Subscription as ai, type GamepadApi as aj, type GamepadLatencyStats as ak, type FeaturesApi as al, type Experiment as am, type LiveOpsApi as an, type LiveOpsConfigResult as ao, type LiveOpsRawConfig as ap, type LiveOpsSection as aq, type LifecycleApi as ar, type SleepCallback as as, type AwakeCallback as at, type PauseCallback as au, type ResumeCallback as av, type QuitCallback as aw, type BackButtonCallback as ax, type IdentityChangedCallback as ay, type IdentityChangedEvent as az, type RecipeRequirementResult as b, type AdminUgcApi as b$, type CreateRoomOptions as b0, type JoinOrCreateRoomOptions as b1, type JoinOrCreateResult as b2, type ListRoomsOptions as b3, type UpdateRoomDataOptions as b4, type RoomMessageRequest as b5, type StartRoomGameOptions as b6, type ProposeMoveRequest as b7, type ProposeMoveResult as b8, type ValidateMoveVerdict as b9, type QRCodeResult as bA, type ShareClickData as bB, type ShareFileOptions as bC, type ShareFileResult as bD, type CanShareFileResult as bE, type ComposeSocialPostOptions as bF, type ComposeSocialPostResult as bG, type EntitlementApi as bH, type Entitlement as bI, type LedgerEntry as bJ, type StatsApi as bK, type GrantInfo as bL, type CollectiblesApi as bM, type CollectibleCard as bN, type VipClaimResult as bO, type ShopApi as bP, type StorefrontResponse as bQ, type StorefrontItem as bR, type ShopPurchaseResponse as bS, type ShopOrderHistoryResponse as bT, type PromptLoginResult as bU, type AccessTier as bV, type AccessGateApi as bW, type TextGenApi as bX, type UgcApi as bY, type VideoApi as bZ, type AppApi as b_, type ValidateMoveResult as ba, type RoomSubscriptionOptions as bb, type LoggingApi as bc, type IapApi as bd, type SpendCurrencyOptions as be, type SpendCurrencyResult as bf, type SubscriptionTier as bg, type RunSubscriptionsResponse as bh, type SubscriptionInterval as bi, type PurchaseSubscriptionResponse as bj, type OpenStoreResult as bk, type LoadEmbeddedAssetsResponse as bl, type SharedAssetsApi as bm, type CreditsApi as bn, type CreditsBillingContext as bo, type CreditBalance as bp, type CreditSubscription as bq, type CreditPlansCatalog as br, type OpenPaywallOptions as bs, type CreditsPurchaseResult as bt, type Unsubscribe as bu, type PreloaderApi as bv, type SocialApi as bw, type ShareMetadata as bx, type ShareLinkResult as by, type SocialQRCodeOptions as bz, type RundotGameAvailableRecipe as c, type AdminUgcEntry as c$, type AdminImageGenApi as c0, type AdminVideoGenApi as c1, type AdminSpriteGenApi as c2, type AdminAudioGenApi as c3, type AdminThreeDGenApi as c4, type AppRole as c5, type ResolveLaunchIntentOptions as c6, type LaunchIntent as c7, type ReleaseNote as c8, type AdminUgcBrowseParams as c9, type InitializationContext as cA, type InitializationOptions as cB, type CaptureConsent as cC, type StartClipRecordingOptions as cD, type ClipBlob as cE, type ClipsSupport as cF, type ClipPersistOptions as cG, type ClipResult as cH, type UgcEntry as cI, type CaptureConsentStatus as cJ, AccessDeniedError as cK, type AdminGenApi as cL, type AdminImageGenBrowseParams as cM, type AdminImageGenBrowseResponse as cN, type AdminImageGenListReportsParams as cO, type AdminImageGenListReportsResponse as cP, type AdminImageGenResolveAction as cQ, type AdminSpriteGenBrowseParams as cR, type AdminSpriteGenBrowseResponse as cS, type AdminSpriteGenListReportsParams as cT, type AdminSpriteGenListReportsResponse as cU, type AdminSpriteGenResolveAction as cV, type AdminThreeDGenBrowseParams as cW, type AdminThreeDGenBrowseResponse as cX, type AdminThreeDGenListReportsParams as cY, type AdminThreeDGenListReportsResponse as cZ, type AdminThreeDGenResolveAction as c_, type AdminUgcBrowseResponse as ca, type AdminUgcListReportsParams as cb, type AdminUgcListReportsResponse as cc, type AdminUgcResolveAction as cd, type AdminGenBrowseParams as ce, type AdminGenBrowseResponse as cf, type ImageGenEntry as cg, type AdminGenListReportsParams as ch, type AdminGenListReportsResponse as ci, type ImageGenReport as cj, type AdminGenResolveAction as ck, type SpriteGenEntry as cl, type SpriteGenReport as cm, type ThreeDGenEntry as cn, type ThreeDGenReport as co, type Avatar3dApi as cp, type AssetManifest as cq, type Avatar3dConfig as cr, type ShowEditorOptions as cs, type Avatar3dEdits as ct, type AdsApi as cu, type RawEnvironmentInfo as cv, type SharedStorageHostApi as cw, type FilesApi as cx, type ClipsApi as cy, type AttributionApi as cz, type RundotGameCollectRecipeResult as d, type RecipeInfo as d$, type AdminVideoGenBrowseParams as d0, type AdminVideoGenBrowseResponse as d1, type AdminVideoGenListReportsParams as d2, type AdminVideoGenListReportsResponse as d3, type AdminVideoGenResolveAction as d4, type AiContentBlock as d5, type AiImageContent as d6, type AiImageUrlContent as d7, type AiMessage as d8, type AiResponseFormat as d9, type GamepadAxes as dA, type GamepadButtonName as dB, type GamepadButtonState as dC, type GamepadSource as dD, type GetSubscriptionsForTierRequest as dE, type HudInsets as dF, type IdentityChangeReason as dG, type InboundForKeyEntry as dH, type InboundMethodIds as dI, type InboundStorageApi as dJ, type IsPlayerSubscribedRequest as dK, type JoinOrCreateRoomEnvelopeResponse as dL, type JoinRoomMatchCriteria as dM, type LaunchIntentKind as dN, type LiveOpsOverride as dO, type LoadEmbeddedAssetsRequest as dP, MockAvatarApi as dQ, type NotificationTriggerInput as dR, type OnNotificationCallback as dS, type OnRequestCallback as dT, type OnResponseCallback as dU, type PlatformCapabilities as dV, type ProposedMovePayload as dW, type PurchaseSubscriptionRequest as dX, type RCSAvailabilityReason as dY, type RCSOptInStatus as dZ, ROOM_GAME_PHASES as d_, type AiTextContent as da, type AiToolResultContent as db, type AiToolUseContent as dc, type Asset as dd, type AudioGenEntry as de, type AudioGenReport as df, CLIP_CONTENT_TYPE as dg, COMPOSE_POST_MAX_TEXT_LENGTH as dh, COMPOSE_POST_MAX_TITLE_LENGTH as di, COMPOSE_POST_SUBREDDIT_PATTERN as dj, CREDITS_EXHAUSTED_CODE as dk, type Category as dl, type ClipAudioOptions as dm, type ClipCameraOptions as dn, type ClipPipLayout as dp, type ClipPipPosition as dq, type ComposeSocialPostMedia as dr, type CreditFreeDailyInfo as ds, type CreditPlan as dt, type CreditTopUpPack as du, type CreditsBilledTo as dv, CreditsExhaustedError as dw, type CreditsExhaustedErrorInfo as dx, type CreditsPurchaseOutcome as dy, GAMEPAD_BUTTON_NAMES as dz, type RundotGameExecuteRecipeOptions as e, type ReleaseType as e0, type ResolvedLiveOps as e1, type RoomEnvelopeResponse as e2, type RoomGamePhase as e3, type RoomMessageEventType as e4, type RoomMessagePayload as e5, type RoomsEnvelopeResponse as e6, RpcInboundStorageApi as e7, RpcSharedAssetsApi as e8, type RpcTransport as e9, type UgcReport as eA, type VideoGenEntry as eB, type VideoGenReport as eC, asCreditsExhaustedError as eD, assertTierSupportsInterval as eE, createHost as eF, isCreditsExhaustedError as eG, mapCreditsExhaustion as eH, resolveCollectionItemPrice as eI, resolveLiveOpsSection as eJ, type RunSubscription as ea, type RundotGameRoomCustomMetadata as eb, type RundotGameRoomPayload as ec, type RundotGameRoomRules as ed, type RundotGameRoomRulesGameState as ee, SHARE_FILE_ALLOWED_MIME_TYPES as ef, SHARE_FILE_MAX_SIZE_BYTES as eg, SOCIAL_COMPOSE_PLATFORMS as eh, type ScheduleRCSStatus as ei, type ShareFileMimeType as ej, type ShopOrder as ek, type SimulationBatchOperationAssign as el, type SimulationBatchOperationRemove as em, type SimulationBatchOperationResult as en, type SimulationPersonalState as eo, type SimulationRoomActiveRecipe as ep, type SimulationRoomState as eq, type SocialComposePlatform as er, type StorefrontCollection as es, type StorefrontCollectionItem as et, type SubPath as eu, TIER_SUPPORTED_INTERVALS as ev, type Tool as ew, type ToolChoice as ex, type ToolUse as ey, type TimeIntervalTriggerInput as ez, 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 };
4722
+ export { type DeviceInfo as $, type AnalyticsApi as A, type BatchRecipeRequirementsResult as B, type NotificationsApi as C, type ScheduleLocalNotification as D, type SubmitMessageInput as E, type SubmitMessageResult as F, type ScheduleNotificationOptions as G, type Host as H, type RCSAvailabilityStatus as I, type ScheduleRCSInput as J, type ScheduleRCSResult as K, type RequestRCSOptInInput as L, type RequestRCSOptInResult as M, type NavigationApi as N, type PopupsApi as O, type Profile as P, type QuitOptions as Q, type RundotGameAPI as R, type SimulationActiveRunsUpdate as S, type ShowToastOptions as T, type LikeDialogResult as U, type CommentsPanelResult as V, type LikeStateResult as W, type ShowInterstitialAdOptions as X, type ShowRewardedAdOptions as Y, type ProfileApi as Z, type DeviceApi as _, type RecipeRequirementQuery as a, type RoomMessageEvent as a$, type EnvironmentApi as a0, type EnvironmentInfo as a1, type SystemApi as a2, type SafeArea as a3, type AddToHomeScreenResult as a4, type CdnApi as a5, type FetchFromCdnOptions as a6, type AssetUrlResult as a7, type TimeApi as a8, type ServerTimeData as a9, type BackButtonCallback as aA, type IdentityChangedCallback as aB, type IdentityChangedEvent as aC, type SimulationApi as aD, type SimulationSlotValidationResult as aE, type SimulationBatchOperation as aF, type SimulationBatchOperationsResult as aG, type SimulationAvailableItem as aH, type SimulationPowerPreview as aI, type SimulationSlotMutationResult as aJ, type SimulationSlotContainer as aK, type SimulationAssignment as aL, type SimulationState as aM, type ExecuteRecipeOptions as aN, type ExecuteRecipeResponse as aO, type CollectRecipeResult as aP, type ResetStateOptions as aQ, type ResetStateResult as aR, type GetActiveRunsOptions as aS, type ExecuteScopedRecipeOptions as aT, type ExecuteScopedRecipeResult as aU, type GetAvailableRecipesOptions as aV, type GetAvailableRecipesResult as aW, type Recipe as aX, type GetBatchRecipeRequirements as aY, type TriggerRecipeChainOptions as aZ, type RoomDataUpdate as a_, type GetFutureTimeOptions as aa, type AiApi as ab, type AiChatCompletionRequest as ac, type AiChatCompletionData as ad, type PromptCompletionRequest as ae, type AiChatCompletionStreamOptions as af, type AiChatCompletionStreamChunk as ag, type HapticsApi as ah, HapticFeedbackStyle as ai, type GamepadSnapshot as aj, type GamepadConnectionEvent as ak, type Subscription as al, type GamepadApi as am, type GamepadLatencyStats as an, type FeaturesApi as ao, type Experiment as ap, type LiveOpsApi as aq, type LiveOpsConfigResult as ar, type LiveOpsRawConfig as as, type LiveOpsSection as at, type LifecycleApi as au, type SleepCallback as av, type AwakeCallback as aw, type PauseCallback as ax, type ResumeCallback as ay, type QuitCallback as az, type RecipeRequirementResult as b, type UgcApi as b$, type ProposedMoveEvent as b0, RundotGameTransport as b1, type RoomsApi as b2, type CreateRoomOptions as b3, type JoinOrCreateRoomOptions as b4, type JoinOrCreateResult as b5, type ListRoomsOptions as b6, type UpdateRoomDataOptions as b7, type RoomMessageRequest as b8, type StartRoomGameOptions as b9, type ShareMetadata as bA, type ShareLinkResult as bB, type SocialQRCodeOptions as bC, type QRCodeResult as bD, type ShareClickData as bE, type ShareFileOptions as bF, type ShareFileResult as bG, type CanShareFileResult as bH, type ComposeSocialPostOptions as bI, type ComposeSocialPostResult as bJ, type EntitlementApi as bK, type Entitlement as bL, type LedgerEntry as bM, type StatsApi as bN, type GrantInfo as bO, type CollectiblesApi as bP, type CollectibleCard as bQ, type VipClaimResult as bR, type ShopApi as bS, type StorefrontResponse as bT, type StorefrontItem as bU, type ShopPurchaseResponse as bV, type ShopOrderHistoryResponse as bW, type PromptLoginResult as bX, type AccessTier as bY, type AccessGateApi as bZ, type TextGenApi as b_, type ProposeMoveRequest as ba, type ProposeMoveResult as bb, type ValidateMoveVerdict as bc, type ValidateMoveResult as bd, type RoomSubscriptionOptions as be, type LoggingApi as bf, type IapApi as bg, type SpendCurrencyOptions as bh, type SpendCurrencyResult as bi, type SubscriptionTier as bj, type RunSubscriptionsResponse as bk, type SubscriptionInterval as bl, type PurchaseSubscriptionResponse as bm, type OpenStoreResult as bn, type LoadEmbeddedAssetsResponse as bo, type SharedAssetsApi as bp, type CreditsApi as bq, type CreditsBillingContext as br, type CreditBalance as bs, type CreditSubscription as bt, type CreditPlansCatalog as bu, type OpenPaywallOptions as bv, type CreditsPurchaseResult as bw, type Unsubscribe as bx, type PreloaderApi as by, type SocialApi as bz, type RundotGameAvailableRecipe as c, type AdminThreeDGenListReportsParams as c$, type VideoApi as c0, type AppApi as c1, type AdminUgcApi as c2, type AdminImageGenApi as c3, type AdminVideoGenApi as c4, type AdminSpriteGenApi as c5, type AdminAudioGenApi as c6, type AdminThreeDGenApi as c7, type AppRole as c8, type ResolveLaunchIntentOptions as c9, type FilesApi as cA, type ClipsApi as cB, type AttributionApi as cC, type InitializationContext as cD, type InitializationOptions as cE, type CaptureConsent as cF, type StartClipRecordingOptions as cG, type ClipBlob as cH, type ClipsSupport as cI, type ClipPersistOptions as cJ, type ClipResult as cK, type UgcEntry as cL, type CaptureConsentStatus as cM, AccessDeniedError as cN, type AdminGenApi as cO, type AdminImageGenBrowseParams as cP, type AdminImageGenBrowseResponse as cQ, type AdminImageGenListReportsParams as cR, type AdminImageGenListReportsResponse as cS, type AdminImageGenResolveAction as cT, type AdminSpriteGenBrowseParams as cU, type AdminSpriteGenBrowseResponse as cV, type AdminSpriteGenListReportsParams as cW, type AdminSpriteGenListReportsResponse as cX, type AdminSpriteGenResolveAction as cY, type AdminThreeDGenBrowseParams as cZ, type AdminThreeDGenBrowseResponse as c_, type LaunchIntent as ca, type ReleaseNote as cb, type AdminUgcBrowseParams as cc, type AdminUgcBrowseResponse as cd, type AdminUgcListReportsParams as ce, type AdminUgcListReportsResponse as cf, type AdminUgcResolveAction as cg, type AdminGenBrowseParams as ch, type AdminGenBrowseResponse as ci, type ImageGenEntry as cj, type AdminGenListReportsParams as ck, type AdminGenListReportsResponse as cl, type ImageGenReport as cm, type AdminGenResolveAction as cn, type SpriteGenEntry as co, type SpriteGenReport as cp, type ThreeDGenEntry as cq, type ThreeDGenReport as cr, type Avatar3dApi as cs, type AssetManifest as ct, type Avatar3dConfig as cu, type ShowEditorOptions as cv, type Avatar3dEdits as cw, type AdsApi as cx, type RawEnvironmentInfo as cy, type SharedStorageHostApi as cz, type RundotGameCollectRecipeResult as d, type RCSAvailabilityReason as d$, type AdminThreeDGenListReportsResponse as d0, type AdminThreeDGenResolveAction as d1, type AdminUgcEntry as d2, type AdminVideoGenBrowseParams as d3, type AdminVideoGenBrowseResponse as d4, type AdminVideoGenListReportsParams as d5, type AdminVideoGenListReportsResponse as d6, type AdminVideoGenResolveAction as d7, type AiContentBlock as d8, type AiImageContent as d9, type CreditsExhaustedErrorInfo as dA, type CreditsPurchaseOutcome as dB, GAMEPAD_BUTTON_NAMES as dC, type GamepadAxes as dD, type GamepadButtonName as dE, type GamepadButtonState as dF, type GamepadSource as dG, type GetSubscriptionsForTierRequest as dH, type HudInsets as dI, type IdentityChangeReason as dJ, type InboundForKeyEntry as dK, type InboundMethodIds as dL, type InboundStorageApi as dM, type IsPlayerSubscribedRequest as dN, type JoinOrCreateRoomEnvelopeResponse as dO, type JoinRoomMatchCriteria as dP, type LaunchIntentKind as dQ, type LiveOpsOverride as dR, type LoadEmbeddedAssetsRequest as dS, MockAvatarApi as dT, type NotificationTriggerInput as dU, type OnNotificationCallback as dV, type OnRequestCallback as dW, type OnResponseCallback as dX, type PlatformCapabilities as dY, type ProposedMovePayload as dZ, type PurchaseSubscriptionRequest as d_, type AiImageUrlContent as da, type AiMessage as db, type AiResponseFormat as dc, type AiTextContent as dd, type AiToolResultContent as de, type AiToolUseContent as df, type Asset as dg, type AudioGenEntry as dh, type AudioGenReport as di, CLIP_CONTENT_TYPE as dj, COMPOSE_POST_MAX_TEXT_LENGTH as dk, COMPOSE_POST_MAX_TITLE_LENGTH as dl, COMPOSE_POST_SUBREDDIT_PATTERN as dm, CREDITS_EXHAUSTED_CODE as dn, type Category as dp, type ClipAudioOptions as dq, type ClipCameraOptions as dr, type ClipPipLayout as ds, type ClipPipPosition as dt, type ComposeSocialPostMedia as du, type CreditFreeDailyInfo as dv, type CreditPlan as dw, type CreditTopUpPack as dx, type CreditsBilledTo as dy, CreditsExhaustedError as dz, type RundotGameExecuteRecipeOptions as e, type RCSOptInStatus as e0, ROOM_GAME_PHASES as e1, type RecipeInfo as e2, type ReleaseType as e3, type ResolvedLiveOps as e4, type RoomEnvelopeResponse as e5, type RoomGamePhase as e6, type RoomMessageEventType as e7, type RoomMessagePayload as e8, type RoomsEnvelopeResponse as e9, type SubmitMessageResultChannel as eA, TIER_SUPPORTED_INTERVALS as eB, type Tool as eC, type ToolChoice as eD, type ToolUse as eE, type TimeIntervalTriggerInput as eF, type UgcReport as eG, type VideoGenEntry as eH, type VideoGenReport as eI, asCreditsExhaustedError as eJ, assertTierSupportsInterval as eK, createHost as eL, isCreditsExhaustedError as eM, mapCreditsExhaustion as eN, resolveCollectionItemPrice as eO, resolveLiveOpsSection as eP, toPromptWireRequest as eQ, RpcInboundStorageApi as ea, RpcSharedAssetsApi as eb, type RpcTransport as ec, type RunSubscription as ed, type RundotGameRoomCustomMetadata as ee, type RundotGameRoomPayload as ef, type RundotGameRoomRules as eg, type RundotGameRoomRulesGameState as eh, SHARE_FILE_ALLOWED_MIME_TYPES as ei, SHARE_FILE_MAX_SIZE_BYTES as ej, SOCIAL_COMPOSE_PLATFORMS as ek, type ScheduleRCSStatus as el, type ShareFileMimeType as em, type ShopOrder as en, type SimulationBatchOperationAssign as eo, type SimulationBatchOperationRemove as ep, type SimulationBatchOperationResult as eq, type SimulationPersonalState as er, type SimulationRoomActiveRecipe as es, type SimulationRoomState as et, type SocialComposePlatform as eu, type StorefrontCollection as ev, type StorefrontCollectionItem as ew, type SubPath as ex, type SubmitMessageChannel as ey, type SubmitMessageChannelResult as ez, 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 { h as ReplayFile } from './types-BXxDmID0.js';
1
+ import { h as ReplayFile } from './types-BV8uchSD.js';
2
2
 
3
3
  type ImageGenModel = 'gemini-3.1-flash-image-preview' | 'gemini-3-pro-image-preview' | 'gpt-image-1' | 'gpt-image-2';
4
4
  type BgRemovalModel = 'bria' | 'birefnet';
@@ -450,6 +450,10 @@ interface AnimateSpriteParams {
450
450
  sourceFileKey?: string;
451
451
  /** Or: an HTTPS URL to import and animate. */
452
452
  sourceImageUrl?: string;
453
+ /** Override source-derived animation mode. Omit to infer from the source asset. */
454
+ pixel?: boolean;
455
+ /** Pixel-animation palette size. The animation provider does not accept a fixed hex palette. */
456
+ paletteSize?: number;
453
457
  /** Motion description, e.g. "walk cycle, side view" or "idle breathing". */
454
458
  prompt: string;
455
459
  /** Frame count. Pixel: 2-16 (even), HD: 2-24 (even). Default 8. */
@@ -1,4 +1,4 @@
1
- import { C as CanonicalValue, h as ReplayFile, O as OfflineSession } from './types-BXxDmID0.js';
1
+ import { C as CanonicalValue, h as ReplayFile, O as OfflineSession } from './types-BV8uchSD.js';
2
2
  import { M as MultiplayerApi } from './MultiplayerApi-nnrGTTcO.js';
3
3
 
4
4
  /**
@@ -76,6 +76,7 @@ var RundotGameMessageId = /* @__PURE__ */ ((RundotGameMessageId2) => {
76
76
  RundotGameMessageId2["SET_LOCAL_NOTIFICATIONS_ENABLED"] = "H5_SET_LOCAL_NOTIFICATIONS_ENABLED";
77
77
  RundotGameMessageId2["MESSAGING_GET_RCS_AVAILABLE"] = "H5_MESSAGING_GET_RCS_AVAILABLE";
78
78
  RundotGameMessageId2["MESSAGING_SCHEDULE_RCS"] = "H5_MESSAGING_SCHEDULE_RCS";
79
+ RundotGameMessageId2["MESSAGING_SUBMIT_MESSAGE"] = "H5_MESSAGING_SUBMIT_MESSAGE";
79
80
  RundotGameMessageId2["MESSAGING_REQUEST_RCS_OPT_IN"] = "H5_MESSAGING_REQUEST_RCS_OPT_IN";
80
81
  RundotGameMessageId2["TOAST"] = "H5_TOAST";
81
82
  RundotGameMessageId2["LIKE_DIALOG"] = "H5_LIKE_DIALOG";
@@ -413,6 +414,11 @@ function initializeAds(rundotGameApiInstance, host) {
413
414
  rundotGameApiInstance.ads = host.ads;
414
415
  }
415
416
 
417
+ // src/ai/AiApi.ts
418
+ function toPromptWireRequest(request) {
419
+ return { promptId: request.promptId, input: request.input };
420
+ }
421
+
416
422
  // src/credits/CreditsApi.ts
417
423
  var CREDITS_EXHAUSTED_CODE = "CREDITS_EXHAUSTED";
418
424
  var CreditsExhaustedError = class extends Error {
@@ -2932,6 +2938,40 @@ var MockNotificationsApi = class {
2932
2938
  const isEnabled = rundotGameApi._mock.notificationsEnabled !== false;
2933
2939
  return isEnabled;
2934
2940
  }
2941
+ async submitMessageAsync(input) {
2942
+ mockLog(TAG5, `submitMessageAsync channels=${input.channels.join(",")}`);
2943
+ await createMockDelay(MOCK_DELAYS.short);
2944
+ const messageId = `mock-message-${Date.now()}`;
2945
+ const results = [];
2946
+ if (input.channels.includes("local")) {
2947
+ if (isWebPlatform()) {
2948
+ results.push({
2949
+ channel: "local",
2950
+ status: "skipped",
2951
+ reason: "unsupported_platform"
2952
+ });
2953
+ } else {
2954
+ const id = input.notificationId || `mock-notification-${Date.now()}`;
2955
+ results.push({ channel: "local", status: "scheduled", id });
2956
+ }
2957
+ }
2958
+ const wantsServer = input.channels.includes("rcs");
2959
+ if (wantsServer && !isWebPlatform()) {
2960
+ results.push({ channel: "inbox", status: "scheduled", id: messageId });
2961
+ results.push({
2962
+ channel: "rcs",
2963
+ status: "scheduled",
2964
+ id: `mock-rcs-${Date.now()}`
2965
+ });
2966
+ } else if (wantsServer && isWebPlatform()) {
2967
+ results.push({
2968
+ channel: "rcs",
2969
+ status: "skipped",
2970
+ reason: "unsupported_platform"
2971
+ });
2972
+ }
2973
+ return { messageId, results };
2974
+ }
2935
2975
  async scheduleAsync(title, body, seconds, notificationId, options) {
2936
2976
  mockLog(TAG5, `scheduleAsync title="${title}" seconds=${seconds}`);
2937
2977
  const { priority = 50, groupId, payload } = options || {};
@@ -2994,29 +3034,75 @@ var MockNotificationsApi = class {
2994
3034
  }
2995
3035
  };
2996
3036
 
3037
+ // src/notifications/deprecationNote.ts
3038
+ var STORAGE_PREFIX = "rundot_sdk_deprecation_note_";
3039
+ function defaultGetLastNotedDay(key) {
3040
+ try {
3041
+ if (typeof localStorage === "undefined") return null;
3042
+ return localStorage.getItem(`${STORAGE_PREFIX}${key}`);
3043
+ } catch {
3044
+ return null;
3045
+ }
3046
+ }
3047
+ function defaultSetLastNotedDay(key, day) {
3048
+ try {
3049
+ if (typeof localStorage === "undefined") return;
3050
+ localStorage.setItem(`${STORAGE_PREFIX}${key}`, day);
3051
+ } catch {
3052
+ }
3053
+ }
3054
+ function defaultToday() {
3055
+ return (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
3056
+ }
3057
+ function noteDeprecationOncePerUtcDay(key, message, eventName, deps = {}) {
3058
+ const today = deps.today ?? defaultToday;
3059
+ const getLastNotedDay = deps.getLastNotedDay ?? defaultGetLastNotedDay;
3060
+ const setLastNotedDay = deps.setLastNotedDay ?? defaultSetLastNotedDay;
3061
+ const warn = deps.warn ?? ((m) => console.warn(m));
3062
+ const day = today();
3063
+ if (getLastNotedDay(key) === day) {
3064
+ return;
3065
+ }
3066
+ setLastNotedDay(key, day);
3067
+ warn(message);
3068
+ deps.recordEvent?.(eventName);
3069
+ }
3070
+
2997
3071
  // src/notifications/RpcNotificationsApi.ts
2998
3072
  var RpcNotificationsApi = class {
2999
3073
  rpcClient;
3000
- constructor(rpcClient) {
3074
+ options;
3075
+ constructor(rpcClient, options = {}) {
3001
3076
  this.rpcClient = rpcClient;
3077
+ this.options = options;
3078
+ }
3079
+ async submitMessageAsync(input) {
3080
+ return await this.rpcClient.call(
3081
+ "H5_MESSAGING_SUBMIT_MESSAGE" /* MESSAGING_SUBMIT_MESSAGE */,
3082
+ input
3083
+ );
3002
3084
  }
3003
3085
  async scheduleAsync(title, body, seconds, notificationId, options) {
3086
+ noteDeprecationOncePerUtcDay(
3087
+ "schedule_async",
3088
+ 'scheduleAsync is deprecated; use submitMessageAsync({ channels: ["local"], ... }) instead.',
3089
+ "sdk_deprecated_schedule_async",
3090
+ this.deprecationDeps()
3091
+ );
3004
3092
  const { priority = 50, groupId, payload } = options || {};
3005
- const request = {
3093
+ const result = await this.submitMessageAsync({
3094
+ channels: ["local"],
3006
3095
  title,
3007
3096
  body,
3097
+ delaySeconds: seconds,
3098
+ notificationId,
3008
3099
  priority,
3009
- key: groupId,
3010
- data: payload,
3011
- seconds,
3012
- notificationId
3013
- };
3014
- const response = await this.rpcClient.call(
3015
- "H5_SCHEDULE_LOCAL_NOTIFICATION" /* SCHEDULE_LOCAL_NOTIFICATION */,
3016
- request
3017
- );
3018
- if (response.scheduled) {
3019
- return response.id;
3100
+ groupId,
3101
+ payload
3102
+ });
3103
+ const local = result.results.find((r) => r.channel === "local");
3104
+ if (local?.status === "scheduled" && local.id) {
3105
+ return local.id;
3020
3106
  }
3021
3107
  return null;
3022
3108
  }
@@ -3068,10 +3154,34 @@ var RpcNotificationsApi = class {
3068
3154
  );
3069
3155
  }
3070
3156
  async scheduleRCSAsync(input) {
3071
- return await this.rpcClient.call(
3072
- "H5_MESSAGING_SCHEDULE_RCS" /* MESSAGING_SCHEDULE_RCS */,
3073
- input
3157
+ noteDeprecationOncePerUtcDay(
3158
+ "schedule_rcs_async",
3159
+ 'scheduleRCSAsync is deprecated; use submitMessageAsync({ channels: ["rcs"], ... }) instead.',
3160
+ "sdk_deprecated_schedule_rcs",
3161
+ this.deprecationDeps()
3074
3162
  );
3163
+ const result = await this.submitMessageAsync({
3164
+ channels: ["rcs"],
3165
+ title: input.title,
3166
+ body: input.body,
3167
+ ctaUrl: input.ctaUrl,
3168
+ continuationParams: input.continuationParams,
3169
+ image: input.image,
3170
+ triggerAt: input.triggerAt,
3171
+ delaySeconds: input.delaySeconds
3172
+ });
3173
+ const rcs = result.results.find((r) => r.channel === "rcs");
3174
+ if (rcs?.status === "scheduled" && rcs.id) {
3175
+ return { scheduleId: rcs.id, status: "pending" };
3176
+ }
3177
+ if (rcs?.status === "skipped") {
3178
+ return {
3179
+ scheduleId: result.messageId,
3180
+ status: "skipped",
3181
+ ...rcs.reason !== void 0 ? { reason: rcs.reason } : {}
3182
+ };
3183
+ }
3184
+ return { scheduleId: result.messageId, status: "failed" };
3075
3185
  }
3076
3186
  async requestRCSOptInAsync(input) {
3077
3187
  return await this.rpcClient.call(
@@ -3079,6 +3189,15 @@ var RpcNotificationsApi = class {
3079
3189
  input ?? {}
3080
3190
  );
3081
3191
  }
3192
+ deprecationDeps() {
3193
+ return {
3194
+ today: this.options.today,
3195
+ getLastNotedDay: this.options.getLastNotedDay,
3196
+ setLastNotedDay: this.options.setLastNotedDay,
3197
+ warn: this.options.warn,
3198
+ recordEvent: this.options.recordDeprecationEvent
3199
+ };
3200
+ }
3082
3201
  };
3083
3202
 
3084
3203
  // src/notifications/index.ts
@@ -5110,9 +5229,13 @@ function applyAccessGates(host) {
5110
5229
  (request, options) => baseTextGen.requestChatCompletionStreamAsync(request, options),
5111
5230
  gateConfig
5112
5231
  );
5232
+ const gatedPromptStream = gateStreaming(
5233
+ (request, options) => baseTextGen.requestPromptCompletionStreamAsync(request, options),
5234
+ gateConfig
5235
+ );
5113
5236
  const gatedTextGen = createAccessGatedApi(
5114
5237
  baseTextGen,
5115
- ["requestChatCompletionAsync", "getAvailableCompletionModels"],
5238
+ ["requestChatCompletionAsync", "requestPromptCompletionAsync", "getAvailableCompletionModels"],
5116
5239
  "authenticated_18plus",
5117
5240
  gateConfig
5118
5241
  );
@@ -5121,6 +5244,9 @@ function applyAccessGates(host) {
5121
5244
  if (prop === "requestChatCompletionStreamAsync") {
5122
5245
  return gatedStream;
5123
5246
  }
5247
+ if (prop === "requestPromptCompletionStreamAsync") {
5248
+ return gatedPromptStream;
5249
+ }
5124
5250
  return Reflect.get(target, prop, receiver);
5125
5251
  }
5126
5252
  });
@@ -7349,6 +7475,6 @@ async function checkText(text, options) {
7349
7475
  }
7350
7476
  }
7351
7477
 
7352
- export { AccessDeniedError, BaseCdnApi, BrowserCaptureConsent, CLIP_CONTENT_TYPE, COMPOSE_POST_MAX_TEXT_LENGTH, COMPOSE_POST_MAX_TITLE_LENGTH, COMPOSE_POST_SUBREDDIT_PATTERN, CREDITS_EXHAUSTED_CODE, ClipRecorder, ClipsApiImpl, CreditsExhaustedError, DEFAULT_SHARED_LIB_CDN_BASE, DualEmitStorageApi, EMBEDDED_LIBRARIES, EMBEDDED_LIBRARY_BY_KEY, FILE_EXTENSION_PATTERN, GAMEPAD_BUTTON_NAMES, HapticFeedbackStyle, HostCdnApi, HostDeviceApi, HostEnvironmentApi, HostProfileApi, HostSystemApi, HostTimeApi, LatencyTracker, LiveOpsCache, MIN_CDN_PATH_SEGMENTS, MODULE_TO_LIBRARY_SPECIFIERS, MockAccessGateApi, MockAdminUgcApi, MockAdsApi, MockAnalyticsApi, MockAppApi, MockAttributionApi, MockAvatarApi, MockCdnApi, MockCollectiblesApi, MockCreditsApi, MockDebug, MockDeviceApi, MockEnvironmentApi, MockFeaturesApi, MockGamepadApi, MockHapticsApi, MockIapApi, MockLifecycleApi, MockLoggingApi, MockMultiplayerApi, MockNavigationApi, MockNotificationsApi, MockPopupsApi, MockPreloaderApi, MockProfileApi, MockSharedAssetsApi, MockStatsApi, MockStorageApi, MockSystemApi, MockTimeApi, MockVideoApi, PER_APP_LOCAL_HOST_PATTERN, PER_APP_SUBDOMAIN_HOST_PATTERN, PlaygroundAppApi, PlaygroundProfileApi, ROOM_GAME_PHASES, RpcAccessGateApi, RpcAdsApi, RpcAnalyticsApi, RpcAttributionApi, RpcAvatarApi, RpcCollectiblesApi, RpcCreditsApi, RpcFeaturesApi, RpcGamepadApi, RpcHapticsApi, RpcInboundStorageApi, RpcLifecycleApi, RpcLoggingApi, RpcNavigationApi, RpcNotificationsApi, RpcPopupsApi, RpcPreloaderApi, RpcRoomsApi, RpcSharedAssetsApi, RpcStatsApi, RpcStorageApi, RpcVideoApi, RundotGameMessageId, RundotGameRoom, SHARE_FILE_ALLOWED_MIME_TYPES, SHARE_FILE_MAX_SIZE_BYTES, SOCIAL_COMPOSE_PLATFORMS, SandboxProfileApi, TIER_SUPPORTED_INTERVALS, ValidatingStorageApi, WebGamepadReader, applyAccessGates, asCreditsExhaustedError, assertTierSupportsInterval, base64ToArrayBuffer, base64ToUtf8, buildFunctionsBaseUrl, buildRedditComposerUrl, buildXComposerUrl, checkText, createAccessGatedApi, createMockAdminGenApi, createMockStorageApi, createRpcAdminGenApi, exchangeForCustomToken, gateStreaming, generateId, getCloudRunUrl, getFirebaseClient, getLibraryDefinition, getPlaygroundConfig, getPlaygroundRoomServerUrl, hasHostedUrlStructure, initializeAccessGate, initializeAds, initializeAnalytics, initializeAttribution, initializeAvatar3d, initializeCdn, initializeCollectibles, initializeCredits, initializeFeaturesApi, initializeGamepad, initializeHaptics, initializeLifecycleApi, initializeLocalNotifications, initializeLoggingApi, initializePopups, initializePreloader, initializeProfile, initializeRoomsApi, initializeStackNavigation, initializeStats, initializeStorage, initializeSystem, initializeTime, initializeVideo, isCreditsExhaustedError, isPacificDaylightTime, isPerAppSubdomain, isPlaygroundEnabled, mapCreditsExhaustion, mockLog, normalizeStandardGamepad, observeFirestoreCollection, observeFirestoreDocument, parseCdnLocationFromUrl, parseCdnLocationFromWindow, parseCdnPathSegments, resolveLiveOpsSection, sanitizeProfile, setStoredAppRole, setupRoomNotifications, signInWithGoogle, stripComposeControlChars, validateClickMetadata, validateComposePost, validateShareFile, validateShareMetadata, validateShareParams, warnRenamed, wireIdentityReplica };
7353
- //# sourceMappingURL=chunk-RKWUCLFV.js.map
7354
- //# sourceMappingURL=chunk-RKWUCLFV.js.map
7478
+ export { AccessDeniedError, BaseCdnApi, BrowserCaptureConsent, CLIP_CONTENT_TYPE, COMPOSE_POST_MAX_TEXT_LENGTH, COMPOSE_POST_MAX_TITLE_LENGTH, COMPOSE_POST_SUBREDDIT_PATTERN, CREDITS_EXHAUSTED_CODE, ClipRecorder, ClipsApiImpl, CreditsExhaustedError, DEFAULT_SHARED_LIB_CDN_BASE, DualEmitStorageApi, EMBEDDED_LIBRARIES, EMBEDDED_LIBRARY_BY_KEY, FILE_EXTENSION_PATTERN, GAMEPAD_BUTTON_NAMES, HapticFeedbackStyle, HostCdnApi, HostDeviceApi, HostEnvironmentApi, HostProfileApi, HostSystemApi, HostTimeApi, LatencyTracker, LiveOpsCache, MIN_CDN_PATH_SEGMENTS, MODULE_TO_LIBRARY_SPECIFIERS, MockAccessGateApi, MockAdminUgcApi, MockAdsApi, MockAnalyticsApi, MockAppApi, MockAttributionApi, MockAvatarApi, MockCdnApi, MockCollectiblesApi, MockCreditsApi, MockDebug, MockDeviceApi, MockEnvironmentApi, MockFeaturesApi, MockGamepadApi, MockHapticsApi, MockIapApi, MockLifecycleApi, MockLoggingApi, MockMultiplayerApi, MockNavigationApi, MockNotificationsApi, MockPopupsApi, MockPreloaderApi, MockProfileApi, MockSharedAssetsApi, MockStatsApi, MockStorageApi, MockSystemApi, MockTimeApi, MockVideoApi, PER_APP_LOCAL_HOST_PATTERN, PER_APP_SUBDOMAIN_HOST_PATTERN, PlaygroundAppApi, PlaygroundProfileApi, ROOM_GAME_PHASES, RpcAccessGateApi, RpcAdsApi, RpcAnalyticsApi, RpcAttributionApi, RpcAvatarApi, RpcCollectiblesApi, RpcCreditsApi, RpcFeaturesApi, RpcGamepadApi, RpcHapticsApi, RpcInboundStorageApi, RpcLifecycleApi, RpcLoggingApi, RpcNavigationApi, RpcNotificationsApi, RpcPopupsApi, RpcPreloaderApi, RpcRoomsApi, RpcSharedAssetsApi, RpcStatsApi, RpcStorageApi, RpcVideoApi, RundotGameMessageId, RundotGameRoom, SHARE_FILE_ALLOWED_MIME_TYPES, SHARE_FILE_MAX_SIZE_BYTES, SOCIAL_COMPOSE_PLATFORMS, SandboxProfileApi, TIER_SUPPORTED_INTERVALS, ValidatingStorageApi, WebGamepadReader, applyAccessGates, asCreditsExhaustedError, assertTierSupportsInterval, base64ToArrayBuffer, base64ToUtf8, buildFunctionsBaseUrl, buildRedditComposerUrl, buildXComposerUrl, checkText, createAccessGatedApi, createMockAdminGenApi, createMockStorageApi, createRpcAdminGenApi, exchangeForCustomToken, gateStreaming, generateId, getCloudRunUrl, getFirebaseClient, getLibraryDefinition, getPlaygroundConfig, getPlaygroundRoomServerUrl, hasHostedUrlStructure, initializeAccessGate, initializeAds, initializeAnalytics, initializeAttribution, initializeAvatar3d, initializeCdn, initializeCollectibles, initializeCredits, initializeFeaturesApi, initializeGamepad, initializeHaptics, initializeLifecycleApi, initializeLocalNotifications, initializeLoggingApi, initializePopups, initializePreloader, initializeProfile, initializeRoomsApi, initializeStackNavigation, initializeStats, initializeStorage, initializeSystem, initializeTime, initializeVideo, isCreditsExhaustedError, isPacificDaylightTime, isPerAppSubdomain, isPlaygroundEnabled, mapCreditsExhaustion, mockLog, normalizeStandardGamepad, observeFirestoreCollection, observeFirestoreDocument, parseCdnLocationFromUrl, parseCdnLocationFromWindow, parseCdnPathSegments, resolveLiveOpsSection, sanitizeProfile, setStoredAppRole, setupRoomNotifications, signInWithGoogle, stripComposeControlChars, toPromptWireRequest, validateClickMetadata, validateComposePost, validateShareFile, validateShareMetadata, validateShareParams, warnRenamed, wireIdentityReplica };
7479
+ //# sourceMappingURL=chunk-3MDWJBCR.js.map
7480
+ //# sourceMappingURL=chunk-3MDWJBCR.js.map