scorezilla 0.3.1 → 0.5.0

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.
package/dist/server.d.cts CHANGED
@@ -1,5 +1,6 @@
1
- import { F as FetchImpl, g as SecretKeyConfig, A as ApiSuccess, a as SubmitScoreResponse, L as LeaderboardResponse, P as PlayerRankResponse, W as WindowAroundResponse } from './errors-CWTmormh.cjs';
2
- export { R as RankedEntry, e as ScorezillaError, f as ScorezillaErrorCode } from './errors-CWTmormh.cjs';
1
+ import { F as FetchImpl, g as SecretKeyConfig, b as ApiSuccess, c as SubmitScoreResponse, L as LeaderboardResponse, d as PlayerRankResponse, W as WindowAroundResponse } from './types-C6VO4OWP.cjs';
2
+ export { R as RankedEntry, S as ScorezillaErrorCode } from './types-C6VO4OWP.cjs';
3
+ export { S as ScorezillaError } from './errors-DuRShuw9.cjs';
3
4
 
4
5
  /**
5
6
  * Built-in request verifiers for {@link createScoreSubmitHandler} (#211).
@@ -321,7 +322,9 @@ declare class Scorezilla {
321
322
  submitScore(input: SubmitScoreInput): Promise<ApiSuccess<SubmitScoreResponse>>;
322
323
  /** Fetch the top-N entries on a board. */
323
324
  getLeaderboard(input: GetLeaderboardInput): Promise<ApiSuccess<LeaderboardResponse>>;
324
- /** Look up a single player's rank on a board. */
325
+ /** Look up a single player's rank on a board. "No entry yet" returns
326
+ * `{ ranked: false }` (narrow on `ranked`); `not_found` is thrown only for
327
+ * a missing board. */
325
328
  getPlayerRank(input: GetPlayerRankInput): Promise<ApiSuccess<PlayerRankResponse>>;
326
329
  /** Fetch the slice of entries surrounding a player. */
327
330
  getWindowAround(input: GetWindowAroundInput): Promise<ApiSuccess<WindowAroundResponse>>;
package/dist/server.d.ts CHANGED
@@ -1,5 +1,6 @@
1
- import { F as FetchImpl, g as SecretKeyConfig, A as ApiSuccess, a as SubmitScoreResponse, L as LeaderboardResponse, P as PlayerRankResponse, W as WindowAroundResponse } from './errors-CWTmormh.js';
2
- export { R as RankedEntry, e as ScorezillaError, f as ScorezillaErrorCode } from './errors-CWTmormh.js';
1
+ import { F as FetchImpl, g as SecretKeyConfig, b as ApiSuccess, c as SubmitScoreResponse, L as LeaderboardResponse, d as PlayerRankResponse, W as WindowAroundResponse } from './types-C6VO4OWP.js';
2
+ export { R as RankedEntry, S as ScorezillaErrorCode } from './types-C6VO4OWP.js';
3
+ export { S as ScorezillaError } from './errors-maldlTY-.js';
3
4
 
4
5
  /**
5
6
  * Built-in request verifiers for {@link createScoreSubmitHandler} (#211).
@@ -321,7 +322,9 @@ declare class Scorezilla {
321
322
  submitScore(input: SubmitScoreInput): Promise<ApiSuccess<SubmitScoreResponse>>;
322
323
  /** Fetch the top-N entries on a board. */
323
324
  getLeaderboard(input: GetLeaderboardInput): Promise<ApiSuccess<LeaderboardResponse>>;
324
- /** Look up a single player's rank on a board. */
325
+ /** Look up a single player's rank on a board. "No entry yet" returns
326
+ * `{ ranked: false }` (narrow on `ranked`); `not_found` is thrown only for
327
+ * a missing board. */
325
328
  getPlayerRank(input: GetPlayerRankInput): Promise<ApiSuccess<PlayerRankResponse>>;
326
329
  /** Fetch the slice of entries surrounding a player. */
327
330
  getWindowAround(input: GetWindowAroundInput): Promise<ApiSuccess<WindowAroundResponse>>;
package/dist/server.js CHANGED
@@ -857,7 +857,7 @@ var Scorezilla = class _Scorezilla {
857
857
  * Mirrors the static on the public-key client so consumers can log
858
858
  * the running SDK build the same way regardless of which surface
859
859
  * they imported. */
860
- static version = "0.3.1";
860
+ static version = "0.5.0";
861
861
  #keyId;
862
862
  #secret;
863
863
  #baseUrl;
@@ -932,7 +932,9 @@ var Scorezilla = class _Scorezilla {
932
932
  signal: input.signal
933
933
  });
934
934
  }
935
- /** Look up a single player's rank on a board. */
935
+ /** Look up a single player's rank on a board. "No entry yet" returns
936
+ * `{ ranked: false }` (narrow on `ranked`); `not_found` is thrown only for
937
+ * a missing board. */
936
938
  async getPlayerRank(input) {
937
939
  return this.#request({
938
940
  path: getPlayerRankPath(input.boardId, input.playerId),