@browserless.io/browserless 2.24.0-beta-3 → 2.24.0-beta-5

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/build/http.d.ts CHANGED
@@ -151,6 +151,7 @@ export declare enum HTTPRoutes {
151
151
  export declare enum HTTPManagementRoutes {
152
152
  active = "/active?(/)",
153
153
  config = "/config?(/)",
154
+ meta = "/meta?(/)",
154
155
  metrics = "/metrics?(/)",
155
156
  metricsTotal = "/metrics/total?(/)",
156
157
  pressure = "/pressure?(/)",
package/build/http.js CHANGED
@@ -117,6 +117,7 @@ export var HTTPManagementRoutes;
117
117
  (function (HTTPManagementRoutes) {
118
118
  HTTPManagementRoutes["active"] = "/active?(/)";
119
119
  HTTPManagementRoutes["config"] = "/config?(/)";
120
+ HTTPManagementRoutes["meta"] = "/meta?(/)";
120
121
  HTTPManagementRoutes["metrics"] = "/metrics?(/)";
121
122
  HTTPManagementRoutes["metricsTotal"] = "/metrics/total?(/)";
122
123
  HTTPManagementRoutes["pressure"] = "/pressure?(/)";
@@ -245,7 +245,7 @@
245
245
  ]
246
246
  },
247
247
  "CookieParam": {
248
- "description": "Cookie parameter object",
248
+ "description": "Cookie parameter object used to set cookies in the page-level cookies\nAPI.",
249
249
  "type": "object",
250
250
  "properties": {
251
251
  "name": {
@@ -313,7 +313,14 @@
313
313
  },
314
314
  "partitionKey": {
315
315
  "description": "Cookie partition key. In Chrome, it matches the top-level site the\npartitioned cookie is available in. In Firefox, it matches the\nsource origin\n(https://w3c.github.io/webdriver-bidi/#type-storage-PartitionKey).",
316
- "type": "string"
316
+ "anyOf": [
317
+ {
318
+ "$ref": "#/definitions/CookiePartitionKey"
319
+ },
320
+ {
321
+ "type": "string"
322
+ }
323
+ ]
317
324
  }
318
325
  },
319
326
  "additionalProperties": false,
@@ -322,6 +329,24 @@
322
329
  "value"
323
330
  ]
324
331
  },
332
+ "CookiePartitionKey": {
333
+ "description": "Represents a cookie partition key in Chrome.",
334
+ "type": "object",
335
+ "properties": {
336
+ "sourceOrigin": {
337
+ "description": "The site of the top-level URL the browser was visiting at the start of the request\nto the endpoint that set the cookie.\n\nIn Chrome, maps to the CDP's `topLevelSite` partition key.",
338
+ "type": "string"
339
+ },
340
+ "hasCrossSiteAncestor": {
341
+ "description": "Indicates if the cookie has any ancestors that are cross-site to\nthe topLevelSite.\n\nSupported only in Chrome.",
342
+ "type": "boolean"
343
+ }
344
+ },
345
+ "additionalProperties": false,
346
+ "required": [
347
+ "sourceOrigin"
348
+ ]
349
+ },
325
350
  "GoToOptions": {
326
351
  "type": "object",
327
352
  "properties": {
@@ -438,14 +463,14 @@
438
463
  "length": {
439
464
  "type": "number"
440
465
  },
441
- "__@toStringTag@14519": {
466
+ "__@toStringTag@43326": {
442
467
  "type": "string",
443
468
  "const": "Uint8Array"
444
469
  }
445
470
  },
446
471
  "required": [
447
472
  "BYTES_PER_ELEMENT",
448
- "__@toStringTag@14519",
473
+ "__@toStringTag@43326",
449
474
  "buffer",
450
475
  "byteLength",
451
476
  "byteOffset",
@@ -480,13 +505,13 @@
480
505
  "byteLength": {
481
506
  "type": "number"
482
507
  },
483
- "__@toStringTag@14519": {
508
+ "__@toStringTag@43326": {
484
509
  "type": "string"
485
510
  }
486
511
  },
487
512
  "additionalProperties": false,
488
513
  "required": [
489
- "__@toStringTag@14519",
514
+ "__@toStringTag@43326",
490
515
  "byteLength"
491
516
  ]
492
517
  },
@@ -496,18 +521,18 @@
496
521
  "byteLength": {
497
522
  "type": "number"
498
523
  },
499
- "__@species@14557": {
524
+ "__@species@43364": {
500
525
  "$ref": "#/definitions/SharedArrayBuffer"
501
526
  },
502
- "__@toStringTag@14519": {
527
+ "__@toStringTag@43326": {
503
528
  "type": "string",
504
529
  "const": "SharedArrayBuffer"
505
530
  }
506
531
  },
507
532
  "additionalProperties": false,
508
533
  "required": [
509
- "__@species@14557",
510
- "__@toStringTag@14519",
534
+ "__@species@43364",
535
+ "__@toStringTag@43326",
511
536
  "byteLength"
512
537
  ]
513
538
  },
@@ -247,7 +247,7 @@
247
247
  ]
248
248
  },
249
249
  "CookieParam": {
250
- "description": "Cookie parameter object",
250
+ "description": "Cookie parameter object used to set cookies in the page-level cookies\nAPI.",
251
251
  "type": "object",
252
252
  "properties": {
253
253
  "name": {
@@ -315,7 +315,14 @@
315
315
  },
316
316
  "partitionKey": {
317
317
  "description": "Cookie partition key. In Chrome, it matches the top-level site the\npartitioned cookie is available in. In Firefox, it matches the\nsource origin\n(https://w3c.github.io/webdriver-bidi/#type-storage-PartitionKey).",
318
- "type": "string"
318
+ "anyOf": [
319
+ {
320
+ "$ref": "#/definitions/CookiePartitionKey"
321
+ },
322
+ {
323
+ "type": "string"
324
+ }
325
+ ]
319
326
  }
320
327
  },
321
328
  "additionalProperties": false,
@@ -324,6 +331,24 @@
324
331
  "value"
325
332
  ]
326
333
  },
