@b3os/sdk 0.1.0 → 0.1.3
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/README.md +171 -42
- package/dist/cjs/core/bytes.d.ts +30 -0
- package/dist/cjs/core/bytes.js +115 -0
- package/dist/cjs/core/bytes.js.map +1 -0
- package/dist/cjs/core/client.d.ts +61 -3
- package/dist/cjs/core/client.js +211 -33
- package/dist/cjs/core/client.js.map +1 -1
- package/dist/cjs/core/errors.d.ts +16 -4
- package/dist/cjs/core/errors.js +9 -6
- package/dist/cjs/core/errors.js.map +1 -1
- package/dist/cjs/core/handle.d.ts +31 -0
- package/dist/cjs/core/handle.js +86 -0
- package/dist/cjs/core/handle.js.map +1 -0
- package/dist/cjs/core/index.d.ts +6 -4
- package/dist/cjs/core/index.js +8 -1
- package/dist/cjs/core/index.js.map +1 -1
- package/dist/cjs/core/login.d.ts +24 -0
- package/dist/cjs/core/login.js +93 -0
- package/dist/cjs/core/login.js.map +1 -0
- package/dist/cjs/core/namespace.d.ts +1 -1
- package/dist/cjs/core/namespace.js +1 -1
- package/dist/cjs/core/op.d.ts +11 -1
- package/dist/cjs/core/timing.d.ts +1 -1
- package/dist/cjs/core/timing.js +8 -1
- package/dist/cjs/core/timing.js.map +1 -1
- package/dist/cjs/core/transport.js +1 -1
- package/dist/cjs/core/transport.js.map +1 -1
- package/dist/cjs/core/util.d.ts +15 -3
- package/dist/cjs/core/util.js +54 -2
- package/dist/cjs/core/util.js.map +1 -1
- package/dist/cjs/core/ws.d.ts +4 -0
- package/dist/cjs/core/ws.js +7 -4
- package/dist/cjs/core/ws.js.map +1 -1
- package/dist/cjs/generated/client.d.ts +2 -2
- package/dist/cjs/generated/client.js +2 -2
- package/dist/cjs/generated/errors.d.ts +1 -1
- package/dist/cjs/generated/errors.js +30 -0
- package/dist/cjs/generated/errors.js.map +1 -1
- package/dist/cjs/generated/jobs.js +1 -1
- package/dist/cjs/generated/ns/actions.d.ts +48 -6
- package/dist/cjs/generated/ns/actions.js +59 -6
- package/dist/cjs/generated/ns/actions.js.map +1 -1
- package/dist/cjs/generated/ns/infer.d.ts +185 -54
- package/dist/cjs/generated/ns/infer.js +28 -74
- package/dist/cjs/generated/ns/infer.js.map +1 -1
- package/dist/cjs/generated/ns/keys.d.ts +12 -0
- package/dist/cjs/generated/ns/keys.js +22 -0
- package/dist/cjs/generated/ns/keys.js.map +1 -1
- package/dist/cjs/generated/ns/render.d.ts +95 -6
- package/dist/cjs/generated/ns/render.js +124 -7
- package/dist/cjs/generated/ns/render.js.map +1 -1
- package/dist/cjs/generated/ns/requests.d.ts +3 -1
- package/dist/cjs/generated/ns/requests.js +3 -1
- package/dist/cjs/generated/ns/requests.js.map +1 -1
- package/dist/cjs/generated/ns/routines.d.ts +131 -9
- package/dist/cjs/generated/ns/routines.js +186 -9
- package/dist/cjs/generated/ns/routines.js.map +1 -1
- package/dist/cjs/generated/ns/sandboxes.d.ts +298 -31
- package/dist/cjs/generated/ns/sandboxes.js +368 -29
- package/dist/cjs/generated/ns/sandboxes.js.map +1 -1
- package/dist/cjs/generated/ns/vision.d.ts +133 -14
- package/dist/cjs/generated/ns/vision.js +158 -12
- package/dist/cjs/generated/ns/vision.js.map +1 -1
- package/dist/cjs/generated/ns/webhooks.d.ts +8 -5
- package/dist/cjs/generated/ns/webhooks.js +8 -5
- package/dist/cjs/generated/ns/webhooks.js.map +1 -1
- package/dist/cjs/generated/types.d.ts +1956 -301
- package/dist/cjs/helpers/agents.d.ts +95 -0
- package/dist/cjs/helpers/agents.js +205 -0
- package/dist/cjs/helpers/agents.js.map +1 -0
- package/dist/cjs/helpers/render.d.ts +15 -0
- package/dist/cjs/helpers/render.js +74 -0
- package/dist/cjs/helpers/render.js.map +1 -0
- package/dist/cjs/helpers/routines.d.ts +61 -0
- package/dist/cjs/helpers/routines.js +234 -0
- package/dist/cjs/helpers/routines.js.map +1 -0
- package/dist/cjs/helpers/sandboxes.d.ts +237 -0
- package/dist/cjs/helpers/sandboxes.js +608 -0
- package/dist/cjs/helpers/sandboxes.js.map +1 -0
- package/dist/cjs/index.d.ts +4 -1
- package/dist/cjs/index.js +8 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/routines.d.ts +1 -0
- package/dist/cjs/routines.js +21 -0
- package/dist/cjs/routines.js.map +1 -0
- package/dist/cjs/webhooks.js.map +1 -1
- package/dist/esm/core/bytes.d.ts +30 -0
- package/dist/esm/core/bytes.js +111 -0
- package/dist/esm/core/bytes.js.map +1 -0
- package/dist/esm/core/client.d.ts +61 -3
- package/dist/esm/core/client.js +208 -31
- package/dist/esm/core/client.js.map +1 -1
- package/dist/esm/core/errors.d.ts +16 -4
- package/dist/esm/core/errors.js +9 -6
- package/dist/esm/core/errors.js.map +1 -1
- package/dist/esm/core/handle.d.ts +31 -0
- package/dist/esm/core/handle.js +82 -0
- package/dist/esm/core/handle.js.map +1 -0
- package/dist/esm/core/index.d.ts +6 -4
- package/dist/esm/core/index.js +4 -2
- package/dist/esm/core/index.js.map +1 -1
- package/dist/esm/core/login.d.ts +24 -0
- package/dist/esm/core/login.js +85 -0
- package/dist/esm/core/login.js.map +1 -0
- package/dist/esm/core/namespace.d.ts +1 -1
- package/dist/esm/core/namespace.js +1 -1
- package/dist/esm/core/op.d.ts +11 -1
- package/dist/esm/core/timing.d.ts +1 -1
- package/dist/esm/core/timing.js +8 -1
- package/dist/esm/core/timing.js.map +1 -1
- package/dist/esm/core/transport.js +1 -1
- package/dist/esm/core/transport.js.map +1 -1
- package/dist/esm/core/util.d.ts +15 -3
- package/dist/esm/core/util.js +48 -1
- package/dist/esm/core/util.js.map +1 -1
- package/dist/esm/core/ws.d.ts +4 -0
- package/dist/esm/core/ws.js +7 -4
- package/dist/esm/core/ws.js.map +1 -1
- package/dist/esm/generated/client.d.ts +2 -2
- package/dist/esm/generated/client.js +2 -2
- package/dist/esm/generated/errors.d.ts +1 -1
- package/dist/esm/generated/errors.js +30 -0
- package/dist/esm/generated/errors.js.map +1 -1
- package/dist/esm/generated/jobs.js +1 -1
- package/dist/esm/generated/ns/actions.d.ts +48 -6
- package/dist/esm/generated/ns/actions.js +59 -6
- package/dist/esm/generated/ns/actions.js.map +1 -1
- package/dist/esm/generated/ns/infer.d.ts +185 -54
- package/dist/esm/generated/ns/infer.js +28 -74
- package/dist/esm/generated/ns/infer.js.map +1 -1
- package/dist/esm/generated/ns/keys.d.ts +12 -0
- package/dist/esm/generated/ns/keys.js +22 -0
- package/dist/esm/generated/ns/keys.js.map +1 -1
- package/dist/esm/generated/ns/render.d.ts +95 -6
- package/dist/esm/generated/ns/render.js +124 -7
- package/dist/esm/generated/ns/render.js.map +1 -1
- package/dist/esm/generated/ns/requests.d.ts +3 -1
- package/dist/esm/generated/ns/requests.js +3 -1
- package/dist/esm/generated/ns/requests.js.map +1 -1
- package/dist/esm/generated/ns/routines.d.ts +131 -9
- package/dist/esm/generated/ns/routines.js +186 -9
- package/dist/esm/generated/ns/routines.js.map +1 -1
- package/dist/esm/generated/ns/sandboxes.d.ts +298 -31
- package/dist/esm/generated/ns/sandboxes.js +368 -29
- package/dist/esm/generated/ns/sandboxes.js.map +1 -1
- package/dist/esm/generated/ns/vision.d.ts +133 -14
- package/dist/esm/generated/ns/vision.js +158 -12
- package/dist/esm/generated/ns/vision.js.map +1 -1
- package/dist/esm/generated/ns/webhooks.d.ts +8 -5
- package/dist/esm/generated/ns/webhooks.js +8 -5
- package/dist/esm/generated/ns/webhooks.js.map +1 -1
- package/dist/esm/generated/types.d.ts +1956 -301
- package/dist/esm/helpers/agents.d.ts +95 -0
- package/dist/esm/helpers/agents.js +199 -0
- package/dist/esm/helpers/agents.js.map +1 -0
- package/dist/esm/helpers/render.d.ts +15 -0
- package/dist/esm/helpers/render.js +70 -0
- package/dist/esm/helpers/render.js.map +1 -0
- package/dist/esm/helpers/routines.d.ts +61 -0
- package/dist/esm/helpers/routines.js +226 -0
- package/dist/esm/helpers/routines.js.map +1 -0
- package/dist/esm/helpers/sandboxes.d.ts +237 -0
- package/dist/esm/helpers/sandboxes.js +600 -0
- package/dist/esm/helpers/sandboxes.js.map +1 -0
- package/dist/esm/index.d.ts +4 -1
- package/dist/esm/index.js +6 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/routines.d.ts +1 -0
- package/dist/esm/routines.js +5 -0
- package/dist/esm/routines.js.map +1 -0
- package/dist/esm/webhooks.js.map +1 -1
- package/package.json +14 -3
- package/src/core/bytes.ts +112 -0
- package/src/core/client.ts +253 -33
- package/src/core/errors.ts +27 -10
- package/src/core/handle.ts +97 -0
- package/src/core/index.ts +7 -2
- package/src/core/login.ts +98 -0
- package/src/core/namespace.ts +1 -1
- package/src/core/op.ts +11 -1
- package/src/core/timing.ts +7 -2
- package/src/core/transport.ts +1 -1
- package/src/core/util.ts +53 -3
- package/src/core/ws.ts +11 -4
- package/src/generated/client.ts +2 -2
- package/src/generated/errors.ts +60 -0
- package/src/generated/jobs.ts +1 -1
- package/src/generated/ns/actions.ts +69 -6
- package/src/generated/ns/infer.ts +229 -61
- package/src/generated/ns/keys.ts +23 -0
- package/src/generated/ns/render.ts +152 -7
- package/src/generated/ns/requests.ts +3 -1
- package/src/generated/ns/routines.ts +205 -9
- package/src/generated/ns/sandboxes.ts +434 -34
- package/src/generated/ns/vision.ts +168 -14
- package/src/generated/ns/webhooks.ts +8 -5
- package/src/generated/types.ts +2211 -422
- package/src/helpers/agents.ts +300 -0
- package/src/helpers/render.ts +91 -0
- package/src/helpers/routines.ts +278 -0
- package/src/helpers/sandboxes.ts +788 -0
- package/src/index.ts +29 -5
- package/src/routines.ts +5 -0
- package/src/webhooks.ts +5 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sandboxes.js","sourceRoot":"","sources":["../../../../src/generated/ns/sandboxes.ts"],"names":[],"mappings":";AAAA,4GAA4G;;;AAG5G,0DAAoD;AAIpD,4CAAuE;AAGvE,MAAM,eAAe,GAAO;IAC1B,EAAE,EAAE,wBAAwB;IAC5B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,MAAM;gBACR,OAAO,IAAI,CAAC,MAAM,CAAC;YACrB,CAAC;SACF,CAAC;QACF,OAAO,sBAAO,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IAC/C,CAAC;IAED;;;;;;;OAOG;IACH,cAAc,CAAC,SAAiB,EAAE,KAAiB,EAAE,OAAsB;QACzE,OAAO,IAAA,6BAAc,EAAC,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;IAED;;;OAGG;IACH,YAAY,CAAC,SAAiB,EAAE,OAAuB;QACrD,OAAO,IAAA,2BAAY,EAAC,IAAI,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IAChD,CAAC;IAED;;;;OAIG;IACH,wBAAwB,CAAC,OAAmC;QAC1D,OAAO,IAAA,oCAAwB,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACjD,CAAC;IAED;;;;OAIG;IACH,0BAA0B,CAAC,OAAoC;QAC7D,OAAO,IAAA,sCAA0B,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;IAED;;;OAGG;IACH,oBAAoB,CAAC,OAA+B;QAClD,OAAO,IAAA,gCAAoB,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC7C,CAAC;CACF;AApuBD,oCAouBC"}
|
|
@@ -24,6 +24,7 @@ export declare const visionOps: {
|
|
|
24
24
|
readonly cancelExtract: Op;
|
|
25
25
|
readonly extractEvents: Op;
|
|
26
26
|
readonly map: Op;
|
|
27
|
+
readonly prepare: Op;
|
|
27
28
|
readonly listProfiles: Op;
|
|
28
29
|
readonly createProfile: Op;
|
|
29
30
|
readonly deleteProfile: Op;
|
|
@@ -32,6 +33,7 @@ export declare const visionOps: {
|
|
|
32
33
|
readonly exportProfileState: Op;
|
|
33
34
|
readonly readUrl: Op;
|
|
34
35
|
readonly scrape: Op;
|
|
36
|
+
readonly search: Op;
|
|
35
37
|
readonly listSessions: Op;
|
|
36
38
|
readonly createSession: Op;
|
|
37
39
|
readonly closeSession: Op;
|
|
@@ -40,6 +42,7 @@ export declare const visionOps: {
|
|
|
40
42
|
readonly connectCdp: Op;
|
|
41
43
|
readonly saveSessionProfile: Op;
|
|
42
44
|
readonly createSessionTicket: Op;
|
|
45
|
+
readonly getSessionTimeline: Op;
|
|
43
46
|
};
|
|
44
47
|
/**
|
|
45
48
|
* Browsers and web extraction: scrape, map, crawl, batch, browser sessions and profiles (`/v1/vision`).
|
|
@@ -56,7 +59,9 @@ export declare class VisionAPI extends Namespace {
|
|
|
56
59
|
/**
|
|
57
60
|
* Scrape a list of URLs
|
|
58
61
|
*
|
|
59
|
-
* Starts a job that scrapes up to 1,000 URLs with the same options. Each page bills one
|
|
62
|
+
* Starts a job that scrapes up to 1,000 URLs with the same options. Each delivered page bills one
|
|
63
|
+
* `vision.page`, except a wall, which is free and carries only its state, status and final URL
|
|
64
|
+
* (`content_withheld`) unless the page options set `walls: "bill"`, as for a single scrape (visionScrape).
|
|
60
65
|
* Results are listed with `GET /v1/vision/batches/{batch_id}/pages`; `?wait=`, the events stream and
|
|
61
66
|
* `webhook` report progress.
|
|
62
67
|
*
|
|
@@ -83,7 +88,9 @@ export declare class VisionAPI extends Namespace {
|
|
|
83
88
|
* Stream a batch's events
|
|
84
89
|
*
|
|
85
90
|
* Server-sent events for the batch: lifecycle events plus `page.succeeded` and `page.failed` per URL. Ends
|
|
86
|
-
* after the terminal event. Reconnect with `Last-Event-ID` to resume.
|
|
91
|
+
* after the terminal event. Reconnect with `Last-Event-ID` to resume. Events are kept with the batch, so the
|
|
92
|
+
* stream reads the same, with the same `seq`, after the node restarts; a batch that was running then ends
|
|
93
|
+
* with `job.failed`.
|
|
87
94
|
*
|
|
88
95
|
* `GET /v1/vision/batches/{batch_id}/events` · scope `vision:read` · served by the node
|
|
89
96
|
*/
|
|
@@ -108,8 +115,14 @@ export declare class VisionAPI extends Namespace {
|
|
|
108
115
|
* Crawl a site
|
|
109
116
|
*
|
|
110
117
|
* Starts a job that discovers pages from `url` (links and sitemaps), breadth first, and scrapes up to `limit`
|
|
111
|
-
* pages (at most 500).
|
|
112
|
-
*
|
|
118
|
+
* pages (at most 500). Requests to one host are spaced politely (`delay_ms`). robots.txt rules apply only
|
|
119
|
+
* with `respect_robots: true`: disallowed pages are skipped (listed in `result.robots_blocked`), a robots.txt
|
|
120
|
+
* that cannot be read stops the crawl's pages (RFC 9309), and its Crawl-delay is used when `delay_ms` is not
|
|
121
|
+
* set; its `Sitemap:` lines then point sitemap discovery. Without it no robots.txt is fetched at all and
|
|
122
|
+
* sitemap discovery starts from `/sitemap.xml`. One crawl runs at a time per organization.
|
|
123
|
+
* Each delivered page bills one `vision.page`, except a wall, which is free and carries only its state, status
|
|
124
|
+
* and final URL (`content_withheld`; its links are not followed) unless the page options set
|
|
125
|
+
* `walls: "bill"`, as for a single scrape (visionScrape).
|
|
113
126
|
*
|
|
114
127
|
* `POST /v1/vision/crawls` · scope `vision:run` · served by the node
|
|
115
128
|
*/
|
|
@@ -134,7 +147,9 @@ export declare class VisionAPI extends Namespace {
|
|
|
134
147
|
* Stream a crawl's events
|
|
135
148
|
*
|
|
136
149
|
* Server-sent events for the crawl: lifecycle events plus `page.succeeded` and `page.failed` per page. Ends
|
|
137
|
-
* after the terminal event. Reconnect with `Last-Event-ID` to resume.
|
|
150
|
+
* after the terminal event. Reconnect with `Last-Event-ID` to resume. Events are kept with the crawl, so the
|
|
151
|
+
* stream reads the same, with the same `seq`, after the node restarts; a crawl that was running then ends
|
|
152
|
+
* with `job.failed`.
|
|
138
153
|
*
|
|
139
154
|
* `GET /v1/vision/crawls/{crawl_id}/events` · scope `vision:read` · served by the node
|
|
140
155
|
*/
|
|
@@ -194,11 +209,32 @@ export declare class VisionAPI extends Namespace {
|
|
|
194
209
|
*
|
|
195
210
|
* Lists URLs on a site from its sitemaps and from links on the start page, without scraping each page. Use it
|
|
196
211
|
* to choose what to scrape or crawl. `search` orders the results by relevance to a phrase. Bills one
|
|
197
|
-
* `vision.page` per call.
|
|
212
|
+
* `vision.page` per call that returns at least one link (a map that found nothing is free). A start page
|
|
213
|
+
* that is a wall (`page_state` `blocked` or `captcha`) gives no links, not even its own URL, so a map of a
|
|
214
|
+
* wall finds only what the sitemaps list.
|
|
198
215
|
*
|
|
199
216
|
* `POST /v1/vision/map` · scope `vision:run` · served by the node
|
|
200
217
|
*/
|
|
201
218
|
map(body: T.MapRequest, options?: RequestOptions): APIPromise<T.MapResult>;
|
|
219
|
+
/**
|
|
220
|
+
* Prepare a coming scrape
|
|
221
|
+
*
|
|
222
|
+
* Warms what a scrape of `url` will need, so it is off the scrape's critical path: the destination resolved
|
|
223
|
+
* and checked by the egress guard, and a keep-alive connection to the origin that the scrape's HTTP fetch
|
|
224
|
+
* reuses (opened with a `HEAD` of the URL, whose answer is not used, carrying the request headers the
|
|
225
|
+
* scrape's navigation sends: Chrome's for that URL). Routines call it for the next step
|
|
226
|
+
* while the current one runs. Bills nothing. With `respect_robots: true` it fetches and caches the origin's
|
|
227
|
+
* robots.txt instead of the `HEAD`, and `robots` says whether robots.txt allows the URL (`unreachable`: a
|
|
228
|
+
* scrape still proceeds, a crawl does not); otherwise `robots` is `not_checked`.
|
|
229
|
+
*
|
|
230
|
+
* It sends the target at most one `HEAD` per origin per 60 seconds for your organization: a prepare of an
|
|
231
|
+
* origin you prepared within the last 60 seconds finds the connection pooled and sends nothing (its
|
|
232
|
+
* `timing` then has no `connect_ms`). Each request a prepare does send (the `HEAD`, or a robots.txt this node
|
|
233
|
+
* does not hold yet) counts against `vision.scrape.rpm` like a scrape: `429 rate_limited` when it is used up.
|
|
234
|
+
*
|
|
235
|
+
* `POST /v1/vision/prepare` · scope `vision:run` · served by the node
|
|
236
|
+
*/
|
|
237
|
+
prepare(body: T.PrepareRequest, options?: RequestOptions): APIPromise<T.PrepareResult>;
|
|
202
238
|
/**
|
|
203
239
|
* List profiles
|
|
204
240
|
*
|
|
@@ -248,7 +284,12 @@ export declare class VisionAPI extends Namespace {
|
|
|
248
284
|
*
|
|
249
285
|
* Returns the current revision's storage state (Playwright `storageState` JSON) so you can load it into your
|
|
250
286
|
* own browser or move it to another project. It contains live session cookies: treat the response like a
|
|
251
|
-
* password. Requires `vision:
|
|
287
|
+
* password. Requires `vision:profiles:export` as well as `vision:write`. Export is an explicit grant: default
|
|
288
|
+
* keys, `*` and `vision:*` do not include it, so a key that exports state names the scope. Until the end of the
|
|
289
|
+
* 14-day kept window (plan 3.18), a key with `vision:write` and without `vision:profiles:export` still exports,
|
|
290
|
+
* and the response carries `Sunset` with the date that stops. A profile whose state a B3OS session saved
|
|
291
|
+
* (`exportable: false`) is never exported: 403 `profile_not_exportable`, with any scope, once the kept window
|
|
292
|
+
* ends (inside it, it exports with `Sunset`).
|
|
252
293
|
*
|
|
253
294
|
* `GET /v1/vision/profiles/{profile_id}/state` · scope `vision:write` · served by the node
|
|
254
295
|
*/
|
|
@@ -257,8 +298,13 @@ export declare class VisionAPI extends Namespace {
|
|
|
257
298
|
* Read a URL as Markdown
|
|
258
299
|
*
|
|
259
300
|
* The shortest way to read a page: put the target URL after `/v1/vision/r/`, unencoded, for example
|
|
260
|
-
* `GET /v1/vision/r/https://example.com/pricing`. Returns `text/markdown` by default
|
|
261
|
-
* `
|
|
301
|
+
* `GET /v1/vision/r/https://example.com/pricing`. Returns `text/markdown` by default (`X-B3OS-Format`:
|
|
302
|
+
* `text/html` for `html`, `text/plain` for `text`, a scrape result as JSON for `json`). Options go in
|
|
303
|
+
* `X-B3OS-*` headers so the target URL stays untouched. Same tiers, cache and billing as `scrape`: a wall is
|
|
304
|
+
* free and its body is empty (`X-B3OS-Content-Withheld: true`; the `json` format returns the withheld result)
|
|
305
|
+
* unless `X-B3OS-Walls: bill`. `X-B3OS-Page-State` names the page's state. A path with
|
|
306
|
+
* a `.` or `..` segment (also percent-encoded) answers `400 invalid_url` instead of being resolved: clients and
|
|
307
|
+
* proxies resolve dot segments differently, so resolve them first or `POST /v1/vision/scrape`.
|
|
262
308
|
*
|
|
263
309
|
* `GET /v1/vision/r/{url}` · scope `vision:run` · served by the node
|
|
264
310
|
*/
|
|
@@ -270,17 +316,58 @@ export declare class VisionAPI extends Namespace {
|
|
|
270
316
|
* Scrape a page
|
|
271
317
|
*
|
|
272
318
|
* Fetches one URL and returns the formats you ask for. With `engine: "auto"` (the default) vision answers
|
|
273
|
-
* from the cache when a fresh copy exists (`max_age_ms`, default 2 days), otherwise fetches over HTTP and
|
|
274
|
-
*
|
|
319
|
+
* from the cache when a fresh copy exists (`max_age_ms`, default 2 days), otherwise fetches over HTTP and uses a
|
|
320
|
+
* warm browser when the page needs JavaScript, when the fetch came back thin or mostly script, and when the
|
|
321
|
+
* fetch failed in a way a browser may not. Custom `headers`, a `profile` or `actions`
|
|
275
322
|
* bypass the cache; a page that sets cookies (by a response or a script) is cached for your organization
|
|
276
323
|
* only. The response's `cache.state` and `tier` say what served it.
|
|
277
324
|
*
|
|
278
325
|
* Synchronous: the response arrives when the page is done, within `timeout_ms` (at most 60 seconds). For
|
|
279
326
|
* many pages use a batch scrape or a crawl.
|
|
280
327
|
*
|
|
328
|
+
* Billing: one `vision.page` for a page that is returned, whichever tier served it. A free scrape never
|
|
329
|
+
* carries page content. A scrape that returns no page (an error answer: upstream error, timeout, blocked
|
|
330
|
+
* target, egress denial, extraction failure, a cache-only miss) bills nothing and does not count against the
|
|
331
|
+
* monthly allowance. A page vision judges a wall (`page_state` `blocked` or `captcha`: a refusal or
|
|
332
|
+
* challenge page, see PageState) is free too, and its content is withheld: the result has only `page_state`
|
|
333
|
+
* (with its `signal`), `status_code`, `final_url` and `content_withheld: true`, and none of the formats,
|
|
334
|
+
* `links`, `metadata`, the screenshot or `json`. The judgement is a heuristic and can take a page for a wall
|
|
335
|
+
* that is not one; such a page then comes back without its content, never with it for free, so it errs
|
|
336
|
+
* toward `ok`: a wall needs little text and an interstitial signal or a 403 or 429 status. With
|
|
337
|
+
* `walls: "bill"` a wall bills like any page and its content is returned. A scrape with `actions` bills
|
|
338
|
+
* whatever the page is and returns everything (its steps ran, and a step can send what it reads out through
|
|
339
|
+
* the page's own requests). A 403 or 429 that carries the page's content as text is not a wall (`page_state`
|
|
340
|
+
* `error`) and is billed like any page, whatever `include_tags`, `exclude_tags` or `only_main_content` keep
|
|
341
|
+
* of it. The same holds for batch and crawl pages and for cache hits. Once the organization has used its
|
|
342
|
+
* `vision.pages.monthly` allowance, scrapes answer `429 quota_exceeded` until the next UTC month.
|
|
343
|
+
*
|
|
344
|
+
* A browser that goes away during the render (the node's Chrome launcher stopped or restarted) answers `503
|
|
345
|
+
* product_unavailable` with `Retry-After`: retry, the node reconnects to the launcher by itself.
|
|
346
|
+
*
|
|
281
347
|
* `POST /v1/vision/scrape` · scope `vision:run` · served by the node
|
|
282
348
|
*/
|
|
283
349
|
scrape(body: T.ScrapeRequest, options?: RequestOptions): APIPromise<T.ScrapeResult>;
|
|
350
|
+
/**
|
|
351
|
+
* Search the web
|
|
352
|
+
*
|
|
353
|
+
* Searches the web for `query` and returns up to `limit` results in the provider's order, each with its URL,
|
|
354
|
+
* title and description. The node sends the query to its search provider (the Brave Search API) with the
|
|
355
|
+
* node's key and nothing that identifies your organization; the result sites are not contacted unless you ask
|
|
356
|
+
* for their pages. With `scrape`, every result is also scraped with those options, through the same egress
|
|
357
|
+
* guard and politeness as a scrape, and its document is in the result's `scrape`; a result whose scrape fails
|
|
358
|
+
* has `error` instead, and the search still answers 200 with a `scrape_failed` warning. One answer holds at
|
|
359
|
+
* most 64 MiB of pages; a result past that has `error` `search_answer_too_large` and is not billed. A search's
|
|
360
|
+
* results get no custom `headers`, `profile`, `actions` or `json` format: scrape the URLs you trust with those.
|
|
361
|
+
*
|
|
362
|
+
* Bills one `vision.page` per search that returns at least one result, plus one `vision.page` per scraped
|
|
363
|
+
* result (as a scrape bills). A search with no results bills nothing. Each search counts against
|
|
364
|
+
* `vision.search.monthly` (searches per UTC calendar month) and `vision.search.rpm`; it answers 429
|
|
365
|
+
* `quota_exceeded` or `rate_limited` when they are used up. A node without a search key answers 503
|
|
366
|
+
* `search_unavailable`.
|
|
367
|
+
*
|
|
368
|
+
* `POST /v1/vision/search` · scope `vision:run` · served by the node
|
|
369
|
+
*/
|
|
370
|
+
search(body: T.SearchRequest, options?: RequestOptions): APIPromise<T.SearchResult>;
|
|
284
371
|
/**
|
|
285
372
|
* List browser sessions
|
|
286
373
|
*
|
|
@@ -295,7 +382,8 @@ export declare class VisionAPI extends Namespace {
|
|
|
295
382
|
* Claims a warm, dedicated browser for your organization and returns it ready to drive. Load a `profile` to
|
|
296
383
|
* start signed in; set `persist_profile` to save cookies and storage back when the session closes. The
|
|
297
384
|
* session closes after `timeout_s` (at most 1,800) or on `DELETE`. Bills `vision.browser_ms` from claim to
|
|
298
|
-
* close.
|
|
385
|
+
* close. A node whose Chrome runs without its own sandbox (`chrome_sandbox: off` in `/readyz`) answers
|
|
386
|
+
* `503 product_unavailable`: one browser per session, with a renderer sandbox.
|
|
299
387
|
*
|
|
300
388
|
* `POST /v1/vision/sessions` · scope `vision:write` · served by the node
|
|
301
389
|
*/
|
|
@@ -326,7 +414,13 @@ export declare class VisionAPI extends Namespace {
|
|
|
326
414
|
* `navigate`, `click`, `hover`, `type`, `key`, `scroll`, `select` and `wait` (the same kinds and fields as
|
|
327
415
|
* render scripts), plus `evaluate`, `screenshot` and `markdown`. Execution stops at the first failed action
|
|
328
416
|
* unless `continue_on_error` is set; the failed action's result carries the error (for example
|
|
329
|
-
* `target_not_found
|
|
417
|
+
* `target_not_found`, or `target_covered` for a click whose target another element covers) and later actions
|
|
418
|
+
* are reported as `skipped`. The batch must finish within `timeout_ms`. The scripts vision runs in the page to
|
|
419
|
+
* find targets and wait run in an isolated world: they add nothing the page's own scripts can see. Only
|
|
420
|
+
* `evaluate` runs in the page's own JavaScript world.
|
|
421
|
+
* JavaScript dialogs never stall a batch: `alert`, `confirm` and `prompt` are dismissed (`confirm` returns
|
|
422
|
+
* false and `prompt` null; `accept_confirm: true` accepts `confirm`), `beforeunload` is accepted, and each
|
|
423
|
+
* dialog is listed in the `dialogs` of the action that was running.
|
|
330
424
|
*
|
|
331
425
|
* `POST /v1/vision/sessions/{session_id}/act` · scope `vision:run` · served by the node
|
|
332
426
|
*/
|
|
@@ -344,7 +438,15 @@ export declare class VisionAPI extends Namespace {
|
|
|
344
438
|
* `about:blank` (`file:`, `chrome:`, `chrome-extension:`, `view-source:`, `devtools:`, `data:`). These
|
|
345
439
|
* answer `cdp_method_blocked` in the CDP error (`error.data.code`). `Target.createBrowserContext` with
|
|
346
440
|
* `proxyServer`, `proxyBypassList` or `originsWithUniversalNetworkAccess` answers `forbidden` (403):
|
|
347
|
-
* every context of a session uses the session's egress.
|
|
441
|
+
* every context of a session uses the session's egress. Reading the browser's cookies and storage, which
|
|
442
|
+
* hold any profile the session loaded, needs `vision:profiles:export`, as exporting a profile's state does
|
|
443
|
+
* (default keys, `*` and `vision:*` leave it out): without it, `Network.getAllCookies`,
|
|
444
|
+
* `Network.getCookies`, `Storage.getCookies`, `Storage.getSharedStorageEntries`, `DOMStorage.*`,
|
|
445
|
+
* `IndexedDB.*` and `CacheStorage.*` answer `forbidden` (403) with `required_scope` in `error.data`, and
|
|
446
|
+
* network events reach the client without `Cookie` and `Set-Cookie` headers, raw header text or cookie
|
|
447
|
+
* lists. Until the profile scopes' kept window ends (2026-11-16) these reads still work. Scripts in the page
|
|
448
|
+
* are not filtered: `Runtime.evaluate` reads what the page's own scripts can, such as `document.cookie`
|
|
449
|
+
* (without HttpOnly cookies) and `localStorage`. Authenticate with the `Authorization` header or a
|
|
348
450
|
* ticket from `POST /v1/vision/sessions/{session_id}/ticket`. A client that falls more than a few MB
|
|
349
451
|
* behind is disconnected, and so is one that sends a message over 32 MiB. A message with a repeated member
|
|
350
452
|
* (two `method`s, say) answers the JSON-RPC parse error `-32700`.
|
|
@@ -373,4 +475,21 @@ export declare class VisionAPI extends Namespace {
|
|
|
373
475
|
* `POST /v1/vision/sessions/{session_id}/ticket` · scope `vision:read` · served by the node
|
|
374
476
|
*/
|
|
375
477
|
createSessionTicket(sessionId: string, options?: RequestOptions): APIPromise<T.StreamTicket>;
|
|
478
|
+
/**
|
|
479
|
+
* Get a session's timeline
|
|
480
|
+
*
|
|
481
|
+
* The session's act steps in order, one row per step (skipped steps included): kind, start, duration,
|
|
482
|
+
* status, error, the target's box in the viewport, and a JPEG thumbnail when the session was created with
|
|
483
|
+
* `thumbnails: true`. Also the cursor path: every pointer event, from act steps and from
|
|
484
|
+
* `Input.dispatchMouseEvent` commands a CDP client sent over the session's socket, with its time since the
|
|
485
|
+
* session was created. Kept with the session (at most 1,000 steps, 20,000 points and 8 MiB of thumbnails;
|
|
486
|
+
* `dropped` counts what did not fit); a row's `url` and its error's `detail` are cut to 2,048 characters, and
|
|
487
|
+
* a CDP command whose `type` or `button` is not one of the documented values adds no point. Thumbnails are
|
|
488
|
+
* dropped 15 minutes after the session closes. The closed sessions of one organization keep at most 64 MiB of
|
|
489
|
+
* timelines together: the most recently closed keep theirs, older ones read empty, with what they held
|
|
490
|
+
* counted in `dropped`. The timeline is empty for a session closed by a node restart.
|
|
491
|
+
*
|
|
492
|
+
* `GET /v1/vision/sessions/{session_id}/timeline` · scope `vision:read` · served by the node
|
|
493
|
+
*/
|
|
494
|
+
getSessionTimeline(sessionId: string, options?: RequestOptions): APIPromise<T.SessionTimeline>;
|
|
376
495
|
}
|
|
@@ -121,6 +121,14 @@ const mapOp = {
|
|
|
121
121
|
timeoutMs: 65000,
|
|
122
122
|
scope: "vision:run",
|
|
123
123
|
};
|
|
124
|
+
const prepareOp = {
|
|
125
|
+
id: "visionPrepare",
|
|
126
|
+
method: "POST",
|
|
127
|
+
path: "/v1/vision/prepare",
|
|
128
|
+
body: "json",
|
|
129
|
+
timeoutMs: 15000,
|
|
130
|
+
scope: "vision:run",
|
|
131
|
+
};
|
|
124
132
|
const listProfilesOp = {
|
|
125
133
|
id: "visionListProfiles",
|
|
126
134
|
method: "GET",
|
|
@@ -183,6 +191,8 @@ const readUrlOp = {
|
|
|
183
191
|
max_age_ms: "X-B3OS-Max-Age-Ms",
|
|
184
192
|
only_main_content: "X-B3OS-Only-Main-Content",
|
|
185
193
|
wait_for_ms: "X-B3OS-Wait-For-Ms",
|
|
194
|
+
respect_robots: "X-B3OS-Respect-Robots",
|
|
195
|
+
walls: "X-B3OS-Walls",
|
|
186
196
|
},
|
|
187
197
|
timeoutMs: 65000,
|
|
188
198
|
scope: "vision:run",
|
|
@@ -195,6 +205,14 @@ const scrapeOp = {
|
|
|
195
205
|
timeoutMs: 65000,
|
|
196
206
|
scope: "vision:run",
|
|
197
207
|
};
|
|
208
|
+
const searchOp = {
|
|
209
|
+
id: "visionSearch",
|
|
210
|
+
method: "POST",
|
|
211
|
+
path: "/v1/vision/search",
|
|
212
|
+
body: "json",
|
|
213
|
+
timeoutMs: 65000,
|
|
214
|
+
scope: "vision:run",
|
|
215
|
+
};
|
|
198
216
|
const listSessionsOp = {
|
|
199
217
|
id: "visionListSessions",
|
|
200
218
|
method: "GET",
|
|
@@ -262,6 +280,14 @@ const createSessionTicketOp = {
|
|
|
262
280
|
timeoutMs: 5000,
|
|
263
281
|
scope: "vision:read",
|
|
264
282
|
};
|
|
283
|
+
const getSessionTimelineOp = {
|
|
284
|
+
id: "visionGetSessionTimeline",
|
|
285
|
+
method: "GET",
|
|
286
|
+
path: "/v1/vision/sessions/{session_id}/timeline",
|
|
287
|
+
params: ["session_id"],
|
|
288
|
+
timeoutMs: 5000,
|
|
289
|
+
scope: "vision:read",
|
|
290
|
+
};
|
|
265
291
|
const createBatchOp = {
|
|
266
292
|
id: "visionCreateBatch",
|
|
267
293
|
method: "POST",
|
|
@@ -315,6 +341,7 @@ exports.visionOps = {
|
|
|
315
341
|
cancelExtract: cancelExtractOp,
|
|
316
342
|
extractEvents: extractEventsOp,
|
|
317
343
|
map: mapOp,
|
|
344
|
+
prepare: prepareOp,
|
|
318
345
|
listProfiles: listProfilesOp,
|
|
319
346
|
createProfile: createProfileOp,
|
|
320
347
|
deleteProfile: deleteProfileOp,
|
|
@@ -323,6 +350,7 @@ exports.visionOps = {
|
|
|
323
350
|
exportProfileState: exportProfileStateOp,
|
|
324
351
|
readUrl: readUrlOp,
|
|
325
352
|
scrape: scrapeOp,
|
|
353
|
+
search: searchOp,
|
|
326
354
|
listSessions: listSessionsOp,
|
|
327
355
|
createSession: createSessionOp,
|
|
328
356
|
closeSession: closeSessionOp,
|
|
@@ -331,6 +359,7 @@ exports.visionOps = {
|
|
|
331
359
|
connectCdp: connectCdpOp,
|
|
332
360
|
saveSessionProfile: saveSessionProfileOp,
|
|
333
361
|
createSessionTicket: createSessionTicketOp,
|
|
362
|
+
getSessionTimeline: getSessionTimelineOp,
|
|
334
363
|
};
|
|
335
364
|
/**
|
|
336
365
|
* Browsers and web extraction: scrape, map, crawl, batch, browser sessions and profiles (`/v1/vision`).
|
|
@@ -349,7 +378,9 @@ class VisionAPI extends namespace_ts_1.Namespace {
|
|
|
349
378
|
/**
|
|
350
379
|
* Scrape a list of URLs
|
|
351
380
|
*
|
|
352
|
-
* Starts a job that scrapes up to 1,000 URLs with the same options. Each page bills one
|
|
381
|
+
* Starts a job that scrapes up to 1,000 URLs with the same options. Each delivered page bills one
|
|
382
|
+
* `vision.page`, except a wall, which is free and carries only its state, status and final URL
|
|
383
|
+
* (`content_withheld`) unless the page options set `walls: "bill"`, as for a single scrape (visionScrape).
|
|
353
384
|
* Results are listed with `GET /v1/vision/batches/{batch_id}/pages`; `?wait=`, the events stream and
|
|
354
385
|
* `webhook` report progress.
|
|
355
386
|
*
|
|
@@ -382,7 +413,9 @@ class VisionAPI extends namespace_ts_1.Namespace {
|
|
|
382
413
|
* Stream a batch's events
|
|
383
414
|
*
|
|
384
415
|
* Server-sent events for the batch: lifecycle events plus `page.succeeded` and `page.failed` per URL. Ends
|
|
385
|
-
* after the terminal event. Reconnect with `Last-Event-ID` to resume.
|
|
416
|
+
* after the terminal event. Reconnect with `Last-Event-ID` to resume. Events are kept with the batch, so the
|
|
417
|
+
* stream reads the same, with the same `seq`, after the node restarts; a batch that was running then ends
|
|
418
|
+
* with `job.failed`.
|
|
386
419
|
*
|
|
387
420
|
* `GET /v1/vision/batches/{batch_id}/events` · scope `vision:read` · served by the node
|
|
388
421
|
*/
|
|
@@ -416,8 +449,14 @@ class VisionAPI extends namespace_ts_1.Namespace {
|
|
|
416
449
|
* Crawl a site
|
|
417
450
|
*
|
|
418
451
|
* Starts a job that discovers pages from `url` (links and sitemaps), breadth first, and scrapes up to `limit`
|
|
419
|
-
* pages (at most 500).
|
|
420
|
-
*
|
|
452
|
+
* pages (at most 500). Requests to one host are spaced politely (`delay_ms`). robots.txt rules apply only
|
|
453
|
+
* with `respect_robots: true`: disallowed pages are skipped (listed in `result.robots_blocked`), a robots.txt
|
|
454
|
+
* that cannot be read stops the crawl's pages (RFC 9309), and its Crawl-delay is used when `delay_ms` is not
|
|
455
|
+
* set; its `Sitemap:` lines then point sitemap discovery. Without it no robots.txt is fetched at all and
|
|
456
|
+
* sitemap discovery starts from `/sitemap.xml`. One crawl runs at a time per organization.
|
|
457
|
+
* Each delivered page bills one `vision.page`, except a wall, which is free and carries only its state, status
|
|
458
|
+
* and final URL (`content_withheld`; its links are not followed) unless the page options set
|
|
459
|
+
* `walls: "bill"`, as for a single scrape (visionScrape).
|
|
421
460
|
*
|
|
422
461
|
* `POST /v1/vision/crawls` · scope `vision:run` · served by the node
|
|
423
462
|
*/
|
|
@@ -448,7 +487,9 @@ class VisionAPI extends namespace_ts_1.Namespace {
|
|
|
448
487
|
* Stream a crawl's events
|
|
449
488
|
*
|
|
450
489
|
* Server-sent events for the crawl: lifecycle events plus `page.succeeded` and `page.failed` per page. Ends
|
|
451
|
-
* after the terminal event. Reconnect with `Last-Event-ID` to resume.
|
|
490
|
+
* after the terminal event. Reconnect with `Last-Event-ID` to resume. Events are kept with the crawl, so the
|
|
491
|
+
* stream reads the same, with the same `seq`, after the node restarts; a crawl that was running then ends
|
|
492
|
+
* with `job.failed`.
|
|
452
493
|
*
|
|
453
494
|
* `GET /v1/vision/crawls/{crawl_id}/events` · scope `vision:read` · served by the node
|
|
454
495
|
*/
|
|
@@ -526,13 +567,36 @@ class VisionAPI extends namespace_ts_1.Namespace {
|
|
|
526
567
|
*
|
|
527
568
|
* Lists URLs on a site from its sitemaps and from links on the start page, without scraping each page. Use it
|
|
528
569
|
* to choose what to scrape or crawl. `search` orders the results by relevance to a phrase. Bills one
|
|
529
|
-
* `vision.page` per call.
|
|
570
|
+
* `vision.page` per call that returns at least one link (a map that found nothing is free). A start page
|
|
571
|
+
* that is a wall (`page_state` `blocked` or `captcha`) gives no links, not even its own URL, so a map of a
|
|
572
|
+
* wall finds only what the sitemaps list.
|
|
530
573
|
*
|
|
531
574
|
* `POST /v1/vision/map` · scope `vision:run` · served by the node
|
|
532
575
|
*/
|
|
533
576
|
map(body, options) {
|
|
534
577
|
return this._client._call(mapOp, { body }, options);
|
|
535
578
|
}
|
|
579
|
+
/**
|
|
580
|
+
* Prepare a coming scrape
|
|
581
|
+
*
|
|
582
|
+
* Warms what a scrape of `url` will need, so it is off the scrape's critical path: the destination resolved
|
|
583
|
+
* and checked by the egress guard, and a keep-alive connection to the origin that the scrape's HTTP fetch
|
|
584
|
+
* reuses (opened with a `HEAD` of the URL, whose answer is not used, carrying the request headers the
|
|
585
|
+
* scrape's navigation sends: Chrome's for that URL). Routines call it for the next step
|
|
586
|
+
* while the current one runs. Bills nothing. With `respect_robots: true` it fetches and caches the origin's
|
|
587
|
+
* robots.txt instead of the `HEAD`, and `robots` says whether robots.txt allows the URL (`unreachable`: a
|
|
588
|
+
* scrape still proceeds, a crawl does not); otherwise `robots` is `not_checked`.
|
|
589
|
+
*
|
|
590
|
+
* It sends the target at most one `HEAD` per origin per 60 seconds for your organization: a prepare of an
|
|
591
|
+
* origin you prepared within the last 60 seconds finds the connection pooled and sends nothing (its
|
|
592
|
+
* `timing` then has no `connect_ms`). Each request a prepare does send (the `HEAD`, or a robots.txt this node
|
|
593
|
+
* does not hold yet) counts against `vision.scrape.rpm` like a scrape: `429 rate_limited` when it is used up.
|
|
594
|
+
*
|
|
595
|
+
* `POST /v1/vision/prepare` · scope `vision:run` · served by the node
|
|
596
|
+
*/
|
|
597
|
+
prepare(body, options) {
|
|
598
|
+
return this._client._call(prepareOp, { body }, options);
|
|
599
|
+
}
|
|
536
600
|
/**
|
|
537
601
|
* List profiles
|
|
538
602
|
*
|
|
@@ -592,7 +656,12 @@ class VisionAPI extends namespace_ts_1.Namespace {
|
|
|
592
656
|
*
|
|
593
657
|
* Returns the current revision's storage state (Playwright `storageState` JSON) so you can load it into your
|
|
594
658
|
* own browser or move it to another project. It contains live session cookies: treat the response like a
|
|
595
|
-
* password. Requires `vision:
|
|
659
|
+
* password. Requires `vision:profiles:export` as well as `vision:write`. Export is an explicit grant: default
|
|
660
|
+
* keys, `*` and `vision:*` do not include it, so a key that exports state names the scope. Until the end of the
|
|
661
|
+
* 14-day kept window (plan 3.18), a key with `vision:write` and without `vision:profiles:export` still exports,
|
|
662
|
+
* and the response carries `Sunset` with the date that stops. A profile whose state a B3OS session saved
|
|
663
|
+
* (`exportable: false`) is never exported: 403 `profile_not_exportable`, with any scope, once the kept window
|
|
664
|
+
* ends (inside it, it exports with `Sunset`).
|
|
596
665
|
*
|
|
597
666
|
* `GET /v1/vision/profiles/{profile_id}/state` · scope `vision:write` · served by the node
|
|
598
667
|
*/
|
|
@@ -609,19 +678,62 @@ class VisionAPI extends namespace_ts_1.Namespace {
|
|
|
609
678
|
* Scrape a page
|
|
610
679
|
*
|
|
611
680
|
* Fetches one URL and returns the formats you ask for. With `engine: "auto"` (the default) vision answers
|
|
612
|
-
* from the cache when a fresh copy exists (`max_age_ms`, default 2 days), otherwise fetches over HTTP and
|
|
613
|
-
*
|
|
681
|
+
* from the cache when a fresh copy exists (`max_age_ms`, default 2 days), otherwise fetches over HTTP and uses a
|
|
682
|
+
* warm browser when the page needs JavaScript, when the fetch came back thin or mostly script, and when the
|
|
683
|
+
* fetch failed in a way a browser may not. Custom `headers`, a `profile` or `actions`
|
|
614
684
|
* bypass the cache; a page that sets cookies (by a response or a script) is cached for your organization
|
|
615
685
|
* only. The response's `cache.state` and `tier` say what served it.
|
|
616
686
|
*
|
|
617
687
|
* Synchronous: the response arrives when the page is done, within `timeout_ms` (at most 60 seconds). For
|
|
618
688
|
* many pages use a batch scrape or a crawl.
|
|
619
689
|
*
|
|
690
|
+
* Billing: one `vision.page` for a page that is returned, whichever tier served it. A free scrape never
|
|
691
|
+
* carries page content. A scrape that returns no page (an error answer: upstream error, timeout, blocked
|
|
692
|
+
* target, egress denial, extraction failure, a cache-only miss) bills nothing and does not count against the
|
|
693
|
+
* monthly allowance. A page vision judges a wall (`page_state` `blocked` or `captcha`: a refusal or
|
|
694
|
+
* challenge page, see PageState) is free too, and its content is withheld: the result has only `page_state`
|
|
695
|
+
* (with its `signal`), `status_code`, `final_url` and `content_withheld: true`, and none of the formats,
|
|
696
|
+
* `links`, `metadata`, the screenshot or `json`. The judgement is a heuristic and can take a page for a wall
|
|
697
|
+
* that is not one; such a page then comes back without its content, never with it for free, so it errs
|
|
698
|
+
* toward `ok`: a wall needs little text and an interstitial signal or a 403 or 429 status. With
|
|
699
|
+
* `walls: "bill"` a wall bills like any page and its content is returned. A scrape with `actions` bills
|
|
700
|
+
* whatever the page is and returns everything (its steps ran, and a step can send what it reads out through
|
|
701
|
+
* the page's own requests). A 403 or 429 that carries the page's content as text is not a wall (`page_state`
|
|
702
|
+
* `error`) and is billed like any page, whatever `include_tags`, `exclude_tags` or `only_main_content` keep
|
|
703
|
+
* of it. The same holds for batch and crawl pages and for cache hits. Once the organization has used its
|
|
704
|
+
* `vision.pages.monthly` allowance, scrapes answer `429 quota_exceeded` until the next UTC month.
|
|
705
|
+
*
|
|
706
|
+
* A browser that goes away during the render (the node's Chrome launcher stopped or restarted) answers `503
|
|
707
|
+
* product_unavailable` with `Retry-After`: retry, the node reconnects to the launcher by itself.
|
|
708
|
+
*
|
|
620
709
|
* `POST /v1/vision/scrape` · scope `vision:run` · served by the node
|
|
621
710
|
*/
|
|
622
711
|
scrape(body, options) {
|
|
623
712
|
return this._client._call(scrapeOp, { body }, options);
|
|
624
713
|
}
|
|
714
|
+
/**
|
|
715
|
+
* Search the web
|
|
716
|
+
*
|
|
717
|
+
* Searches the web for `query` and returns up to `limit` results in the provider's order, each with its URL,
|
|
718
|
+
* title and description. The node sends the query to its search provider (the Brave Search API) with the
|
|
719
|
+
* node's key and nothing that identifies your organization; the result sites are not contacted unless you ask
|
|
720
|
+
* for their pages. With `scrape`, every result is also scraped with those options, through the same egress
|
|
721
|
+
* guard and politeness as a scrape, and its document is in the result's `scrape`; a result whose scrape fails
|
|
722
|
+
* has `error` instead, and the search still answers 200 with a `scrape_failed` warning. One answer holds at
|
|
723
|
+
* most 64 MiB of pages; a result past that has `error` `search_answer_too_large` and is not billed. A search's
|
|
724
|
+
* results get no custom `headers`, `profile`, `actions` or `json` format: scrape the URLs you trust with those.
|
|
725
|
+
*
|
|
726
|
+
* Bills one `vision.page` per search that returns at least one result, plus one `vision.page` per scraped
|
|
727
|
+
* result (as a scrape bills). A search with no results bills nothing. Each search counts against
|
|
728
|
+
* `vision.search.monthly` (searches per UTC calendar month) and `vision.search.rpm`; it answers 429
|
|
729
|
+
* `quota_exceeded` or `rate_limited` when they are used up. A node without a search key answers 503
|
|
730
|
+
* `search_unavailable`.
|
|
731
|
+
*
|
|
732
|
+
* `POST /v1/vision/search` · scope `vision:run` · served by the node
|
|
733
|
+
*/
|
|
734
|
+
search(body, options) {
|
|
735
|
+
return this._client._call(searchOp, { body }, options);
|
|
736
|
+
}
|
|
625
737
|
/**
|
|
626
738
|
* List browser sessions
|
|
627
739
|
*
|
|
@@ -638,7 +750,8 @@ class VisionAPI extends namespace_ts_1.Namespace {
|
|
|
638
750
|
* Claims a warm, dedicated browser for your organization and returns it ready to drive. Load a `profile` to
|
|
639
751
|
* start signed in; set `persist_profile` to save cookies and storage back when the session closes. The
|
|
640
752
|
* session closes after `timeout_s` (at most 1,800) or on `DELETE`. Bills `vision.browser_ms` from claim to
|
|
641
|
-
* close.
|
|
753
|
+
* close. A node whose Chrome runs without its own sandbox (`chrome_sandbox: off` in `/readyz`) answers
|
|
754
|
+
* `503 product_unavailable`: one browser per session, with a renderer sandbox.
|
|
642
755
|
*
|
|
643
756
|
* `POST /v1/vision/sessions` · scope `vision:write` · served by the node
|
|
644
757
|
*/
|
|
@@ -675,7 +788,13 @@ class VisionAPI extends namespace_ts_1.Namespace {
|
|
|
675
788
|
* `navigate`, `click`, `hover`, `type`, `key`, `scroll`, `select` and `wait` (the same kinds and fields as
|
|
676
789
|
* render scripts), plus `evaluate`, `screenshot` and `markdown`. Execution stops at the first failed action
|
|
677
790
|
* unless `continue_on_error` is set; the failed action's result carries the error (for example
|
|
678
|
-
* `target_not_found
|
|
791
|
+
* `target_not_found`, or `target_covered` for a click whose target another element covers) and later actions
|
|
792
|
+
* are reported as `skipped`. The batch must finish within `timeout_ms`. The scripts vision runs in the page to
|
|
793
|
+
* find targets and wait run in an isolated world: they add nothing the page's own scripts can see. Only
|
|
794
|
+
* `evaluate` runs in the page's own JavaScript world.
|
|
795
|
+
* JavaScript dialogs never stall a batch: `alert`, `confirm` and `prompt` are dismissed (`confirm` returns
|
|
796
|
+
* false and `prompt` null; `accept_confirm: true` accepts `confirm`), `beforeunload` is accepted, and each
|
|
797
|
+
* dialog is listed in the `dialogs` of the action that was running.
|
|
679
798
|
*
|
|
680
799
|
* `POST /v1/vision/sessions/{session_id}/act` · scope `vision:run` · served by the node
|
|
681
800
|
*/
|
|
@@ -695,7 +814,15 @@ class VisionAPI extends namespace_ts_1.Namespace {
|
|
|
695
814
|
* `about:blank` (`file:`, `chrome:`, `chrome-extension:`, `view-source:`, `devtools:`, `data:`). These
|
|
696
815
|
* answer `cdp_method_blocked` in the CDP error (`error.data.code`). `Target.createBrowserContext` with
|
|
697
816
|
* `proxyServer`, `proxyBypassList` or `originsWithUniversalNetworkAccess` answers `forbidden` (403):
|
|
698
|
-
* every context of a session uses the session's egress.
|
|
817
|
+
* every context of a session uses the session's egress. Reading the browser's cookies and storage, which
|
|
818
|
+
* hold any profile the session loaded, needs `vision:profiles:export`, as exporting a profile's state does
|
|
819
|
+
* (default keys, `*` and `vision:*` leave it out): without it, `Network.getAllCookies`,
|
|
820
|
+
* `Network.getCookies`, `Storage.getCookies`, `Storage.getSharedStorageEntries`, `DOMStorage.*`,
|
|
821
|
+
* `IndexedDB.*` and `CacheStorage.*` answer `forbidden` (403) with `required_scope` in `error.data`, and
|
|
822
|
+
* network events reach the client without `Cookie` and `Set-Cookie` headers, raw header text or cookie
|
|
823
|
+
* lists. Until the profile scopes' kept window ends (2026-11-16) these reads still work. Scripts in the page
|
|
824
|
+
* are not filtered: `Runtime.evaluate` reads what the page's own scripts can, such as `document.cookie`
|
|
825
|
+
* (without HttpOnly cookies) and `localStorage`. Authenticate with the `Authorization` header or a
|
|
699
826
|
* ticket from `POST /v1/vision/sessions/{session_id}/ticket`. A client that falls more than a few MB
|
|
700
827
|
* behind is disconnected, and so is one that sends a message over 32 MiB. A message with a repeated member
|
|
701
828
|
* (two `method`s, say) answers the JSON-RPC parse error `-32700`.
|
|
@@ -731,6 +858,25 @@ class VisionAPI extends namespace_ts_1.Namespace {
|
|
|
731
858
|
createSessionTicket(sessionId, options) {
|
|
732
859
|
return this._client._call(createSessionTicketOp, { path: [sessionId] }, options);
|
|
733
860
|
}
|
|
861
|
+
/**
|
|
862
|
+
* Get a session's timeline
|
|
863
|
+
*
|
|
864
|
+
* The session's act steps in order, one row per step (skipped steps included): kind, start, duration,
|
|
865
|
+
* status, error, the target's box in the viewport, and a JPEG thumbnail when the session was created with
|
|
866
|
+
* `thumbnails: true`. Also the cursor path: every pointer event, from act steps and from
|
|
867
|
+
* `Input.dispatchMouseEvent` commands a CDP client sent over the session's socket, with its time since the
|
|
868
|
+
* session was created. Kept with the session (at most 1,000 steps, 20,000 points and 8 MiB of thumbnails;
|
|
869
|
+
* `dropped` counts what did not fit); a row's `url` and its error's `detail` are cut to 2,048 characters, and
|
|
870
|
+
* a CDP command whose `type` or `button` is not one of the documented values adds no point. Thumbnails are
|
|
871
|
+
* dropped 15 minutes after the session closes. The closed sessions of one organization keep at most 64 MiB of
|
|
872
|
+
* timelines together: the most recently closed keep theirs, older ones read empty, with what they held
|
|
873
|
+
* counted in `dropped`. The timeline is empty for a session closed by a node restart.
|
|
874
|
+
*
|
|
875
|
+
* `GET /v1/vision/sessions/{session_id}/timeline` · scope `vision:read` · served by the node
|
|
876
|
+
*/
|
|
877
|
+
getSessionTimeline(sessionId, options) {
|
|
878
|
+
return this._client._call(getSessionTimelineOp, { path: [sessionId] }, options);
|
|
879
|
+
}
|
|
734
880
|
}
|
|
735
881
|
exports.VisionAPI = VisionAPI;
|
|
736
882
|
//# sourceMappingURL=vision.js.map
|