@hunt-labs/bytekit-sdk 0.11.6 → 0.11.7
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/CHANGELOG.md +9 -0
- package/dist/generated/api.d.ts +14 -5
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,15 @@ today, see [README.md](./README.md), which remains the authoritative usage guide
|
|
|
10
10
|
|
|
11
11
|
## [Unreleased]
|
|
12
12
|
|
|
13
|
+
## [0.11.7] - 2026-09-29
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
- **Internal `GET /v1/billing/topup-balance` types add `bandwidth.debt_bytes` (#4960, #4975).**
|
|
18
|
+
The bytes the account still owes for bandwidth a finished request used beyond everything it
|
|
19
|
+
could pay for, net of any repaid. Declared on that endpoint only, not on the shared
|
|
20
|
+
`BandwidthBalance` schema `GET /v1/usage` returns. No SDK method calls it.
|
|
21
|
+
|
|
13
22
|
## [0.11.6] - 2026-09-24
|
|
14
23
|
|
|
15
24
|
### Changed
|
package/dist/generated/api.d.ts
CHANGED
|
@@ -2838,10 +2838,13 @@ export interface components {
|
|
|
2838
2838
|
* performed. The unified `Error` envelope carries one of the billing codes
|
|
2839
2839
|
* below in `error.code`; match on the code, never on the prose.
|
|
2840
2840
|
*
|
|
2841
|
-
* - `quota_exceeded` — the enforced balance for this request's meter
|
|
2842
|
-
*
|
|
2841
|
+
* - `quota_exceeded` — the enforced balance for this request's meter
|
|
2842
|
+
* cannot fund it. Capture endpoints (`/v1/scrape`, `/v1/fetch`,
|
|
2843
2843
|
* `/v1/screenshots`, `/v1/sitemap` and the bulk siblings) meter
|
|
2844
|
-
* bandwidth
|
|
2844
|
+
* bandwidth: they reject when the balance cannot fund the request's
|
|
2845
|
+
* byte reservation, and `error.details.required_bytes` and
|
|
2846
|
+
* `error.details.available_bytes` report the bytes the request reserves
|
|
2847
|
+
* and the bytes available. `/v1/search` meters credits.
|
|
2845
2848
|
* - `spending_cap_reached` — the request would push overage spend past the
|
|
2846
2849
|
* account's configured cap. Only reachable on a custom overage-enabled
|
|
2847
2850
|
* plan; standard plans stop at `quota_exceeded`.
|
|
@@ -2864,9 +2867,13 @@ export interface components {
|
|
|
2864
2867
|
* "status": "failed",
|
|
2865
2868
|
* "error": {
|
|
2866
2869
|
* "code": "quota_exceeded",
|
|
2867
|
-
* "message": "
|
|
2870
|
+
* "message": "Insufficient bandwidth balance: this request reserves 102400 bytes and 4321 are available.",
|
|
2868
2871
|
* "http_status": 402,
|
|
2869
|
-
* "failed_at": "2026-01-15T12:00:00Z"
|
|
2872
|
+
* "failed_at": "2026-01-15T12:00:00Z",
|
|
2873
|
+
* "details": {
|
|
2874
|
+
* "required_bytes": 102400,
|
|
2875
|
+
* "available_bytes": 4321
|
|
2876
|
+
* }
|
|
2870
2877
|
* }
|
|
2871
2878
|
* }
|
|
2872
2879
|
*/
|
|
@@ -6597,6 +6604,8 @@ export interface operations {
|
|
|
6597
6604
|
bandwidth: components["schemas"]["BandwidthBalance"] & {
|
|
6598
6605
|
/** @description Remaining balance of your subscription allowance: bytes still unspent across all allowance lots, the current period's and any rolled over from earlier periods alike, after active refund reservations. This is a remaining balance and falls to zero as the allowance is drawn down. It is not `included_bytes`, which is the plan's configured grant for a period and does not move as it is spent; do not subtract one from the other. `rollover_bytes` is a subset of this figure. */
|
|
6599
6606
|
remaining_allowance_bytes: number;
|
|
6607
|
+
/** @description Bytes you still owe: bandwidth your finished requests used beyond everything your account could pay for, net of any already paid back. It is reported beside the other bandwidth figures and is not subtracted from `remaining_bytes` or `remaining_allowance_bytes`. 0 when nothing is owed. */
|
|
6608
|
+
debt_bytes: number;
|
|
6600
6609
|
};
|
|
6601
6610
|
credits: components["schemas"]["CreditBalance"];
|
|
6602
6611
|
rates: {
|
package/dist/version.d.ts
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* outbound request carries — see the emit site in `client.ts`. The header name is spelled
|
|
6
6
|
* only there, so issue #2905's pre-merge gate 1 counts exactly one occurrence in `src/`.
|
|
7
7
|
*/
|
|
8
|
-
export declare const SDK_VERSION = "0.11.
|
|
8
|
+
export declare const SDK_VERSION = "0.11.7";
|
package/dist/version.js
CHANGED