334
+ "CookiePartitionKey": {
335
+ "description": "Represents a cookie partition key in Chrome.",
336
+ "type": "object",
337
+ "properties": {
338
+ "sourceOrigin": {
339
+ "description": "The site of the top-level URL the browser was visiting at the start of the request\nto the endpoint that set the cookie.\n\nIn Chrome, maps to the CDP's `topLevelSite` partition key.",
340
+ "type": "string"
341
+ },
342
+ "hasCrossSiteAncestor": {
343
+ "description": "Indicates if the cookie has any ancestors that are cross-site to\nthe topLevelSite.\n\nSupported only in Chrome.",
344
+ "type": "boolean"
345
+ }
346
+ },
347
+ "additionalProperties": false,
348
+ "required": [
349
+ "sourceOrigin"
350
+ ]
351
+ },
327
352
  "GoToOptions": {
328
353
  "type": "object",
329
354
  "properties": {
@@ -583,14 +608,14 @@
583
608
  "length": {
584
609
  "type": "number"
585
610
  },
586
- "__@toStringTag@115567": {
611
+ "__@toStringTag@101147": {
587
612
  "type": "string",
588
613
  "const": "Uint8Array"
589
614
  }
590
615
  },
591
616
  "required": [
592
617
  "BYTES_PER_ELEMENT",
593
- "__@toStringTag@115567",
618
+ "__@toStringTag@101147",
594
619
  "buffer",
595
620
  "byteLength",
596
621
  "byteOffset",
@@ -625,13 +650,13 @@
625
650
  "byteLength": {
626
651
  "type": "number"
627
652
  },
628
- "__@toStringTag@115567": {
653
+ "__@toStringTag@101147": {
629
654
  "type": "string"
630
655
  }
631
656
  },
632
657
  "additionalProperties": false,
633
658
  "required": [
634
- "__@toStringTag@115567",
659
+ "__@toStringTag@101147",
635
660
  "byteLength"
636
661
  ]
637
662
  },
@@ -641,18 +666,18 @@
641
666
  "byteLength": {
642
667
  "type": "number"
643
668
  },
644
- "__@species@115605": {
669
+ "__@species@101185": {
645
670
  "$ref": "#/definitions/SharedArrayBuffer"
646
671
  },
647
- "__@toStringTag@115567": {
672
+ "__@toStringTag@101147": {
648
673
  "type": "string",
649
674
  "const": "SharedArrayBuffer"
650
675
  }
651
676
  },
652
677
  "additionalProperties": false,
653
678
  "required": [
654
- "__@species@115605",
655
- "__@toStringTag@115567",
679
+ "__@species@101185",
680
+ "__@toStringTag@101147",
656
681
  "byteLength"
657
682
  ]
658
683
  },
@@ -256,7 +256,7 @@
256
256
  ]
257
257
  },
