@wvdsh/api 0.1.10 → 0.1.11
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.
|
@@ -102,6 +102,7 @@ export declare const IFRAME_MESSAGE_TYPE: {
|
|
|
102
102
|
readonly SET_FULLSCREEN: "SetFullscreen";
|
|
103
103
|
readonly TOGGLE_FULLSCREEN: "ToggleFullscreen";
|
|
104
104
|
readonly FULLSCREEN_CHANGED: "FullscreenChanged";
|
|
105
|
+
readonly GAMEPLAY_JWT_READY: "GameplayJwtReady";
|
|
105
106
|
readonly END_SESSION: "EndSession";
|
|
106
107
|
};
|
|
107
108
|
export interface IFrameResponse<T> {
|
|
@@ -140,6 +141,9 @@ export type IFrameEventPayloadMap = {
|
|
|
140
141
|
isFullscreen: boolean;
|
|
141
142
|
};
|
|
142
143
|
[IFRAME_MESSAGE_TYPE.END_SESSION]: void;
|
|
144
|
+
[IFRAME_MESSAGE_TYPE.GAMEPLAY_JWT_READY]: {
|
|
145
|
+
gameplayJwt: string;
|
|
146
|
+
};
|
|
143
147
|
};
|
|
144
148
|
export interface GameLaunchParams {
|
|
145
149
|
lobby?: GenericId<'lobbies'>;
|
|
@@ -79,6 +79,7 @@ export const IFRAME_MESSAGE_TYPE = {
|
|
|
79
79
|
SET_FULLSCREEN: 'SetFullscreen',
|
|
80
80
|
TOGGLE_FULLSCREEN: 'ToggleFullscreen',
|
|
81
81
|
FULLSCREEN_CHANGED: 'FullscreenChanged',
|
|
82
|
+
GAMEPLAY_JWT_READY: 'GameplayJwtReady',
|
|
82
83
|
END_SESSION: 'EndSession'
|
|
83
84
|
};
|
|
84
85
|
// URL params referenced by external consumers
|