@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.
Files changed (80) hide show
  1. package/bin/browserless.js +25 -14
  2. package/build/browserless.d.ts +6 -1
  3. package/build/browserless.js +38 -20
  4. package/build/exports.core.d.ts +24 -0
  5. package/build/exports.core.js +26 -0
  6. package/build/exports.d.ts +38 -24
  7. package/build/exports.js +44 -26
  8. package/build/routes/chrome/http/content.post.body.json +8 -8
  9. package/build/routes/chrome/http/download.post.body.json +489 -11
  10. package/build/routes/chrome/http/download.post.query.json +69 -6
  11. package/build/routes/chrome/http/download.post.response.json +1 -0
  12. package/build/routes/chrome/http/function.post.body.json +489 -11
  13. package/build/routes/chrome/http/function.post.query.json +69 -6
  14. package/build/routes/chrome/http/function.post.response.json +1 -0
  15. package/build/routes/chrome/http/json-list.get.response.json +1 -49
  16. package/build/routes/chrome/http/json-new.put.response.json +1 -41
  17. package/build/routes/chrome/http/json-protocol.get.response.json +1 -3
  18. package/build/routes/chrome/http/json-version.get.response.json +1 -41
  19. package/build/routes/chrome/http/pdf.post.body.json +9 -153
  20. package/build/routes/chrome/http/pdf.post.query.json +69 -6
  21. package/build/routes/chrome/http/performance.post.body.json +494 -10
  22. package/build/routes/chrome/http/performance.post.query.json +69 -6
  23. package/build/routes/chrome/http/performance.post.response.json +1 -3
  24. package/build/routes/chrome/http/scrape.post.body.json +9 -56
  25. package/build/routes/chrome/http/scrape.post.response.json +1 -305
  26. package/build/routes/chrome/http/screenshot.post.body.json +9 -99
  27. package/build/routes/chrome/http/screenshot.post.query.json +69 -6
  28. package/build/routes/chrome/ws/browser.query.json +69 -6
  29. package/build/routes/chrome/ws/cdp.query.json +69 -6
  30. package/build/routes/chrome/ws/page.query.json +69 -6
  31. package/build/routes/chrome/ws/playwright.query.json +90 -7
  32. package/build/routes/chromium/http/content.post.body.json +8 -8
  33. package/build/routes/chromium/http/download.post.body.json +489 -11
  34. package/build/routes/chromium/http/download.post.query.json +69 -6
  35. package/build/routes/chromium/http/download.post.response.json +1 -0
  36. package/build/routes/chromium/http/function.post.body.json +489 -11
  37. package/build/routes/chromium/http/function.post.query.json +69 -6
  38. package/build/routes/chromium/http/function.post.response.json +1 -0
  39. package/build/routes/chromium/http/json-list.get.response.json +1 -49
  40. package/build/routes/chromium/http/json-new.put.response.json +1 -41
  41. package/build/routes/chromium/http/json-protocol.get.response.json +1 -3
  42. package/build/routes/chromium/http/json-version.get.response.json +1 -41
  43. package/build/routes/chromium/http/pdf.post.body.json +9 -153
  44. package/build/routes/chromium/http/pdf.post.query.json +69 -6
  45. package/build/routes/chromium/http/performance.post.body.json +494 -10
  46. package/build/routes/chromium/http/performance.post.query.json +69 -6
  47. package/build/routes/chromium/http/performance.post.response.json +1 -3
  48. package/build/routes/chromium/http/scrape.post.body.json +9 -56
  49. package/build/routes/chromium/http/scrape.post.response.json +1 -305
  50. package/build/routes/chromium/http/screenshot.post.body.json +9 -99
  51. package/build/routes/chromium/http/screenshot.post.query.json +69 -6
  52. package/build/routes/chromium/ws/browser.query.json +69 -6
  53. package/build/routes/chromium/ws/cdp.query.json +69 -6
  54. package/build/routes/chromium/ws/page.query.json +69 -6
  55. package/build/routes/chromium/ws/playwright.query.json +90 -7
  56. package/build/routes/firefox/ws/playwright.d.ts +5 -1
  57. package/build/routes/firefox/ws/playwright.query.json +90 -7
  58. package/build/routes/management/http/config.get.response.json +1 -104
  59. package/build/routes/management/http/metrics-total.get.response.json +1 -69
  60. package/build/routes/management/http/metrics.get.response.json +1 -91
  61. package/build/routes/management/http/sessions.get.response.json +1 -232
  62. package/build/routes/management/http/static.get.js +7 -7
  63. package/build/routes/webkit/ws/playwright.query.json +90 -7
  64. package/build/shared/utils/performance/main.js +1 -1
  65. package/docker/chrome/Dockerfile +2 -0
  66. package/docker/chromium/Dockerfile +2 -0
  67. package/docker/firefox/Dockerfile +2 -0
  68. package/docker/multi/Dockerfile +2 -0
  69. package/docker/webkit/Dockerfile +2 -0
  70. package/package.json +1 -2
  71. package/scripts/build-open-api.js +18 -9
  72. package/scripts/build-schemas.js +2 -3
  73. package/src/browserless.ts +61 -36
  74. package/src/exports.core.ts +26 -0
  75. package/src/exports.ts +48 -26
  76. package/src/router.ts +6 -2
  77. package/src/routes/firefox/ws/playwright.ts +3 -1
  78. package/src/routes/management/http/static.get.ts +14 -9
  79. package/src/shared/utils/performance/main.ts +1 -2
  80. package/static/docs/swagger.json +1338 -2287
