@hunt-labs/bytekit-sdk 0.1.0 → 0.2.0
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/LICENSE +21 -0
- package/README.md +171 -0
- package/dist/allowlist.d.ts +0 -1
- package/dist/allowlist.js +0 -1
- package/dist/client.d.ts +62 -3
- package/dist/client.js +194 -4
- package/dist/generated/api.d.ts +6607 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.js +1 -2
- package/dist/resources/account.d.ts +51 -9
- package/dist/resources/account.js +18 -3
- package/dist/resources/bulk.d.ts +0 -1
- package/dist/resources/bulk.js +0 -1
- package/dist/resources/fetch.d.ts +0 -1
- package/dist/resources/fetch.js +0 -1
- package/dist/resources/monitors.d.ts +0 -1
- package/dist/resources/monitors.js +0 -1
- package/dist/resources/recordings.d.ts +0 -1
- package/dist/resources/recordings.js +0 -1
- package/dist/resources/scrape.d.ts +50 -8
- package/dist/resources/scrape.js +30 -7
- package/dist/resources/screenshots.d.ts +54 -4
- package/dist/resources/screenshots.js +6 -2
- package/dist/resources/search.d.ts +0 -1
- package/dist/resources/search.js +0 -1
- package/dist/resources/sitemap.d.ts +0 -1
- package/dist/resources/sitemap.js +0 -1
- package/dist/test-helpers/signal-aware-never-resolver.d.ts +9 -0
- package/dist/test-helpers/signal-aware-never-resolver.js +25 -0
- package/dist/types.d.ts +0 -1
- package/dist/types.js +0 -1
- package/package.json +26 -5
- package/dist/allowlist.d.ts.map +0 -1
- package/dist/allowlist.js.map +0 -1
- package/dist/client.d.ts.map +0 -1
- package/dist/client.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/resources/account.d.ts.map +0 -1
- package/dist/resources/account.js.map +0 -1
- package/dist/resources/bulk.d.ts.map +0 -1
- package/dist/resources/bulk.js.map +0 -1
- package/dist/resources/fetch.d.ts.map +0 -1
- package/dist/resources/fetch.js.map +0 -1
- package/dist/resources/monitors.d.ts.map +0 -1
- package/dist/resources/monitors.js.map +0 -1
- package/dist/resources/recordings.d.ts.map +0 -1
- package/dist/resources/recordings.js.map +0 -1
- package/dist/resources/scrape.d.ts.map +0 -1
- package/dist/resources/scrape.js.map +0 -1
- package/dist/resources/screenshots.d.ts.map +0 -1
- package/dist/resources/screenshots.js.map +0 -1
- package/dist/resources/search.d.ts.map +0 -1
- package/dist/resources/search.js.map +0 -1
- package/dist/resources/sitemap.d.ts.map +0 -1
- package/dist/resources/sitemap.js.map +0 -1
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
export { RapidCrawl, RapidCrawlError } from './client.js';
|
|
2
|
-
export type { RapidCrawlOptions } from './client.js';
|
|
1
|
+
export { RapidCrawl, RapidCrawlError, RapidCrawlConnectionError } from './client.js';
|
|
2
|
+
export type { RapidCrawlOptions, RequestOptions, ConnectionErrorCode } from './client.js';
|
|
3
3
|
export { V01_METHODS } from './allowlist.js';
|
|
4
4
|
export type { V01Method } from './allowlist.js';
|
|
5
5
|
export type { ScrapeId, ScreenshotId, RecordingId, BulkId, MonitorId, SitemapId, ApiKeyId, SearchType, SearchDateRange, SearchOpts, SearchResult, SearchResultImage, SearchResponse, } from './types.js';
|
|
6
|
-
|
|
6
|
+
export type { ScrapeCreateResponse, ScrapeGetResponse, ScrapeBulkCreateRequest, ScrapeBulkCreateResponse, ScrapeBulkGetResponse, } from './resources/scrape.js';
|
|
7
|
+
export type { ScreenshotCreateRequest, ScreenshotCreateResponse, ScreenshotGetResponse, } from './resources/screenshots.js';
|
|
8
|
+
export type { GetAccountResponse, ListApiKeysResponse, CreateApiKeyRequest, CreateApiKeyResponse, GetApiKeyResponse, UpdateApiKeyRequest, UpdateApiKeyResponse, RevealApiKeyResponse, } from './resources/account.js';
|
package/dist/index.js
CHANGED
|
@@ -6,28 +6,70 @@ import type { ApiKeyId } from '../types.js';
|
|
|
6
6
|
* Derived from the generated OpenAPI types so it stays in sync with the spec.
|
|
7
7
|
*/
|
|
8
8
|
export type RevealApiKeyResponse = operations['revealApiKey']['responses'][200]['content']['application/json'];
|
|
9
|
+
/**
|
|
10
|
+
* 200 payload of GET /v1/account.
|
|
11
|
+
*
|
|
12
|
+
* The endpoint is dual-auth (Bearer API key *or* Clerk session), so the spec
|
|
13
|
+
* declares a union of both arms. The SDK always authenticates with a Bearer API
|
|
14
|
+
* key, so at runtime this is always the `AccountBearerResponse` arm — the union
|
|
15
|
+
* is kept because it mirrors the OpenAPI operation exactly. Narrow before
|
|
16
|
+
* reading arm-specific fields.
|
|
17
|
+
*/
|
|
18
|
+
export type GetAccountResponse = operations['getAccount']['responses'][200]['content']['application/json'];
|
|
19
|
+
/** 200 payload of GET /v1/account/api-keys — `{ data: ApiKeyResponse[] }`. */
|
|
20
|
+
export type ListApiKeysResponse = operations['listApiKeys']['responses'][200]['content']['application/json'];
|
|
21
|
+
/**
|
|
22
|
+
* Body of POST /v1/account/api-keys.
|
|
23
|
+
*
|
|
24
|
+
* The spec declares `requestBody` itself as optional (`requestBody?`), hence the
|
|
25
|
+
* `NonNullable<…>` unwrap — and hence `create(opts?)` takes no argument at all.
|
|
26
|
+
*/
|
|
27
|
+
export type CreateApiKeyRequest = NonNullable<operations['createApiKey']['requestBody']>['content']['application/json'];
|
|
28
|
+
/** 201 payload of POST /v1/account/api-keys. NOTE: the success code is 201, not 200. */
|
|
29
|
+
export type CreateApiKeyResponse = operations['createApiKey']['responses'][201]['content']['application/json'];
|
|
30
|
+
/** 200 payload of GET /v1/account/api-keys/{id}. */
|
|
31
|
+
export type GetApiKeyResponse = operations['getApiKey']['responses'][200]['content']['application/json'];
|
|
32
|
+
/** Body of PATCH /v1/account/api-keys/{id}. */
|
|
33
|
+
export type UpdateApiKeyRequest = operations['updateApiKey']['requestBody']['content']['application/json'];
|
|
34
|
+
/** 200 payload of PATCH /v1/account/api-keys/{id}. */
|
|
35
|
+
export type UpdateApiKeyResponse = operations['updateApiKey']['responses'][200]['content']['application/json'];
|
|
9
36
|
export declare class AccountResource {
|
|
10
37
|
private readonly client;
|
|
11
38
|
readonly apiKeys: ApiKeysResource;
|
|
12
39
|
constructor(client: RapidCrawl);
|
|
13
40
|
/** GET /v1/account — get the authenticated account */
|
|
14
|
-
get(): Promise<
|
|
41
|
+
get(): Promise<GetAccountResponse>;
|
|
15
42
|
}
|
|
16
43
|
declare class ApiKeysResource {
|
|
17
44
|
private readonly client;
|
|
18
45
|
constructor(client: RapidCrawl);
|
|
19
|
-
/**
|
|
20
|
-
|
|
46
|
+
/**
|
|
47
|
+
* POST /v1/account/api-keys — create a new API key.
|
|
48
|
+
*
|
|
49
|
+
* `opts` is optional: the spec declares the request body itself as optional,
|
|
50
|
+
* so `create()` with no arguments is valid and sends no body.
|
|
51
|
+
*/
|
|
52
|
+
create(opts?: CreateApiKeyRequest): Promise<CreateApiKeyResponse>;
|
|
21
53
|
/** GET /v1/account/api-keys — list all API keys for the account */
|
|
22
|
-
list(): Promise<
|
|
54
|
+
list(): Promise<ListApiKeysResponse>;
|
|
23
55
|
/** GET /v1/account/api-keys/{id} — get an API key by ID */
|
|
24
|
-
get(id: ApiKeyId): Promise<
|
|
56
|
+
get(id: ApiKeyId): Promise<GetApiKeyResponse>;
|
|
25
57
|
/** PATCH /v1/account/api-keys/{id} — update an API key */
|
|
26
|
-
update(id: ApiKeyId, opts:
|
|
27
|
-
/**
|
|
28
|
-
|
|
58
|
+
update(id: ApiKeyId, opts: UpdateApiKeyRequest): Promise<UpdateApiKeyResponse>;
|
|
59
|
+
/**
|
|
60
|
+
* DELETE /v1/account/api-keys/{id} — revoke an API key (idempotent).
|
|
61
|
+
*
|
|
62
|
+
* Returns 204 No Content: `operations['revokeApiKey']['responses'][204]`
|
|
63
|
+
* declares `content?: never`, so there is no JSON arm to derive a payload
|
|
64
|
+
* from — hence `Promise<void>`.
|
|
65
|
+
*
|
|
66
|
+
* KNOWN DRIFT: `client.request()` calls `response.json()` unconditionally,
|
|
67
|
+
* which throws on the gateway's empty 204 body — so this method currently
|
|
68
|
+
* rejects at runtime. The fix belongs in `client.ts` (tracked separately);
|
|
69
|
+
* typing it here states the intended contract rather than encoding the bug.
|
|
70
|
+
*/
|
|
71
|
+
revoke(id: ApiKeyId): Promise<void>;
|
|
29
72
|
/** POST /v1/account/api-keys/{id}/reveal — reveal the plaintext API key value */
|
|
30
73
|
reveal(id: ApiKeyId): Promise<RevealApiKeyResponse>;
|
|
31
74
|
}
|
|
32
75
|
export {};
|
|
33
|
-
//# sourceMappingURL=account.d.ts.map
|
|
@@ -15,7 +15,12 @@ class ApiKeysResource {
|
|
|
15
15
|
constructor(client) {
|
|
16
16
|
this.client = client;
|
|
17
17
|
}
|
|
18
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* POST /v1/account/api-keys — create a new API key.
|
|
20
|
+
*
|
|
21
|
+
* `opts` is optional: the spec declares the request body itself as optional,
|
|
22
|
+
* so `create()` with no arguments is valid and sends no body.
|
|
23
|
+
*/
|
|
19
24
|
create(opts) {
|
|
20
25
|
return this.client.request('POST', '/v1/account/api-keys', opts);
|
|
21
26
|
}
|
|
@@ -31,7 +36,18 @@ class ApiKeysResource {
|
|
|
31
36
|
update(id, opts) {
|
|
32
37
|
return this.client.request('PATCH', `/v1/account/api-keys/${id}`, opts);
|
|
33
38
|
}
|
|
34
|
-
/**
|
|
39
|
+
/**
|
|
40
|
+
* DELETE /v1/account/api-keys/{id} — revoke an API key (idempotent).
|
|
41
|
+
*
|
|
42
|
+
* Returns 204 No Content: `operations['revokeApiKey']['responses'][204]`
|
|
43
|
+
* declares `content?: never`, so there is no JSON arm to derive a payload
|
|
44
|
+
* from — hence `Promise<void>`.
|
|
45
|
+
*
|
|
46
|
+
* KNOWN DRIFT: `client.request()` calls `response.json()` unconditionally,
|
|
47
|
+
* which throws on the gateway's empty 204 body — so this method currently
|
|
48
|
+
* rejects at runtime. The fix belongs in `client.ts` (tracked separately);
|
|
49
|
+
* typing it here states the intended contract rather than encoding the bug.
|
|
50
|
+
*/
|
|
35
51
|
revoke(id) {
|
|
36
52
|
return this.client.request('DELETE', `/v1/account/api-keys/${id}`);
|
|
37
53
|
}
|
|
@@ -40,4 +56,3 @@ class ApiKeysResource {
|
|
|
40
56
|
return this.client.request('POST', `/v1/account/api-keys/${id}/reveal`);
|
|
41
57
|
}
|
|
42
58
|
}
|
|
43
|
-
//# sourceMappingURL=account.js.map
|
package/dist/resources/bulk.d.ts
CHANGED
package/dist/resources/bulk.js
CHANGED
package/dist/resources/fetch.js
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
|
-
import type { RapidCrawl } from '../client.js';
|
|
1
|
+
import type { RapidCrawl, RequestOptions } from '../client.js';
|
|
2
|
+
import type { operations } from '../generated/api.js';
|
|
2
3
|
import type { ScrapeId, BulkId } from '../types.js';
|
|
4
|
+
/**
|
|
5
|
+
* Response of POST /v1/scrape — a 200 sync success envelope or a 202 queued
|
|
6
|
+
* envelope (`async: true`). Narrow on `status` (`'success' | 'queued'`) before
|
|
7
|
+
* reading the result payload.
|
|
8
|
+
*/
|
|
9
|
+
export type ScrapeCreateResponse = operations['createScrape']['responses'][200]['content']['application/json'] | operations['createScrape']['responses'][202]['content']['application/json'];
|
|
10
|
+
/**
|
|
11
|
+
* Response of GET /v1/scrape/{id} — always a 200 carrying the discriminated
|
|
12
|
+
* `ScrapeEnvelope`. Narrow on `status` (`'success' | 'failed' | 'queued'`).
|
|
13
|
+
*/
|
|
14
|
+
export type ScrapeGetResponse = operations['getScrape']['responses'][200]['content']['application/json'];
|
|
15
|
+
/** Body of POST /v1/scrape/bulk. */
|
|
16
|
+
export type ScrapeBulkCreateRequest = operations['createScrapeBulk']['requestBody']['content']['application/json'];
|
|
17
|
+
/** Response of POST /v1/scrape/bulk — 202 queued (bulk jobs are always async). */
|
|
18
|
+
export type ScrapeBulkCreateResponse = operations['createScrapeBulk']['responses'][202]['content']['application/json'];
|
|
19
|
+
/** Response of GET /v1/scrape/bulk/{id}. */
|
|
20
|
+
export type ScrapeBulkGetResponse = operations['getScrapeBulk']['responses'][200]['content']['application/json'];
|
|
3
21
|
/** Markdown processing mode for the pipeline. */
|
|
4
22
|
export type MarkdownMode = 'article' | 'raw' | 'llm';
|
|
5
23
|
/** Link rendering style in the markdown output. */
|
|
@@ -12,6 +30,7 @@ export interface ScrapeOpts {
|
|
|
12
30
|
cookies?: Array<Record<string, unknown>>;
|
|
13
31
|
headers?: Record<string, string>;
|
|
14
32
|
delay_ms?: number;
|
|
33
|
+
/** SERVER-side scrape budget in ms — how long the gateway may spend on the scrape itself. For the CLIENT-side abort budget (when this SDK gives up on the wire), see `RequestOptions.requestTimeoutMs`. */
|
|
15
34
|
timeout_ms?: number;
|
|
16
35
|
async?: boolean;
|
|
17
36
|
webhook_url?: string;
|
|
@@ -52,18 +71,41 @@ export declare class ScrapeResource {
|
|
|
52
71
|
private readonly client;
|
|
53
72
|
readonly bulk: ScrapeBulkResource;
|
|
54
73
|
constructor(client: RapidCrawl);
|
|
55
|
-
/**
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
74
|
+
/**
|
|
75
|
+
* POST /v1/scrape — create a scrape job.
|
|
76
|
+
*
|
|
77
|
+
* Resolves to the 200 success envelope, or the 202 queued envelope when
|
|
78
|
+
* `async: true`. Narrow on `status` before reading the result.
|
|
79
|
+
*
|
|
80
|
+
* `requestOptions` carries the CLIENT-side abort budget (`requestTimeoutMs`) and an
|
|
81
|
+
* optional caller `signal`; both override the constructor's `timeoutMs` default. They
|
|
82
|
+
* are a different axis from `opts.timeout_ms`, which is the SERVER-side scrape budget.
|
|
83
|
+
*/
|
|
84
|
+
create(opts: ScrapeOpts, requestOptions?: RequestOptions): Promise<ScrapeCreateResponse>;
|
|
85
|
+
/**
|
|
86
|
+
* GET /v1/scrape/{id} — poll a scrape by ID
|
|
87
|
+
*
|
|
88
|
+
* KNOWN DRIFT (#2426): live staging spot-checks (two independent fetches)
|
|
89
|
+
* found the gateway serializes `billing_multiplier` as a JSON **string**
|
|
90
|
+
* (e.g. `"0.50"`) on this GET path, while the OpenAPI spec — and this
|
|
91
|
+
* derived `ScrapeGetResponse` type — declare it `number`. `POST /v1/scrape`'s
|
|
92
|
+
* success envelope for the same job serializes the identical field as a
|
|
93
|
+
* proper number, so the drift is specific to the GET path (likely a Postgres
|
|
94
|
+
* NUMERIC column round-tripping as a string on this query path). A consumer
|
|
95
|
+
* doing arithmetic on `billing_multiplier` after `get()` (e.g.
|
|
96
|
+
* `content_length * billing_multiplier`) should coerce with `Number(...)`
|
|
97
|
+
* defensively rather than trust the static type. This is a gateway/worker
|
|
98
|
+
* serialization bug, not a client bug — the fix belongs upstream in the
|
|
99
|
+
* gateway and is out of this ticket's scope.
|
|
100
|
+
*/
|
|
101
|
+
get(id: ScrapeId, requestOptions?: RequestOptions): Promise<ScrapeGetResponse>;
|
|
59
102
|
}
|
|
60
103
|
declare class ScrapeBulkResource {
|
|
61
104
|
private readonly client;
|
|
62
105
|
constructor(client: RapidCrawl);
|
|
63
106
|
/** POST /v1/scrape/bulk — create a bulk scrape job */
|
|
64
|
-
create(opts:
|
|
107
|
+
create(opts: ScrapeBulkCreateRequest): Promise<ScrapeBulkCreateResponse>;
|
|
65
108
|
/** GET /v1/scrape/bulk/{id} — get a bulk scrape job */
|
|
66
|
-
get(id: BulkId): Promise<
|
|
109
|
+
get(id: BulkId): Promise<ScrapeBulkGetResponse>;
|
|
67
110
|
}
|
|
68
111
|
export {};
|
|
69
|
-
//# sourceMappingURL=scrape.d.ts.map
|
package/dist/resources/scrape.js
CHANGED
|
@@ -5,13 +5,37 @@ export class ScrapeResource {
|
|
|
5
5
|
this.client = client;
|
|
6
6
|
this.bulk = new ScrapeBulkResource(client);
|
|
7
7
|
}
|
|
8
|
-
/**
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
/**
|
|
9
|
+
* POST /v1/scrape — create a scrape job.
|
|
10
|
+
*
|
|
11
|
+
* Resolves to the 200 success envelope, or the 202 queued envelope when
|
|
12
|
+
* `async: true`. Narrow on `status` before reading the result.
|
|
13
|
+
*
|
|
14
|
+
* `requestOptions` carries the CLIENT-side abort budget (`requestTimeoutMs`) and an
|
|
15
|
+
* optional caller `signal`; both override the constructor's `timeoutMs` default. They
|
|
16
|
+
* are a different axis from `opts.timeout_ms`, which is the SERVER-side scrape budget.
|
|
17
|
+
*/
|
|
18
|
+
create(opts, requestOptions) {
|
|
19
|
+
return this.client.request('POST', '/v1/scrape', opts, requestOptions);
|
|
11
20
|
}
|
|
12
|
-
/**
|
|
13
|
-
|
|
14
|
-
|
|
21
|
+
/**
|
|
22
|
+
* GET /v1/scrape/{id} — poll a scrape by ID
|
|
23
|
+
*
|
|
24
|
+
* KNOWN DRIFT (#2426): live staging spot-checks (two independent fetches)
|
|
25
|
+
* found the gateway serializes `billing_multiplier` as a JSON **string**
|
|
26
|
+
* (e.g. `"0.50"`) on this GET path, while the OpenAPI spec — and this
|
|
27
|
+
* derived `ScrapeGetResponse` type — declare it `number`. `POST /v1/scrape`'s
|
|
28
|
+
* success envelope for the same job serializes the identical field as a
|
|
29
|
+
* proper number, so the drift is specific to the GET path (likely a Postgres
|
|
30
|
+
* NUMERIC column round-tripping as a string on this query path). A consumer
|
|
31
|
+
* doing arithmetic on `billing_multiplier` after `get()` (e.g.
|
|
32
|
+
* `content_length * billing_multiplier`) should coerce with `Number(...)`
|
|
33
|
+
* defensively rather than trust the static type. This is a gateway/worker
|
|
34
|
+
* serialization bug, not a client bug — the fix belongs upstream in the
|
|
35
|
+
* gateway and is out of this ticket's scope.
|
|
36
|
+
*/
|
|
37
|
+
get(id, requestOptions) {
|
|
38
|
+
return this.client.request('GET', `/v1/scrape/${id}`, undefined, requestOptions);
|
|
15
39
|
}
|
|
16
40
|
}
|
|
17
41
|
class ScrapeBulkResource {
|
|
@@ -28,4 +52,3 @@ class ScrapeBulkResource {
|
|
|
28
52
|
return this.client.request('GET', `/v1/scrape/bulk/${id}`);
|
|
29
53
|
}
|
|
30
54
|
}
|
|
31
|
-
//# sourceMappingURL=scrape.js.map
|
|
@@ -1,11 +1,61 @@
|
|
|
1
1
|
import type { RapidCrawl } from '../client.js';
|
|
2
|
+
import type { operations } from '../generated/api.js';
|
|
2
3
|
import type { ScreenshotId } from '../types.js';
|
|
4
|
+
/** The `createScreenshot` request body exactly as the OpenAPI spec declares it. */
|
|
5
|
+
type ScreenshotRequestSpec = operations['createScreenshot']['requestBody']['content']['application/json'];
|
|
6
|
+
/**
|
|
7
|
+
* Body of POST /v1/screenshots — `url` is required, every other field optional.
|
|
8
|
+
*
|
|
9
|
+
* KNOWN SPEC DRIFT (#2426): `docs/api/openapi.yaml`'s `ScreenshotRequest` schema
|
|
10
|
+
* already declares `required: [url]` — only `url` is listed there. But 20 of
|
|
11
|
+
* its 21 fields (`device`, `format`, `quality`, `full_page`, `viewport`, …)
|
|
12
|
+
* carry a `default:` in the schema, and `openapi-typescript`'s
|
|
13
|
+
* `defaultNonNullable` transform (on by default in v7) promotes any
|
|
14
|
+
* `default:`-bearing property to non-optional in the *generated* TypeScript
|
|
15
|
+
* type, regardless of the `required:` array. That's why the generated
|
|
16
|
+
* `ScreenshotRequestSpec` over-declares 20/21 fields as mandatory even though
|
|
17
|
+
* the YAML's `required:` list is already narrow. `POST /v1/screenshots` with a
|
|
18
|
+
* body of just `{"url":"https://example.com"}` returns 200 and a completed
|
|
19
|
+
* capture (verified against staging). Deriving the request type verbatim would
|
|
20
|
+
* therefore force every caller to pass 20 dummy values for a request the API
|
|
21
|
+
* plainly accepts — a type that lies about the contract.
|
|
22
|
+
*
|
|
23
|
+
* So the required-ness is relaxed here (still derived from the operation, never
|
|
24
|
+
* hand-authored) while `url` stays mandatory. The durable fix is a codegen-level
|
|
25
|
+
* change (e.g. scoping `defaultNonNullable: false` to this schema, or dropping
|
|
26
|
+
* `default:` from fields that don't need it in the generator's eyes) — NOT a
|
|
27
|
+
* `required:` edit, since the YAML is already `[url]`; this ticket may not
|
|
28
|
+
* touch codegen config, so it is filed as a follow-up.
|
|
29
|
+
*/
|
|
30
|
+
export type ScreenshotCreateRequest = Partial<ScreenshotRequestSpec> & Pick<ScreenshotRequestSpec, 'url'>;
|
|
31
|
+
/**
|
|
32
|
+
* Response of POST /v1/screenshots — 200 (captured synchronously) or 202
|
|
33
|
+
* (queued, `async: true`). Both status codes carry the *same* `ScreenshotResponse`
|
|
34
|
+
* schema in the spec, so the type is a single derivation rather than a `200 | 202`
|
|
35
|
+
* union (an identical-constituent union trips `no-duplicate-type-constituents`).
|
|
36
|
+
* Narrow on `status` to tell a completed capture from a pending one.
|
|
37
|
+
*/
|
|
38
|
+
export type ScreenshotCreateResponse = operations['createScreenshot']['responses'][200]['content']['application/json'];
|
|
39
|
+
/**
|
|
40
|
+
* Response of GET /v1/screenshots/{id}.
|
|
41
|
+
*
|
|
42
|
+
* A terminal-`failed` screenshot is a *successfully retrieved* terminal state,
|
|
43
|
+
* so the gateway returns the unified failed envelope (the `Error` schema) on a
|
|
44
|
+
* **200** — not a `ScreenshotResponse` (issue #2027). Narrow the union before
|
|
45
|
+
* reading `image_url`.
|
|
46
|
+
*/
|
|
47
|
+
export type ScreenshotGetResponse = operations['getScreenshot']['responses'][200]['content']['application/json'] | operations['getScreenshot']['responses'][202]['content']['application/json'];
|
|
3
48
|
export declare class ScreenshotsResource {
|
|
4
49
|
private readonly client;
|
|
5
50
|
constructor(client: RapidCrawl);
|
|
6
51
|
/** POST /v1/screenshots — capture a screenshot */
|
|
7
|
-
create(opts:
|
|
8
|
-
/**
|
|
9
|
-
|
|
52
|
+
create(opts: ScreenshotCreateRequest): Promise<ScreenshotCreateResponse>;
|
|
53
|
+
/**
|
|
54
|
+
* GET /v1/screenshots/{id} — poll a screenshot by ID.
|
|
55
|
+
*
|
|
56
|
+
* A terminal-`failed` screenshot returns the `Error` envelope on a 200
|
|
57
|
+
* (issue #2027), so narrow the result before reading `image_url`.
|
|
58
|
+
*/
|
|
59
|
+
get(id: ScreenshotId): Promise<ScreenshotGetResponse>;
|
|
10
60
|
}
|
|
11
|
-
|
|
61
|
+
export {};
|
|
@@ -7,9 +7,13 @@ export class ScreenshotsResource {
|
|
|
7
7
|
create(opts) {
|
|
8
8
|
return this.client.request('POST', '/v1/screenshots', opts);
|
|
9
9
|
}
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* GET /v1/screenshots/{id} — poll a screenshot by ID.
|
|
12
|
+
*
|
|
13
|
+
* A terminal-`failed` screenshot returns the `Error` envelope on a 200
|
|
14
|
+
* (issue #2027), so narrow the result before reading `image_url`.
|
|
15
|
+
*/
|
|
11
16
|
get(id) {
|
|
12
17
|
return this.client.request('GET', `/v1/screenshots/${id}`);
|
|
13
18
|
}
|
|
14
19
|
}
|
|
15
|
-
//# sourceMappingURL=screenshots.js.map
|
package/dist/resources/search.js
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A `fetch` mock that never settles until the request's own signal aborts.
|
|
3
|
+
*
|
|
4
|
+
* Shared between `client.test.ts` and `resources/__tests__/scrape.test.ts` (#2424 code review
|
|
5
|
+
* cr-3) — both suites need a `fetch` stand-in that hangs forever except for reacting to the
|
|
6
|
+
* abort signal the SDK attaches, so timeout/abort-ordering tests can assert on elapsed time and
|
|
7
|
+
* error code without a real network call.
|
|
8
|
+
*/
|
|
9
|
+
export declare function signalAwareNeverResolver(): (url: string, init: RequestInit) => Promise<Response>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// Test-only fixture, compiled like any other `src` file (not excluded from the tsc build):
|
|
2
|
+
// excluding it broke ESLint's typed-lint project-service resolution (it requires every linted
|
|
3
|
+
// file to be part of the tsconfig `include` set). The tradeoff is a small compiled fixture
|
|
4
|
+
// landing in `dist/test-helpers/` alongside the package's real exports — negligible, and no
|
|
5
|
+
// consumer imports it (it's not re-exported from `index.ts`).
|
|
6
|
+
/**
|
|
7
|
+
* A `fetch` mock that never settles until the request's own signal aborts.
|
|
8
|
+
*
|
|
9
|
+
* Shared between `client.test.ts` and `resources/__tests__/scrape.test.ts` (#2424 code review
|
|
10
|
+
* cr-3) — both suites need a `fetch` stand-in that hangs forever except for reacting to the
|
|
11
|
+
* abort signal the SDK attaches, so timeout/abort-ordering tests can assert on elapsed time and
|
|
12
|
+
* error code without a real network call.
|
|
13
|
+
*/
|
|
14
|
+
export function signalAwareNeverResolver() {
|
|
15
|
+
return (_url, init) => new Promise((_resolve, reject) => {
|
|
16
|
+
const signal = init.signal;
|
|
17
|
+
if (!signal)
|
|
18
|
+
return; // hangs — only used by tests that always pass a signal
|
|
19
|
+
if (signal.aborted) {
|
|
20
|
+
reject(signal.reason);
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
signal.addEventListener('abort', () => reject(signal.reason));
|
|
24
|
+
});
|
|
25
|
+
}
|
package/dist/types.d.ts
CHANGED
package/dist/types.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hunt-labs/bytekit-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Official TypeScript SDK for the ByteKit API",
|
|
5
|
+
"license": "MIT",
|
|
5
6
|
"type": "module",
|
|
6
7
|
"publishConfig": {
|
|
7
8
|
"access": "public"
|
|
@@ -15,8 +16,9 @@
|
|
|
15
16
|
"types": "./dist/index.d.ts",
|
|
16
17
|
"exports": {
|
|
17
18
|
".": {
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
18
20
|
"import": "./dist/index.js",
|
|
19
|
-
"
|
|
21
|
+
"default": "./dist/index.js"
|
|
20
22
|
}
|
|
21
23
|
},
|
|
22
24
|
"files": [
|
|
@@ -25,13 +27,32 @@
|
|
|
25
27
|
"devDependencies": {
|
|
26
28
|
"openapi-typescript": "7.13.0",
|
|
27
29
|
"tsx": "*",
|
|
28
|
-
"typedoc": "^0.28.19",
|
|
29
|
-
"typedoc-plugin-markdown": "^4.11.0",
|
|
30
30
|
"typescript": "^5.4.5",
|
|
31
31
|
"vitest": "^1.6.0"
|
|
32
32
|
},
|
|
33
|
+
"engines": {
|
|
34
|
+
"node": ">=18"
|
|
35
|
+
},
|
|
36
|
+
"keywords": [
|
|
37
|
+
"bytekit",
|
|
38
|
+
"data-extraction",
|
|
39
|
+
"web-data",
|
|
40
|
+
"scraping",
|
|
41
|
+
"web-scraping",
|
|
42
|
+
"crawler",
|
|
43
|
+
"markdown",
|
|
44
|
+
"screenshot",
|
|
45
|
+
"sdk",
|
|
46
|
+
"api-client",
|
|
47
|
+
"llm",
|
|
48
|
+
"ai-agents"
|
|
49
|
+
],
|
|
50
|
+
"homepage": "https://bytekit.com/docs",
|
|
51
|
+
"bugs": {
|
|
52
|
+
"email": "support@bytekit.com"
|
|
53
|
+
},
|
|
33
54
|
"scripts": {
|
|
34
|
-
"build": "tsc",
|
|
55
|
+
"build": "rm -rf dist tsconfig.tsbuildinfo && tsc && mkdir -p dist/generated && cp src/generated/api.d.ts dist/generated/api.d.ts",
|
|
35
56
|
"gen:types": "openapi-typescript ../../docs/api/openapi.yaml -o src/generated/api.d.ts",
|
|
36
57
|
"gen:types-check": "pnpm gen:types && git diff --exit-code src/generated/api.d.ts",
|
|
37
58
|
"generate:docs": "tsx scripts/generate-docs.ts",
|
package/dist/allowlist.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"allowlist.d.ts","sourceRoot":"","sources":["../src/allowlist.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW,ubA0Bd,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
package/dist/allowlist.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"allowlist.js","sourceRoot":"","sources":["../src/allowlist.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,eAAe;IACf,YAAY;IACZ,oBAAoB;IACpB,iBAAiB;IACjB,mFAAmF;IACnF,aAAa;IACb,UAAU;IACV,aAAa;IACb,uBAAuB;IACvB,oBAAoB;IACpB,iBAAiB;IACjB,cAAc;IACd,WAAW;IACX,mBAAmB;IACnB,gBAAgB;IAChB,iBAAiB;IACjB,eAAe;IACf,cAAc;IACd,iBAAiB;IACjB,iBAAiB;IACjB,wBAAwB;IACxB,gBAAgB;IAChB,aAAa;IACb,cAAc;IACd,aAAa;CACL,CAAC"}
|
package/dist/client.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAIzD,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,kEAAkE;AAClE,qBAAa,eAAgB,SAAQ,KAAK;IACxC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;gBAEV,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MA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CAAC;CACF"}
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC1D,YAAY,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,YAAY,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,YAAY,EACV,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,MAAM,EACN,SAAS,EACT,SAAS,EACT,QAAQ,EACR,UAAU,EACV,eAAe,EACf,UAAU,EACV,YAAY,EACZ,iBAAiB,EACjB,cAAc,GACf,MAAM,YAAY,CAAC"}
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE1D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../src/resources/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAC9B,UAAU,CAAC,cAAc,CAAC,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAE9E,qBAAa,eAAe;IAGd,OAAO,CAAC,QAAQ,CAAC,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AAED,MAAM,uBAAuB;IACE;IAA7B,YAA6B,MAAkB;QAAlB,WAAM,GAAN,MAAM,CAAY;IAAG,CAAC;IAEnD,mEAAmE;IACnE,IAAI,CAAC,EAAa;QAChB,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,gBAAgB,EAAE,WAAW,CAAC,CAAC;IACnE,CAAC;CACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"recordings.d.ts","sourceRoot":"","sources":["../../src/resources/recordings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,qBAAa,kBAAkB;IACjB,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,UAAU;IAE/C,8CAA8C;IAC9C,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC;IAIvD,uDAAuD;IACvD,GAAG,CAAC,EAAE,EAAE,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC;CAGvC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"recordings.js","sourceRoot":"","sources":["../../src/resources/recordings.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,kBAAkB;IACA;IAA7B,YAA6B,MAAkB;QAAlB,WAAM,GAAN,MAAM,CAAY;IAAG,CAAC;IAEnD,8CAA8C;IAC9C,MAAM,CAAC,IAA6B;QAClC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,gBAAgB,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;IAED,uDAAuD;IACvD,GAAG,CAAC,EAAe;QACjB,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,kBAAkB,EAAE,EAAE,CAAC,CAAC;IAC5D,CA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