@series-inc/rundot-game-sdk 5.25.0-beta.0 → 5.25.0-beta.1
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/dist/{AdsApi-CR-pUPTI.d.ts → AdsApi-CZDK-Ujf.d.ts} +285 -4
- package/dist/{LeaderboardApi-DXJHDMfY.d.ts → LeaderboardApi-BbsevCvj.d.ts} +11 -3
- package/dist/{chunk-XJABTHCV.js → chunk-BU7HGE3Z.js} +30 -190
- package/dist/chunk-BU7HGE3Z.js.map +1 -0
- package/dist/{chunk-OSKQDUTI.js → chunk-HYDOFGQT.js} +1058 -10
- package/dist/chunk-HYDOFGQT.js.map +1 -0
- package/dist/{chunk-56UNQZIB.js → chunk-M5PNNJCY.js} +3 -3
- package/dist/{chunk-56UNQZIB.js.map → chunk-M5PNNJCY.js.map} +1 -1
- package/dist/{chunk-SFJILJFQ.js → chunk-VDE6CD3L.js} +2 -2
- package/dist/{chunk-SFJILJFQ.js.map → chunk-VDE6CD3L.js.map} +1 -1
- package/dist/host-http.d.ts +1 -3
- package/dist/host-http.js +2 -2
- package/dist/index-DpIIo0iX.d.ts +52 -0
- package/dist/index.d.ts +40 -12
- package/dist/index.js +4 -5
- package/dist/mp-client/index.d.ts +5836 -0
- package/dist/{chunk-Q6SGGAIV.js → mp-client/index.js} +187 -3
- package/dist/mp-client/index.js.map +1 -0
- package/dist/mp-server/index.d.ts +6 -41
- package/dist/playground/index.js +10 -5
- package/dist/playground/index.js.map +1 -1
- package/dist/rundot-game-api/index.d.ts +3 -6
- package/dist/rundot-game-api/index.js +4 -4
- package/dist/rundot-game-api/index.js.map +1 -1
- package/dist/vite/dev-server-FLA66OMS.js +1031 -0
- package/dist/vite/dev-server-FLA66OMS.js.map +1 -0
- package/dist/vite/index.d.ts +21 -1
- package/dist/vite/index.js +42 -4
- package/dist/vite/index.js.map +1 -1
- package/docs/SUMMARY.md +1 -0
- package/docs/agents-index.txt +1 -1
- package/docs/rundot-developer-platform/api/ACTIVITY.md +155 -0
- package/docs/rundot-developer-platform/api/AI.md +136 -0
- package/docs/rundot-developer-platform/api/AUDIO_GEN.md +32 -0
- package/docs/rundot-developer-platform/api/ENVIRONMENT.md +25 -1
- package/docs/rundot-developer-platform/api/FILES.md +61 -0
- package/docs/rundot-developer-platform/api/IMAGE_GEN.md +42 -0
- package/docs/rundot-developer-platform/api/NOTIFICATIONS.md +9 -1
- package/docs/rundot-developer-platform/api/SERVER_AUTHORITATIVE.md +2 -2
- package/docs/rundot-developer-platform/api/SIMULATION_CONFIG.md +32 -3
- package/docs/rundot-developer-platform/api/SPRITE_GEN.md +31 -0
- package/docs/rundot-developer-platform/api/STORAGE.md +7 -0
- package/docs/rundot-developer-platform/api/SYNCPLAY-ANIMATION.md +3 -3
- package/docs/rundot-developer-platform/api/SYNCPLAY-LAG-COMPENSATION.md +2 -2
- package/docs/rundot-developer-platform/api/SYNCPLAY-MOVEMENT.md +4 -4
- package/docs/rundot-developer-platform/api/SYNCPLAY-PATHFINDING.md +6 -6
- package/docs/rundot-developer-platform/api/SYNCPLAY-PHYSICS.md +25 -0
- package/docs/rundot-developer-platform/api/SYNCPLAY-SECRETS.md +2 -2
- package/docs/rundot-developer-platform/api/SYNCPLAY.md +3 -3
- package/docs/rundot-developer-platform/api/THREE_D_GEN.md +32 -0
- package/docs/rundot-developer-platform/api/UGC.md +11 -0
- package/docs/rundot-developer-platform/api/VIDEO_GEN.md +32 -0
- package/docs/rundot-developer-platform/cli-reference.md +1 -0
- package/docs/rundot-developer-platform/marketing-your-game.md +7 -2
- package/package.json +6 -33
- package/dist/MultiplayerApi-TQr01JT7.d.ts +0 -204
- package/dist/SyncplayRoomTransport-CqgGioII.d.ts +0 -104
- package/dist/chunk-KQLL4LMD.js +0 -4344
- package/dist/chunk-KQLL4LMD.js.map +0 -1
- package/dist/chunk-OSKQDUTI.js.map +0 -1
- package/dist/chunk-Q6SGGAIV.js.map +0 -1
- package/dist/chunk-QTXOFEKE.js +0 -105
- package/dist/chunk-QTXOFEKE.js.map +0 -1
- package/dist/chunk-XJABTHCV.js.map +0 -1
- package/dist/chunk-ZUDN3ADE.js +0 -9402
- package/dist/chunk-ZUDN3ADE.js.map +0 -1
- package/dist/networked-client-BM302u_U.d.ts +0 -583
- package/dist/physics3d-CSOQDafo.d.ts +0 -1505
- package/dist/physics3d-vehicle-CCG8c2J5.d.ts +0 -1058
- package/dist/syncplay/browser.d.ts +0 -2233
- package/dist/syncplay/browser.js +0 -13312
- package/dist/syncplay/browser.js.map +0 -1
- package/dist/syncplay/creator.d.ts +0 -5
- package/dist/syncplay/creator.js +0 -4
- package/dist/syncplay/creator.js.map +0 -1
- package/dist/syncplay/index.d.ts +0 -31
- package/dist/syncplay/index.js +0 -4
- package/dist/syncplay/index.js.map +0 -1
- package/dist/syncplay/node.d.ts +0 -506
- package/dist/syncplay/node.js +0 -2380
- package/dist/syncplay/node.js.map +0 -1
- package/dist/syncplay/testing.d.ts +0 -2424
- package/dist/syncplay/testing.js +0 -18288
- package/dist/syncplay/testing.js.map +0 -1
- package/dist/syncplay/tools.d.ts +0 -109
- package/dist/syncplay/tools.js +0 -1682
- package/dist/syncplay/tools.js.map +0 -1
- package/dist/types-C8mnMNHg.d.ts +0 -69
- package/dist/vite/dev-server-TCW3BNAC.js +0 -4167
- package/dist/vite/dev-server-TCW3BNAC.js.map +0 -1
|
@@ -1,5 +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-
|
|
2
|
-
import { M as MultiplayerApi } from './MultiplayerApi-TQr01JT7.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-BbsevCvj.js';
|
|
3
2
|
|
|
4
3
|
interface StorageApi {
|
|
5
4
|
key(index: number): Promise<string | null>;
|
|
@@ -1974,6 +1973,209 @@ declare class RundotGameTransport implements RpcTransport {
|
|
|
1974
1973
|
private notifyRundotGameMessageReceived;
|
|
1975
1974
|
}
|
|
1976
1975
|
|
|
1976
|
+
/** Constraint for user-defined message unions shared between client and server. */
|
|
1977
|
+
type Protocol = {
|
|
1978
|
+
type: string;
|
|
1979
|
+
};
|
|
1980
|
+
interface JoinTicketRequest {
|
|
1981
|
+
roomType: string;
|
|
1982
|
+
roomCode?: string;
|
|
1983
|
+
action: 'create' | 'joinOrCreate' | 'joinByCode' | 'matchmake';
|
|
1984
|
+
/**
|
|
1985
|
+
* Equality constraints for matchmaking. A candidate room matches iff every
|
|
1986
|
+
* key here exists on the room's stored criteria with a strictly-equal value.
|
|
1987
|
+
* Omitted (or `{}`) imposes no constraint — preserving pre-WS6 behavior.
|
|
1988
|
+
*/
|
|
1989
|
+
criteria?: Record<string, string | number>;
|
|
1990
|
+
/** Options applied only when this ticket creates a new room. */
|
|
1991
|
+
createOptions?: {
|
|
1992
|
+
maxPlayers?: number;
|
|
1993
|
+
isPrivate?: boolean;
|
|
1994
|
+
metadata?: Record<string, unknown>;
|
|
1995
|
+
};
|
|
1996
|
+
/**
|
|
1997
|
+
* Stable key for a persistent room type (e.g. the current season's globe id),
|
|
1998
|
+
* resolved by the host from the platform `SeasonSchedule`. Routes the join to
|
|
1999
|
+
* the deterministic, version-independent persistent room (Phase 1 + Phase 13).
|
|
2000
|
+
*/
|
|
2001
|
+
persistentKey?: string;
|
|
2002
|
+
}
|
|
2003
|
+
/**
|
|
2004
|
+
* Optional matchmaking/create knobs threaded through the client room APIs.
|
|
2005
|
+
* All fields optional, so an omitted `RoomOptions` is the pre-WS6 path by
|
|
2006
|
+
* construction — no runtime "did the caller pass options" guard is needed.
|
|
2007
|
+
*/
|
|
2008
|
+
type RoomOptions = Pick<JoinTicketRequest, 'criteria' | 'createOptions' | 'persistentKey'>;
|
|
2009
|
+
/** Summary of a realtime room, as listed by `multiplayer.getUserRooms()`. */
|
|
2010
|
+
interface RealtimeRoomSummary {
|
|
2011
|
+
roomId: string;
|
|
2012
|
+
roomCode: string;
|
|
2013
|
+
roomType: string;
|
|
2014
|
+
appId: string;
|
|
2015
|
+
players: string[];
|
|
2016
|
+
maxPlayers: number;
|
|
2017
|
+
isPrivate: boolean;
|
|
2018
|
+
status: 'active' | 'disposed';
|
|
2019
|
+
createdAt: number;
|
|
2020
|
+
updatedAt: number;
|
|
2021
|
+
}
|
|
2022
|
+
interface ListUserRoomsOptions {
|
|
2023
|
+
appId?: string;
|
|
2024
|
+
includeDisposed?: boolean;
|
|
2025
|
+
}
|
|
2026
|
+
|
|
2027
|
+
/** A persisted room chat message (Req 20). Mirrors the server's ChatMessage. */
|
|
2028
|
+
interface ChatMessageData {
|
|
2029
|
+
id: string;
|
|
2030
|
+
roomId: string;
|
|
2031
|
+
senderId: string;
|
|
2032
|
+
senderName?: string;
|
|
2033
|
+
text: string;
|
|
2034
|
+
ts: number;
|
|
2035
|
+
}
|
|
2036
|
+
|
|
2037
|
+
/**
|
|
2038
|
+
* Server-authoritative room types used by the client multiplayer layer.
|
|
2039
|
+
*/
|
|
2040
|
+
|
|
2041
|
+
type ConnectionState = 'connecting' | 'connected' | 'reconnecting' | 'disconnected';
|
|
2042
|
+
interface ServerPlayer {
|
|
2043
|
+
id: string;
|
|
2044
|
+
username: string;
|
|
2045
|
+
avatarUrl?: string | null;
|
|
2046
|
+
}
|
|
2047
|
+
/** Public interface for a server-authoritative room. */
|
|
2048
|
+
interface ServerRoom<P extends Protocol> {
|
|
2049
|
+
/** The shareable room code (e.g. "HX9KWR") */
|
|
2050
|
+
readonly roomCode: string;
|
|
2051
|
+
/** The current player's ID */
|
|
2052
|
+
readonly playerId: string;
|
|
2053
|
+
/** Whether the room is locked */
|
|
2054
|
+
readonly locked: boolean;
|
|
2055
|
+
/** Authoritative current room roster. */
|
|
2056
|
+
readonly players: readonly ServerPlayer[];
|
|
2057
|
+
/** Effective server-enforced capacity. */
|
|
2058
|
+
readonly maxPlayers: number;
|
|
2059
|
+
/** Whether this player created the room. */
|
|
2060
|
+
readonly isCreator: boolean;
|
|
2061
|
+
/** Current latency in ms (round-trip / 2) */
|
|
2062
|
+
readonly latency: number;
|
|
2063
|
+
/** Connection state */
|
|
2064
|
+
readonly connectionState: ConnectionState;
|
|
2065
|
+
/** Register event handlers. */
|
|
2066
|
+
on(events: RoomEvents<P>): void;
|
|
2067
|
+
/** Send a typed message to the server room. */
|
|
2068
|
+
send(message: P): void;
|
|
2069
|
+
/** Open or close the room to new seats. Only the room creator is authorized. */
|
|
2070
|
+
setSeatingOpen(open: boolean): void;
|
|
2071
|
+
/**
|
|
2072
|
+
* Send an opaque payload under `msgType` without the typed-message envelope
|
|
2073
|
+
* transform. `data` is delivered verbatim (a raw string stays a string), so
|
|
2074
|
+
* this is the correct channel for pass-through protocols — e.g. the
|
|
2075
|
+
* Syncplay session envelope carried under `rdm`.
|
|
2076
|
+
*/
|
|
2077
|
+
sendRaw(msgType: string, data: unknown): void;
|
|
2078
|
+
/**
|
|
2079
|
+
* Register a raw handler for `msgType`. Broadcast/sendTo messages with a matching
|
|
2080
|
+
* `msgType` are delivered here with their payload untouched (bypassing the
|
|
2081
|
+
* {@link RoomEvents.onMessage} spread that would corrupt a raw string). Payloads
|
|
2082
|
+
* that arrived before this call — e.g. a server push emitted during join, in the
|
|
2083
|
+
* window before the handler attaches — are buffered and flushed on registration.
|
|
2084
|
+
*/
|
|
2085
|
+
onRaw(msgType: string, handler: (data: unknown) => void): void;
|
|
2086
|
+
/**
|
|
2087
|
+
* Send a room chat message (Req 20). The server authorizes it against the live
|
|
2088
|
+
* roster, persists it, and delivers it to all members (incl. you) as `onChat`.
|
|
2089
|
+
*/
|
|
2090
|
+
sendChat(text: string): void;
|
|
2091
|
+
/** Request recent chat history; the reply arrives via `onChatHistory`. */
|
|
2092
|
+
fetchChatHistory(limit?: number): void;
|
|
2093
|
+
/** Leave the room and close the connection. */
|
|
2094
|
+
leave(): void;
|
|
2095
|
+
/** Get estimated server time (local time + offset). */
|
|
2096
|
+
getServerTime(): number;
|
|
2097
|
+
}
|
|
2098
|
+
interface RoomEvents<P extends Protocol> {
|
|
2099
|
+
/** Called when a broadcast message is received from the server */
|
|
2100
|
+
onMessage?: (message: P) => void;
|
|
2101
|
+
/** Called when a targeted message is received */
|
|
2102
|
+
onPrivateMessage?: (message: P) => void;
|
|
2103
|
+
/**
|
|
2104
|
+
* Called for an authoritative world delta (Req 7). Convenience wrapper over the
|
|
2105
|
+
* `world:delta` broadcast so games don't match on the msgType string.
|
|
2106
|
+
*/
|
|
2107
|
+
onDelta?: (delta: unknown) => void;
|
|
2108
|
+
/**
|
|
2109
|
+
* Called when the server asks the client to resync (a delta exceeded the WS
|
|
2110
|
+
* frame cap, or state diverged). The client should refetch full state.
|
|
2111
|
+
*/
|
|
2112
|
+
onResync?: (reason: string) => void;
|
|
2113
|
+
/** Called when a room chat message is delivered (Req 20). */
|
|
2114
|
+
onChat?: (message: ChatMessageData) => void;
|
|
2115
|
+
/** Called with the reply to {@link ServerRoom.fetchChatHistory}. */
|
|
2116
|
+
onChatHistory?: (messages: ChatMessageData[]) => void;
|
|
2117
|
+
/** Called when a player joins the room */
|
|
2118
|
+
onPlayerJoined?: (player: ServerPlayer) => void;
|
|
2119
|
+
/** Called when a player leaves the room */
|
|
2120
|
+
onPlayerLeft?: (playerId: string) => void;
|
|
2121
|
+
/** Called when the room is locked */
|
|
2122
|
+
onLock?: () => void;
|
|
2123
|
+
/** Called when the room is unlocked */
|
|
2124
|
+
onUnlock?: () => void;
|
|
2125
|
+
/** Called on connection error */
|
|
2126
|
+
onError?: (error: string) => void;
|
|
2127
|
+
/** Called when disconnected */
|
|
2128
|
+
onDisconnect?: () => void;
|
|
2129
|
+
/** Called when reconnecting */
|
|
2130
|
+
onReconnecting?: () => void;
|
|
2131
|
+
/** Called when reconnected */
|
|
2132
|
+
onReconnected?: () => void;
|
|
2133
|
+
/**
|
|
2134
|
+
* Called when the server moved this player to another room (move_player /
|
|
2135
|
+
* Req 19). The socket stays open and now serves `roomId`; the game should
|
|
2136
|
+
* refetch state for the new room. {@link ServerRoom.roomCode} updates to match.
|
|
2137
|
+
*/
|
|
2138
|
+
onMoved?: (roomId: string) => void;
|
|
2139
|
+
}
|
|
2140
|
+
|
|
2141
|
+
/**
|
|
2142
|
+
* Client-side Multiplayer API interface.
|
|
2143
|
+
* All host implementations (RPC, WS, Mock) implement this interface.
|
|
2144
|
+
*/
|
|
2145
|
+
|
|
2146
|
+
interface MultiplayerApi {
|
|
2147
|
+
/**
|
|
2148
|
+
* Create a new room of the given type.
|
|
2149
|
+
*/
|
|
2150
|
+
createRoom<P extends Protocol>(roomType: string, opts?: RoomOptions): Promise<ServerRoom<P>>;
|
|
2151
|
+
/**
|
|
2152
|
+
* Join a room by its 6-char code.
|
|
2153
|
+
*/
|
|
2154
|
+
joinRoomByCode<P extends Protocol>(code: string): Promise<ServerRoom<P>>;
|
|
2155
|
+
/**
|
|
2156
|
+
* Join an existing room or create a new one (matchmaking by room type).
|
|
2157
|
+
*/
|
|
2158
|
+
joinOrCreateRoom<P extends Protocol>(roomType: string, opts?: RoomOptions): Promise<ServerRoom<P>>;
|
|
2159
|
+
/**
|
|
2160
|
+
* Server-authoritative PvP matchmaking (Req 18): request a match under
|
|
2161
|
+
* `opts.criteria`. Resolves once the platform pairs you with another player —
|
|
2162
|
+
* even if you land on different server instances — and joins you into the
|
|
2163
|
+
* shared room. The returned promise stays pending while waiting for an
|
|
2164
|
+
* opponent (up to `opts.matchmakeTimeoutMs`).
|
|
2165
|
+
*/
|
|
2166
|
+
matchmakeRoom<P extends Protocol>(roomType: string, opts?: MatchmakeOptions): Promise<ServerRoom<P>>;
|
|
2167
|
+
/**
|
|
2168
|
+
* List the realtime rooms the current user is a member of.
|
|
2169
|
+
*/
|
|
2170
|
+
getUserRooms(options?: ListUserRoomsOptions): Promise<RealtimeRoomSummary[]>;
|
|
2171
|
+
}
|
|
2172
|
+
type MatchmakeOptions = Pick<RoomOptions, 'criteria'> & {
|
|
2173
|
+
/** How long to wait for an opponent before rejecting (default 120s). */
|
|
2174
|
+
matchmakeTimeoutMs?: number;
|
|
2175
|
+
/** How often to poll the pool while waiting (default 1s). */
|
|
2176
|
+
pollIntervalMs?: number;
|
|
2177
|
+
};
|
|
2178
|
+
|
|
1977
2179
|
interface LoggingApi {
|
|
1978
2180
|
logDebug(message: string, ...args: any[]): void;
|
|
1979
2181
|
logError(message: string, ...args: any[]): void;
|
|
@@ -3122,6 +3324,32 @@ interface UploadResult {
|
|
|
3122
3324
|
*/
|
|
3123
3325
|
uploadToken?: string;
|
|
3124
3326
|
}
|
|
3327
|
+
interface BatchCopyItem {
|
|
3328
|
+
inputKey: string;
|
|
3329
|
+
outputKey: string;
|
|
3330
|
+
}
|
|
3331
|
+
interface BatchCopyParams {
|
|
3332
|
+
copies: BatchCopyItem[];
|
|
3333
|
+
visibility?: 'private' | 'public';
|
|
3334
|
+
}
|
|
3335
|
+
interface BatchCopySuccess {
|
|
3336
|
+
inputKey: string;
|
|
3337
|
+
outputKey: string;
|
|
3338
|
+
status: 'copied';
|
|
3339
|
+
sizeBytes: number;
|
|
3340
|
+
visibility: 'private' | 'public';
|
|
3341
|
+
}
|
|
3342
|
+
interface BatchCopyFailure {
|
|
3343
|
+
inputKey: string;
|
|
3344
|
+
outputKey: string;
|
|
3345
|
+
status: 'failed';
|
|
3346
|
+
error: string;
|
|
3347
|
+
code?: string;
|
|
3348
|
+
}
|
|
3349
|
+
type BatchCopyItemResult = BatchCopySuccess | BatchCopyFailure;
|
|
3350
|
+
interface BatchCopyResult {
|
|
3351
|
+
results: BatchCopyItemResult[];
|
|
3352
|
+
}
|
|
3125
3353
|
interface ListParams {
|
|
3126
3354
|
prefix?: string;
|
|
3127
3355
|
cursor?: string;
|
|
@@ -3364,6 +3592,7 @@ interface FilesApi {
|
|
|
3364
3592
|
upload(params: UploadParams): Promise<UploadResult>;
|
|
3365
3593
|
confirmUpload(key: string, options?: ConfirmUploadOptions): Promise<FileEntry>;
|
|
3366
3594
|
batchUpload(params: BatchUploadParams): Promise<BatchUploadResult>;
|
|
3595
|
+
batchCopy(params: BatchCopyParams): Promise<BatchCopyResult>;
|
|
3367
3596
|
batchConfirm(keys: string[], options?: BatchConfirmOptions): Promise<BatchConfirmResult>;
|
|
3368
3597
|
getUrl(params: GetUrlParams): Promise<string>;
|
|
3369
3598
|
getUrls(params: GetUrlsParams): Promise<GetUrlsResult>;
|
|
@@ -3898,6 +4127,56 @@ interface VideoApi {
|
|
|
3898
4127
|
}) => void): Subscription;
|
|
3899
4128
|
}
|
|
3900
4129
|
|
|
4130
|
+
type MediaPlaybackStatus = 'playing' | 'paused' | 'buffering';
|
|
4131
|
+
type MediaPlaybackAction = 'play' | 'pause';
|
|
4132
|
+
interface MediaPlaybackState {
|
|
4133
|
+
status: MediaPlaybackStatus;
|
|
4134
|
+
positionSeconds: number;
|
|
4135
|
+
durationSeconds: number | null;
|
|
4136
|
+
}
|
|
4137
|
+
interface MediaPlaybackActivityIntent {
|
|
4138
|
+
kind: 'mediaPlayback';
|
|
4139
|
+
key: string;
|
|
4140
|
+
contentId: string;
|
|
4141
|
+
title: string;
|
|
4142
|
+
state: MediaPlaybackState;
|
|
4143
|
+
supportedActions: MediaPlaybackAction[];
|
|
4144
|
+
continuationParams?: Record<string, string>;
|
|
4145
|
+
}
|
|
4146
|
+
type ActivityIntent = MediaPlaybackActivityIntent;
|
|
4147
|
+
type ActivityState = MediaPlaybackState;
|
|
4148
|
+
interface StartActivityResult {
|
|
4149
|
+
activityId: string;
|
|
4150
|
+
status: 'accepted' | 'skipped';
|
|
4151
|
+
reason?: 'unsupported_surface';
|
|
4152
|
+
}
|
|
4153
|
+
interface UpdateActivityInput {
|
|
4154
|
+
activityId: string;
|
|
4155
|
+
state: ActivityState;
|
|
4156
|
+
}
|
|
4157
|
+
interface EndActivityInput {
|
|
4158
|
+
activityId: string;
|
|
4159
|
+
finalState?: ActivityState;
|
|
4160
|
+
}
|
|
4161
|
+
interface ActivityActionEvent {
|
|
4162
|
+
activityId: string;
|
|
4163
|
+
action: MediaPlaybackAction;
|
|
4164
|
+
}
|
|
4165
|
+
/**
|
|
4166
|
+
* Logical activity dispatch. The game describes what it is doing; the host
|
|
4167
|
+
* decides which native surfaces (Fire TV MediaSession today; iOS Now Playing,
|
|
4168
|
+
* Live Activities, Android Live Updates later) present it. Games never name a
|
|
4169
|
+
* surface.
|
|
4170
|
+
*/
|
|
4171
|
+
interface ActivityApi {
|
|
4172
|
+
startActivityAsync(intent: ActivityIntent): Promise<StartActivityResult>;
|
|
4173
|
+
updateActivity(input: UpdateActivityInput): void;
|
|
4174
|
+
endActivityAsync(input: EndActivityInput): Promise<void>;
|
|
4175
|
+
onActivityAction(callback: (event: ActivityActionEvent) => void): Subscription;
|
|
4176
|
+
}
|
|
4177
|
+
declare function isMediaPlaybackAction(value: unknown): value is MediaPlaybackAction;
|
|
4178
|
+
declare function isActivityActionEvent(value: unknown): value is ActivityActionEvent;
|
|
4179
|
+
|
|
3901
4180
|
interface AdminGenBrowseParams {
|
|
3902
4181
|
profileId?: string;
|
|
3903
4182
|
status?: 'active' | 'removed';
|
|
@@ -4335,6 +4614,7 @@ interface Host {
|
|
|
4335
4614
|
readonly accessGate: AccessGateApi;
|
|
4336
4615
|
readonly multiplayer: MultiplayerApi;
|
|
4337
4616
|
readonly video: VideoApi;
|
|
4617
|
+
readonly activity: ActivityApi;
|
|
4338
4618
|
readonly app: AppApi;
|
|
4339
4619
|
readonly attribution: AttributionApi;
|
|
4340
4620
|
readonly isInitialized: boolean;
|
|
@@ -4768,7 +5048,7 @@ interface RundotGameAPI {
|
|
|
4768
5048
|
*/
|
|
4769
5049
|
showRewardedAdAsync(): Promise<boolean>;
|
|
4770
5050
|
requestTimeAsync(): Promise<ServerTimeData>;
|
|
4771
|
-
getFutureTimeAsync(options
|
|
5051
|
+
getFutureTimeAsync(options?: GetFutureTimeOptions): Promise<number>;
|
|
4772
5052
|
formatTime(timestamp: number, options?: any): string;
|
|
4773
5053
|
formatNumber(value: number, options?: any): string;
|
|
4774
5054
|
loadAsset(url: string, options?: {
|
|
@@ -4858,6 +5138,7 @@ interface RundotGameAPI {
|
|
|
4858
5138
|
shop: ShopApi;
|
|
4859
5139
|
accessGate: AccessGateApi;
|
|
4860
5140
|
video: VideoApi;
|
|
5141
|
+
activity: ActivityApi;
|
|
4861
5142
|
app: AppApi;
|
|
4862
5143
|
attribution: AttributionApi;
|
|
4863
5144
|
/**
|
|
@@ -4883,4 +5164,4 @@ interface AdsApi {
|
|
|
4883
5164
|
showInterstitialAd(options?: ShowInterstitialAdOptions): Promise<boolean>;
|
|
4884
5165
|
}
|
|
4885
5166
|
|
|
4886
|
-
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 RoomDataUpdate 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 QuitCallback as aA, type BackButtonCallback as aB, type IdentityChangedCallback as aC, type IdentityChangedEvent as aD, type SimulationApi as aE, type SimulationSlotValidationResult as aF, type SimulationBatchOperation as aG, type SimulationBatchOperationsResult as aH, type SimulationAvailableItem as aI, type SimulationPowerPreview as aJ, type SimulationSlotMutationResult as aK, type SimulationSlotContainer as aL, type SimulationAssignment as aM, type SimulationState as aN, type ExecuteRecipeOptions as aO, type ExecuteRecipeResponse as aP, type CollectRecipeResult as aQ, type ResetStateOptions as aR, type ResetStateResult as aS, type GetActiveRunsOptions as aT, type ExecuteScopedRecipeOptions as aU, type ExecuteScopedRecipeResult as aV, type GetAvailableRecipesOptions as aW, type GetAvailableRecipesResult as aX, type Recipe as aY, type GetBatchRecipeRequirements as aZ, type TriggerRecipeChainOptions 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 ExperimentAssignment as aq, type LiveOpsApi as ar, type LiveOpsConfigResult as as, type LiveOpsRawConfig as at, type LiveOpsSection as au, type LifecycleApi as av, type SleepCallback as aw, type AwakeCallback as ax, type PauseCallback as ay, type ResumeCallback as az, type RecipeRequirementResult as b, type PromptLoginResult as b$, type RoomMessageEvent as b0, type ProposedMoveEvent as b1, RundotGameTransport as b2, type RoomsApi as b3, type CreateRoomOptions as b4, type JoinOrCreateRoomOptions as b5, type JoinOrCreateResult as b6, type ListRoomsOptions as b7, type UpdateRoomDataOptions as b8, type RoomMessageRequest as b9, type CreditsPurchaseResult as bA, type Unsubscribe as bB, type PreloaderApi as bC, type SocialApi as bD, type ShareMetadata as bE, type ShareLinkResult as bF, type SocialQRCodeOptions as bG, type QRCodeResult as bH, type ShareClickData as bI, type ShareFileOptions as bJ, type ShareFileResult as bK, type CanShareFileResult as bL, type ComposeSocialPostOptions as bM, type ComposeSocialPostResult as bN, type EntitlementApi as bO, type Entitlement as bP, type LedgerEntry as bQ, type StatsApi as bR, type GrantInfo as bS, type CollectiblesApi as bT, type CollectibleCard as bU, type VipClaimResult as bV, type ShopApi as bW, type StorefrontResponse as bX, type StorefrontItem as bY, type ShopPurchaseResponse as bZ, type ShopOrderHistoryResponse as b_, type StartRoomGameOptions as ba, type ProposeMoveRequest as bb, type ProposeMoveResult as bc, type ValidateMoveVerdict as bd, type ValidateMoveResult as be, type RoomSubscriptionOptions as bf, type LoggingApi as bg, type IapApi as bh, type SpendCurrencyOptions as bi, type SpendCurrencyResult as bj, type SubscriptionTier as bk, type RunSubscriptionsResponse as bl, type SubscriptionInterval as bm, type PurchaseSubscriptionResponse as bn, type OpenStoreResult as bo, type LoadEmbeddedAssetsResponse as bp, type DirectPurchaseSku as bq, type SharedAssetsApi as br, type CreditsApi as bs, type CreditsBillingContext as bt, type CreditBalance as bu, type CreditSubscription as bv, type CreditPlansCatalog as bw, type GenerationCostEstimateRequest as bx, type GenerationCostEstimate as by, type OpenPaywallOptions as bz, type RundotGameAvailableRecipe as c, type AdminSpriteGenListReportsResponse as c$, type AccessTier as c0, type AccessGateApi as c1, type TextGenApi as c2, type UgcApi as c3, type VideoApi as c4, type AppApi as c5, type AdminUgcApi as c6, type AdminImageGenApi as c7, type AdminVideoGenApi as c8, type AdminSpriteGenApi as c9, type Avatar3dEdits as cA, type AdsApi as cB, type RawEnvironmentInfo as cC, type SharedStorageHostApi as cD, type FilesApi as cE, type ClipsApi as cF, type AttributionApi as cG, type InitializationContext as cH, type InitializationOptions as cI, type CaptureConsent as cJ, type StartClipRecordingOptions as cK, type ClipBlob as cL, type ClipsSupport as cM, type ClipPersistOptions as cN, type ClipResult as cO, type UgcEntry as cP, type CaptureConsentStatus as cQ, AccessDeniedError as cR, type AdminGenApi as cS, type AdminImageGenBrowseParams as cT, type AdminImageGenBrowseResponse as cU, type AdminImageGenListReportsParams as cV, type AdminImageGenListReportsResponse as cW, type AdminImageGenResolveAction as cX, type AdminSpriteGenBrowseParams as cY, type AdminSpriteGenBrowseResponse as cZ, type AdminSpriteGenListReportsParams as c_, type AdminAudioGenApi as ca, type AdminThreeDGenApi as cb, type AppRole as cc, type ResolveLaunchIntentOptions as cd, type LaunchIntent as ce, type ReleaseNote as cf, type AdminUgcBrowseParams as cg, type AdminUgcBrowseResponse as ch, type AdminUgcListReportsParams as ci, type AdminUgcListReportsResponse as cj, type AdminUgcResolveAction as ck, type AdminGenBrowseParams as cl, type AdminGenBrowseResponse as cm, type ImageGenEntry as cn, type AdminGenListReportsParams as co, type AdminGenListReportsResponse as cp, type ImageGenReport as cq, type AdminGenResolveAction as cr, type SpriteGenEntry as cs, type SpriteGenReport as ct, type ThreeDGenEntry as cu, type ThreeDGenReport as cv, type Avatar3dApi as cw, type AssetManifest as cx, type Avatar3dConfig as cy, type ShowEditorOptions as cz, type RundotGameCollectRecipeResult as d, type LiveOpsExperiment as d$, type AdminSpriteGenResolveAction as d0, type AdminThreeDGenBrowseParams as d1, type AdminThreeDGenBrowseResponse as d2, type AdminThreeDGenListReportsParams as d3, type AdminThreeDGenListReportsResponse as d4, type AdminThreeDGenResolveAction as d5, type AdminUgcEntry as d6, type AdminVideoGenBrowseParams as d7, type AdminVideoGenBrowseResponse as d8, type AdminVideoGenListReportsParams as d9, type ComposeSocialPostMedia as dA, type CreditFreeDailyInfo as dB, type CreditPlan as dC, type CreditTopUpPack as dD, type CreditsBilledTo as dE, CreditsExhaustedError as dF, type CreditsExhaustedErrorInfo as dG, type CreditsPurchaseOutcome as dH, type DirectPurchaseGrantKind as dI, type DirectPurchaseStorePlatform as dJ, type DirectPurchaseStorePrice as dK, GAMEPAD_BUTTON_NAMES as dL, type GamepadAxes as dM, type GamepadButtonName as dN, type GamepadButtonState as dO, type GamepadSource as dP, type GenerationCostEstimateKind as dQ, type GetSubscriptionsForTierRequest as dR, type HudInsets as dS, type IdentityChangeReason as dT, type InboundForKeyEntry as dU, type InboundMethodIds as dV, type InboundStorageApi as dW, type IsPlayerSubscribedRequest as dX, type JoinOrCreateRoomEnvelopeResponse as dY, type JoinRoomMatchCriteria as dZ, type LaunchIntentKind as d_, type AdminVideoGenListReportsResponse as da, type AdminVideoGenResolveAction as db, type AiContentBlock as dc, type AiImageContent as dd, type AiImageUrlContent as de, type AiMessage as df, type AiResponseFormat as dg, type AiTextContent as dh, type AiToolResultContent as di, type AiToolUseContent as dj, type Asset as dk, type AssignedVariant as dl, type AudioGenEntry as dm, type AudioGenReport as dn, BUCKET_COUNT as dp, CLIP_CONTENT_TYPE as dq, COMPOSE_POST_MAX_TEXT_LENGTH as dr, COMPOSE_POST_MAX_TITLE_LENGTH as ds, COMPOSE_POST_SUBREDDIT_PATTERN as dt, CREDITS_EXHAUSTED_CODE as du, type Category as dv, type ClipAudioOptions as dw, type ClipCameraOptions as dx, type ClipPipLayout as dy, type ClipPipPosition as dz, type RundotGameExecuteRecipeOptions as e, assignVariant as e$, type LiveOpsOverride as e0, type LiveOpsVariant as e1, type LoadEmbeddedAssetBeginRequest as e2, type LoadEmbeddedAssetBeginResponse as e3, type LoadEmbeddedAssetChunkRequest as e4, type LoadEmbeddedAssetChunkResponse as e5, type LoadEmbeddedAssetsRequest as e6, MockAvatarApi as e7, type NotificationTriggerInput as e8, type OnNotificationCallback as e9, SOCIAL_COMPOSE_PLATFORMS as eA, type ScheduleRCSStatus as eB, type ShareFileMimeType as eC, type ShopOrder as eD, type SimulationBatchOperationAssign as eE, type SimulationBatchOperationRemove as eF, type SimulationBatchOperationResult as eG, type SimulationPersonalState as eH, type SimulationRoomActiveRecipe as eI, type SimulationRoomState as eJ, type SocialComposePlatform as eK, type StorefrontCollection as eL, type StorefrontCollectionItem as eM, type SubPath as eN, type SubmitMessageChannel as eO, type SubmitMessageChannelResult as eP, type SubmitMessageResultChannel as eQ, TIER_SUPPORTED_INTERVALS as eR, type Tool as eS, type ToolChoice as eT, type ToolUse as eU, type TimeIntervalTriggerInput as eV, type UgcReport as eW, type VideoGenEntry as eX, type VideoGenReport as eY, asCreditsExhaustedError as eZ, assertTierSupportsInterval as e_, type OnRequestCallback as ea, type OnResponseCallback as eb, type PlatformCapabilities as ec, type ProposedMovePayload as ed, type PurchaseSubscriptionRequest as ee, type RCSAvailabilityReason as ef, type RCSOptInStatus as eg, ROOM_GAME_PHASES as eh, type RecipeInfo as ei, type ReleaseType as ej, type ResolvedLiveOps as ek, type RoomEnvelopeResponse as el, type RoomGamePhase as em, type RoomMessageEventType as en, type RoomMessagePayload as eo, type RoomsEnvelopeResponse as ep, RpcInboundStorageApi as eq, RpcSharedAssetsApi as er, type RpcTransport as es, type RunSubscription as et, type RundotGameRoomCustomMetadata as eu, type RundotGameRoomPayload as ev, type RundotGameRoomRules as ew, type RundotGameRoomRulesGameState as ex, SHARE_FILE_ALLOWED_MIME_TYPES as ey, SHARE_FILE_MAX_SIZE_BYTES as ez, type RundotGameExecuteRecipeResult as f, assignmentBucket as f0, createHost as f1, fnv1a32 as f2, isCreditsExhaustedError as f3, mapCreditsExhaustion as f4, resolveCollectionItemPrice as f5, resolveLiveOpsSection as f6, toPromptWireRequest as f7, 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 };
|
|
5167
|
+
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 RoomDataUpdate 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 QuitCallback as aA, type BackButtonCallback as aB, type IdentityChangedCallback as aC, type IdentityChangedEvent as aD, type SimulationApi as aE, type SimulationSlotValidationResult as aF, type SimulationBatchOperation as aG, type SimulationBatchOperationsResult as aH, type SimulationAvailableItem as aI, type SimulationPowerPreview as aJ, type SimulationSlotMutationResult as aK, type SimulationSlotContainer as aL, type SimulationAssignment as aM, type SimulationState as aN, type ExecuteRecipeOptions as aO, type ExecuteRecipeResponse as aP, type CollectRecipeResult as aQ, type ResetStateOptions as aR, type ResetStateResult as aS, type GetActiveRunsOptions as aT, type ExecuteScopedRecipeOptions as aU, type ExecuteScopedRecipeResult as aV, type GetAvailableRecipesOptions as aW, type GetAvailableRecipesResult as aX, type Recipe as aY, type GetBatchRecipeRequirements as aZ, type TriggerRecipeChainOptions 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 ExperimentAssignment as aq, type LiveOpsApi as ar, type LiveOpsConfigResult as as, type LiveOpsRawConfig as at, type LiveOpsSection as au, type LifecycleApi as av, type SleepCallback as aw, type AwakeCallback as ax, type PauseCallback as ay, type ResumeCallback as az, type RecipeRequirementResult as b, type PromptLoginResult as b$, type RoomMessageEvent as b0, type ProposedMoveEvent as b1, RundotGameTransport as b2, type RoomsApi as b3, type CreateRoomOptions as b4, type JoinOrCreateRoomOptions as b5, type JoinOrCreateResult as b6, type ListRoomsOptions as b7, type UpdateRoomDataOptions as b8, type RoomMessageRequest as b9, type CreditsPurchaseResult as bA, type Unsubscribe as bB, type PreloaderApi as bC, type SocialApi as bD, type ShareMetadata as bE, type ShareLinkResult as bF, type SocialQRCodeOptions as bG, type QRCodeResult as bH, type ShareClickData as bI, type ShareFileOptions as bJ, type ShareFileResult as bK, type CanShareFileResult as bL, type ComposeSocialPostOptions as bM, type ComposeSocialPostResult as bN, type EntitlementApi as bO, type Entitlement as bP, type LedgerEntry as bQ, type StatsApi as bR, type GrantInfo as bS, type CollectiblesApi as bT, type CollectibleCard as bU, type VipClaimResult as bV, type ShopApi as bW, type StorefrontResponse as bX, type StorefrontItem as bY, type ShopPurchaseResponse as bZ, type ShopOrderHistoryResponse as b_, type StartRoomGameOptions as ba, type ProposeMoveRequest as bb, type ProposeMoveResult as bc, type ValidateMoveVerdict as bd, type ValidateMoveResult as be, type RoomSubscriptionOptions as bf, type LoggingApi as bg, type IapApi as bh, type SpendCurrencyOptions as bi, type SpendCurrencyResult as bj, type SubscriptionTier as bk, type RunSubscriptionsResponse as bl, type SubscriptionInterval as bm, type PurchaseSubscriptionResponse as bn, type OpenStoreResult as bo, type LoadEmbeddedAssetsResponse as bp, type DirectPurchaseSku as bq, type SharedAssetsApi as br, type CreditsApi as bs, type CreditsBillingContext as bt, type CreditBalance as bu, type CreditSubscription as bv, type CreditPlansCatalog as bw, type GenerationCostEstimateRequest as bx, type GenerationCostEstimate as by, type OpenPaywallOptions as bz, type RundotGameAvailableRecipe as c, type AdminImageGenBrowseParams as c$, type AccessTier as c0, type AccessGateApi as c1, type TextGenApi as c2, type UgcApi as c3, type MultiplayerApi as c4, type VideoApi as c5, type ActivityApi as c6, type ActivityIntent as c7, type StartActivityResult as c8, type UpdateActivityInput as c9, type SpriteGenReport as cA, type ThreeDGenEntry as cB, type ThreeDGenReport as cC, type Avatar3dApi as cD, type AssetManifest as cE, type Avatar3dConfig as cF, type ShowEditorOptions as cG, type Avatar3dEdits as cH, type AdsApi as cI, type RawEnvironmentInfo as cJ, type SharedStorageHostApi as cK, type FilesApi as cL, type ClipsApi as cM, type AttributionApi as cN, type InitializationContext as cO, type InitializationOptions as cP, type CaptureConsent as cQ, type StartClipRecordingOptions as cR, type ClipBlob as cS, type ClipsSupport as cT, type ClipPersistOptions as cU, type ClipResult as cV, type UgcEntry as cW, type CaptureConsentStatus as cX, AccessDeniedError as cY, type ActivityState as cZ, type AdminGenApi as c_, type EndActivityInput as ca, type ActivityActionEvent as cb, type AppApi as cc, type AdminUgcApi as cd, type AdminImageGenApi as ce, type AdminVideoGenApi as cf, type AdminSpriteGenApi as cg, type AdminAudioGenApi as ch, type AdminThreeDGenApi as ci, type AppRole as cj, type ResolveLaunchIntentOptions as ck, type LaunchIntent as cl, type ReleaseNote as cm, type AdminUgcBrowseParams as cn, type AdminUgcBrowseResponse as co, type AdminUgcListReportsParams as cp, type AdminUgcListReportsResponse as cq, type AdminUgcResolveAction as cr, type AdminGenBrowseParams as cs, type AdminGenBrowseResponse as ct, type ImageGenEntry as cu, type AdminGenListReportsParams as cv, type AdminGenListReportsResponse as cw, type ImageGenReport as cx, type AdminGenResolveAction as cy, type SpriteGenEntry as cz, type RundotGameCollectRecipeResult as d, type GetSubscriptionsForTierRequest as d$, type AdminImageGenBrowseResponse as d0, type AdminImageGenListReportsParams as d1, type AdminImageGenListReportsResponse as d2, type AdminImageGenResolveAction as d3, type AdminSpriteGenBrowseParams as d4, type AdminSpriteGenBrowseResponse as d5, type AdminSpriteGenListReportsParams as d6, type AdminSpriteGenListReportsResponse as d7, type AdminSpriteGenResolveAction as d8, type AdminThreeDGenBrowseParams as d9, COMPOSE_POST_MAX_TITLE_LENGTH as dA, COMPOSE_POST_SUBREDDIT_PATTERN as dB, CREDITS_EXHAUSTED_CODE as dC, type Category as dD, type ChatMessageData as dE, type ClipAudioOptions as dF, type ClipCameraOptions as dG, type ClipPipLayout as dH, type ClipPipPosition as dI, type ComposeSocialPostMedia as dJ, type ConnectionState as dK, type CreditFreeDailyInfo as dL, type CreditPlan as dM, type CreditTopUpPack as dN, type CreditsBilledTo as dO, CreditsExhaustedError as dP, type CreditsExhaustedErrorInfo as dQ, type CreditsPurchaseOutcome as dR, type DirectPurchaseGrantKind as dS, type DirectPurchaseStorePlatform as dT, type DirectPurchaseStorePrice as dU, GAMEPAD_BUTTON_NAMES as dV, type GamepadAxes as dW, type GamepadButtonName as dX, type GamepadButtonState as dY, type GamepadSource as dZ, type GenerationCostEstimateKind as d_, type AdminThreeDGenBrowseResponse as da, type AdminThreeDGenListReportsParams as db, type AdminThreeDGenListReportsResponse as dc, type AdminThreeDGenResolveAction as dd, type AdminUgcEntry as de, type AdminVideoGenBrowseParams as df, type AdminVideoGenBrowseResponse as dg, type AdminVideoGenListReportsParams as dh, type AdminVideoGenListReportsResponse as di, type AdminVideoGenResolveAction as dj, type AiContentBlock as dk, type AiImageContent as dl, type AiImageUrlContent as dm, type AiMessage as dn, type AiResponseFormat as dp, type AiTextContent as dq, type AiToolResultContent as dr, type AiToolUseContent as ds, type Asset as dt, type AssignedVariant as du, type AudioGenEntry as dv, type AudioGenReport as dw, BUCKET_COUNT as dx, CLIP_CONTENT_TYPE as dy, COMPOSE_POST_MAX_TEXT_LENGTH as dz, type RundotGameExecuteRecipeOptions as e, type SimulationBatchOperationResult as e$, type HudInsets as e0, type IdentityChangeReason as e1, type InboundForKeyEntry as e2, type InboundMethodIds as e3, type InboundStorageApi as e4, type IsPlayerSubscribedRequest as e5, type JoinOrCreateRoomEnvelopeResponse as e6, type JoinRoomMatchCriteria as e7, type LaunchIntentKind as e8, type ListUserRoomsOptions as e9, type RecipeInfo as eA, type ReleaseType as eB, type ResolvedLiveOps as eC, type RoomEnvelopeResponse as eD, type RoomEvents as eE, type RoomGamePhase as eF, type RoomMessageEventType as eG, type RoomMessagePayload as eH, type RoomsEnvelopeResponse as eI, RpcInboundStorageApi as eJ, RpcSharedAssetsApi as eK, type RpcTransport as eL, type RunSubscription as eM, type RundotGameRoomCustomMetadata as eN, type RundotGameRoomPayload as eO, type RundotGameRoomRules as eP, type RundotGameRoomRulesGameState as eQ, SHARE_FILE_ALLOWED_MIME_TYPES as eR, SHARE_FILE_MAX_SIZE_BYTES as eS, SOCIAL_COMPOSE_PLATFORMS as eT, type ScheduleRCSStatus as eU, type ServerPlayer as eV, type ServerRoom as eW, type ShareFileMimeType as eX, type ShopOrder as eY, type SimulationBatchOperationAssign as eZ, type SimulationBatchOperationRemove as e_, type LiveOpsExperiment as ea, type LiveOpsOverride as eb, type LiveOpsVariant as ec, type LoadEmbeddedAssetBeginRequest as ed, type LoadEmbeddedAssetBeginResponse as ee, type LoadEmbeddedAssetChunkRequest as ef, type LoadEmbeddedAssetChunkResponse as eg, type LoadEmbeddedAssetsRequest as eh, type MatchmakeOptions as ei, type MediaPlaybackAction as ej, type MediaPlaybackActivityIntent as ek, type MediaPlaybackState as el, type MediaPlaybackStatus as em, MockAvatarApi as en, type NotificationTriggerInput as eo, type OnNotificationCallback as ep, type OnRequestCallback as eq, type OnResponseCallback as er, type PlatformCapabilities as es, type ProposedMovePayload as et, type Protocol as eu, type PurchaseSubscriptionRequest as ev, type RCSAvailabilityReason as ew, type RCSOptInStatus as ex, ROOM_GAME_PHASES as ey, type RealtimeRoomSummary as ez, type RundotGameExecuteRecipeResult as f, type SimulationPersonalState as f0, type SimulationRoomActiveRecipe as f1, type SimulationRoomState as f2, type SocialComposePlatform as f3, type StorefrontCollection as f4, type StorefrontCollectionItem as f5, type SubPath as f6, type SubmitMessageChannel as f7, type SubmitMessageChannelResult as f8, type SubmitMessageResultChannel as f9, TIER_SUPPORTED_INTERVALS as fa, type Tool as fb, type ToolChoice as fc, type ToolUse as fd, type TimeIntervalTriggerInput as fe, type UgcReport as ff, type VideoGenEntry as fg, type VideoGenReport as fh, asCreditsExhaustedError as fi, assertTierSupportsInterval as fj, assignVariant as fk, assignmentBucket as fl, createHost as fm, fnv1a32 as fn, isActivityActionEvent as fo, isCreditsExhaustedError as fp, isMediaPlaybackAction as fq, mapCreditsExhaustion as fr, resolveCollectionItemPrice as fs, resolveLiveOpsSection as ft, toPromptWireRequest as fu, 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,5 +1,3 @@
|
|
|
1
|
-
import { R as ReplayFile } from './types-C8mnMNHg.js';
|
|
2
|
-
|
|
3
1
|
type ImageGenModel = 'gemini-3.1-flash-image-preview' | 'gemini-3-pro-image-preview' | 'gpt-image-1' | 'gpt-image-2';
|
|
4
2
|
type BgRemovalModel = 'bria' | 'birefnet';
|
|
5
3
|
type BiRefNetVariant = 'light' | 'heavy' | 'portrait';
|
|
@@ -711,6 +709,16 @@ interface ThreeDGenApi {
|
|
|
711
709
|
getCompletedJobs(): Promise<ThreeDGenJobEvent[]>;
|
|
712
710
|
}
|
|
713
711
|
|
|
712
|
+
/**
|
|
713
|
+
* SDK-owned opaque replay blob for leaderboard submission. Deliberately NOT the
|
|
714
|
+
* syncplay `ReplayFile` type — that embeds `KinetixRuntimeIdentity`, which would
|
|
715
|
+
* pull kinetix back into the SDK. `object` (not `Record<string, unknown>`) so an
|
|
716
|
+
* interface like syncplay's `ReplayFile` — which has no index signature — is
|
|
717
|
+
* assignable at the consumer call site without a cast. The SDK only attaches and
|
|
718
|
+
* size-checks the serialized replay.
|
|
719
|
+
*/
|
|
720
|
+
type LeaderboardReplay = object;
|
|
721
|
+
|
|
714
722
|
interface LeaderboardModeConfig {
|
|
715
723
|
displayName: string;
|
|
716
724
|
minDurationSec?: number;
|
|
@@ -784,7 +792,7 @@ interface SubmitScoreParams {
|
|
|
784
792
|
* `session.exportReplay()`. A replay serializing above the inline cap
|
|
785
793
|
* ({@link REPLAY_INLINE_MAX_BYTES}) is rejected client-side before submitting.
|
|
786
794
|
*/
|
|
787
|
-
replay?:
|
|
795
|
+
replay?: LeaderboardReplay;
|
|
788
796
|
}
|
|
789
797
|
/**
|
|
790
798
|
* Machine-readable reason a submit was not accepted.
|