@wvdsh/api 0.1.59 → 0.1.60

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.
@@ -132,6 +132,7 @@ export declare const IFRAME_MESSAGE_TYPE: {
132
132
  readonly GAMEPLAY_JWT_READY: "GameplayJwtReady";
133
133
  readonly END_SESSION: "EndSession";
134
134
  readonly TRIGGER_PAYWALL: "TriggerPaywall";
135
+ readonly ENTITLEMENTS_GRANTED: "EntitlementsGranted";
135
136
  readonly LINK_COPIED: "LinkCopied";
136
137
  };
137
138
  export declare const SERVICE_WORKER_MESSAGE_TYPE: {
@@ -199,6 +200,9 @@ export type IFrameEventPayloadMap = {
199
200
  [IFRAME_MESSAGE_TYPE.TRIGGER_PAYWALL]: {
200
201
  purchased: boolean;
201
202
  };
203
+ [IFRAME_MESSAGE_TYPE.ENTITLEMENTS_GRANTED]: {
204
+ contentIdentifiers: string[];
205
+ };
202
206
  };
203
207
  export interface GameLaunchParams {
204
208
  lobby?: GenericId<'lobbies'>;
@@ -113,6 +113,7 @@ export const IFRAME_MESSAGE_TYPE = {
113
113
  GAMEPLAY_JWT_READY: 'GameplayJwtReady',
114
114
  END_SESSION: 'EndSession',
115
115
  TRIGGER_PAYWALL: 'TriggerPaywall',
116
+ ENTITLEMENTS_GRANTED: 'EntitlementsGranted',
116
117
  LINK_COPIED: 'LinkCopied'
117
118
  };
118
119
  export const SERVICE_WORKER_MESSAGE_TYPE = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wvdsh/api",
3
- "version": "0.1.59",
3
+ "version": "0.1.60",
4
4
  "description": "Public API types and shared constants for the Wavedash platform",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",