@wvdsh/api 0.1.10 → 0.1.12

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> {
@@ -116,7 +117,6 @@ export interface SDKUser {
116
117
  }
117
118
  export interface SDKConfig {
118
119
  convexCloudUrl: string;
119
- convexHttpUrl: string;
120
120
  wavedashUser: SDKUser;
121
121
  gameCloudId: GenericId<'gameClouds'>;
122
122
  ugcHost: string;
@@ -140,6 +140,9 @@ export type IFrameEventPayloadMap = {
140
140
  isFullscreen: boolean;
141
141
  };
142
142
  [IFRAME_MESSAGE_TYPE.END_SESSION]: void;
143
+ [IFRAME_MESSAGE_TYPE.GAMEPLAY_JWT_READY]: {
144
+ gameplayJwt: string;
145
+ };
143
146
  };
144
147
  export interface GameLaunchParams {
145
148
  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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wvdsh/api",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
4
4
  "description": "Public API types and shared constants for the Wavedash platform",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",