scrapfly-sdk 0.11.1 → 0.12.1
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 +72 -5
- package/esm/browserconfig.d.ts +57 -9
- package/esm/browserconfig.d.ts.map +1 -1
- package/esm/browserconfig.js +63 -5
- package/esm/browserdownloads.d.ts +70 -0
- package/esm/browserdownloads.d.ts.map +1 -0
- package/esm/browserdownloads.js +215 -0
- package/esm/client.d.ts +224 -8
- package/esm/client.d.ts.map +1 -1
- package/esm/client.js +646 -62
- package/esm/crawl.d.ts +83 -1
- package/esm/crawl.d.ts.map +1 -1
- package/esm/crawl.js +73 -0
- package/esm/crawlerconfig.d.ts +54 -3
- package/esm/crawlerconfig.d.ts.map +1 -1
- package/esm/crawlerconfig.js +96 -2
- package/esm/crawlerresult.d.ts +374 -2
- package/esm/crawlerresult.d.ts.map +1 -1
- package/esm/crawlerresult.js +367 -1
- package/esm/errors.d.ts +12 -0
- package/esm/errors.d.ts.map +1 -1
- package/esm/errors.js +11 -0
- package/esm/main.d.ts +12 -7
- package/esm/main.d.ts.map +1 -1
- package/esm/main.js +10 -5
- package/esm/monitoringconfig.d.ts +2 -2
- package/esm/result.d.ts +11 -1
- package/esm/result.d.ts.map +1 -1
- package/esm/result.js +14 -5
- package/esm/scrapeconfig.d.ts +65 -1
- package/esm/scrapeconfig.d.ts.map +1 -1
- package/esm/scrapeconfig.js +88 -4
- package/esm/screenshotconfig.d.ts +9 -1
- package/esm/screenshotconfig.d.ts.map +1 -1
- package/esm/screenshotconfig.js +12 -1
- package/esm/types.d.ts +128 -0
- package/esm/types.d.ts.map +1 -1
- package/esm/types.js +22 -1
- package/esm/utils.d.ts.map +1 -1
- package/esm/utils.js +16 -2
- package/esm/webhookserver.d.ts +33 -15
- package/esm/webhookserver.d.ts.map +1 -1
- package/esm/webhookserver.js +197 -38
- package/package.json +1 -1
- package/script/browserconfig.d.ts +57 -9
- package/script/browserconfig.d.ts.map +1 -1
- package/script/browserconfig.js +63 -5
- package/script/browserdownloads.d.ts +70 -0
- package/script/browserdownloads.d.ts.map +1 -0
- package/script/browserdownloads.js +221 -0
- package/script/client.d.ts +224 -8
- package/script/client.d.ts.map +1 -1
- package/script/client.js +645 -61
- package/script/crawl.d.ts +83 -1
- package/script/crawl.d.ts.map +1 -1
- package/script/crawl.js +73 -0
- package/script/crawlerconfig.d.ts +54 -3
- package/script/crawlerconfig.d.ts.map +1 -1
- package/script/crawlerconfig.js +97 -3
- package/script/crawlerresult.d.ts +374 -2
- package/script/crawlerresult.d.ts.map +1 -1
- package/script/crawlerresult.js +374 -2
- package/script/errors.d.ts +12 -0
- package/script/errors.d.ts.map +1 -1
- package/script/errors.js +12 -1
- package/script/main.d.ts +12 -7
- package/script/main.d.ts.map +1 -1
- package/script/main.js +20 -4
- package/script/monitoringconfig.d.ts +2 -2
- package/script/result.d.ts +11 -1
- package/script/result.d.ts.map +1 -1
- package/script/result.js +14 -5
- package/script/scrapeconfig.d.ts +65 -1
- package/script/scrapeconfig.d.ts.map +1 -1
- package/script/scrapeconfig.js +88 -4
- package/script/screenshotconfig.d.ts +9 -1
- package/script/screenshotconfig.d.ts.map +1 -1
- package/script/screenshotconfig.js +12 -1
- package/script/types.d.ts +128 -0
- package/script/types.d.ts.map +1 -1
- package/script/types.js +23 -0
- package/script/utils.d.ts.map +1 -1
- package/script/utils.js +16 -2
- package/script/webhookserver.d.ts +33 -15
- package/script/webhookserver.d.ts.map +1 -1
- package/script/webhookserver.js +197 -38
- package/src/browserconfig.ts +74 -8
- package/src/browserdownloads.ts +266 -0
- package/src/client.ts +796 -65
- package/src/crawl.ts +106 -0
- package/src/crawlerconfig.ts +128 -5
- package/src/crawlerresult.ts +607 -3
- package/src/errors.ts +12 -0
- package/src/main.ts +55 -5
- package/src/monitoringconfig.ts +2 -2
- package/src/result.ts +17 -5
- package/src/scrapeconfig.ts +92 -3
- package/src/screenshotconfig.ts +14 -1
- package/src/types.ts +159 -1
- package/src/utils.ts +16 -2
- package/src/webhookserver.ts +235 -39
package/esm/crawlerresult.d.ts
CHANGED
|
@@ -55,6 +55,13 @@ export declare class CrawlerStatus {
|
|
|
55
55
|
/** `null` while the crawler is still running; bool once terminal. */
|
|
56
56
|
is_success: boolean | null;
|
|
57
57
|
state: CrawlerState;
|
|
58
|
+
/**
|
|
59
|
+
* `null` unless the crawl was started with `search: true`. Polling this is
|
|
60
|
+
* the webhook-free way to learn when the index became queryable.
|
|
61
|
+
*/
|
|
62
|
+
search: CrawlerSearchState | null;
|
|
63
|
+
/** `null` unless the crawl re-scrapes itself on a period. */
|
|
64
|
+
refresh: CrawlerRefreshState | null;
|
|
58
65
|
constructor(data: Record<string, any>);
|
|
59
66
|
/** True while the crawler is still working (PENDING or RUNNING). */
|
|
60
67
|
get isRunning(): boolean;
|
|
@@ -70,6 +77,319 @@ export declare class CrawlerStatus {
|
|
|
70
77
|
*/
|
|
71
78
|
get progressPct(): number;
|
|
72
79
|
}
|
|
80
|
+
/**
|
|
81
|
+
* Which retrieval legs a search runs. `hybrid` runs both and merges them with
|
|
82
|
+
* reciprocal rank fusion; it is the server default when the field is omitted.
|
|
83
|
+
*/
|
|
84
|
+
export type CrawlerSearchMode = 'vector' | 'fts' | 'hybrid';
|
|
85
|
+
/** Lifecycle of a crawl's auto-refresh loop. */
|
|
86
|
+
export type CrawlerRefreshStatus = 'DISABLED' | 'SCHEDULED' | 'RUNNING' | 'FAILED';
|
|
87
|
+
/**
|
|
88
|
+
* One row of a crawl's refresh timeline.
|
|
89
|
+
*
|
|
90
|
+
* `sample_updated` / `sample_removed` carry at most ten URLs each. The full
|
|
91
|
+
* lists are never inlined: a 5,000-page crawl would otherwise put 5,000
|
|
92
|
+
* strings into every status poll.
|
|
93
|
+
*/
|
|
94
|
+
export interface CrawlerRefreshEntry {
|
|
95
|
+
at?: string;
|
|
96
|
+
/** Refresh generation this run produced, 1 for the first. */
|
|
97
|
+
generation?: number;
|
|
98
|
+
/** URLs this run discovered that the crawl did not hold. */
|
|
99
|
+
added?: number;
|
|
100
|
+
/** Known URLs whose content fingerprint changed. */
|
|
101
|
+
updated?: number;
|
|
102
|
+
/** Known URLs that no longer exist and were dropped. */
|
|
103
|
+
removed?: number;
|
|
104
|
+
/** Re-scraped with an identical fingerprint: no embedding, no index write. */
|
|
105
|
+
unchanged?: number;
|
|
106
|
+
/** URLs the run could not fetch. They keep their previous content. */
|
|
107
|
+
failed?: number;
|
|
108
|
+
duration_ms?: number;
|
|
109
|
+
search_status?: string;
|
|
110
|
+
error?: string;
|
|
111
|
+
/** Up to ten re-indexed URLs. */
|
|
112
|
+
sample_updated?: string[];
|
|
113
|
+
/** Up to ten dropped URLs. */
|
|
114
|
+
sample_removed?: string[];
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* The `refresh` block of a crawl, carried by `GET /crawl/{uuid}/status` and
|
|
118
|
+
* returned by the three refresh calls.
|
|
119
|
+
*
|
|
120
|
+
* Parsed leniently: older API builds omit the block entirely.
|
|
121
|
+
*/
|
|
122
|
+
export interface CrawlerRefreshState {
|
|
123
|
+
enabled: boolean;
|
|
124
|
+
/** Period between runs in seconds; 0 when disabled. */
|
|
125
|
+
interval_seconds: number;
|
|
126
|
+
status: CrawlerRefreshStatus;
|
|
127
|
+
/** Number of refresh runs completed so far. */
|
|
128
|
+
generation?: number;
|
|
129
|
+
last_run_at?: string;
|
|
130
|
+
/** Absent while refresh is disabled. */
|
|
131
|
+
next_run_at?: string;
|
|
132
|
+
error?: string;
|
|
133
|
+
/**
|
|
134
|
+
* When the run currently in flight began. Only `GET /crawl/{uuid}/status`
|
|
135
|
+
* carries it: the three refresh routes render a typed state that does not
|
|
136
|
+
* declare the field, so it is optional on both paths.
|
|
137
|
+
*/
|
|
138
|
+
started_at?: string;
|
|
139
|
+
/**
|
|
140
|
+
* Consecutive failed runs; reset to 0 by the first run that succeeds. Same
|
|
141
|
+
* route asymmetry as `started_at`.
|
|
142
|
+
*/
|
|
143
|
+
consecutive_failures?: number;
|
|
144
|
+
/** Newest last, capped at the 50 most recent runs. */
|
|
145
|
+
history?: CrawlerRefreshEntry[];
|
|
146
|
+
}
|
|
147
|
+
/** Pages a run actually touched. Zero means the site stood still. */
|
|
148
|
+
export declare function refreshChanged(entry: CrawlerRefreshEntry | null | undefined): number;
|
|
149
|
+
/**
|
|
150
|
+
* Normalize a refresh envelope.
|
|
151
|
+
*
|
|
152
|
+
* The three refresh endpoints answer with the state at the top level;
|
|
153
|
+
* `GET /status` nests it under `refresh`. Accepting both means the SDK never
|
|
154
|
+
* has to guess which call produced the payload.
|
|
155
|
+
*
|
|
156
|
+
* This is a field whitelist, not a spread: a key that is not named here never
|
|
157
|
+
* reaches the caller, whatever the interface declares.
|
|
158
|
+
*/
|
|
159
|
+
export declare function parseCrawlerRefreshState(data: Record<string, any>): CrawlerRefreshState;
|
|
160
|
+
export type CrawlerSearchStatus = 'DISABLED' | 'BUILDING' | 'READY' | 'PARTIAL' | 'FAILED';
|
|
161
|
+
/**
|
|
162
|
+
* The `search` block describing a crawl's index, carried by
|
|
163
|
+
* `GET /crawl/{uuid}/status` and by the two search webhooks.
|
|
164
|
+
*
|
|
165
|
+
* Parsed leniently: the block is sparse on failure and older API builds omit
|
|
166
|
+
* it entirely.
|
|
167
|
+
*/
|
|
168
|
+
export interface CrawlerSearchState {
|
|
169
|
+
status: CrawlerSearchStatus;
|
|
170
|
+
/** Storage path of the index manifest; absent until the artifact is published. */
|
|
171
|
+
manifest?: string;
|
|
172
|
+
/** Crawled pages represented in the index. */
|
|
173
|
+
documents?: number;
|
|
174
|
+
/** Embedded chunks those pages were split into. */
|
|
175
|
+
vectors?: number;
|
|
176
|
+
/** Chunks discarded during the build (embedding failures, oversized rows). */
|
|
177
|
+
dropped?: number;
|
|
178
|
+
queue_depth?: number;
|
|
179
|
+
fragments?: number;
|
|
180
|
+
error?: string;
|
|
181
|
+
built_at?: string;
|
|
182
|
+
/** Vector index type (e.g. `IVF_PQ`); absent below the index threshold. */
|
|
183
|
+
index?: string;
|
|
184
|
+
/**
|
|
185
|
+
* Bumped when a paused crawl resumes and rebuilds. Results from different
|
|
186
|
+
* generations are not comparable.
|
|
187
|
+
*/
|
|
188
|
+
generation?: number;
|
|
189
|
+
}
|
|
190
|
+
/** True when the index can answer a query right now. */
|
|
191
|
+
export declare function isSearchable(state: CrawlerSearchState | null | undefined): boolean;
|
|
192
|
+
/**
|
|
193
|
+
* Normalize a search envelope.
|
|
194
|
+
*
|
|
195
|
+
* `GET /status` nests the block under `search` and so do the two search
|
|
196
|
+
* webhooks; taking the block on its own as well means a caller holding either
|
|
197
|
+
* envelope decodes the same way.
|
|
198
|
+
*
|
|
199
|
+
* This is a field whitelist, not a spread: a key that is not named here never
|
|
200
|
+
* reaches the caller, whatever the interface declares. `status` is the one
|
|
201
|
+
* field with no sane absent value, so a block without it reads as DISABLED.
|
|
202
|
+
*/
|
|
203
|
+
export declare function parseCrawlerSearchState(data: Record<string, any>): CrawlerSearchState;
|
|
204
|
+
/** Per-leg scores behind a result. Which keys appear depends on the mode. */
|
|
205
|
+
export interface CrawlerSearchScores {
|
|
206
|
+
vector?: number;
|
|
207
|
+
fts?: number;
|
|
208
|
+
rrf?: number;
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* One matched chunk from `POST /crawl/search`.
|
|
212
|
+
*
|
|
213
|
+
* A result is a chunk, not a page: `chunk_id` orders chunks within one crawled
|
|
214
|
+
* document and `text` is only the matched slice. Expand a hit back to the
|
|
215
|
+
* whole document through `contents_url`, or through `warc_offset`/`warc_end`
|
|
216
|
+
* against the crawl's WARC artifact.
|
|
217
|
+
*/
|
|
218
|
+
export interface CrawlerSearchResult {
|
|
219
|
+
rank: number;
|
|
220
|
+
score: number;
|
|
221
|
+
scores: CrawlerSearchScores;
|
|
222
|
+
crawler_uuid: string;
|
|
223
|
+
url: string;
|
|
224
|
+
title: string | null;
|
|
225
|
+
source_format: string | null;
|
|
226
|
+
content_type: string | null;
|
|
227
|
+
chunk_id: number;
|
|
228
|
+
text: string;
|
|
229
|
+
warc_offset: number | null;
|
|
230
|
+
warc_end: number | null;
|
|
231
|
+
contents_url: string | null;
|
|
232
|
+
}
|
|
233
|
+
/** A crawl that was opened and searched. */
|
|
234
|
+
export interface CrawlerSearchCrawl {
|
|
235
|
+
crawler_uuid: string;
|
|
236
|
+
documents?: number;
|
|
237
|
+
vectors?: number;
|
|
238
|
+
index?: string;
|
|
239
|
+
}
|
|
240
|
+
/** Why a requested crawl contributed nothing. A skip is never fatal. */
|
|
241
|
+
export type CrawlerSkipReason = 'search_not_enabled' | 'search_not_ready' | 'search_failed' | 'search_disabled' | 'incompatible_index' | 'deadline';
|
|
242
|
+
export interface CrawlerSearchSkipped {
|
|
243
|
+
crawler_uuid: string;
|
|
244
|
+
reason: CrawlerSkipReason;
|
|
245
|
+
status?: string;
|
|
246
|
+
}
|
|
247
|
+
/** Fan-out timing and IO counters. */
|
|
248
|
+
export interface CrawlerSearchStats {
|
|
249
|
+
duration_ms?: number;
|
|
250
|
+
crawls_searched?: number;
|
|
251
|
+
candidates?: number;
|
|
252
|
+
gcs_gets?: number;
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* Wraps the JSON response of `POST /crawl/search`.
|
|
256
|
+
*
|
|
257
|
+
* The envelope states its own completeness: `exact` with most crawls unopened
|
|
258
|
+
* is the normal outcome, because the fan-out proves via an admissible bound
|
|
259
|
+
* that the unopened crawls held nothing better. `partial` means the deadline
|
|
260
|
+
* cut the fan-out short.
|
|
261
|
+
*
|
|
262
|
+
* Strict on the fields the contract always carries, lenient on the rest, so
|
|
263
|
+
* drift in the ranking envelope surfaces at parse time rather than as an
|
|
264
|
+
* empty result list.
|
|
265
|
+
*/
|
|
266
|
+
export declare class CrawlerSearchResponse {
|
|
267
|
+
query: string;
|
|
268
|
+
mode: CrawlerSearchMode;
|
|
269
|
+
limit: number;
|
|
270
|
+
completeness: 'exact' | 'partial';
|
|
271
|
+
results: CrawlerSearchResult[];
|
|
272
|
+
crawls: CrawlerSearchCrawl[];
|
|
273
|
+
skipped: CrawlerSearchSkipped[];
|
|
274
|
+
stats: CrawlerSearchStats;
|
|
275
|
+
crawls_requested: number | null;
|
|
276
|
+
crawls_searched: number | null;
|
|
277
|
+
crawls_pruned_exact: number | null;
|
|
278
|
+
/**
|
|
279
|
+
* The crawls the deadline cut, and the crawls whose index could not be read,
|
|
280
|
+
* named rather than counted: a caller told "3 failed" cannot retry them.
|
|
281
|
+
*/
|
|
282
|
+
crawls_skipped_deadline: string[] | null;
|
|
283
|
+
crawls_failed: CrawlerSearchSkipped[] | null;
|
|
284
|
+
/**
|
|
285
|
+
* `null` until a crawl has actually been opened. Zero is a different claim:
|
|
286
|
+
* it says the best unsearched score was 0, not that no bound exists.
|
|
287
|
+
*/
|
|
288
|
+
theta: number | null;
|
|
289
|
+
max_ub_unsearched: number | null;
|
|
290
|
+
/**
|
|
291
|
+
* Opaque token for the next page, `null` on the last one. Paging is
|
|
292
|
+
* cursor-based: an offset over a partial fan-out would re-run the legs and
|
|
293
|
+
* shift ranks.
|
|
294
|
+
*/
|
|
295
|
+
cursor: string | null;
|
|
296
|
+
constructor(data: Record<string, any>);
|
|
297
|
+
/** True when the ranking is provably complete for the requested crawls. */
|
|
298
|
+
get isExact(): boolean;
|
|
299
|
+
}
|
|
300
|
+
/** One retrieved chunk the answer may cite. */
|
|
301
|
+
export interface CrawlerPromptSource {
|
|
302
|
+
id: number;
|
|
303
|
+
crawler_uuid: string;
|
|
304
|
+
url: string;
|
|
305
|
+
title?: string;
|
|
306
|
+
score?: number;
|
|
307
|
+
}
|
|
308
|
+
/** How much of the corpus a prompt answer or an extraction covers. */
|
|
309
|
+
export interface CrawlerPromptSearch {
|
|
310
|
+
completeness: 'exact' | 'partial';
|
|
311
|
+
crawls_requested?: number;
|
|
312
|
+
crawls_searched?: number;
|
|
313
|
+
crawls_pruned_exact?: number;
|
|
314
|
+
/** Requested crawls that contributed nothing, with a reason. Never fatal. */
|
|
315
|
+
skipped: CrawlerSearchSkipped[];
|
|
316
|
+
}
|
|
317
|
+
/** The answer of `POST /crawl/prompt` with `generation.stream: false`: the facts of the stream, in one object. */
|
|
318
|
+
export interface CrawlerPromptAnswer {
|
|
319
|
+
prompt: string;
|
|
320
|
+
answer: string;
|
|
321
|
+
sources: CrawlerPromptSource[];
|
|
322
|
+
sources_used: number[];
|
|
323
|
+
/** Retrieved chunks that did not fit the context and never reached the model. */
|
|
324
|
+
sources_dropped: number;
|
|
325
|
+
/** True when the model hit its output cap. The answer is still delivered. */
|
|
326
|
+
truncated: boolean;
|
|
327
|
+
search: CrawlerPromptSearch;
|
|
328
|
+
/** Actual charge, including zero. Undefined when the server does not report it. */
|
|
329
|
+
api_credit?: number;
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* The response of `POST /crawl/extract`. `data` is shaped by the request's JSON
|
|
333
|
+
* Schema, which constrains the model as it generates; it is not validated again
|
|
334
|
+
* afterwards, so validate on your side anything you act on.
|
|
335
|
+
*/
|
|
336
|
+
export interface CrawlerExtractResponse<T = any> {
|
|
337
|
+
prompt: string;
|
|
338
|
+
data: T;
|
|
339
|
+
/** The retrieved chunks `data` was built from. */
|
|
340
|
+
sources: CrawlerPromptSource[];
|
|
341
|
+
/** Retrieved chunks that did not fit the context and never reached the model. */
|
|
342
|
+
sources_dropped: number;
|
|
343
|
+
/** True when the model hit its output cap. */
|
|
344
|
+
truncated: boolean;
|
|
345
|
+
search: CrawlerPromptSearch;
|
|
346
|
+
}
|
|
347
|
+
/** Payload of the terminal `done` frame. */
|
|
348
|
+
export interface CrawlerPromptDone {
|
|
349
|
+
sources_used?: number[];
|
|
350
|
+
/** Retrieved chunks that did not fit the context and never reached the model. */
|
|
351
|
+
sources_dropped?: number;
|
|
352
|
+
/**
|
|
353
|
+
* True when the model hit its output cap. The answer is still delivered;
|
|
354
|
+
* whether to use it is the caller's call.
|
|
355
|
+
*/
|
|
356
|
+
truncated?: boolean;
|
|
357
|
+
/** Actual charge, including zero. Undefined when the server does not report it. */
|
|
358
|
+
api_credit?: number;
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* One decoded frame of the `POST /crawl/prompt` stream.
|
|
362
|
+
*
|
|
363
|
+
* Frames arrive as `source`*, then `token`*, then one `done`, or one `error`
|
|
364
|
+
* which is thrown rather than yielded because generation can fail after
|
|
365
|
+
* tokens have already been delivered.
|
|
366
|
+
*/
|
|
367
|
+
export type CrawlerPromptEvent = {
|
|
368
|
+
event: 'source';
|
|
369
|
+
data: CrawlerPromptSource;
|
|
370
|
+
} | {
|
|
371
|
+
event: 'token';
|
|
372
|
+
data: string;
|
|
373
|
+
} | {
|
|
374
|
+
event: 'done';
|
|
375
|
+
data: CrawlerPromptDone;
|
|
376
|
+
};
|
|
377
|
+
/**
|
|
378
|
+
* Decode the `POST /crawl/prompt` SSE body into typed frames.
|
|
379
|
+
*
|
|
380
|
+
* Only `event:` and `data:` lines matter; `:keepalive` comment frames exist
|
|
381
|
+
* to keep intermediaries from closing an idle connection and carry nothing.
|
|
382
|
+
* Token payloads are JSON strings; every other frame is a JSON object.
|
|
383
|
+
*
|
|
384
|
+
* An `event: error` frame throws rather than yields: the caller is already
|
|
385
|
+
* inside a `for await` and a yielded error object is too easy to ignore after
|
|
386
|
+
* tokens have started arriving.
|
|
387
|
+
*
|
|
388
|
+
* Decoding is explicitly UTF-8 with `stream: true`, because a multi-byte
|
|
389
|
+
* character can straddle two chunks of the body.
|
|
390
|
+
* EOF before a complete `done` frame throws, even after tokens were delivered.
|
|
391
|
+
*/
|
|
392
|
+
export declare function parseCrawlerPromptStream(body: ReadableStream<Uint8Array>): AsyncGenerator<CrawlerPromptEvent, void, undefined>;
|
|
73
393
|
/**
|
|
74
394
|
* Single URL entry from `GET /crawl/{uuid}/urls`.
|
|
75
395
|
*
|
|
@@ -178,7 +498,7 @@ export interface CrawlerWebhookCommon {
|
|
|
178
498
|
* Webhook for the four "lifecycle" events that share an identical payload shape:
|
|
179
499
|
* `crawler_started`, `crawler_stopped`, `crawler_cancelled`, `crawler_finished`.
|
|
180
500
|
*
|
|
181
|
-
* Verified against
|
|
501
|
+
* Verified against the Crawler API webhook payload reference.
|
|
182
502
|
*/
|
|
183
503
|
export interface CrawlerLifecycleWebhook {
|
|
184
504
|
event: 'crawler_started' | 'crawler_stopped' | 'crawler_cancelled' | 'crawler_finished';
|
|
@@ -231,12 +551,64 @@ export interface CrawlerUrlFailedWebhook {
|
|
|
231
551
|
};
|
|
232
552
|
};
|
|
233
553
|
}
|
|
554
|
+
/**
|
|
555
|
+
* Payload for `crawler_search_ready` and `crawler_search_failed`.
|
|
556
|
+
*
|
|
557
|
+
* The index is published after the crawl's own success classification and can
|
|
558
|
+
* fail without the crawl failing, so these are separate from the lifecycle
|
|
559
|
+
* events. They are also the only crawler webhooks emitted without an `action`
|
|
560
|
+
* tag, hence the `Partial` on the common fields.
|
|
561
|
+
*/
|
|
562
|
+
export interface CrawlerSearchWebhook {
|
|
563
|
+
event: 'crawler_search_ready' | 'crawler_search_failed';
|
|
564
|
+
payload: Omit<CrawlerWebhookCommon, 'action'> & {
|
|
565
|
+
action?: string;
|
|
566
|
+
seed_url: string;
|
|
567
|
+
links: {
|
|
568
|
+
status: string;
|
|
569
|
+
};
|
|
570
|
+
search: CrawlerSearchState;
|
|
571
|
+
};
|
|
572
|
+
}
|
|
573
|
+
/**
|
|
574
|
+
* Payload for `crawler_updated`, emitted once per auto-refresh run that changed
|
|
575
|
+
* at least one page.
|
|
576
|
+
*
|
|
577
|
+
* A run over a site that stood still, and a run that failed outright, change
|
|
578
|
+
* nothing and are not delivered, so receiving this event is by itself proof of
|
|
579
|
+
* a diff.
|
|
580
|
+
*/
|
|
581
|
+
export interface CrawlerUpdatedWebhook {
|
|
582
|
+
event: 'crawler_updated';
|
|
583
|
+
payload: CrawlerWebhookCommon & {
|
|
584
|
+
seed_url: string;
|
|
585
|
+
links: {
|
|
586
|
+
status: string;
|
|
587
|
+
};
|
|
588
|
+
/**
|
|
589
|
+
* The run, as the same row the refresh timeline keeps. Its sample lists are
|
|
590
|
+
* absent here: this event carries the URLs in `documents` instead, at a
|
|
591
|
+
* higher cap.
|
|
592
|
+
*/
|
|
593
|
+
refresh: CrawlerRefreshEntry;
|
|
594
|
+
documents: {
|
|
595
|
+
/**
|
|
596
|
+
* Re-indexed URLs, added and changed alike. Which of the two a URL was
|
|
597
|
+
* only survives in the counts on `refresh`.
|
|
598
|
+
*/
|
|
599
|
+
updated: string[];
|
|
600
|
+
removed: string[];
|
|
601
|
+
/** Either list was cut at Scrapfly's 100-URL cap; the counts stay whole. */
|
|
602
|
+
truncated: boolean;
|
|
603
|
+
};
|
|
604
|
+
};
|
|
605
|
+
}
|
|
234
606
|
/**
|
|
235
607
|
* Discriminated union of every crawler webhook payload type.
|
|
236
608
|
*
|
|
237
609
|
* Use {@link parseCrawlerWebhook} to safely turn an `unknown` body into one of these.
|
|
238
610
|
*/
|
|
239
|
-
export type CrawlerWebhookPayload = CrawlerLifecycleWebhook | CrawlerUrlVisitedWebhook | CrawlerUrlSkippedWebhook | CrawlerUrlDiscoveredWebhook | CrawlerUrlFailedWebhook;
|
|
611
|
+
export type CrawlerWebhookPayload = CrawlerLifecycleWebhook | CrawlerUrlVisitedWebhook | CrawlerUrlSkippedWebhook | CrawlerUrlDiscoveredWebhook | CrawlerUrlFailedWebhook | CrawlerSearchWebhook | CrawlerUpdatedWebhook;
|
|
240
612
|
/**
|
|
241
613
|
* Parse a raw webhook body (JSON-decoded object) into a typed crawler webhook payload.
|
|
242
614
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"crawlerresult.d.ts","sourceRoot":"","sources":["../src/crawlerresult.ts"],"names":[],"mappings":"AAoDA;;;;;;GAMG;AACH,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,WAAW,CAAC;AAE9E;;GAEG;AACH,MAAM,MAAM,iBAAiB,GACzB,cAAc,GACd,YAAY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