@@ -1,31 +1,509 @@
1
1
  {
2
- "anyOf": [
3
- {
4
- "$ref": "#/definitions/JSONSchema"
2
+ "type": "object",
3
+ "properties": {
4
+ "addScriptTag": {
5
+ "type": "array",
6
+ "items": {
7
+ "$ref": "#/definitions/FrameAddScriptTagOptions"
8
+ }
5
9
  },
6
- {
10
+ "addStyleTag": {
11
+ "type": "array",
12
+ "items": {
13
+ "$ref": "#/definitions/FrameAddStyleTagOptions"
14
+ }
15
+ },
16
+ "authenticate": {
17
+ "$ref": "#/definitions/Credentials"
18
+ },
19
+ "bestAttempt": {
20
+ "description": "When bestAttempt is set to true, browserless attempt to proceed\nwhen \"awaited\" events fail or timeout. This includes things like\ngoto, waitForSelector, and more.",
21
+ "type": "boolean"
22
+ },
23
+ "cookies": {
24
+ "type": "array",
25
+ "items": {
26
+ "$ref": "#/definitions/CookieParam"
27
+ }
28
+ },
29
+ "emulateMediaType": {
30
+ "type": "string"
31
+ },
32
+ "gotoOptions": {
33
+ "$ref": "#/definitions/GoToOptions"
34
+ },
35
+ "html": {
36
+ "type": "string"
37
+ },
38
+ "rejectRequestPattern": {
39
+ "type": "array",
40
+ "items": {
41
+ "type": "string"
42
+ }
43
+ },
44
+ "rejectResourceTypes": {
45
+ "type": "array",
46
+ "items": {
47
+ "enum": [
48
+ "cspviolationreport",
49
+ "document",
50
+ "eventsource",
51
+ "fetch",
52
+ "font",
53
+ "image",
54
+ "manifest",
55
+ "media",
56
+ "other",
57
+ "ping",
58
+ "prefetch",
59
+ "preflight",
60
+ "script",
61
+ "signedexchange",
62
+ "stylesheet",
63
+ "texttrack",
64
+ "websocket",
65
+ "xhr"
66
+ ],
67
+ "type": "string"
68
+ }
69
+ },
70
+ "requestInterceptors": {
71
+ "type": "array",
72
+ "items": {
73
+ "description": "An array of patterns (using `req.url().match(r.pattern)` to match) and their\ncorresponding responses to use in order to fulfill those requests.",
74
+ "type": "object",
75
+ "properties": {
76
+ "pattern": {
77
+ "description": "An array of patterns (using `req.url().match(r.pattern)` to match) and their\ncorresponding responses to use in order to fulfill those requests.",
78
+ "type": "string"
79
+ },
80
+ "response": {
81
+ "$ref": "#/definitions/Partial<ResponseForRequest>"
82
+ }
83
+ },
84
+ "additionalProperties": false,
85
+ "required": [
86
+ "pattern",
87
+ "response"
88
+ ]
89
+ }
90
+ },
91
+ "setExtraHTTPHeaders": {
92
+ "$ref": "#/definitions/Record<string,string>"
93
+ },
94
+ "setJavaScriptEnabled": {
95
+ "description": "Whether or not to allow JavaScript to run on the page.",
96
+ "type": "boolean"
97
+ },
98
+ "url": {
99
+ "type": "string"
100
+ },
101
+ "userAgent": {
7
102
  "type": "string"
103
+ },
104
+ "viewport": {
105
+ "$ref": "#/definitions/Viewport"
106
+ },
107
+ "waitForEvent": {
108
+ "type": "object",
109
+ "properties": {
110
+ "event": {
111
+ "type": "string"
112
+ },
113
+ "timeout": {
114
+ "type": "number"
115
+ }
116
+ },
117
+ "additionalProperties": false,
118
+ "required": [
119
+ "event"
120
+ ]
121
+ },
122
+ "waitForFunction": {
123
+ "type": "object",
124
+ "properties": {
125
+ "fn": {
126
+ "description": "The function, or statement, to be evaluated in browser context",
127
+ "type": "string"
128
+ },
129
+ "polling": {
130
+ "description": "An interval at which the pageFunction is executed, defaults to raf.\nIf polling is a number, then it is treated as an interval in milliseconds\nat which the function would be executed. If polling is a string,\nthen it can be one of the following values: \"raf\" or \"mutation\"",
131
+ "type": [
132
+ "string",
133
+ "number"
134
+ ]
135
+ },
136
+ "timeout": {
137
+ "description": "Maximum time to wait for in milliseconds. Defaults to 30000 (30 seconds).\nPass 0 to disable timeout.",
138
+ "type": "number"
139
+ }
140
+ },
141
+ "additionalProperties": false,
142
+ "required": [
143
+ "fn"
144
+ ]
145
+ },
146
+ "waitForSelector": {
147
+ "type": "object",
148
+ "properties": {
149
+ "hidden": {
150
+ "type": "boolean"
151
+ },
152
+ "selector": {
153
+ "type": "string"
154
+ },
155
+ "timeout": {
156
+ "type": "number"
157
+ },
158
+ "visible": {
159
+ "type": "boolean"
160
+ }
161
+ },
162
+ "additionalProperties": false,
163
+ "required": [
164
+ "selector"
165
+ ]
166
+ },
167
+ "waitForTimeout": {
168
+ "type": "number"
8
169
  }
9
- ],
170
+ },
171
+ "additionalProperties": false,
10
172
  "definitions": {
11
- "JSONSchema": {
173
+ "FrameAddScriptTagOptions": {
174
+ "type": "object",
175
+ "properties": {
176
+ "url": {
177
+ "description": "URL of the script to be added.",
178
+ "type": "string"
179
+ },
180
+ "path": {
181
+ "description": "Path to a JavaScript file to be injected into the frame.",
182
+ "type": "string"
183
+ },
184
+ "content": {
185
+ "description": "JavaScript to be injected into the frame.",
186
+ "type": "string"
187
+ },
188
+ "type": {
189
+ "description": "Sets the `type` of the script. Use `module` in order to load an ES2015 module.",
190
+ "type": "string"
191
+ },
192
+ "id": {
193
+ "description": "Sets the `id` of the script.",
194
+ "type": "string"
195
+ }
196
+ },
197
+ "additionalProperties": false
198
+ },
199
+ "FrameAddStyleTagOptions": {
200
+ "type": "object",
201
+ "properties": {
202
+ "url": {
203
+ "description": "the URL of the CSS file to be added.",
204
+ "type": "string"
205
+ },
206
+ "path": {
207
+ "description": "The path to a CSS file to be injected into the frame.",
208
+ "type": "string"
209
+ },
210
+ "content": {
211
+ "description": "Raw CSS content to be injected into the frame.",
212
+ "type": "string"
213
+ }
214
+ },
215
+ "additionalProperties": false
216
+ },
217
+ "Credentials": {
218
+ "type": "object",
219
+ "properties": {
220
+ "username": {
221
+ "type": "string"
222
+ },
223
+ "password": {
224
+ "type": "string"
225
+ }
226
+ },
227
+ "additionalProperties": false,
228
+ "required": [
229
+ "password",
230
+ "username"
231
+ ]
232
+ },
233
+ "CookieParam": {
234
+ "description": "Cookie parameter object",
235
+ "type": "object",
236
+ "properties": {
237
+ "name": {
238
+ "description": "Cookie name.",
239
+ "type": "string"
240
+ },
241
+ "value": {
242
+ "description": "Cookie value.",
243
+ "type": "string"
244
+ },
245
+ "url": {
246
+ "description": "The request-URI to associate with the setting of the cookie. This value can affect\nthe default domain, path, and source scheme values of the created cookie.",
247
+ "type": "string"
248
+ },
249
+ "domain": {
250
+ "description": "Cookie domain.",
251
+ "type": "string"
252
+ },
253
+ "path": {
254
+ "description": "Cookie path.",
255
+ "type": "string"
256
+ },
257
+ "secure": {
258
+ "description": "True if cookie is secure.",
259
+ "type": "boolean"
260
+ },
261
+ "httpOnly": {
262
+ "description": "True if cookie is http-only.",
263
+ "type": "boolean"
264
+ },
265
+ "sameSite": {
266
+ "description": "Cookie SameSite type.",
267
+ "enum": [
268
+ "Lax",
269
+ "None",
270
+ "Strict"
271
+ ],
272
+ "type": "string"
273
+ },
274
+ "expires": {
275
+ "description": "Cookie expiration date, session cookie if not set",
276
+ "type": "number"
277
+ },
278
+ "priority": {
279
+ "description": "Cookie Priority. Supported only in Chrome.",
280
+ "enum": [
281
+ "High",
282
+ "Low",
283
+ "Medium"
284
+ ],
285
+ "type": "string"
286
+ },
287
+ "sameParty": {
288
+ "description": "True if cookie is SameParty. Supported only in Chrome.",
289
+ "type": "boolean"
290
+ },
291
+ "sourceScheme": {
292
+ "description": "Cookie source scheme type. Supported only in Chrome.",
293
+ "enum": [
294
+ "NonSecure",
295
+ "Secure",
296
+ "Unset"
297
+ ],
298
+ "type": "string"
299
+ },
300
+ "partitionKey": {
301
+ "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. If not set, the cookie will\nbe set as not partitioned.",
302
+ "type": "string"
303
+ }
304
+ },
305
+ "additionalProperties": false,
306
+ "required": [
307
+ "name",
308
+ "value"
309
+ ]
310
+ },
311
+ "GoToOptions": {
312
+ "type": "object",
313
+ "properties": {
314
+ "referer": {
315
+ "description": "If provided, it will take preference over the referer header value set by\n{@link Page.setExtraHTTPHeaderspage.setExtraHTTPHeaders()}.",
316
+ "type": "string"
317
+ },
318
+ "referrerPolicy": {
319
+ "description": "If provided, it will take preference over the referer-policy header value\nset by {@link Page.setExtraHTTPHeaderspage.setExtraHTTPHeaders()}.",
320
+ "type": "string"
321
+ },
322
+ "timeout": {
323
+ "description": "Maximum wait time in milliseconds. Pass 0 to disable the timeout.\n\nThe default value can be changed by using the\n{@link Page.setDefaultTimeout} or {@link Page.setDefaultNavigationTimeout}\nmethods.",
324
+ "type": "number"
325
+ },
326
+ "waitUntil": {
327
+ "description": "When to consider waiting succeeds. Given an array of event strings, waiting\nis considered to be successful after all events have been fired.",
328
+ "anyOf": [
329
+ {
330
+ "type": "array",
331
+ "items": {
332
+ "$ref": "#/definitions/PuppeteerLifeCycleEvent"
333
+ }
334
+ },
335
+ {
336
+ "enum": [
337
+ "domcontentloaded",
338
+ "load",
339
+ "networkidle0",
340
+ "networkidle2"
341
+ ],
342
+ "type": "string"
343
+ }
344
+ ]
345
+ }
346
+ },
347
+ "additionalProperties": false
348
+ },
349
+ "PuppeteerLifeCycleEvent": {
350
+ "enum": [
351
+ "domcontentloaded",
352
+ "load",
353
+ "networkidle0",
354
+ "networkidle2"
355
+ ],
356
+ "type": "string"
357
+ },
358
+ "Partial<ResponseForRequest>": {
12
359
  "type": "object",
13
360
  "properties": {
14
- "code": {
361
+ "status": {
362
+ "type": "number"
363
+ },
364
+ "headers": {
365
+ "description": "Optional response headers. All values are converted to strings.",
366
+ "$ref": "#/definitions/Record<string,unknown>"
367
+ },
368
+ "contentType": {
15
369
  "type": "string"
16
370
  },
17
- "context": {
18
- "$ref": "#/definitions/Record<string,string|number>"
371
+ "body": {
372
+ "anyOf": [
373
+ {
374
+ "type": "object",
375
+ "additionalProperties": false,
376
+ "patternProperties": {
377
+ "^[0-9]+$": {
378
+ "type": "number"
379
+ }
380
+ },
381
+ "properties": {
382
+ "BYTES_PER_ELEMENT": {
383
+ "type": "number"
384
+ },
385
+ "buffer": {
386
+ "$ref": "#/definitions/ArrayBufferLike"
387
+ },
388
+ "byteLength": {
389
+ "type": "number"
390
+ },
391
+ "byteOffset": {
392
+ "type": "number"
393
+ },
394
+ "length": {
395
+ "type": "number"
396
+ },
397
+ "__@toStringTag@208376": {
398
+ "type": "string",
399
+ "const": "Uint8Array"
400
+ }
401
+ },
402
+ "required": [
403
+ "BYTES_PER_ELEMENT",
404
+ "__@toStringTag@208376",
405
+ "buffer",
406
+ "byteLength",
407
+ "byteOffset",
408
+ "length"
409
+ ]
410
+ },
411
+ {
412
+ "type": "string"
413
+ }
414
+ ]
415
+ }
416
+ },
417
+ "additionalProperties": false
418
+ },
419
+ "Record<string,unknown>": {
420
+ "type": "object",
421
+ "additionalProperties": false
422
+ },
423
+ "ArrayBufferLike": {
424
+ "anyOf": [
425
+ {
426
+ "$ref": "#/definitions/ArrayBuffer"
427
+ },
428
+ {
429
+ "$ref": "#/definitions/SharedArrayBuffer"
430
+ }
431
+ ]
432
+ },
433
+ "ArrayBuffer": {
434
+ "type": "object",
435
+ "properties": {
436
+ "byteLength": {
437
+ "type": "number"
438
+ },
439
+ "__@toStringTag@208376": {
440
+ "type": "string"
19
441
  }
20
442
  },
21
443
  "additionalProperties": false,
22
444
  "required": [
23
- "code"
445
+ "__@toStringTag@208376",
446
+ "byteLength"
24
447
  ]
25
448
  },
26
- "Record<string,string|number>": {
449
+ "SharedArrayBuffer": {
450
+ "type": "object",
451
+ "properties": {
452
+ "byteLength": {
453
+ "type": "number"
454
+ },
455
+ "__@species@212529": {
456
+ "$ref": "#/definitions/SharedArrayBuffer"
457
+ },
458
+ "__@toStringTag@208376": {
459
+ "type": "string",
460
+ "const": "SharedArrayBuffer"
461
+ }
462
+ },
463
+ "additionalProperties": false,
464
+ "required": [
465
+ "__@species@212529",
466
+ "__@toStringTag@208376",
467
+ "byteLength"
468
+ ]
469
+ },
470
+ "Record<string,string>": {
27
471
  "type": "object",
28
472
  "additionalProperties": false
473
+ },
474
+ "Viewport": {
475
+ "type": "object",
476
+ "properties": {
477
+ "width": {
478
+ "description": "The page width in CSS pixels.",
479
+ "type": "number"
480
+ },
481
+ "height": {
482
+ "description": "The page height in CSS pixels.",
483
+ "type": "number"
484
+ },
485
+ "deviceScaleFactor": {
486
+ "description": "Specify device scale factor.\nSee {@link https://developer.mozilla.org/en-US/docs/Web/API/Window/devicePixelRatio devicePixelRatio} for more info.",
487
+ "type": "number"
488
+ },
489
+ "isMobile": {
490
+ "description": "Whether the `meta viewport` tag is taken into account.",
491
+ "type": "boolean"
492
+ },
493
+ "isLandscape": {
494
+ "description": "Specifies if the viewport is in landscape mode.",
495
+ "type": "boolean"
496
+ },
497
+ "hasTouch": {
498
+ "description": "Specify if the viewport supports touch events.",
499
+ "type": "boolean"
500
+ }
501
+ },
502
+ "additionalProperties": false,
503
+ "required": [
504
+ "height",
505
+ "width"
506
+ ]
29
507
  }
30
508
  },
31
509
  "$schema": "http://json-schema.org/draft-07/schema#"
@@ -1,8 +1,12 @@
1
1
  {
2
+ "additionalProperties": false,
2
3
  "type": "object",
3
4
  "properties": {
5
+ "blockAds": {
6
+ "description": "Whether or nor to load ad-blocking extensions for the session.\nThis currently uses uBlock Origin and may cause certain sites\nto not load properly.",
7
+ "type": "boolean"
8
+ },
4
9
  "launch": {
5
- "description": "Launch options, which can be either an object\nof puppeteer.launch options or playwright.launchServer\noptions, depending on the API. Must be either JSON\nobject, or a base64-encoded JSON object.",
6
10
  "anyOf": [
7
11
  {
8
12
  "$ref": "#/definitions/CDPLaunchOptions"
@@ -12,10 +16,6 @@
12
16
  }
13
17
  ]
14
18
  },
15
- "blockAds": {
16
- "description": "Whether or nor to load ad-blocking extensions for the session.\nThis currently uses uBlock Origin and may cause certain sites\nto not load properly.",
17
- "type": "boolean"
18
- },
19
19
  "record": {
20
20
  "description": "Whether or nor to record the session. The browser will run\nin \"head-full\" mode, and recording is started and closed\nvia the embedded browserless API. Please refer to the \"Recording\"\nsection in the live documentation site for more details.",
21
21
  "type": "boolean"
@@ -29,7 +29,6 @@
29
29
  "type": "string"
30
30
  }
31
31
  },
32
- "additionalProperties": false,
33
32
  "definitions": {
34
33
  "CDPLaunchOptions": {
35
34
  "type": "object",
@@ -114,6 +113,70 @@
114
113
  }
115
114
  },
116
115
  "additionalProperties": false
116
+ },
117
+ "BrowserServerOptions": {
118
+ "type": "object",
119
+ "properties": {
120
+ "args": {
121
+ "type": "array",
122
+ "items": {
123
+ "type": "string"
124
+ }
125
+ },
126
+ "chromiumSandbox": {
127
+ "type": "boolean"
128
+ },
129
+ "devtools": {
130
+ "type": "boolean"
131
+ },
132
+ "downloadsPath": {
133
+ "type": "string"
134
+ },
135
+ "headless": {
136
+ "type": "boolean"
137
+ },
138
+ "ignoreDefaultArgs": {
139
+ "anyOf": [
140
+ {
141
+ "type": "array",
142
+ "items": {
143
+ "type": "string"
144
+ }
145
+ },
146
+ {
147
+ "type": "boolean"
148
+ }
149
+ ]
150
+ },
151
+ "proxy": {
152
+ "type": "object",
153
+ "properties": {
154
+ "bypass": {
155
+ "type": "string"
156
+ },
157
+ "password": {
158
+ "type": "string"
159
+ },
160
+ "server": {
161
+ "type": "string"
162
+ },
163
+ "username": {
164
+ "type": "string"
165
+ }
166
+ },
167
+ "additionalProperties": false,
168
+ "required": [
169
+ "server"
170
+ ]
171
+ },
172
+ "timeout": {
173
+ "type": "number"
174
+ },
175
+ "tracesDir": {
176
+ "type": "string"
177
+ }
178
+ },
179
+ "additionalProperties": false
117
180
  }
118
181
  },
119
182
  "$schema": "http://json-schema.org/draft-07/schema#"
@@ -1,4 +1,5 @@
1
1
  {
2
2
  "description": "Responses are determined by the returned value of the function\nitself. Binary responses (PDF's, screenshots) are returned back\nas binary data, and primitive JavaScript values are returned back\nby type (HTML data is \"text/html\", Objects are \"application/json\")",
3
+ "type": "string",
3
4
  "$schema": "http://json-schema.org/draft-07/schema#"
4
5
  }
@@ -1,52 +1,4 @@
1
1
  {
2
- "type": "array",
3
- "items": {
4
- "$ref": "#/definitions/CDPJSONPayload"
5
- },
6
- "definitions": {
7
- "CDPJSONPayload": {
8
- "type": "object",
9
- "properties": {
10
- "description": {
11
- "description": "The description of the target. Generally the page's title.",
12
- "type": "string"
13
- },
14
- "devtoolsFrontendUrl": {
15
- "description": "The fully-qualified URL of the Devtools inspector app.",
16
- "type": "string"
17
- },
18
- "id": {
19
- "description": "A Unique Id for the underlying target.",
20
- "type": "string"
21
- },
22
- "title": {
23
- "description": "The title of the target. For pages this is the page's title.",
24
- "type": "string"
25
- },
26
- "type": {
27
- "description": "The type of target, generally \"page\" or \"background_page\".",
28
- "type": "string"
29
- },
30
- "url": {
31
- "description": "The current URL the target is consuming or visiting.",
32
- "type": "string"
33
- },
34
- "webSocketDebuggerUrl": {
35
- "description": "The target or page's WebSocket Debugger URL. Primarily used for legacy\nlibraries to connect and inspect or remote automate this target.",
36
- "type": "string"
37
- }
38
- },
39
- "additionalProperties": false,
40
- "required": [
41
- "description",
42
- "devtoolsFrontendUrl",
43
- "id",
44
- "title",
45
- "type",
46
- "url",
47
- "webSocketDebuggerUrl"
48
- ]
49
- }
50
- },
2
+ "type": "string",
51
3
  "$schema": "http://json-schema.org/draft-07/schema#"
52
4
  }