@hunt-labs/bytekit-sdk 0.11.11 → 0.11.12
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 +17 -0
- package/dist/generated/api.d.ts +2 -2
- 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,23 @@ today, see [README.md](./README.md), which remains the authoritative usage guide
|
|
|
10
10
|
|
|
11
11
|
## [Unreleased]
|
|
12
12
|
|
|
13
|
+
## [0.11.12] - 2026-10-20
|
|
14
|
+
|
|
15
|
+
### Added
|
|
16
|
+
|
|
17
|
+
- **`ScrapeJsonFormat` is now exported from the package entry (#5455).** The type of the
|
|
18
|
+
`{ type: 'json', schema, model?, prompt? }` entry in `ScrapeOpts['formats']`, which the
|
|
19
|
+
`scrape.create` reference already names, was module-private; it now imports from
|
|
20
|
+
`@hunt-labs/bytekit-sdk`. Type-only; no runtime or method signature moves.
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
|
|
24
|
+
- **`artifact_warnings` on a `/v1/bulk/{id}/screenshots` scrape item now documents the extraction
|
|
25
|
+
warnings (#5458).** The field also carries the `json` extraction's own warning codes
|
|
26
|
+
(whether or not the output validated), after any `artifact_unavailable` entry; its description said it reported
|
|
27
|
+
artifact reference failures only. Regenerated `src/generated/api.d.ts`; description text only,
|
|
28
|
+
no SDK method signature moves.
|
|
29
|
+
|
|
13
30
|
## [0.11.11] - 2026-10-14
|
|
14
31
|
|
|
15
32
|
### Changed
|
package/dist/generated/api.d.ts
CHANGED
|
@@ -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.12";
|
package/dist/version.js
CHANGED