@hunt-labs/bytekit-sdk 0.11.11 → 0.11.13
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 +28 -0
- package/dist/generated/api.d.ts +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/resources/scrape.d.ts +1 -1
- 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,34 @@ today, see [README.md](./README.md), which remains the authoritative usage guide
|
|
|
10
10
|
|
|
11
11
|
## [Unreleased]
|
|
12
12
|
|
|
13
|
+
## [0.11.13] - 2026-10-21
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
- **The scrape envelope's `warnings` description now names the `json` extraction codes (#5469).**
|
|
18
|
+
A request carrying a `json` format can get `extract_validation_failed`, `exhausted_retries`,
|
|
19
|
+
`content_truncated`, `model_refusal` and `empty_extraction` in `warnings`, without
|
|
20
|
+
`markdown_include_warnings`, whether or not the extraction validated; the description listed only
|
|
21
|
+
markdown-pipeline, tag-filter and `artifact_unavailable` warnings. Regenerated
|
|
22
|
+
`src/generated/api.d.ts`; description text only, no SDK method signature moves.
|
|
23
|
+
|
|
24
|
+
## [0.11.12] - 2026-10-20
|
|
25
|
+
|
|
26
|
+
### Added
|
|
27
|
+
|
|
28
|
+
- **`ScrapeJsonFormat` is now exported from the package entry (#5455).** The type of the
|
|
29
|
+
`{ type: 'json', schema, model?, prompt? }` entry in `ScrapeOpts['formats']`, which the
|
|
30
|
+
`scrape.create` reference already names, was module-private; it now imports from
|
|
31
|
+
`@hunt-labs/bytekit-sdk`. Type-only; no runtime or method signature moves.
|
|
32
|
+
|
|
33
|
+
### Changed
|
|
34
|
+
|
|
35
|
+
- **`artifact_warnings` on a `/v1/bulk/{id}/screenshots` scrape item now documents the extraction
|
|
36
|
+
warnings (#5458).** The field also carries the `json` extraction's own warning codes
|
|
37
|
+
(whether or not the output validated), after any `artifact_unavailable` entry; its description said it reported
|
|
38
|
+
artifact reference failures only. Regenerated `src/generated/api.d.ts`; description text only,
|
|
39
|
+
no SDK method signature moves.
|
|
40
|
+
|
|
13
41
|
## [0.11.11] - 2026-10-14
|
|
14
42
|
|
|
15
43
|
### Changed
|
package/dist/generated/api.d.ts
CHANGED
|
@@ -2139,7 +2139,7 @@ export interface components {
|
|
|
2139
2139
|
metadata: components["schemas"]["ScrapeMetadata"];
|
|
2140
2140
|
/** @description Tables extracted from the page. Present only when markdown_include_media=true. Present only on the synchronous response and webhook delivery. Not included in `GET /v1/scrape/:id`, bulk results, or cached hits. */
|
|
2141
2141
|
tables?: components["schemas"]["ScrapeTable"][];
|
|
2142
|
-
/** @description Warnings about markdown processing, tag filtering,
|
|
2142
|
+
/** @description Warnings about markdown processing, tag filtering, requested persisted artifacts, or the `json` format's extraction. Markdown-pipeline and tag-filter warnings require `markdown_include_warnings=true`; `artifact_unavailable` may appear independently when a requested persisted format cannot be rehydrated. A request carrying a `json` format can also get the extraction's own warning codes here (`extract_validation_failed`, `exhausted_retries`, `content_truncated`, `model_refusal`, `empty_extraction`), whether or not `markdown_include_warnings` is set and whether or not the extraction validated: `content_truncated` can accompany a validated result, so a warning here does not by itself mean the extraction failed. */
|
|
2143
2143
|
warnings?: components["schemas"]["ScrapeWarning"][];
|
|
2144
2144
|
/** @description Processing stats. Present only when markdown_include_stats=true. Present only on the synchronous response and webhook delivery. Not included in `GET /v1/scrape/:id`, bulk results, or cached hits. */
|
|
2145
2145
|
stats?: components["schemas"]["ScrapeStats"];
|
|
@@ -5716,7 +5716,7 @@ export interface operations {
|
|
|
5716
5716
|
markdown?: string | null;
|
|
5717
5717
|
/** @description `type: scrape` only. Pre-signed download URL for the markdown rendering of the page, valid for 600 seconds (10 minutes) from the moment this response was generated — the same signing TTL as `content_url` and `image_url` above. A new signature is minted on every poll for a completed item with a markdown key. For every other item the stored value is returned unchanged — `null` while no markdown has been stored, and otherwise a private, unsigned storage URL that returns 401 on download. No `artifact_warnings` entry is raised for this field; unlike `GET /v1/fetch/bulk/{id}`, this endpoint reports no `artifact_unavailable` when signing fails. */
|
|
5718
5718
|
markdown_url?: string | null;
|
|
5719
|
-
/** @description `type: scrape` only. Exact requested artifact values or signed references. `raw`, `markdown`, `links` and `images` are always present; unrequested or unavailable values are null, with nonfatal
|
|
5719
|
+
/** @description `type: scrape` only. Exact requested artifact values or signed references. `raw`, `markdown`, `links` and `images` are always present; unrequested or unavailable values are null, with nonfatal warnings in `artifact_warnings`. `json` is present only on an item that requested a `json` format. */
|
|
5720
5720
|
artifacts?: {
|
|
5721
5721
|
raw: string | null;
|
|
5722
5722
|
markdown: string | null;
|
|
@@ -5727,7 +5727,7 @@ export interface operations {
|
|
|
5727
5727
|
links: null | (string | components["schemas"]["ScrapeScoredLink"])[];
|
|
5728
5728
|
images: null | (string | components["schemas"]["ScrapeScoredImage"])[];
|
|
5729
5729
|
};
|
|
5730
|
-
/** @description Nonfatal
|
|
5730
|
+
/** @description Nonfatal warnings for this scrape item. An `artifact_unavailable` entry reports a requested artifact whose reference failed, and comes first. For a `json` format, the extraction's own warning codes follow, with `element: null`, whether or not the output validated (`content_truncated` can accompany a validated result); `artifacts.json` is still returned as stored. */
|
|
5731
5731
|
artifact_warnings?: components["schemas"]["ScrapeWarning"][];
|
|
5732
5732
|
} | {
|
|
5733
5733
|
/** @description Prefixed id — `ss_` / `rec_` / `sc_` per `type`. The same stable identity the ordinary item carries. */
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export type { ByteKitOptions, RequestOptions, ApiResponse, ConnectionErrorCode,
|
|
|
3
3
|
export { V01_METHODS } from './allowlist.js';
|
|
4
4
|
export type { V01Method } from './allowlist.js';
|
|
5
5
|
export type { ScrapeId, ScreenshotId, BulkId, MonitorId, SitemapId, ApiKeyId, WebhookDeliveryId, SearchType, SearchDateRange, SearchOpts, SearchResult, SearchResultImage, SearchResponse, } from './types.js';
|
|
6
|
-
export type { ScrapeOpts, MarkdownMode, MarkdownLinks, MarkdownImages, TokenEncoding, ScrapeCreateResponse, ScrapeGetResponse, ScrapeBulkCreateRequest, ScrapeBulkCreateResponse, ScrapeBulkGetResponse, } from './resources/scrape.js';
|
|
6
|
+
export type { ScrapeOpts, MarkdownMode, MarkdownLinks, MarkdownImages, TokenEncoding, ScrapeJsonFormat, ScrapeCreateResponse, ScrapeGetResponse, ScrapeBulkCreateRequest, ScrapeBulkCreateResponse, ScrapeBulkGetResponse, } from './resources/scrape.js';
|
|
7
7
|
export type { ScreenshotCreateRequest, ScreenshotCreateResponse, ScreenshotGetResponse, } from './resources/screenshots.js';
|
|
8
8
|
export type { FetchOpts, FetchGetOpts, FetchResult, FetchCacheStatus, FetchBulkCreateRequest, FetchBulkCreateResponse, FetchBulkGetResponse, } from './resources/fetch.js';
|
|
9
9
|
export type { MonitorCreateRequest, MonitorCreateResponse, ListMonitorsParams, MonitorStatus, ListMonitorsResponse, MonitorResponse, MonitorUpdateRequest, UpdateMonitorResponse, ListMonitorCapturesResponse, } from './resources/monitors.js';
|
|
@@ -49,7 +49,7 @@ export type MarkdownImages = 'inline' | 'references' | 'none' | 'text';
|
|
|
49
49
|
/** Tokenizer encoding hint for `token_budget`. */
|
|
50
50
|
export type TokenEncoding = 'cl100k_base' | 'o200k_base';
|
|
51
51
|
/** The `{ type: 'json', schema }` entry of `formats`, typed from the spec. */
|
|
52
|
-
type ScrapeJsonFormat = components['schemas']['ScrapeRequestJsonFormat'];
|
|
52
|
+
export type ScrapeJsonFormat = components['schemas']['ScrapeRequestJsonFormat'];
|
|
53
53
|
/** Options for POST /v1/scrape. */
|
|
54
54
|
export interface ScrapeOpts {
|
|
55
55
|
url: string;
|
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.13";
|
package/dist/version.js
CHANGED