@crawlee/types 4.0.0-beta.65 → 4.0.0-beta.67
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/browser.d.ts +104 -0
- package/browser.d.ts.map +1 -1
- package/package.json +2 -2
- package/storages.d.ts +88 -45
- package/storages.d.ts.map +1 -1
package/browser.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ISession } from './session.js';
|
|
1
2
|
import type { Dictionary } from './utility-types.js';
|
|
2
3
|
export interface Cookie {
|
|
3
4
|
/**
|
|
@@ -60,4 +61,107 @@ export interface BrowserLikeResponse {
|
|
|
60
61
|
url(): string;
|
|
61
62
|
headers(): Dictionary<string | string[]>;
|
|
62
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* A snapshot of the relevant state of a page, as extracted by
|
|
66
|
+
* {@link IBrowserPool.extractPageState}.
|
|
67
|
+
*/
|
|
68
|
+
export interface PageState {
|
|
69
|
+
/**
|
|
70
|
+
* Cookies currently set in the page's browsing context.
|
|
71
|
+
*/
|
|
72
|
+
cookies: Cookie[];
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Options accepted by {@link IBrowserPool.newPage}.
|
|
76
|
+
*/
|
|
77
|
+
export interface NewPageOptions {
|
|
78
|
+
/**
|
|
79
|
+
* Assign a custom ID to the page. If you don't provide one, a random string
|
|
80
|
+
* ID is generated.
|
|
81
|
+
*/
|
|
82
|
+
id?: string;
|
|
83
|
+
/**
|
|
84
|
+
* The crawling session that will use the returned page.
|
|
85
|
+
*
|
|
86
|
+
* The pool derives proxy configuration from the session's {@link
|
|
87
|
+
* ProxyInfo|proxy} (including TLS-error handling) — there are intentionally
|
|
88
|
+
* no standalone `proxyUrl` / `ignoreTlsErrors` options; configure them
|
|
89
|
+
* through the session instead.
|
|
90
|
+
*
|
|
91
|
+
* Session injection is **best-effort**: the pool may use the session's
|
|
92
|
+
* {@link ProxyInfo|proxy}, cookies, or fingerprint data to configure the
|
|
93
|
+
* page or the underlying browser, but none of this is guaranteed. Different
|
|
94
|
+
* pool implementations (or pool configurations such as `useIncognitoPages`)
|
|
95
|
+
* may support different subsets of session properties — or ignore them
|
|
96
|
+
* entirely.
|
|
97
|
+
*
|
|
98
|
+
* The crawler is still responsible for deterministic session setup (e.g.
|
|
99
|
+
* injecting cookies into the page before navigation) that must happen
|
|
100
|
+
* regardless of pool implementation.
|
|
101
|
+
*/
|
|
102
|
+
session?: ISession;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Minimal contract that any object passed to a browser crawler as its `browserPool`
|
|
106
|
+
* option must satisfy.
|
|
107
|
+
*
|
|
108
|
+
* Lifecycle (`destroy`) is the responsibility of whoever owns the pool — since a
|
|
109
|
+
* user-supplied pool is never owned by the crawler, the crawler never tears it
|
|
110
|
+
* down.
|
|
111
|
+
*
|
|
112
|
+
* Implement this interface to plug a custom page-provisioning strategy into any
|
|
113
|
+
* Crawlee browser crawler — for example a remote browser farm, a session-aware
|
|
114
|
+
* pool that pins pages to fingerprints differently, or a thin wrapper around the
|
|
115
|
+
* built-in `BrowserPool`.
|
|
116
|
+
*
|
|
117
|
+
* @category Browser management
|
|
118
|
+
*/
|
|
119
|
+
export interface IBrowserPool<Page = unknown> {
|
|
120
|
+
/**
|
|
121
|
+
* Opens a new page. The pool decides which browser to use, launching a new
|
|
122
|
+
* one if needed.
|
|
123
|
+
*/
|
|
124
|
+
newPage(options?: NewPageOptions): Promise<Page>;
|
|
125
|
+
/**
|
|
126
|
+
* Signals the pool that the caller is done with the page. The pool is
|
|
127
|
+
* responsible for closing the page and performing any necessary cleanup
|
|
128
|
+
* (e.g. retiring the underlying browser when a session has gone bad).
|
|
129
|
+
*
|
|
130
|
+
* @param page The page to release back to the pool.
|
|
131
|
+
* @param options.error If the page is being released because of an error,
|
|
132
|
+
* pass the error here. In particular, if the error is a
|
|
133
|
+
* {@link SessionError}, implementations should treat it as a signal
|
|
134
|
+
* to purge all state associated with the session (e.g. discard any
|
|
135
|
+
* browser that served the page).
|
|
136
|
+
*/
|
|
137
|
+
closePage(page: Page, options?: {
|
|
138
|
+
error?: Error;
|
|
139
|
+
}): Promise<void>;
|
|
140
|
+
/**
|
|
141
|
+
* Extracts the relevant state from a page so the caller can persist it —
|
|
142
|
+
* for example, back-propagating cookies into the crawling {@link
|
|
143
|
+
* ISession|session}.
|
|
144
|
+
*
|
|
145
|
+
* @param page The page to read state from.
|
|
146
|
+
*/
|
|
147
|
+
extractPageState(page: Page): Promise<PageState>;
|
|
148
|
+
/**
|
|
149
|
+
* Injects state (currently just cookies) into a page. This is the
|
|
150
|
+
* counterpart to {@link IBrowserPool.extractPageState} and lets the
|
|
151
|
+
* caller set up a page — for example, seeding it with the crawling
|
|
152
|
+
* {@link ISession|session}'s cookies before navigation.
|
|
153
|
+
*
|
|
154
|
+
* As with {@link IBrowserPool.newPage}, the caller decides *what* state
|
|
155
|
+
* to inject, while the pool decides *how*.
|
|
156
|
+
*
|
|
157
|
+
* Isolation between pages is **best-effort**: depending on the pool
|
|
158
|
+
* implementation and its configuration, multiple pages may share a browsing
|
|
159
|
+
* context, so injected state (such as cookies) can bleed across pages
|
|
160
|
+
* served by the same underlying browser.
|
|
161
|
+
*
|
|
162
|
+
* @param page The page to inject state into.
|
|
163
|
+
* @param state The state to inject.
|
|
164
|
+
*/
|
|
165
|
+
injectPageState(page: Page, state: PageState): Promise<void>;
|
|
166
|
+
}
|
|
63
167
|
//# sourceMappingURL=browser.d.ts.map
|
package/browser.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,MAAM,WAAW,MAAM;IACnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;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OAgBG;IACH,eAAe,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAChE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crawlee/types",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.67",
|
|
4
4
|
"description": "Shared types for the crawlee projects",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=22.0.0"
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "a0f083cdcc46c96d5e76ed2c75addbba4942c05f"
|
|
57
57
|
}
|
package/storages.d.ts
CHANGED
|
@@ -151,42 +151,6 @@ export interface RequestQueueInfo {
|
|
|
151
151
|
hadMultipleClients?: boolean;
|
|
152
152
|
stats?: RequestQueueStats;
|
|
153
153
|
}
|
|
154
|
-
export interface RequestQueueHeadItem {
|
|
155
|
-
id: string;
|
|
156
|
-
retryCount: number;
|
|
157
|
-
uniqueKey: string;
|
|
158
|
-
url: string;
|
|
159
|
-
method: AllowedHttpMethods;
|
|
160
|
-
}
|
|
161
|
-
export interface QueueHead {
|
|
162
|
-
limit: number;
|
|
163
|
-
queueModifiedAt: Date;
|
|
164
|
-
hadMultipleClients?: boolean;
|
|
165
|
-
items: RequestQueueHeadItem[];
|
|
166
|
-
}
|
|
167
|
-
export interface ListOptions {
|
|
168
|
-
/**
|
|
169
|
-
* @default 100
|
|
170
|
-
*/
|
|
171
|
-
limit?: number;
|
|
172
|
-
}
|
|
173
|
-
export interface ListAndLockOptions extends ListOptions {
|
|
174
|
-
lockSecs: number;
|
|
175
|
-
}
|
|
176
|
-
export interface ListAndLockHeadResult extends QueueHead {
|
|
177
|
-
lockSecs: number;
|
|
178
|
-
queueHasLockedRequests?: boolean;
|
|
179
|
-
}
|
|
180
|
-
export interface ProlongRequestLockOptions {
|
|
181
|
-
lockSecs: number;
|
|
182
|
-
forefront?: boolean;
|
|
183
|
-
}
|
|
184
|
-
export interface ProlongRequestLockResult {
|
|
185
|
-
lockExpiresAt: Date;
|
|
186
|
-
}
|
|
187
|
-
export interface DeleteRequestLockOptions {
|
|
188
|
-
forefront?: boolean;
|
|
189
|
-
}
|
|
190
154
|
export interface RequestOptions {
|
|
191
155
|
forefront?: boolean;
|
|
192
156
|
[k: string]: unknown;
|
|
@@ -223,6 +187,14 @@ export interface BatchAddRequestsResult {
|
|
|
223
187
|
processedRequests: ProcessedRequest[];
|
|
224
188
|
unprocessedRequests: UnprocessedRequest[];
|
|
225
189
|
}
|
|
190
|
+
/**
|
|
191
|
+
* Operations on a single request queue.
|
|
192
|
+
*
|
|
193
|
+
* A backend implementation owns all request bookkeeping (pending, in-progress, handled). Any
|
|
194
|
+
* coordination required between multiple distributed clients accessing the same queue (e.g. request
|
|
195
|
+
* locking on the Apify platform) is an internal concern of the implementation and is not exposed on
|
|
196
|
+
* this interface.
|
|
197
|
+
*/
|
|
226
198
|
export interface RequestQueueClient {
|
|
227
199
|
/**
|
|
228
200
|
* Returns metadata about the request queue (id, name, timestamps, request counts, etc.).
|
|
@@ -236,14 +208,85 @@ export interface RequestQueueClient {
|
|
|
236
208
|
drop(): Promise<void>;
|
|
237
209
|
/** Remove all requests from the queue but keep the queue itself. */
|
|
238
210
|
purge(): Promise<void>;
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
211
|
+
/**
|
|
212
|
+
* Add a batch of requests to the queue.
|
|
213
|
+
*
|
|
214
|
+
* Each request is deduplicated by its `uniqueKey`. Duplicates are reported in the result
|
|
215
|
+
* but not re-added. With `forefront`, requests are placed at the beginning of the queue so
|
|
216
|
+
* they are processed sooner.
|
|
217
|
+
*/
|
|
218
|
+
addBatchOfRequests(requests: RequestSchema[], options?: RequestOptions): Promise<BatchAddRequestsResult>;
|
|
219
|
+
/**
|
|
220
|
+
* Retrieve a request from the queue by its `uniqueKey`, or `undefined` if it does not exist.
|
|
221
|
+
*/
|
|
222
|
+
getRequest(uniqueKey: string): Promise<RequestOptions | undefined>;
|
|
223
|
+
/**
|
|
224
|
+
* Return the next request in the queue to be processed, or `null` if there are currently no
|
|
225
|
+
* pending requests.
|
|
226
|
+
*
|
|
227
|
+
* The returned request is marked as in-progress; it will not be returned again until it is
|
|
228
|
+
* either reclaimed via {@link reclaimRequest} or marked as handled via {@link markRequestAsHandled}.
|
|
229
|
+
*
|
|
230
|
+
* A `null` return value does not mean processing is finished — only that there are no pending
|
|
231
|
+
* requests right now. Use {@link isEmpty} (together with the frontend's knowledge of pending
|
|
232
|
+
* add operations) to determine whether the queue is truly finished.
|
|
233
|
+
*/
|
|
234
|
+
fetchNextRequest(): Promise<RequestOptions | null>;
|
|
235
|
+
/**
|
|
236
|
+
* Mark a request previously returned by {@link fetchNextRequest} as handled.
|
|
237
|
+
*
|
|
238
|
+
* Handled requests are never returned again by {@link fetchNextRequest}. Returns information
|
|
239
|
+
* about the operation, or `null` if the request was not in progress.
|
|
240
|
+
*
|
|
241
|
+
* A `null` result is a no-op, not an error: the request is simply not something this client is
|
|
242
|
+
* currently processing, so nothing is changed and the request is never added to the queue as a side
|
|
243
|
+
* effect. (Marking an already-handled request is idempotent and still returns operation info with
|
|
244
|
+
* `wasAlreadyHandled: true` rather than `null`.)
|
|
245
|
+
*/
|
|
246
|
+
markRequestAsHandled(request: UpdateRequestSchema): Promise<QueueOperationInfo | null>;
|
|
247
|
+
/**
|
|
248
|
+
* Reclaim a failed request back to the queue so it can be processed again by a later call to
|
|
249
|
+
* {@link fetchNextRequest}. With `forefront`, the request is returned to the beginning of the
|
|
250
|
+
* queue. Returns information about the operation, or `null` if the request was not in progress.
|
|
251
|
+
*
|
|
252
|
+
* The request is expected to already be present in the queue (it should have been obtained via
|
|
253
|
+
* {@link fetchNextRequest}); reclaiming releases its lock rather than inserting it. A `null` result
|
|
254
|
+
* is a no-op, not an error: the request is simply not something this client is currently processing,
|
|
255
|
+
* so nothing is changed and the request is never added to the queue as a side effect. Use
|
|
256
|
+
* {@link addRequest} to insert a new request.
|
|
257
|
+
*/
|
|
258
|
+
reclaimRequest(request: UpdateRequestSchema, options?: RequestOptions): Promise<QueueOperationInfo | null>;
|
|
259
|
+
/**
|
|
260
|
+
* Resolves to `true` if the next call to {@link fetchNextRequest} would return `null` — i.e. there
|
|
261
|
+
* are no pending requests to fetch right now.
|
|
262
|
+
*
|
|
263
|
+
* Requests that are currently in progress (fetched but not yet handled or reclaimed, including
|
|
264
|
+
* requests locked by other clients sharing the same queue) are **not** counted. An empty queue
|
|
265
|
+
* therefore does not mean crawling is finished — those in-progress requests may still be reclaimed,
|
|
266
|
+
* and background tasks may still add more requests. Use {@link isFinished} to detect completion.
|
|
267
|
+
*/
|
|
268
|
+
isEmpty(): Promise<boolean>;
|
|
269
|
+
/**
|
|
270
|
+
* Resolves to `true` only when there is no outstanding work left in the queue at all — i.e. there
|
|
271
|
+
* are no pending requests to fetch **and** no requests currently in progress (fetched but not yet
|
|
272
|
+
* handled or reclaimed, including requests locked by other clients sharing the same queue).
|
|
273
|
+
*
|
|
274
|
+
* This is the strong counterpart of {@link isEmpty}: a queue whose only remaining requests are in
|
|
275
|
+
* progress is empty (nothing to fetch) but not finished (that work might still be reclaimed). It is
|
|
276
|
+
* the building block for determining whether crawling is done — though a frontend may still need to
|
|
277
|
+
* account for its own pending background add operations on top of this.
|
|
278
|
+
*/
|
|
279
|
+
isFinished(): Promise<boolean>;
|
|
280
|
+
/**
|
|
281
|
+
* Tells the client how long (in seconds) a consumer expects to hold a request fetched via
|
|
282
|
+
* {@link fetchNextRequest} before marking it handled or reclaiming it — typically the consumer's
|
|
283
|
+
* request-processing timeout plus some padding.
|
|
284
|
+
*
|
|
285
|
+
* A client that coordinates consumers via locking uses this to keep the request reserved for at least
|
|
286
|
+
* this long, so that a long-running consumer does not have its request handed out again while it is
|
|
287
|
+
* still being processed. Clients that do not lock may ignore it.
|
|
288
|
+
*/
|
|
289
|
+
setExpectedRequestProcessingTimeSecs?(secs: number): void;
|
|
247
290
|
}
|
|
248
291
|
export interface SetStatusMessageOptions {
|
|
249
292
|
isStatusMessageTerminal?: boolean;
|
|
@@ -349,7 +392,7 @@ export interface StorageClient {
|
|
|
349
392
|
*
|
|
350
393
|
* The key is used by `StorageInstanceManager` to partition the storage cache per-backend,
|
|
351
394
|
* so that two storages with the same name but backed by different clients
|
|
352
|
-
* (e.g. a local `
|
|
395
|
+
* (e.g. a local `MemoryStorageClient` and a cloud `ApifyClient`) are cached as separate instances.
|
|
353
396
|
*
|
|
354
397
|
* When not provided, the fallback uses the client's constructor name, so different
|
|
355
398
|
* `StorageClient` implementations automatically get separate cache partitions.
|
package/storages.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storages.d.ts","sourceRoot":"","sources":["../src/storages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEzE;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IAC/B,6DAA6D;IAC7D,iBAAiB,EAAE,OAAO,CAAC;IAE3B,0DAA0D;IAC1D,iBAAiB,EAAE,OAAO,CAAC;IAE3B,kCAAkC;IAClC,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,aAAa,CAAC,IAAI;IAC/B,6CAA6C;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,qDAAqD;IACrD,KAAK,EAAE,MAAM,CAAC;IACd,2DAA2D;IAC3D,MAAM,EAAE,MAAM,CAAC;IACf,mDAAmD;IACnD,KAAK,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,wDAAwD;IACxD,KAAK,EAAE,IAAI,EAAE,CAAC;CACjB;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