@wvdsh/api 0.1.102 → 0.1.103
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.
|
@@ -183,7 +183,6 @@ export declare const IFRAME_MESSAGE_TYPE: {
|
|
|
183
183
|
readonly LOBBY_LEFT: "LobbyLeft";
|
|
184
184
|
readonly GET_LOBBY_INVITE_LINK: "GetLobbyInviteLink";
|
|
185
185
|
readonly GET_DEVICE_FINGERPRINT: "GetDeviceFingerprint";
|
|
186
|
-
readonly GET_GAMEPLAY_ATTRIBUTION: "GetGameplayAttribution";
|
|
187
186
|
readonly SET_FULLSCREEN: "SetFullscreen";
|
|
188
187
|
readonly TOGGLE_FULLSCREEN: "ToggleFullscreen";
|
|
189
188
|
readonly FULLSCREEN_CHANGED: "FullscreenChanged";
|
|
@@ -234,7 +233,7 @@ export interface SDKConfig {
|
|
|
234
233
|
pageViewId?: string;
|
|
235
234
|
recordingHotkey?: string;
|
|
236
235
|
}
|
|
237
|
-
export type IframeResponseMessageTypes = typeof IFRAME_MESSAGE_TYPE.GET_LOBBY_INVITE_LINK | typeof IFRAME_MESSAGE_TYPE.GET_DEVICE_FINGERPRINT | typeof IFRAME_MESSAGE_TYPE.
|
|
236
|
+
export type IframeResponseMessageTypes = typeof IFRAME_MESSAGE_TYPE.GET_LOBBY_INVITE_LINK | typeof IFRAME_MESSAGE_TYPE.GET_DEVICE_FINGERPRINT | typeof IFRAME_MESSAGE_TYPE.SET_FULLSCREEN | typeof IFRAME_MESSAGE_TYPE.TOGGLE_FULLSCREEN | typeof IFRAME_MESSAGE_TYPE.SET_MUTE | typeof IFRAME_MESSAGE_TYPE.TOGGLE_MUTE | typeof IFRAME_MESSAGE_TYPE.TRIGGER_PAYWALL;
|
|
238
237
|
export type RecordingCompletePayload = {
|
|
239
238
|
success: true;
|
|
240
239
|
recordingId?: number;
|
|
@@ -263,9 +262,6 @@ export type IFrameEventPayloadMap = {
|
|
|
263
262
|
[IFRAME_MESSAGE_TYPE.TAKE_FOCUS]: void;
|
|
264
263
|
[IFRAME_MESSAGE_TYPE.GET_LOBBY_INVITE_LINK]: string;
|
|
265
264
|
[IFRAME_MESSAGE_TYPE.GET_DEVICE_FINGERPRINT]: DeviceFingerprint;
|
|
266
|
-
[IFRAME_MESSAGE_TYPE.GET_GAMEPLAY_ATTRIBUTION]: {
|
|
267
|
-
pageViewId: string;
|
|
268
|
-
};
|
|
269
265
|
[IFRAME_MESSAGE_TYPE.SET_FULLSCREEN]: {
|
|
270
266
|
success: boolean;
|
|
271
267
|
};
|
|
@@ -157,7 +157,6 @@ export const IFRAME_MESSAGE_TYPE = {
|
|
|
157
157
|
LOBBY_LEFT: 'LobbyLeft',
|
|
158
158
|
GET_LOBBY_INVITE_LINK: 'GetLobbyInviteLink',
|
|
159
159
|
GET_DEVICE_FINGERPRINT: 'GetDeviceFingerprint',
|
|
160
|
-
GET_GAMEPLAY_ATTRIBUTION: 'GetGameplayAttribution',
|
|
161
160
|
SET_FULLSCREEN: 'SetFullscreen',
|
|
162
161
|
TOGGLE_FULLSCREEN: 'ToggleFullscreen',
|
|
163
162
|
FULLSCREEN_CHANGED: 'FullscreenChanged',
|
|
@@ -119,16 +119,6 @@ export type PublicApiType = {
|
|
|
119
119
|
playerCount: number;
|
|
120
120
|
visibility: 0 | 1 | 2;
|
|
121
121
|
}>>;
|
|
122
|
-
lobbyMessages: FunctionReference<"query", "public", {
|
|
123
|
-
lobbyId: Id<"lobbies">;
|
|
124
|
-
}, Array<{
|
|
125
|
-
lobbyId: Id<"lobbies">;
|
|
126
|
-
message: string;
|
|
127
|
-
messageId: Id<"lobbyMessages">;
|
|
128
|
-
timestamp: number;
|
|
129
|
-
userId: Id<"users">;
|
|
130
|
-
username: string;
|
|
131
|
-
}>>;
|
|
132
122
|
lobbyUsers: FunctionReference<"query", "public", {
|
|
133
123
|
lobbyId: Id<"lobbies">;
|
|
134
124
|
}, Array<{
|
|
@@ -280,7 +270,7 @@ export type PublicApiType = {
|
|
|
280
270
|
};
|
|
281
271
|
p2pSignaling: {
|
|
282
272
|
getSignalingMessages: FunctionReference<"query", "public", {
|
|
283
|
-
after
|
|
273
|
+
after: bigint;
|
|
284
274
|
lobbyId: Id<"lobbies">;
|
|
285
275
|
}, Array<{
|
|
286
276
|
_creationTime: number;
|
|
@@ -303,19 +293,6 @@ export type PublicApiType = {
|
|
|
303
293
|
};
|
|
304
294
|
presence: {
|
|
305
295
|
heartbeat: FunctionReference<"mutation", "public", {
|
|
306
|
-
attribution?: {
|
|
307
|
-
embedAncestors?: Array<string>;
|
|
308
|
-
navigation?: {
|
|
309
|
-
campaign?: "continue_playing" | "recommended" | "trending" | "feed" | "category" | "search_results" | "more_from_developer" | "more_like_this" | "profile_games" | "profile_collection" | "team_games" | "friend_playing" | "notifications" | "invitations" | "embed";
|
|
310
|
-
fromPageViewId: string;
|
|
311
|
-
position?: number;
|
|
312
|
-
source: string;
|
|
313
|
-
term?: string;
|
|
314
|
-
};
|
|
315
|
-
pageViewId: string;
|
|
316
|
-
referrer?: string;
|
|
317
|
-
trackingParams?: Record<string, string>;
|
|
318
|
-
};
|
|
319
296
|
data?: Record<string, string | number | boolean | null>;
|
|
320
297
|
deviceFingerprint?: {
|
|
321
298
|
browser?: string;
|