258
258
  "CookieParam": {
259
- "description": "Cookie parameter object",
259
+ "description": "Cookie parameter object used to set cookies in the page-level cookies\nAPI.",
260
260
  "type": "object",
261
261
  "properties": {
262
262
  "name": {
@@ -324,7 +324,14 @@
324
324
  },
325
325
  "partitionKey": {
326
326
  "description": "Cookie partition key. In Chrome, it matches the top-level site the\npartitioned cookie is available in. In Firefox, it matches the\nsource origin\n(https://w3c.github.io/webdriver-bidi/#type-storage-PartitionKey).",
327
- "type": "string"
327
+ "anyOf": [
328
+ {
329
+ "$ref": "#/definitions/CookiePartitionKey"
330
+ },
331
+ {
332
+ "type": "string"
333
+ }
334
+ ]
328
335
  }
329
336
  },
330
337
  "additionalProperties": false,
@@ -333,6 +340,24 @@
333
340
  "value"
334
341
  ]
335
342
  },
343
+ "CookiePartitionKey": {
344
+ "description": "Represents a cookie partition key in Chrome.",
345
+ "type": "object",
346
+ "properties": {
347
+ "sourceOrigin": {
348
+ "description": "The site of the top-level URL the browser was visiting at the start of the request\nto the endpoint that set the cookie.\n\nIn Chrome, maps to the CDP's `topLevelSite` partition key.",
349
+ "type": "string"
350
+ },
351
+ "hasCrossSiteAncestor": {
352
+ "description": "Indicates if the cookie has any ancestors that are cross-site to\nthe topLevelSite.\n\nSupported only in Chrome.",
353
+ "type": "boolean"
354
+ }
355
+ },
356
+ "additionalProperties": false,
357
+ "required": [
358
+ "sourceOrigin"
359
+ ]
360
+ },
336
361
  "ScrapeDebugOptions": {
337
362
  "type": "object",
338
363
  "properties": {
@@ -485,14 +510,14 @@
485
510
  "length": {
486
511
  "type": "number"
487
512
  },
488
- "__@toStringTag@159208": {
513
+ "__@toStringTag@144826": {
489
514
  "type": "string",
490
515
  "const": "Uint8Array"
491
516
  }
492
517
  },
493
518
  "required": [
494
519
  "BYTES_PER_ELEMENT",
495
- "__@toStringTag@159208",
520
+ "__@toStringTag@144826",
496
521
  "buffer",
497
522
  "byteLength",
498
523
  "byteOffset",
@@ -527,13 +552,13 @@
527
552
  "byteLength": {
528
553
  "type": "number"
529
554
  },
530
- "__@toStringTag@159208": {
555
+ "__@toStringTag@144826": {
531
556
  "type": "string"
532
557
  }
533
558
  },
534
559
  "additionalProperties": false,
535
560
  "required": [
536
- "__@toStringTag@159208",
561
+ "__@toStringTag@144826",
537
562
  "byteLength"
538
563
  ]
539
564
  },
@@ -543,18 +568,18 @@
543
568
  "byteLength": {
544
569
  "type": "number"
545
570
  },
546
- "__@species@159246": {
571
+ "__@species@144864": {
547
572
  "$ref": "#/definitions/SharedArrayBuffer"
548
573
  },
549
- "__@toStringTag@159208": {
574
+ "__@toStringTag@144826": {
550
575
  "type": "string",
551
576
  "const": "SharedArrayBuffer"
552
577
  }
553
578
  },
554
579
  "additionalProperties": false,
555
580
  "required": [
556
- "__@species@159246",
557
- "__@toStringTag@159208",
581
+ "__@species@144864",
582
+ "__@toStringTag@144826",
558
583
  "byteLength"
559
584
  ]
560
585
  },
@@ -248,7 +248,14 @@
248
248
  },
249
249
  "partitionKey": {
250
250
  "description": "Cookie partition key. In Chrome, it is the top-level site the\npartitioned cookie is available in. In Firefox, it matches the\nsource origin\n(https://w3c.github.io/webdriver-bidi/#type-storage-PartitionKey).",
251
- "type": "string"
251
+ "anyOf": [
252
+ {
253
+ "$ref": "#/definitions/CookiePartitionKey"
254
+ },
255
+ {
256
+ "type": "string"
257
+ }
258
+ ]
252
259
  },
253
260
  "partitionKeyOpaque": {
254
261
  "description": "True if cookie partition key is opaque. Supported only in Chrome.",
@@ -268,6 +275,24 @@
268
275
  "value"
269
276
  ]
270
277
  },
