@crawlbrulee/sdk 1.6.0 → 1.7.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/dist/index.d.cts CHANGED
@@ -166,24 +166,143 @@ type ScreenshotDeviceMode = 'desktop' | 'mobile';
166
166
  * {@link ScreenshotRequest.color_scheme}.
167
167
  */
168
168
  type ScreenshotColorScheme = 'light' | 'dark';
169
- /** A `wait` action: pause for `ms` milliseconds before the next step. */
170
- interface ScreenshotWaitAction {
169
+ /** Fields every action takes. */
170
+ interface ScrapeActionBase {
171
+ /**
172
+ * When `true`, a failure of this action does not stop the list: it is
173
+ * reported as `skipped` and the next action runs. A page that moves on to
174
+ * another page during the action still stops the list. Defaults to `false`.
175
+ */
176
+ optional?: boolean;
177
+ }
178
+ /** Wait for a set time. */
179
+ interface ScrapeWaitAction extends ScrapeActionBase {
171
180
  type: 'wait';
172
- /** Milliseconds to wait. Must be a non-negative integer. */
181
+ /** Milliseconds to wait, from 0 to 60 000. */
173
182
  ms: number;
174
183
  }
175
- /** A `scroll` action: scroll the page by `pixels` (positive = down). */
176
- interface ScreenshotScrollAction {
184
+ /** Scroll by a number of pixels. */
185
+ interface ScrapeScrollByAction extends ScrapeActionBase {
177
186
  type: 'scroll';
178
- /** Pixels to scroll. Positive scrolls down, negative scrolls up. */
187
+ /** Pixels to scroll down. Negative scrolls up. */
179
188
  pixels: number;
189
+ to?: never;
190
+ /**
191
+ * How long the scroll takes, in milliseconds, up to 60 000. A slow scroll
192
+ * gives images further down the page time to load on the way; 0 jumps at
193
+ * once. Without it, the page scrolls at a steady pace, taking up to 5 s.
194
+ */
195
+ duration_ms?: number;
196
+ }
197
+ /** Scroll to an edge of the page or to an element. */
198
+ interface ScrapeScrollToAction extends ScrapeActionBase {
199
+ type: 'scroll';
200
+ /**
201
+ * `top`, `bottom`, `left` or `right` of the page, or a CSS selector, which
202
+ * brings the first match to the middle of the window. It waits up to 5 s for
203
+ * the element.
204
+ */
205
+ to: 'top' | 'bottom' | 'left' | 'right' | (string & {});
206
+ pixels?: never;
207
+ /** How long the scroll takes, in milliseconds. See {@link ScrapeScrollByAction.duration_ms}. */
208
+ duration_ms?: number;
209
+ }
210
+ /** Scroll the page: by `pixels`, or `to` a place. Use one of the two, not both. */
211
+ type ScrapeScrollAction = ScrapeScrollByAction | ScrapeScrollToAction;
212
+ /** Wait for an element to appear. */
213
+ interface ScrapeWaitForAction extends ScrapeActionBase {
214
+ type: 'wait_for';
215
+ /**
216
+ * CSS selector. The action waits until the first match is on the page and
217
+ * visible, for up to 10 s; after that it fails.
218
+ */
219
+ selector: string;
180
220
  }
181
221
  /**
182
- * Actions performed before the screenshot is taken. The server caps the total
183
- * wait time (~20 s) and total absolute scroll distance (~50 000 px) across
184
- * the array; at most 5 actions are accepted.
222
+ * Move the mouse over an element, or to a point in the window. Desktop only:
223
+ * on a mobile device it is always `skipped`.
185
224
  */
186
- type ScreenshotBeforeAction = ScreenshotWaitAction | ScreenshotScrollAction;
225
+ type ScrapeHoverAction = ScrapeActionBase & {
226
+ type: 'hover';
227
+ } & ({
228
+ /** CSS selector: the mouse goes to the first match, brought into view first. */
229
+ selector: string;
230
+ x?: never;
231
+ y?: never;
232
+ } | {
233
+ selector?: never;
234
+ /** Pixels from the left edge of the window, 0 to 10 000. */
235
+ x: number;
236
+ /** Pixels from the top edge of the window, 0 to 10 000. */
237
+ y: number;
238
+ });
239
+ /** Click an element (a tap on a mobile device). */
240
+ interface ScrapeClickAction extends ScrapeActionBase {
241
+ type: 'click';
242
+ /**
243
+ * CSS selector: the first match on the page itself (not inside a frame or a
244
+ * shadow root), brought into view first.
245
+ */
246
+ selector: string;
247
+ }
248
+ /**
249
+ * Type text into a field, such as a search box. To send the form, `click` its
250
+ * button next.
251
+ */
252
+ interface ScrapeTypeAction extends ScrapeActionBase {
253
+ type: 'type';
254
+ /**
255
+ * CSS selector of a field you can type into: the first match on the page
256
+ * itself (not inside a frame or a shadow root).
257
+ */
258
+ selector: string;
259
+ /**
260
+ * The text, 1 to 200 characters, with no line breaks or tabs. Typing takes
261
+ * up to 90 ms a character, and that time counts toward the list's 60 s.
262
+ */
263
+ text: string;
264
+ /** When `true`, the field is emptied first. Defaults to `false`. */
265
+ clear?: boolean;
266
+ }
267
+ /**
268
+ * Pick an option in a `<select>` dropdown, by `value` or by `label`. A dropdown
269
+ * the page builds from other elements takes two `click`s instead.
270
+ */
271
+ type ScrapeSelectAction = ScrapeActionBase & {
272
+ type: 'select';
273
+ /**
274
+ * CSS selector of the `<select>`: the first match on the page itself (not
275
+ * inside a frame or a shadow root).
276
+ */
277
+ selector: string;
278
+ } & ({
279
+ /** The option's value. */
280
+ value: string;
281
+ label?: never;
282
+ } | {
283
+ value?: never;
284
+ /** The option's text as the page shows it (spaces at either end do not count). */
285
+ label: string;
286
+ });
287
+ /**
288
+ * One thing to do on the page before it is read. The list runs in order, up
289
+ * to 12 actions and 60 s in total. See https://crawlbrulee.com/docs/scrape/actions.
290
+ */
291
+ type ScrapeAction = ScrapeWaitAction | ScrapeScrollAction | ScrapeWaitForAction | ScrapeHoverAction | ScrapeClickAction | ScrapeTypeAction | ScrapeSelectAction;
292
+ /** The `type` of a {@link ScrapeAction}. */
293
+ type ScrapeActionType = ScrapeAction['type'];
294
+ /** @deprecated Use {@link ScrapeWaitAction}. */
295
+ type ScreenshotWaitAction = ScrapeWaitAction;
296
+ /**
297
+ * @deprecated Use {@link ScrapeScrollAction}. Kept at its old shape: a scroll
298
+ * by `pixels`.
299
+ */
300
+ type ScreenshotScrollAction = ScrapeScrollByAction;
301
+ /**
302
+ * @deprecated Use {@link ScrapeAction}. Kept at its old shape: a `wait` or a
303
+ * scroll by `pixels`. `actions_before` itself takes every {@link ScrapeAction}.
304
+ */
305
+ type ScreenshotBeforeAction = ScrapeWaitAction | ScrapeScrollByAction;
187
306
  /**
188
307
  * Action performed after the screenshot is taken. Currently only `slice` is
189
308
  * supported — it cuts the screenshot into horizontal tiles of `height` px.
@@ -222,8 +341,12 @@ interface ScreenshotRequest {
222
341
  * dark theme too. No extra credits.
223
342
  */
224
343
  color_scheme?: ScreenshotColorScheme;
225
- /** Pre-capture actions (waits and scrolls). Maximum 5 entries. */
226
- actions_before?: ScreenshotBeforeAction[];
344
+ /**
345
+ * @deprecated Use the top-level {@link ScrapeRequest.actions}, which takes
346
+ * the same list and runs it at the same time. Sending a non-empty list in
347
+ * both is a `400`. This field will be removed on 2027-02-01.
348
+ */
349
+ actions_before?: ScrapeAction[];
227
350
  /** Post-capture actions (e.g. slice into tiles). Maximum 1 entry. */
228
351
  actions_after?: ScreenshotAfterAction[];
229
352
  }
@@ -390,9 +513,14 @@ interface ScrapeExtract {
390
513
  /** Extract the page as clean Markdown. Default `true`. */
391
514
  markdown?: boolean;
392
515
  /**
393
- * Return the raw, unprocessed HTML. Default `false`. Capped at 10 000 000
394
- * characters per page; past that the HTML is truncated at a tag boundary and
395
- * a `raw_html_truncated` warning is returned.
516
+ * Return the page HTML with its classes and attributes, after `cleanup` and
517
+ * after any `actions`. Default `false`. Scripts and styles are removed,
518
+ * except the JSON-LD blocks (`<script type="application/ld+json">`), which
519
+ * are kept up to 100 KB per page. Capped at 10 000 000 characters per page;
520
+ * past that the HTML is truncated at a tag boundary and a
521
+ * `raw_html_truncated` warning is returned. For the page without cleanup,
522
+ * set `cleanup.ads_and_popups` to `false` and send no
523
+ * `cleanup.exclude_selectors` (see {@link ScrapeCleanup}).
396
524
  */
397
525
  raw_html?: boolean;
398
526
  /**
@@ -492,22 +620,29 @@ interface PdfRequest {
492
620
  media?: PdfMedia;
493
621
  }
494
622
  /**
495
- * What is removed from the page before any output is built.
623
+ * What is removed from the page, once, when it has loaded: before any output
624
+ * is built and before the `actions` run. A page a click loads is cleaned when
625
+ * it loads. Something the page adds later, such as a popup that opens after a
626
+ * delay, is not removed.
496
627
  *
497
- * Applies to `markdown`, `cleaned_html`, `links`, `images` and `elements` on
498
- * every engine, and to the screenshot. It never applies to `raw_html` — that is always the
499
- * page as it arrived, before anything was removed.
628
+ * Applies to every output on every engine: `markdown`, `cleaned_html`,
629
+ * `raw_html`, `metadata`, `links`, `images`, `elements`, the screenshot and
630
+ * the PDF. To get the page without cleanup, set `ads_and_popups` to `false`
631
+ * and send no `exclude_selectors`.
500
632
  */
501
633
  interface ScrapeCleanup {
502
634
  /**
503
635
  * Remove ads, cookie banners, consent dialogs and chat widgets. Defaults to
504
- * `true` server-side. Set it to `false` to capture the page as-is, or to get
636
+ * `true` server-side. Set it to `false` to get the page as-is, or to get
505
637
  * past a site that refuses to serve content to an ad-blocking client.
506
638
  */
507
639
  ads_and_popups?: boolean;
508
640
  /**
509
641
  * CSS selectors whose elements are removed before anything is captured. Use
510
- * it for a banner or widget `ads_and_popups` does not recognise.
642
+ * it for a banner or widget `ads_and_popups` does not recognise. Standard
643
+ * CSS only: a selector browsers do not support, such as `:contains()`,
644
+ * removes nothing. An element removed here can't be used by an action
645
+ * later: a `click` on it fails.
511
646
  *
512
647
  * At most 100 selectors, each at most 500 characters. A cached result is
513
648
  * only reused for a request that removes the same selectors.
@@ -519,9 +654,10 @@ interface ScrapeCleanup {
519
654
  * A cached result has to match the url, the screenshot setup (type, viewport,
520
655
  * device mode, color scheme), the PDF settings, `cleanup.ads_and_popups`,
521
656
  * `cleanup.exclude_selectors` and `location.locale`, and `require_js: true`
522
- * only matches browser-rendered results. A non-zero `actions_before` wait or
523
- * scroll disables caching for that request. A request with `headers` or
524
- * `cookies` never reads from or writes to the cache.
657
+ * only matches browser-rendered results. A request with `actions` (or the
658
+ * deprecated `extract.screenshot.actions_before`) that do something, or with
659
+ * `headers` or `cookies`, never reads from or writes to the cache. An empty
660
+ * list, a `wait` of 0 or a `scroll` of 0 pixels does not count.
525
661
  */
526
662
  interface ScrapeCache {
527
663
  /**
@@ -573,13 +709,40 @@ interface ScrapeRequest {
573
709
  */
574
710
  require_js?: boolean;
575
711
  /**
576
- * What is removed from the page before any output is built. Shapes
577
- * `markdown`, `cleaned_html`, `links`, `images`, `elements` and the screenshot.
578
- *
579
- * Never applies to `raw_html`, which is always the page before anything was
580
- * removed.
712
+ * What is removed from the page when it has loaded, before any output is
713
+ * built and before the `actions` run. Shapes every output, `raw_html`,
714
+ * `metadata`, the screenshot and the PDF included. See {@link ScrapeCleanup}.
581
715
  */
582
716
  cleanup?: ScrapeCleanup;
717
+ /**
718
+ * Things to do on the page, in order, before it is read: `wait`, `scroll`,
719
+ * `wait_for` (an element), `hover`, `click`, `type` (text into a field) and
720
+ * `select` (an option of a dropdown). To fill in and send a form, such as a
721
+ * search box, `type` into the field, then `click` its button. Every output,
722
+ * the screenshot and the PDF included, shows the page as the actions left it.
723
+ *
724
+ * - Up to 12 actions, and 60 s for the whole list, waits, scroll durations
725
+ * and typing included.
726
+ * - A list with an action that does something runs in a browser, so it is
727
+ * billed as a browser scrape, and never reads from or writes to the cache.
728
+ * The actions themselves cost no extra credits.
729
+ * - The actions run after `cleanup`. A popup that opens later can still be in
730
+ * the way of a click, so click its close button first.
731
+ * - An action that fails stops the list: the page still comes back as it is
732
+ * then, billed as usual, with the `actions_incomplete` warning. Mark an
733
+ * action `optional` to go on past it. The response reports each action in
734
+ * {@link ScrapeResponse.actions}.
735
+ * - A click (or a `type` or `select` whose page sends the form) that loads a
736
+ * new page is followed: the response is that page, and the rest of the list
737
+ * runs there. A click that opens a new tab is ignored.
738
+ * - If a try fails and we try again, the actions run again from the start,
739
+ * so don't use them for anything that must happen only once, such as an
740
+ * order.
741
+ * - A request that `type`s has a lower rate limit of its own.
742
+ *
743
+ * See https://crawlbrulee.com/docs/scrape/actions.
744
+ */
745
+ actions?: ScrapeAction[];
583
746
  /**
584
747
  * Proxy tier. Defaults to `auto`: we start with the lightest way to get the
585
748
  * page and step up our effort on our own when a site needs more (a stronger
@@ -806,6 +969,9 @@ interface ScrapeMetadata {
806
969
  *
807
970
  * - `custom_user_agent`: the request set its own `User-Agent` header; this
808
971
  * can lower the success rate.
972
+ * - `actions_incomplete`: at least one action in `actions` failed or never
973
+ * ran. {@link ScrapeResponse.actions} says which, and the page is the one
974
+ * the actions left.
809
975
  *
810
976
  * The page body has no such code: if it can't be extracted the scrape fails
811
977
  * outright rather than returning a hollow `200`, and isn't billed.
@@ -814,7 +980,25 @@ interface ScrapeMetadata {
814
980
  * its own, so new scrapes never send it. It stays in the union because results
815
981
  * stored before that change can still carry it. Don't rely on it in new code.
816
982
  */
817
- type ScrapeWarningCode = 'screenshot_truncated' | 'links_truncated' | 'inline_images_truncated' | 'raw_html_truncated' | 'metadata_truncated' | 'elements_truncated' | 'pdf_single_page_overflow' | 'links_unavailable' | 'inline_images_unavailable' | 'metadata_unavailable' | 'screenshot_unavailable' | 'pdf_unavailable' | 'custom_user_agent';
983
+ type ScrapeWarningCode = 'screenshot_truncated' | 'links_truncated' | 'inline_images_truncated' | 'raw_html_truncated' | 'metadata_truncated' | 'elements_truncated' | 'pdf_single_page_overflow' | 'links_unavailable' | 'inline_images_unavailable' | 'metadata_unavailable' | 'screenshot_unavailable' | 'pdf_unavailable' | 'custom_user_agent' | 'actions_incomplete';
984
+ /**
985
+ * What happened to one action:
986
+ *
987
+ * - `ok`: it was done.
988
+ * - `failed`: it could not be done, for example its element was not found or
989
+ * was covered by something else, or the page a click loaded failed to load.
990
+ * - `skipped`: it could not be done, but it was `optional`, so the list went
991
+ * on. A `hover` is always skipped on a mobile device, which has no mouse.
992
+ * - `not_run`: the list never got to it.
993
+ */
994
+ type ScrapeActionStatus = 'ok' | 'failed' | 'skipped' | 'not_run';
995
+ /** One entry of {@link ScrapeResponse.actions}. */
996
+ interface ScrapeActionResult {
997
+ /** The action type, as sent. */
998
+ type: ScrapeActionType;
999
+ /** What happened to it. */
1000
+ status: ScrapeActionStatus;
1001
+ }
818
1002
  /**
819
1003
  * Successful response from `POST /api/scrape` and `GET /api/scrape/result/:jobId`.
820
1004
  *
@@ -860,8 +1044,11 @@ interface ScrapeResponse {
860
1044
  /** Cleaned HTML of the main page content (when `extract.cleaned_html`). */
861
1045
  cleaned_html?: string;
862
1046
  /**
863
- * Raw, unprocessed HTML (when `extract.raw_html`). Truncated at a tag
864
- * boundary past 10 000 000 characters, with a `raw_html_truncated` warning.
1047
+ * The page HTML with its classes and attributes, after `cleanup` and after
1048
+ * any `actions` (when `extract.raw_html`). Scripts and styles are removed,
1049
+ * except the JSON-LD blocks (`<script type="application/ld+json">`), kept
1050
+ * up to 100 KB per page. Truncated at a tag boundary past 10 000 000
1051
+ * characters, with a `raw_html_truncated` warning.
865
1052
  */
866
1053
  raw_html?: string;
867
1054
  /** Inline images discovered on the page (when `extract.images`). */
@@ -911,9 +1098,18 @@ interface ScrapeResponse {
911
1098
  pdf?: PdfResult;
912
1099
  /** Extracted page metadata (when `extract.metadata`, on by default). */
913
1100
  metadata?: ScrapeMetadata;
1101
+ /**
1102
+ * What happened to each action the request sent, in the same order. Present
1103
+ * only when the request sent actions. When any action is `failed` or
1104
+ * `not_run`, `warnings` has `actions_incomplete`. When the page could not be
1105
+ * loaded in a browser and was fetched without one, every action that acts on
1106
+ * the page is `not_run`.
1107
+ */
1108
+ actions?: ScrapeActionResult[];
914
1109
  /**
915
1110
  * Non-error notices about the scrape: an output was capped (`*_truncated`,
916
- * `pdf_single_page_overflow`) or could not be extracted (`*_unavailable`);
1111
+ * `pdf_single_page_overflow`), could not be extracted (`*_unavailable`), or
1112
+ * not every action ran (`actions_incomplete`);
917
1113
  * see {@link ScrapeWarningCode}
918
1114
  * for what each one means. The codes are stable and safe to switch on, but
919
1115
  * the array stays widened to `string` so a newly introduced code doesn't
@@ -1893,5 +2089,5 @@ interface VerifyWebhookSignatureOptions {
1893
2089
  */
1894
2090
  declare function verifyWebhookSignature(options: VerifyWebhookSignatureOptions): Promise<WebhookVerificationResult>;
1895
2091
  //#endregion
1896
- export { AntibotBlockedError, ApiErrorDetails, ApiErrorName, ApiErrorResponse, AsyncJobStatus, AsyncJobStatusResponse, AsyncScrapeRequest, AsyncScrapeResponse, AsyncScrapeWebhook, AuthenticationError, BillingEngine, Crawlbrulee, CrawlbruleeError, type CrawlbruleeOptions, DEFAULT_BASE_URL, DEFAULT_REQUEST_TIMEOUT_MS, DEFAULT_WEBHOOK_TOLERANCE_SECONDS, ENV_API_KEY, type HttpMethod, MapBillingEngine, MapCache, MapDiscoveryCapReason, MapEntries, MapLinkItem, MapLinkType, MapLocation, MapPagination, MapRequest, MapResponse, MapResponseMeta, MapTruncation, MapTypes, MapUsage, NotFoundError, PageInlineImage, PageLink, PageTooLargeError, PdfLayout, PdfMedia, PdfPaper, PdfRequest, PdfResult, ProxyTier, RateLimitError, RateLimitErrorDetails, type RequestOptions, ResolvedProxyTier, ResponseMeta, ScrapeCache, ScrapeCleanup, ScrapeCompleteWebhook, ScrapeCompleteWebhookData, ScrapeCookie, ScrapeElementFieldSpec, ScrapeElementLeafSpec, ScrapeElementNestedFieldSpec, ScrapeElementObject, ScrapeElementOutput, ScrapeElementSpec, ScrapeElementValue, ScrapeElements, ScrapeExtract, ScrapeLocation, ScrapeMetadata, ScrapeRequest, ScrapeResponse, ScrapeWarningCode, ScrapeWebhookStatus, ScreenshotAfterAction, ScreenshotBeforeAction, ScreenshotColorScheme, ScreenshotDeviceMode, ScreenshotProperties, ScreenshotRequest, ScreenshotResult, ScreenshotScrollAction, ScreenshotSlice, ScreenshotSliceAction, ScreenshotType, ScreenshotViewport, ScreenshotViewportInfo, ScreenshotWaitAction, ServiceUnavailableError, TargetUnreachableError, TooManyRedirectsError, TransportError, Usage, UsageAllocationError, UsageAllocationErrorDetails, UsageAllocationReason, UsageLimitDetails, UsageResponse, ValidationError, type VerifyWebhookSignatureOptions, WEBHOOK_EVENT_ID_HEADER, WEBHOOK_SIGNATURE_HEADER, WEBHOOK_SIGNATURE_ROTATED_HEADER, type WaitForScrapeOptions, type WebhookSignatureSource, type WebhookVerificationFailureReason, type WebhookVerificationResult, WhoamiResponse, ZeroDataRetentionNotEnabledError, isCrawlbruleeError, verifyWebhookSignature };
2092
+ export { AntibotBlockedError, ApiErrorDetails, ApiErrorName, ApiErrorResponse, AsyncJobStatus, AsyncJobStatusResponse, AsyncScrapeRequest, AsyncScrapeResponse, AsyncScrapeWebhook, AuthenticationError, BillingEngine, Crawlbrulee, CrawlbruleeError, type CrawlbruleeOptions, DEFAULT_BASE_URL, DEFAULT_REQUEST_TIMEOUT_MS, DEFAULT_WEBHOOK_TOLERANCE_SECONDS, ENV_API_KEY, type HttpMethod, MapBillingEngine, MapCache, MapDiscoveryCapReason, MapEntries, MapLinkItem, MapLinkType, MapLocation, MapPagination, MapRequest, MapResponse, MapResponseMeta, MapTruncation, MapTypes, MapUsage, NotFoundError, PageInlineImage, PageLink, PageTooLargeError, PdfLayout, PdfMedia, PdfPaper, PdfRequest, PdfResult, ProxyTier, RateLimitError, RateLimitErrorDetails, type RequestOptions, ResolvedProxyTier, ResponseMeta, ScrapeAction, ScrapeActionResult, ScrapeActionStatus, ScrapeActionType, ScrapeCache, ScrapeCleanup, ScrapeClickAction, ScrapeCompleteWebhook, ScrapeCompleteWebhookData, ScrapeCookie, ScrapeElementFieldSpec, ScrapeElementLeafSpec, ScrapeElementNestedFieldSpec, ScrapeElementObject, ScrapeElementOutput, ScrapeElementSpec, ScrapeElementValue, ScrapeElements, ScrapeExtract, ScrapeHoverAction, ScrapeLocation, ScrapeMetadata, ScrapeRequest, ScrapeResponse, ScrapeScrollAction, ScrapeScrollByAction, ScrapeScrollToAction, ScrapeSelectAction, ScrapeTypeAction, ScrapeWaitAction, ScrapeWaitForAction, ScrapeWarningCode, ScrapeWebhookStatus, ScreenshotAfterAction, ScreenshotBeforeAction, ScreenshotColorScheme, ScreenshotDeviceMode, ScreenshotProperties, ScreenshotRequest, ScreenshotResult, ScreenshotScrollAction, ScreenshotSlice, ScreenshotSliceAction, ScreenshotType, ScreenshotViewport, ScreenshotViewportInfo, ScreenshotWaitAction, ServiceUnavailableError, TargetUnreachableError, TooManyRedirectsError, TransportError, Usage, UsageAllocationError, UsageAllocationErrorDetails, UsageAllocationReason, UsageLimitDetails, UsageResponse, ValidationError, type VerifyWebhookSignatureOptions, WEBHOOK_EVENT_ID_HEADER, WEBHOOK_SIGNATURE_HEADER, WEBHOOK_SIGNATURE_ROTATED_HEADER, type WaitForScrapeOptions, type WebhookSignatureSource, type WebhookVerificationFailureReason, type WebhookVerificationResult, WhoamiResponse, ZeroDataRetentionNotEnabledError, isCrawlbruleeError, verifyWebhookSignature };
1897
2093
  //# sourceMappingURL=index.d.cts.map