scorezilla 0.5.0 → 0.5.1
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/API.md +22 -11
- package/CHANGELOG.md +10 -1
- package/dist/{errors-maldlTY-.d.ts → errors-8qzE40-2.d.ts} +1 -1
- package/dist/{errors-DuRShuw9.d.cts → errors-Bu084BD9.d.cts} +1 -1
- package/dist/headless.cjs +6 -2
- package/dist/headless.cjs.map +1 -1
- package/dist/headless.d.cts +1 -1
- package/dist/headless.d.ts +1 -1
- package/dist/headless.js +6 -2
- package/dist/headless.js.map +1 -1
- package/dist/index.cjs +7 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -4
- package/dist/index.d.ts +8 -4
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/server.cjs +1 -1
- package/dist/server.d.cts +3 -3
- package/dist/server.d.ts +3 -3
- package/dist/server.js +1 -1
- package/dist/{types-C6VO4OWP.d.cts → types-BxxzS_pF.d.cts} +19 -1
- package/dist/{types-C6VO4OWP.d.ts → types-BxxzS_pF.d.ts} +19 -1
- package/package.json +1 -1
|
@@ -97,7 +97,25 @@ type ScorezillaErrorCode = 'unauthorized' | 'forbidden' | 'not_found' | 'invalid
|
|
|
97
97
|
/** 402 Payment Required — tenant exceeded their monthly submission cap, OR
|
|
98
98
|
* the tenant is `'suspended'` (see {@link UsageCapReason}). The error body
|
|
99
99
|
* carries `tier`, `cap`, `count`, `period`, `resetsAt`. */
|
|
100
|
-
| 'usage_cap_exceeded'
|
|
100
|
+
| 'usage_cap_exceeded'
|
|
101
|
+
/** 402 — the board's tenant is suspended. Returned by the READ paths
|
|
102
|
+
* (`getLeaderboard` / `getPlayerRank` / `getWindowAround`); the submit path
|
|
103
|
+
* instead returns `usage_cap_exceeded` with `reason: 'suspended'`. */
|
|
104
|
+
| 'tenant_suspended'
|
|
105
|
+
/** 403 — the player is on this board's denylist (banned by the game owner). */
|
|
106
|
+
| 'player_banned'
|
|
107
|
+
/** 409 — the requested display `name` is already held by a different player. */
|
|
108
|
+
| 'name_taken'
|
|
109
|
+
/** 409 — the board is archived (frozen); writes are rejected. */
|
|
110
|
+
| 'board_archived'
|
|
111
|
+
/** 403 — the board requires a Cloudflare Turnstile token and none was sent. */
|
|
112
|
+
| 'turnstile_required'
|
|
113
|
+
/** 403 — the supplied Turnstile token failed verification. */
|
|
114
|
+
| 'turnstile_failed'
|
|
115
|
+
/** 403 — the Turnstile token was solved on an origin not allowed for this game. */
|
|
116
|
+
| 'turnstile_hostname_mismatch'
|
|
117
|
+
/** 403 — the request Origin is not in the board's embed allowlist. */
|
|
118
|
+
| 'origin_not_allowed' | (string & {});
|
|
101
119
|
/** Reason sub-classifier on `out_of_bounds` errors. Open union — see {@link ScorezillaErrorCode}. */
|
|
102
120
|
type OutOfBoundsReason = 'below_min' | 'above_max' | (string & {});
|
|
103
121
|
/** Reason sub-classifier on `usage_cap_exceeded` errors.
|