278
+ "CookiePartitionKey": {
279
+ "description": "Represents a cookie partition key in Chrome.",
280
+ "type": "object",
281
+ "properties": {
282
+ "sourceOrigin": {
283
+ "description": "The site of the top-level URL the browser was visiting at the start of the request\nto the endpoint that set the cookie.\n\nIn Chrome, maps to the CDP's `topLevelSite` partition key.",
284
+ "type": "string"
285
+ },
286
+ "hasCrossSiteAncestor": {
287
+ "description": "Indicates if the cookie has any ancestors that are cross-site to\nthe topLevelSite.\n\nSupported only in Chrome.",
288
+ "type": "boolean"
289
+ }
290
+ },
291
+ "additionalProperties": false,
292
+ "required": [
293
+ "sourceOrigin"
294
+ ]
295
+ },
271
296
  "InBoundRequest": {
272
297
  "type": "object",
273
298
  "properties": {
@@ -253,7 +253,7 @@
253
253
  ]
254
254
  },
255
255
  "CookieParam": {
256
- "description": "Cookie parameter object",
256
+ "description": "Cookie parameter object used to set cookies in the page-level cookies\nAPI.",
257
257
  "type": "object",
258
258
  "properties": {
259
259
  "name": {
@@ -321,7 +321,14 @@
321
321
  },
322
322
  "partitionKey": {
323
323
  "description": "Cookie partition key. In Chrome, it matches the top-level site the\npartitioned cookie is available in. In Firefox, it matches the\nsource origin\n(https://w3c.github.io/webdriver-bidi/#type-storage-PartitionKey).",
324
- "type": "string"
324
+ "anyOf": [
325
+ {
326
+ "$ref": "#/definitions/CookiePartitionKey"
327
+ },
328
+ {
329
+ "type": "string"
330
+ }
331
+ ]
325
332
  }
326
333
  },
327
334
  "additionalProperties": false,
@@ -330,6 +337,24 @@
330
337
  "value"
331
338
  ]
332
339
  },
340
+ "CookiePartitionKey": {
341
+ "description": "Represents a cookie partition key in Chrome.",
342
+ "type": "object",
343
+ "properties": {
344
+ "sourceOrigin": {
345
+ "description": "The site of the top-level URL the browser was visiting at the start of the request\nto the endpoint that set the cookie.\n\nIn Chrome, maps to the CDP's `topLevelSite` partition key.",
346
+ "type": "string"
347
+ },
348
+ "hasCrossSiteAncestor": {
349
+ "description": "Indicates if the cookie has any ancestors that are cross-site to\nthe topLevelSite.\n\nSupported only in Chrome.",
350
+ "type": "boolean"
351
+ }
352
+ },
353
+ "additionalProperties": false,
354
+ "required": [
355
+ "sourceOrigin"
356
+ ]
357
+ },
333
358
  "GoToOptions": {
334
359
  "type": "object",
335
360
  "properties": {
@@ -528,14 +553,14 @@
528
553
  "length": {
529
554
  "type": "number"
530
555
  },
531
- "__@toStringTag@144598": {
556
+ "__@toStringTag@130212": {
532
557
  "type": "string",
533
558
  "const": "Uint8Array"
534
559
  }
535
560
  },
536
561
  "required": [
537
562
  "BYTES_PER_ELEMENT",
538
- "__@toStringTag@144598",
563
+ "__@toStringTag@130212",
539
564
  "buffer",
540
565
  "byteLength",
541
566
  "byteOffset",
@@ -570,13 +595,13 @@
570
595
  "byteLength": {
571
596
  "type": "number"
572
597
  },
573
- "__@toStringTag@144598": {
598
+ "__@toStringTag@130212": {
574
599
  "type": "string"
575
600
  }
576
601
  },
577
602
  "additionalProperties": false,
578
603
  "required": [
579
- "__@toStringTag@144598",
604
+ "__@toStringTag@130212",
580
605
  "byteLength"
581
606
  ]
582
607
  },
@@ -586,18 +611,18 @@
586
611
  "byteLength": {
587
612
  "type": "number"
588
613
  },
589
- "__@species@144636": {
614
+ "__@species@130250": {
590
615
  "$ref": "#/definitions/SharedArrayBuffer"
591
616
  },
592
- "__@toStringTag@144598": {
617
+ "__@toStringTag@130212": {
593
618
  "type": "string",
594
619
  "const": "SharedArrayBuffer"
595
620
  }
596
621
  },
597
622
  "additionalProperties": false,
598
623
  "required": [
599
- "__@species@144636",
600
- "__@toStringTag@144598",
624
+ "__@species@130250",
625
+ "__@toStringTag@130212",
601
626
  "byteLength"
602
627
  ]
603
628
  },
@@ -245,7 +245,7 @@
245
245
  ]
246
246
  },
