@hunt-labs/bytekit-sdk 0.11.1 → 0.11.2

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 CHANGED
@@ -10,6 +10,17 @@ today, see [README.md](./README.md), which remains the authoritative usage guide
10
10
 
11
11
  ## [Unreleased]
12
12
 
13
+ ## [0.11.2] - 2026-09-18
14
+
15
+ ### Changed
16
+
17
+ - Regenerated `src/generated/api.d.ts` (#4582): bulk item `billing` is `BillingNode | null`.
18
+ - Regenerated `src/generated/api.d.ts` (#4584): `POST /v1/schema` now rejects slow-path
19
+ rendering options (`wait_until=networkidle`, `delay_ms`, `wait_for_selector`, cookies, custom
20
+ headers) with error code `unsupported_option` instead of `unsupported_url`, still HTTP 400.
21
+ `unsupported_url` is removed from the API and has no other emitter; a client matching on it
22
+ must match `unsupported_option` for this case. Doc comments only; no SDK signature moves.
23
+
13
24
  ## [0.11.1] - 2026-09-17
14
25
 
15
26
  ### Changed
@@ -637,7 +637,7 @@ export interface paths {
637
637
  * @description Fetches `url` and extracts structured JSON conforming to the supplied
638
638
  * JSON Schema (draft 2020-12) using an LLM. Fast-path only — slow-path
639
639
  * rendering options (`wait_until=networkidle`, `delay_ms`,
640
- * `wait_for_selector`) cause a `400 unsupported_url`.
640
+ * `wait_for_selector`) cause a `400 unsupported_option`.
641
641
  *
642
642
  * Dual-axis billing: a fixed per-request credit charge **plus** the
643
643
  * underlying page's bandwidth, billed exactly like `/v1/scrape`. The
@@ -5078,10 +5078,12 @@ export interface operations {
5078
5078
  credits_charged?: number | null;
5079
5079
  /**
5080
5080
  * @description Itemised account of this item's charge — the basis, the named factors
5081
- * that composed the multiplier, and the resulting billed bytes. Omitted
5082
- * for rows that completed before the billing node was persisted.
5081
+ * that composed the multiplier, and the resulting billed bytes. `null`
5082
+ * while `status` is not `completed` — the charge is not final yet, and
5083
+ * the key is present so an item keeps the same shape on every poll.
5084
+ * Omitted for rows that completed before the billing node was persisted.
5083
5085
  */
5084
- billing?: components["schemas"]["BillingNode"];
5086
+ billing?: components["schemas"]["BillingNode"] | null;
5085
5087
  error_code: string | null;
5086
5088
  /** @description Bounded human-readable failure detail. */
5087
5089
  error_message: string | null;
@@ -5781,7 +5783,7 @@ export interface operations {
5781
5783
  };
5782
5784
  };
5783
5785
  };
5784
- /** @description Invalid URL (`invalid_url`), unsupported model (`unsupported_model`), or slow-path URL (`unsupported_url`). */
5786
+ /** @description Invalid URL (`invalid_url`), unsupported model (`unsupported_model`), or unsupported slow-path option (`unsupported_option`). */
5785
5787
  400: {
5786
5788
  headers: {
5787
5789
  [name: string]: unknown;
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.1";
8
+ export declare const SDK_VERSION = "0.11.2";
package/dist/version.js CHANGED
@@ -9,4 +9,4 @@
9
9
  * outbound request carries — see the emit site in `client.ts`. The header name is spelled
10
10
  * only there, so issue #2905's pre-merge gate 1 counts exactly one occurrence in `src/`.
11
11
  */
12
- export const SDK_VERSION = '0.11.1';
12
+ export const SDK_VERSION = '0.11.2';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hunt-labs/bytekit-sdk",
3
- "version": "0.11.1",
3
+ "version": "0.11.2",
4
4
  "description": "Official TypeScript SDK for the ByteKit API",
5
5
  "license": "MIT",
6
6
  "type": "module",