@wvdsh/api 0.1.106 → 0.1.108

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.
@@ -193,6 +193,7 @@ export declare const IFRAME_MESSAGE_TYPE: {
193
193
  readonly OVERLAY_CHANGED: "OverlayChanged";
194
194
  readonly GAMEPLAY_JWT_READY: "GameplayJwtReady";
195
195
  readonly END_SESSION: "EndSession";
196
+ readonly SESSION_EXPIRED: "SessionExpired";
196
197
  readonly TRIGGER_PAYWALL: "TriggerPaywall";
197
198
  readonly LINK_COPIED: "LinkCopied";
198
199
  readonly RECORDING_CHANGED: "RecordingChanged";
@@ -311,6 +312,7 @@ export type IFrameEventPayloadMap = {
311
312
  isMuted: boolean;
312
313
  };
313
314
  [IFRAME_MESSAGE_TYPE.END_SESSION]: void;
315
+ [IFRAME_MESSAGE_TYPE.SESSION_EXPIRED]: void;
314
316
  [IFRAME_MESSAGE_TYPE.GAMEPLAY_JWT_READY]: {
315
317
  gameplayJwt: string;
316
318
  };
@@ -167,6 +167,7 @@ export const IFRAME_MESSAGE_TYPE = {
167
167
  OVERLAY_CHANGED: 'OverlayChanged',
168
168
  GAMEPLAY_JWT_READY: 'GameplayJwtReady',
169
169
  END_SESSION: 'EndSession',
170
+ SESSION_EXPIRED: 'SessionExpired',
170
171
  TRIGGER_PAYWALL: 'TriggerPaywall',
171
172
  LINK_COPIED: 'LinkCopied',
172
173
  RECORDING_CHANGED: 'RecordingChanged',
@@ -20,14 +20,12 @@ export type PublicApiType = {
20
20
  identifier: string;
21
21
  value: number;
22
22
  }>>;
23
- listAchievementIdentifiers: FunctionReference<"query", "public", Record<string, never>, Array<string>>;
24
23
  listGameAchievementIdentifiers: FunctionReference<"query", "public", {
25
24
  gameCloudId: Id<"gameClouds">;
26
25
  }, Array<string>>;
27
26
  listGameStatIdentifiers: FunctionReference<"query", "public", {
28
27
  gameCloudId: Id<"gameClouds">;
29
28
  }, Array<string>>;
30
- listStatIdentifiers: FunctionReference<"query", "public", Record<string, never>, Array<string>>;
31
29
  setUserGameAchievements: FunctionReference<"mutation", "public", {
32
30
  achievements: Array<string>;
33
31
  }, null>;
@@ -102,7 +100,9 @@ export type PublicApiType = {
102
100
  lobbyId: Id<"lobbies">;
103
101
  }, boolean>;
104
102
  listAvailable: FunctionReference<"query", "public", {
105
- filters?: Record<string, any>;
103
+ filters: {
104
+ friendsOnly: true;
105
+ };
106
106
  }, Array<{
107
107
  lobbyId: Id<"lobbies">;
108
108
  maxPlayers: number;
@@ -192,7 +192,7 @@ export type PublicApiType = {
192
192
  totalEntries: number;
193
193
  }>;
194
194
  listEntries: FunctionReference<"query", "public", {
195
- friendsOnly?: boolean;
195
+ friendsOnly: true;
196
196
  leaderboardId: Id<"leaderboards">;
197
197
  limit: number;
198
198
  offset: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wvdsh/api",
3
- "version": "0.1.106",
3
+ "version": "0.1.108",
4
4
  "description": "Public API types and shared constants for the Wavedash platform",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",