247
247
  "CookieParam": {
248
- "description": "Cookie parameter object",
248
+ "description": "Cookie parameter object used to set cookies in the page-level cookies\nAPI.",
249
249
  "type": "object",
250
250
  "properties": {
251
251
  "name": {
@@ -313,7 +313,14 @@
313
313
  },
314
314
  "partitionKey": {
315
315
  "description": "Cookie partition key. In Chrome, it matches the top-level site the\npartitioned cookie is available in. In Firefox, it matches the\nsource origin\n(https://w3c.github.io/webdriver-bidi/#type-storage-PartitionKey).",
316
- "type": "string"
316
+ "anyOf": [
317
+ {
318
+ "$ref": "#/definitions/CookiePartitionKey"
319
+ },
320
+ {
321
+ "type": "string"
322
+ }
323
+ ]
317
324
  }
318
325
  },
319
326
  "additionalProperties": false,
@@ -322,6 +329,24 @@
322
329
  "value"
323
330
  ]
324
331
  },
332
+ "CookiePartitionKey": {
333
+ "description": "Represents a cookie partition key in Chrome.",
334
+ "type": "object",
335
+ "properties": {
336
+ "sourceOrigin": {
337
+ "description": "The site of the top-level URL the browser was visiting at the start of the request\nto the endpoint that set the cookie.\n\nIn Chrome, maps to the CDP's `topLevelSite` partition key.",
338
+ "type": "string"
339
+ },
340
+ "hasCrossSiteAncestor": {
341
+ "description": "Indicates if the cookie has any ancestors that are cross-site to\nthe topLevelSite.\n\nSupported only in Chrome.",
342
+ "type": "boolean"
343
+ }
344
+ },
345
+ "additionalProperties": false,
346
+ "required": [
347
+ "sourceOrigin"
348
+ ]
349
+ },
325
350
  "GoToOptions": {
326
351
  "type": "object",
327
352
  "properties": {
@@ -438,14 +463,14 @@
438
463
  "length": {
439
464
  "type": "number"
440
465
  },
441
- "__@toStringTag@173871": {
466
+ "__@toStringTag@159493": {
442
467
  "type": "string",
443
468
  "const": "Uint8Array"
444
469
  }
445
470
  },
446
471
  "required": [
447
472
  "BYTES_PER_ELEMENT",
448
- "__@toStringTag@173871",
473
+ "__@toStringTag@159493",
449
474
  "buffer",
450
475
  "byteLength",
451
476
  "byteOffset",
@@ -480,13 +505,13 @@
480
505
  "byteLength": {
481
506
  "type": "number"
482
507
  },
483
- "__@toStringTag@173871": {
508
+ "__@toStringTag@159493": {
484
509
  "type": "string"
485
510
  }
486
511
  },
487
512
  "additionalProperties": false,
488
513
  "required": [
489
- "__@toStringTag@173871",
514
+ "__@toStringTag@159493",
490
515
  "byteLength"
491
516
  ]
492
517
  },
@@ -496,18 +521,18 @@
496
521
  "byteLength": {
497
522
  "type": "number"
498
523
  },
499
- "__@species@173909": {
524
+ "__@species@159531": {
500
525
  "$ref": "#/definitions/SharedArrayBuffer"
501
526
  },
502
- "__@toStringTag@173871": {
527
+ "__@toStringTag@159493": {
503
528
  "type": "string",
504
529
  "const": "SharedArrayBuffer"
505
530
  }
506
531
  },
507
532
  "additionalProperties": false,
508
533
  "required": [
509
- "__@species@173909",
510
- "__@toStringTag@173871",
534
+ "__@species@159531",
535
+ "__@toStringTag@159493",
511
536
  "byteLength"
512
537
  ]
513
538
  },