@browserless.io/browserless 2.2.0 → 2.3.0-beta-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/bin/browserless.js +25 -14
- package/build/browserless.d.ts +6 -1
- package/build/browserless.js +38 -20
- package/build/exports.core.d.ts +24 -0
- package/build/exports.core.js +26 -0
- package/build/exports.d.ts +38 -24
- package/build/exports.js +44 -26
- package/build/routes/chrome/http/content.post.body.json +8 -8
- package/build/routes/chrome/http/download.post.body.json +489 -11
- package/build/routes/chrome/http/download.post.query.json +69 -6
- package/build/routes/chrome/http/download.post.response.json +1 -0
- package/build/routes/chrome/http/function.post.body.json +489 -11
- package/build/routes/chrome/http/function.post.query.json +69 -6
- package/build/routes/chrome/http/function.post.response.json +1 -0
- package/build/routes/chrome/http/json-list.get.response.json +1 -49
- package/build/routes/chrome/http/json-new.put.response.json +1 -41
- package/build/routes/chrome/http/json-protocol.get.response.json +1 -3
- package/build/routes/chrome/http/json-version.get.response.json +1 -41
- package/build/routes/chrome/http/pdf.post.body.json +9 -153
- package/build/routes/chrome/http/pdf.post.query.json +69 -6
- package/build/routes/chrome/http/performance.post.body.json +494 -10
- package/build/routes/chrome/http/performance.post.query.json +69 -6
- package/build/routes/chrome/http/performance.post.response.json +1 -3
- package/build/routes/chrome/http/scrape.post.body.json +9 -56
- package/build/routes/chrome/http/scrape.post.response.json +1 -305
- package/build/routes/chrome/http/screenshot.post.body.json +9 -99
- package/build/routes/chrome/http/screenshot.post.query.json +69 -6
- package/build/routes/chrome/ws/browser.query.json +69 -6
- package/build/routes/chrome/ws/cdp.query.json +69 -6
- package/build/routes/chrome/ws/page.query.json +69 -6
- package/build/routes/chrome/ws/playwright.query.json +90 -7
- package/build/routes/chromium/http/content.post.body.json +8 -8
- package/build/routes/chromium/http/download.post.body.json +489 -11
- package/build/routes/chromium/http/download.post.query.json +69 -6
- package/build/routes/chromium/http/download.post.response.json +1 -0
- package/build/routes/chromium/http/function.post.body.json +489 -11
- package/build/routes/chromium/http/function.post.query.json +69 -6
- package/build/routes/chromium/http/function.post.response.json +1 -0
- package/build/routes/chromium/http/json-list.get.response.json +1 -49
- package/build/routes/chromium/http/json-new.put.response.json +1 -41
- package/build/routes/chromium/http/json-protocol.get.response.json +1 -3
- package/build/routes/chromium/http/json-version.get.response.json +1 -41
- package/build/routes/chromium/http/pdf.post.body.json +9 -153
- package/build/routes/chromium/http/pdf.post.query.json +69 -6
- package/build/routes/chromium/http/performance.post.body.json +494 -10
- package/build/routes/chromium/http/performance.post.query.json +69 -6
- package/build/routes/chromium/http/performance.post.response.json +1 -3
- package/build/routes/chromium/http/scrape.post.body.json +9 -56
- package/build/routes/chromium/http/scrape.post.response.json +1 -305
- package/build/routes/chromium/http/screenshot.post.body.json +9 -99
- package/build/routes/chromium/http/screenshot.post.query.json +69 -6
- package/build/routes/chromium/ws/browser.query.json +69 -6
- package/build/routes/chromium/ws/cdp.query.json +69 -6
- package/build/routes/chromium/ws/page.query.json +69 -6
- package/build/routes/chromium/ws/playwright.query.json +90 -7
- package/build/routes/firefox/ws/playwright.d.ts +5 -1
- package/build/routes/firefox/ws/playwright.query.json +90 -7
- package/build/routes/management/http/config.get.response.json +1 -104
- package/build/routes/management/http/metrics-total.get.response.json +1 -69
- package/build/routes/management/http/metrics.get.response.json +1 -91
- package/build/routes/management/http/sessions.get.response.json +1 -232
- package/build/routes/management/http/static.get.js +7 -7
- package/build/routes/webkit/ws/playwright.query.json +90 -7
- package/build/shared/utils/performance/main.js +1 -1
- package/docker/chrome/Dockerfile +2 -0
- package/docker/chromium/Dockerfile +2 -0
- package/docker/firefox/Dockerfile +2 -0
- package/docker/multi/Dockerfile +2 -0
- package/docker/webkit/Dockerfile +2 -0
- package/package.json +1 -2
- package/scripts/build-open-api.js +18 -9
- package/scripts/build-schemas.js +2 -3
- package/src/browserless.ts +61 -36
- package/src/exports.core.ts +26 -0
- package/src/exports.ts +48 -26
- package/src/router.ts +6 -2
- package/src/routes/firefox/ws/playwright.ts +3 -1
- package/src/routes/management/http/static.get.ts +14 -9
- package/src/shared/utils/performance/main.ts +1 -2
- package/static/docs/swagger.json +1338 -2287
|
@@ -26,15 +26,6 @@
|
|
|
26
26
|
"$ref": "#/definitions/CookieParam"
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
|
-
"debugOpts": {
|
|
30
|
-
"$ref": "#/definitions/ScrapeDebugOptions"
|
|
31
|
-
},
|
|
32
|
-
"elements": {
|
|
33
|
-
"type": "array",
|
|
34
|
-
"items": {
|
|
35
|
-
"$ref": "#/definitions/ScrapeElementSelector"
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
29
|
"emulateMediaType": {
|
|
39
30
|
"type": "string"
|
|
40
31
|
},
|
|
@@ -101,6 +92,7 @@
|
|
|
101
92
|
"$ref": "#/definitions/Record<string,string>"
|
|
102
93
|
},
|
|
103
94
|
"setJavaScriptEnabled": {
|
|
95
|
+
"description": "Whether or not to allow JavaScript to run on the page.",
|
|
104
96
|
"type": "boolean"
|
|
105
97
|
},
|
|
106
98
|
"url": {
|
|
@@ -177,9 +169,6 @@
|
|
|
177
169
|
}
|
|
178
170
|
},
|
|
179
171
|
"additionalProperties": false,
|
|
180
|
-
"required": [
|
|
181
|
-
"elements"
|
|
182
|
-
],
|
|
183
172
|
"definitions": {
|
|
184
173
|
"FrameAddScriptTagOptions": {
|
|
185
174
|
"type": "object",
|
|
@@ -319,42 +308,6 @@
|
|
|
319
308
|
"value"
|
|
320
309
|
]
|
|
321
310
|
},
|
|
322
|
-
"ScrapeDebugOptions": {
|
|
323
|
-
"type": "object",
|
|
324
|
-
"properties": {
|
|
325
|
-
"console": {
|
|
326
|
-
"type": "boolean"
|
|
327
|
-
},
|
|
328
|
-
"cookies": {
|
|
329
|
-
"type": "boolean"
|
|
330
|
-
},
|
|
331
|
-
"html": {
|
|
332
|
-
"type": "boolean"
|
|
333
|
-
},
|
|
334
|
-
"network": {
|
|
335
|
-
"type": "boolean"
|
|
336
|
-
},
|
|
337
|
-
"screenshot": {
|
|
338
|
-
"type": "boolean"
|
|
339
|
-
}
|
|
340
|
-
},
|
|
341
|
-
"additionalProperties": false
|
|
342
|
-
},
|
|
343
|
-
"ScrapeElementSelector": {
|
|
344
|
-
"type": "object",
|
|
345
|
-
"properties": {
|
|
346
|
-
"selector": {
|
|
347
|
-
"type": "string"
|
|
348
|
-
},
|
|
349
|
-
"timeout": {
|
|
350
|
-
"type": "number"
|
|
351
|
-
}
|
|
352
|
-
},
|
|
353
|
-
"additionalProperties": false,
|
|
354
|
-
"required": [
|
|
355
|
-
"selector"
|
|
356
|
-
]
|
|
357
|
-
},
|
|
358
311
|
"GoToOptions": {
|
|
359
312
|
"type": "object",
|
|
360
313
|
"properties": {
|
|
@@ -441,14 +394,14 @@
|
|
|
441
394
|
"length": {
|
|
442
395
|
"type": "number"
|
|
443
396
|
},
|
|
444
|
-
"__@toStringTag@
|
|
397
|
+
"__@toStringTag@177833": {
|
|
445
398
|
"type": "string",
|
|
446
399
|
"const": "Uint8Array"
|
|
447
400
|
}
|
|
448
401
|
},
|
|
449
402
|
"required": [
|
|
450
403
|
"BYTES_PER_ELEMENT",
|
|
451
|
-
"__@toStringTag@
|
|
404
|
+
"__@toStringTag@177833",
|
|
452
405
|
"buffer",
|
|
453
406
|
"byteLength",
|
|
454
407
|
"byteOffset",
|
|
@@ -483,13 +436,13 @@
|
|
|
483
436
|
"byteLength": {
|
|
484
437
|
"type": "number"
|
|
485
438
|
},
|
|
486
|
-
"__@toStringTag@
|
|
439
|
+
"__@toStringTag@177833": {
|
|
487
440
|
"type": "string"
|
|
488
441
|
}
|
|
489
442
|
},
|
|
490
443
|
"additionalProperties": false,
|
|
491
444
|
"required": [
|
|
492
|
-
"__@toStringTag@
|
|
445
|
+
"__@toStringTag@177833",
|
|
493
446
|
"byteLength"
|
|
494
447
|
]
|
|
495
448
|
},
|
|
@@ -499,18 +452,18 @@
|
|
|
499
452
|
"byteLength": {
|
|
500
453
|
"type": "number"
|
|
501
454
|
},
|
|
502
|
-
"__@species@
|
|
455
|
+
"__@species@181989": {
|
|
503
456
|
"$ref": "#/definitions/SharedArrayBuffer"
|
|
504
457
|
},
|
|
505
|
-
"__@toStringTag@
|
|
458
|
+
"__@toStringTag@177833": {
|
|
506
459
|
"type": "string",
|
|
507
460
|
"const": "SharedArrayBuffer"
|
|
508
461
|
}
|
|
509
462
|
},
|
|
510
463
|
"additionalProperties": false,
|
|
511
464
|
"required": [
|
|
512
|
-
"__@species@
|
|
513
|
-
"__@toStringTag@
|
|
465
|
+
"__@species@181989",
|
|
466
|
+
"__@toStringTag@177833",
|
|
514
467
|
"byteLength"
|
|
515
468
|
]
|
|
516
469
|
},
|
|
@@ -1,309 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"description": "The JSON response body",
|
|
3
|
-
"type": "
|
|
4
|
-
"properties": {
|
|
5
|
-
"data": {
|
|
6
|
-
"anyOf": [
|
|
7
|
-
{
|
|
8
|
-
"type": "array",
|
|
9
|
-
"items": {
|
|
10
|
-
"type": "object",
|
|
11
|
-
"properties": {
|
|
12
|
-
"results": {
|
|
13
|
-
"type": "array",
|
|
14
|
-
"items": {
|
|
15
|
-
"type": "object",
|
|
16
|
-
"properties": {
|
|
17
|
-
"attributes": {
|
|
18
|
-
"description": "A list of HTML attributes of the element",
|
|
19
|
-
"type": "array",
|
|
20
|
-
"items": {
|
|
21
|
-
"type": "object",
|
|
22
|
-
"properties": {
|
|
23
|
-
"name": {
|
|
24
|
-
"description": "The name of the HTML attribute for the element",
|
|
25
|
-
"type": "string"
|
|
26
|
-
},
|
|
27
|
-
"value": {
|
|
28
|
-
"description": "The value of the HTML attribute for the element",
|
|
29
|
-
"type": "string"
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
"additionalProperties": false,
|
|
33
|
-
"required": [
|
|
34
|
-
"name",
|
|
35
|
-
"value"
|
|
36
|
-
]
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
"height": {
|
|
40
|
-
"description": "The height the element",
|
|
41
|
-
"type": "number"
|
|
42
|
-
},
|
|
43
|
-
"html": {
|
|
44
|
-
"description": "The HTML the element",
|
|
45
|
-
"type": "string"
|
|
46
|
-
},
|
|
47
|
-
"left": {
|
|
48
|
-
"description": "The amount of pixels from the left of the page",
|
|
49
|
-
"type": "number"
|
|
50
|
-
},
|
|
51
|
-
"text": {
|
|
52
|
-
"description": "The text the element",
|
|
53
|
-
"type": "string"
|
|
54
|
-
},
|
|
55
|
-
"top": {
|
|
56
|
-
"description": "The amount of pixels from the top of the page",
|
|
57
|
-
"type": "number"
|
|
58
|
-
},
|
|
59
|
-
"width": {
|
|
60
|
-
"description": "The width the element",
|
|
61
|
-
"type": "number"
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
"additionalProperties": false,
|
|
65
|
-
"required": [
|
|
66
|
-
"attributes",
|
|
67
|
-
"height",
|
|
68
|
-
"html",
|
|
69
|
-
"left",
|
|
70
|
-
"text",
|
|
71
|
-
"top",
|
|
72
|
-
"width"
|
|
73
|
-
]
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
"selector": {
|
|
77
|
-
"description": "The DOM selector of the element",
|
|
78
|
-
"type": "string"
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
"additionalProperties": false,
|
|
82
|
-
"required": [
|
|
83
|
-
"results",
|
|
84
|
-
"selector"
|
|
85
|
-
]
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
"type": "null"
|
|
90
|
-
}
|
|
91
|
-
]
|
|
92
|
-
},
|
|
93
|
-
"debug": {
|
|
94
|
-
"description": "When debugOpts options are present, results are here",
|
|
95
|
-
"anyOf": [
|
|
96
|
-
{
|
|
97
|
-
"type": "object",
|
|
98
|
-
"properties": {
|
|
99
|
-
"console": {
|
|
100
|
-
"description": "A list of console messages from the browser",
|
|
101
|
-
"type": "array",
|
|
102
|
-
"items": {
|
|
103
|
-
"type": "string"
|
|
104
|
-
}
|
|
105
|
-
},
|
|
106
|
-
"cookies": {
|
|
107
|
-
"description": "List of cookies for the site or null",
|
|
108
|
-
"anyOf": [
|
|
109
|
-
{
|
|
110
|
-
"type": "array",
|
|
111
|
-
"items": {
|
|
112
|
-
"$ref": "#/definitions/Cookie"
|
|
113
|
-
}
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
"type": "null"
|
|
117
|
-
}
|
|
118
|
-
]
|
|
119
|
-
},
|
|
120
|
-
"html": {
|
|
121
|
-
"description": "The HTML string of the website or null",
|
|
122
|
-
"type": [
|
|
123
|
-
"null",
|
|
124
|
-
"string"
|
|
125
|
-
]
|
|
126
|
-
},
|
|
127
|
-
"network": {
|
|
128
|
-
"type": "object",
|
|
129
|
-
"properties": {
|
|
130
|
-
"inbound": {
|
|
131
|
-
"type": "array",
|
|
132
|
-
"items": {
|
|
133
|
-
"$ref": "#/definitions/InBoundRequest"
|
|
134
|
-
}
|
|
135
|
-
},
|
|
136
|
-
"outbound": {
|
|
137
|
-
"type": "array",
|
|
138
|
-
"items": {
|
|
139
|
-
"$ref": "#/definitions/OutBoundRequest"
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
},
|
|
143
|
-
"additionalProperties": false,
|
|
144
|
-
"required": [
|
|
145
|
-
"inbound",
|
|
146
|
-
"outbound"
|
|
147
|
-
]
|
|
148
|
-
},
|
|
149
|
-
"screenshot": {
|
|
150
|
-
"description": "A base64-encoded string of the site or null",
|
|
151
|
-
"type": [
|
|
152
|
-
"null",
|
|
153
|
-
"string"
|
|
154
|
-
]
|
|
155
|
-
}
|
|
156
|
-
},
|
|
157
|
-
"additionalProperties": false,
|
|
158
|
-
"required": [
|
|
159
|
-
"console",
|
|
160
|
-
"cookies",
|
|
161
|
-
"html",
|
|
162
|
-
"network",
|
|
163
|
-
"screenshot"
|
|
164
|
-
]
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
"type": "null"
|
|
168
|
-
}
|
|
169
|
-
]
|
|
170
|
-
}
|
|
171
|
-
},
|
|
172
|
-
"additionalProperties": false,
|
|
173
|
-
"required": [
|
|
174
|
-
"data",
|
|
175
|
-
"debug"
|
|
176
|
-
],
|
|
177
|
-
"definitions": {
|
|
178
|
-
"Cookie": {
|
|
179
|
-
"description": "Represents a cookie object.",
|
|
180
|
-
"type": "object",
|
|
181
|
-
"properties": {
|
|
182
|
-
"name": {
|
|
183
|
-
"description": "Cookie name.",
|
|
184
|
-
"type": "string"
|
|
185
|
-
},
|
|
186
|
-
"value": {
|
|
187
|
-
"description": "Cookie value.",
|
|
188
|
-
"type": "string"
|
|
189
|
-
},
|
|
190
|
-
"domain": {
|
|
191
|
-
"description": "Cookie domain.",
|
|
192
|
-
"type": "string"
|
|
193
|
-
},
|
|
194
|
-
"path": {
|
|
195
|
-
"description": "Cookie path.",
|
|
196
|
-
"type": "string"
|
|
197
|
-
},
|
|
198
|
-
"expires": {
|
|
199
|
-
"description": "Cookie expiration date as the number of seconds since the UNIX epoch. Set to `-1` for\nsession cookies",
|
|
200
|
-
"type": "number"
|
|
201
|
-
},
|
|
202
|
-
"size": {
|
|
203
|
-
"description": "Cookie size.",
|
|
204
|
-
"type": "number"
|
|
205
|
-
},
|
|
206
|
-
"httpOnly": {
|
|
207
|
-
"description": "True if cookie is http-only.",
|
|
208
|
-
"type": "boolean"
|
|
209
|
-
},
|
|
210
|
-
"secure": {
|
|
211
|
-
"description": "True if cookie is secure.",
|
|
212
|
-
"type": "boolean"
|
|
213
|
-
},
|
|
214
|
-
"session": {
|
|
215
|
-
"description": "True in case of session cookie.",
|
|
216
|
-
"type": "boolean"
|
|
217
|
-
},
|
|
218
|
-
"sameSite": {
|
|
219
|
-
"description": "Cookie SameSite type.",
|
|
220
|
-
"enum": [
|
|
221
|
-
"Lax",
|
|
222
|
-
"None",
|
|
223
|
-
"Strict"
|
|
224
|
-
],
|
|
225
|
-
"type": "string"
|
|
226
|
-
},
|
|
227
|
-
"priority": {
|
|
228
|
-
"description": "Cookie Priority. Supported only in Chrome.",
|
|
229
|
-
"enum": [
|
|
230
|
-
"High",
|
|
231
|
-
"Low",
|
|
232
|
-
"Medium"
|
|
233
|
-
],
|
|
234
|
-
"type": "string"
|
|
235
|
-
},
|
|
236
|
-
"sameParty": {
|
|
237
|
-
"description": "True if cookie is SameParty. Supported only in Chrome.",
|
|
238
|
-
"type": "boolean"
|
|
239
|
-
},
|
|
240
|
-
"sourceScheme": {
|
|
241
|
-
"description": "Cookie source scheme type. Supported only in Chrome.",
|
|
242
|
-
"enum": [
|
|
243
|
-
"NonSecure",
|
|
244
|
-
"Secure",
|
|
245
|
-
"Unset"
|
|
246
|
-
],
|
|
247
|
-
"type": "string"
|
|
248
|
-
},
|
|
249
|
-
"partitionKey": {
|
|
250
|
-
"description": "Cookie partition key. The site of the top-level URL the browser was visiting at the\nstart of the request to the endpoint that set the cookie. Supported only in Chrome.",
|
|
251
|
-
"type": "string"
|
|
252
|
-
},
|
|
253
|
-
"partitionKeyOpaque": {
|
|
254
|
-
"description": "True if cookie partition key is opaque. Supported only in Chrome.",
|
|
255
|
-
"type": "boolean"
|
|
256
|
-
}
|
|
257
|
-
},
|
|
258
|
-
"additionalProperties": false,
|
|
259
|
-
"required": [
|
|
260
|
-
"domain",
|
|
261
|
-
"expires",
|
|
262
|
-
"httpOnly",
|
|
263
|
-
"name",
|
|
264
|
-
"path",
|
|
265
|
-
"secure",
|
|
266
|
-
"session",
|
|
267
|
-
"size",
|
|
268
|
-
"value"
|
|
269
|
-
]
|
|
270
|
-
},
|
|
271
|
-
"InBoundRequest": {
|
|
272
|
-
"type": "object",
|
|
273
|
-
"properties": {
|
|
274
|
-
"headers": {},
|
|
275
|
-
"status": {
|
|
276
|
-
"type": "number"
|
|
277
|
-
},
|
|
278
|
-
"url": {
|
|
279
|
-
"type": "string"
|
|
280
|
-
}
|
|
281
|
-
},
|
|
282
|
-
"additionalProperties": false,
|
|
283
|
-
"required": [
|
|
284
|
-
"headers",
|
|
285
|
-
"status",
|
|
286
|
-
"url"
|
|
287
|
-
]
|
|
288
|
-
},
|
|
289
|
-
"OutBoundRequest": {
|
|
290
|
-
"type": "object",
|
|
291
|
-
"properties": {
|
|
292
|
-
"headers": {},
|
|
293
|
-
"method": {
|
|
294
|
-
"type": "string"
|
|
295
|
-
},
|
|
296
|
-
"url": {
|
|
297
|
-
"type": "string"
|
|
298
|
-
}
|
|
299
|
-
},
|
|
300
|
-
"additionalProperties": false,
|
|
301
|
-
"required": [
|
|
302
|
-
"headers",
|
|
303
|
-
"method",
|
|
304
|
-
"url"
|
|
305
|
-
]
|
|
306
|
-
}
|
|
307
|
-
},
|
|
3
|
+
"type": "string",
|
|
308
4
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
309
5
|
}
|
|
@@ -35,9 +35,6 @@
|
|
|
35
35
|
"html": {
|
|
36
36
|
"type": "string"
|
|
37
37
|
},
|
|
38
|
-
"options": {
|
|
39
|
-
"$ref": "#/definitions/ScreenshotOptions"
|
|
40
|
-
},
|
|
41
38
|
"rejectRequestPattern": {
|
|
42
39
|
"type": "array",
|
|
43
40
|
"items": {
|
|
@@ -91,16 +88,11 @@
|
|
|
91
88
|
]
|
|
92
89
|
}
|
|
93
90
|
},
|
|
94
|
-
"scrollPage": {
|
|
95
|
-
"type": "boolean"
|
|
96
|
-
},
|
|
97
|
-
"selector": {
|
|
98
|
-
"type": "string"
|
|
99
|
-
},
|
|
100
91
|
"setExtraHTTPHeaders": {
|
|
101
92
|
"$ref": "#/definitions/Record<string,string>"
|
|
102
93
|
},
|
|
103
94
|
"setJavaScriptEnabled": {
|
|
95
|
+
"description": "Whether or not to allow JavaScript to run on the page.",
|
|
104
96
|
"type": "boolean"
|
|
105
97
|
},
|
|
106
98
|
"url": {
|
|
@@ -363,88 +355,6 @@
|
|
|
363
355
|
],
|
|
364
356
|
"type": "string"
|
|
365
357
|
},
|
|
366
|
-
"ScreenshotOptions": {
|
|
367
|
-
"type": "object",
|
|
368
|
-
"properties": {
|
|
369
|
-
"optimizeForSpeed": {
|
|
370
|
-
"type": "boolean"
|
|
371
|
-
},
|
|
372
|
-
"type": {
|
|
373
|
-
"enum": [
|
|
374
|
-
"jpeg",
|
|
375
|
-
"png",
|
|
376
|
-
"webp"
|
|
377
|
-
],
|
|
378
|
-
"type": "string"
|
|
379
|
-
},
|
|
380
|
-
"quality": {
|
|
381
|
-
"description": "Quality of the image, between 0-100. Not applicable to `png` images.",
|
|
382
|
-
"type": "number"
|
|
383
|
-
},
|
|
384
|
-
"fromSurface": {
|
|
385
|
-
"description": "Capture the screenshot from the surface, rather than the view.",
|
|
386
|
-
"type": "boolean"
|
|
387
|
-
},
|
|
388
|
-
"fullPage": {
|
|
389
|
-
"description": "When `true`, takes a screenshot of the full page.",
|
|
390
|
-
"type": "boolean"
|
|
391
|
-
},
|
|
392
|
-
"omitBackground": {
|
|
393
|
-
"description": "Hides default white background and allows capturing screenshots with transparency.",
|
|
394
|
-
"type": "boolean"
|
|
395
|
-
},
|
|
396
|
-
"path": {
|
|
397
|
-
"description": "The file path to save the image to. The screenshot type will be inferred\nfrom file extension. If path is a relative path, then it is resolved\nrelative to current working directory. If no path is provided, the image\nwon't be saved to the disk.",
|
|
398
|
-
"type": "string"
|
|
399
|
-
},
|
|
400
|
-
"clip": {
|
|
401
|
-
"description": "Specifies the region of the page to clip.",
|
|
402
|
-
"$ref": "#/definitions/ScreenshotClip"
|
|
403
|
-
},
|
|
404
|
-
"encoding": {
|
|
405
|
-
"description": "Encoding of the image.",
|
|
406
|
-
"enum": [
|
|
407
|
-
"base64",
|
|
408
|
-
"binary"
|
|
409
|
-
],
|
|
410
|
-
"type": "string"
|
|
411
|
-
},
|
|
412
|
-
"captureBeyondViewport": {
|
|
413
|
-
"description": "Capture the screenshot beyond the viewport.",
|
|
414
|
-
"type": "boolean"
|
|
415
|
-
}
|
|
416
|
-
},
|
|
417
|
-
"additionalProperties": false
|
|
418
|
-
},
|
|
419
|
-
"ScreenshotClip": {
|
|
420
|
-
"type": "object",
|
|
421
|
-
"properties": {
|
|
422
|
-
"scale": {
|
|
423
|
-
"type": "number"
|
|
424
|
-
},
|
|
425
|
-
"width": {
|
|
426
|
-
"description": "the width of the element in pixels.",
|
|
427
|
-
"type": "number"
|
|
428
|
-
},
|
|
429
|
-
"height": {
|
|
430
|
-
"description": "the height of the element in pixels.",
|
|
431
|
-
"type": "number"
|
|
432
|
-
},
|
|
433
|
-
"x": {
|
|
434
|
-
"type": "number"
|
|
435
|
-
},
|
|
436
|
-
"y": {
|
|
437
|
-
"type": "number"
|
|
438
|
-
}
|
|
439
|
-
},
|
|
440
|
-
"additionalProperties": false,
|
|
441
|
-
"required": [
|
|
442
|
-
"height",
|
|
443
|
-
"width",
|
|
444
|
-
"x",
|
|
445
|
-
"y"
|
|
446
|
-
]
|
|
447
|
-
},
|
|
448
358
|
"Partial<ResponseForRequest>": {
|
|
449
359
|
"type": "object",
|
|
450
360
|
"properties": {
|
|
@@ -484,14 +394,14 @@
|
|
|
484
394
|
"length": {
|
|
485
395
|
"type": "number"
|
|
486
396
|
},
|
|
487
|
-
"__@toStringTag@
|
|
397
|
+
"__@toStringTag@147291": {
|
|
488
398
|
"type": "string",
|
|
489
399
|
"const": "Uint8Array"
|
|
490
400
|
}
|
|
491
401
|
},
|
|
492
402
|
"required": [
|
|
493
403
|
"BYTES_PER_ELEMENT",
|
|
494
|
-
"__@toStringTag@
|
|
404
|
+
"__@toStringTag@147291",
|
|
495
405
|
"buffer",
|
|
496
406
|
"byteLength",
|
|
497
407
|
"byteOffset",
|
|
@@ -526,13 +436,13 @@
|
|
|
526
436
|
"byteLength": {
|
|
527
437
|
"type": "number"
|
|
528
438
|
},
|
|
529
|
-
"__@toStringTag@
|
|
439
|
+
"__@toStringTag@147291": {
|
|
530
440
|
"type": "string"
|
|
531
441
|
}
|
|
532
442
|
},
|
|
533
443
|
"additionalProperties": false,
|
|
534
444
|
"required": [
|
|
535
|
-
"__@toStringTag@
|
|
445
|
+
"__@toStringTag@147291",
|
|
536
446
|
"byteLength"
|
|
537
447
|
]
|
|
538
448
|
},
|
|
@@ -542,18 +452,18 @@
|
|
|
542
452
|
"byteLength": {
|
|
543
453
|
"type": "number"
|
|
544
454
|
},
|
|
545
|
-
"__@species@
|
|
455
|
+
"__@species@151446": {
|
|
546
456
|
"$ref": "#/definitions/SharedArrayBuffer"
|
|
547
457
|
},
|
|
548
|
-
"__@toStringTag@
|
|
458
|
+
"__@toStringTag@147291": {
|
|
549
459
|
"type": "string",
|
|
550
460
|
"const": "SharedArrayBuffer"
|
|
551
461
|
}
|
|
552
462
|
},
|
|
553
463
|
"additionalProperties": false,
|
|
554
464
|
"required": [
|
|
555
|
-
"__@species@
|
|
556
|
-
"__@toStringTag@
|
|
465
|
+
"__@species@151446",
|
|
466
|
+
"__@toStringTag@147291",
|
|
557
467
|
"byteLength"
|
|
558
468
|
]
|
|
559
469
|
},
|