scorezilla 0.3.1 → 0.4.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,5 @@
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, A as ApiSuccess, a as SubmitScoreResponse, L as LeaderboardResponse, P as PlayerRankResponse, W as WindowAroundResponse } from './errors-BhPRMQiV.cjs';
2
+ export { R as RankedEntry, e as ScorezillaError, f as ScorezillaErrorCode } from './errors-BhPRMQiV.cjs';
3
3
 
4
4
  /**
5
5
  * Built-in request verifiers for {@link createScoreSubmitHandler} (#211).
@@ -321,7 +321,9 @@ declare class Scorezilla {
321
321
  submitScore(input: SubmitScoreInput): Promise<ApiSuccess<SubmitScoreResponse>>;
322
322
  /** Fetch the top-N entries on a board. */
323
323
  getLeaderboard(input: GetLeaderboardInput): Promise<ApiSuccess<LeaderboardResponse>>;
324
- /** Look up a single player's rank on a board. */
324
+ /** Look up a single player's rank on a board. "No entry yet" returns
325
+ * `{ ranked: false }` (narrow on `ranked`); `not_found` is thrown only for
326
+ * a missing board. */
325
327
  getPlayerRank(input: GetPlayerRankInput): Promise<ApiSuccess<PlayerRankResponse>>;
326
328
  /** Fetch the slice of entries surrounding a player. */
327
329
  getWindowAround(input: GetWindowAroundInput): Promise<ApiSuccess<WindowAroundResponse>>;
package/dist/server.d.ts CHANGED
@@ -1,5 +1,5 @@
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, A as ApiSuccess, a as SubmitScoreResponse, L as LeaderboardResponse, P as PlayerRankResponse, W as WindowAroundResponse } from './errors-BhPRMQiV.js';
2
+ export { R as RankedEntry, e as ScorezillaError, f as ScorezillaErrorCode } from './errors-BhPRMQiV.js';
3
3
 
4
4
  /**
5
5
  * Built-in request verifiers for {@link createScoreSubmitHandler} (#211).
@@ -321,7 +321,9 @@ declare class Scorezilla {
321
321
  submitScore(input: SubmitScoreInput): Promise<ApiSuccess<SubmitScoreResponse>>;
322
322
  /** Fetch the top-N entries on a board. */
323
323
  getLeaderboard(input: GetLeaderboardInput): Promise<ApiSuccess<LeaderboardResponse>>;
324
- /** Look up a single player's rank on a board. */
324
+ /** Look up a single player's rank on a board. "No entry yet" returns
325
+ * `{ ranked: false }` (narrow on `ranked`); `not_found` is thrown only for
326
+ * a missing board. */
325
327
  getPlayerRank(input: GetPlayerRankInput): Promise<ApiSuccess<PlayerRankResponse>>;
326
328
  /** Fetch the slice of entries surrounding a player. */
327
329
  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.4.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),