chrome-types 0.1.320 → 0.1.322

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 (3) hide show
  1. package/_all.d.ts +114 -2
  2. package/index.d.ts +114 -2
  3. package/package.json +2 -2
package/_all.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Tue Nov 12 2024 22:32:14 GMT+0000 (Coordinated Universal Time)
18
- // Built at 9c21f54bbc71dd14d2d07b5b48dfe6de57a06e46
17
+ // Generated on Tue Nov 26 2024 12:46:25 GMT+0000 (Coordinated Universal Time)
18
+ // Built at f51d021a7fdc741b056043c8ff27223e890964ba
19
19
 
20
20
  // Includes all types, including MV2 + Platform Apps APIs.
21
21
 
@@ -22651,6 +22651,118 @@ declare namespace chrome {
22651
22651
  removed: boolean,
22652
22652
  ) => void,
22653
22653
  ): void;
22654
+
22655
+ /**
22656
+ * Adds a host access request. Request will only be signaled to the user if extension can be granted access to the host in the request. Request will be reset on cross-origin navigation. When accepted, grants persistent access to the site’s top origin
22657
+ *
22658
+ * @since Pending
22659
+ * @chrome-min-manifest MV3
22660
+ */
22661
+ export function addHostAccessRequest(
22662
+
22663
+ request: {
22664
+
22665
+ /**
22666
+ * The id of a document where host access requests can be shown. Must be the top-level document within a tab. If provided, the request is shown on the tab of the specified document and is removed when the document navigates to a new origin. Adding a new request will override any existent request for `tabId`. This or `tabId` must be specified.
22667
+ */
22668
+ documentId?: string,
22669
+
22670
+ /**
22671
+ * The id of the tab where host access requests can be shown. If provided, the request is shown on the specified tab and is removed when the tab navigates to a new origin. Adding a new request will override an existent request for `documentId`. This or `documentId` must be specified.
22672
+ */
22673
+ tabId?: number,
22674
+
22675
+ /**
22676
+ * The URL pattern where host access requests can be shown. If provided, host access requests will only be shown on URLs that match this pattern.
22677
+ */
22678
+ pattern?: string,
22679
+ },
22680
+ ): Promise<void>;
22681
+
22682
+ /**
22683
+ * Adds a host access request. Request will only be signaled to the user if extension can be granted access to the host in the request. Request will be reset on cross-origin navigation. When accepted, grants persistent access to the site’s top origin
22684
+ *
22685
+ * @since Pending
22686
+ * @chrome-min-manifest MV3
22687
+ */
22688
+ export function addHostAccessRequest(
22689
+
22690
+ request: {
22691
+
22692
+ /**
22693
+ * The id of a document where host access requests can be shown. Must be the top-level document within a tab. If provided, the request is shown on the tab of the specified document and is removed when the document navigates to a new origin. Adding a new request will override any existent request for `tabId`. This or `tabId` must be specified.
22694
+ */
22695
+ documentId?: string,
22696
+
22697
+ /**
22698
+ * The id of the tab where host access requests can be shown. If provided, the request is shown on the specified tab and is removed when the tab navigates to a new origin. Adding a new request will override an existent request for `documentId`. This or `documentId` must be specified.
22699
+ */
22700
+ tabId?: number,
22701
+
22702
+ /**
22703
+ * The URL pattern where host access requests can be shown. If provided, host access requests will only be shown on URLs that match this pattern.
22704
+ */
22705
+ pattern?: string,
22706
+ },
22707
+
22708
+ callback?: () => void,
22709
+ ): void;
22710
+
22711
+ /**
22712
+ * Removes a host access request, if existent.
22713
+ *
22714
+ * @since Pending
22715
+ * @chrome-min-manifest MV3
22716
+ */
22717
+ export function removeHostAccessRequest(
22718
+
22719
+ request: {
22720
+
22721
+ /**
22722
+ * The id of a document where host access request will be removed. Must be the top-level document within a tab. This or `tabId` must be specified.
22723
+ */
22724
+ documentId?: string,
22725
+
22726
+ /**
22727
+ * The id of the tab where host access request will be removed. This or `documentId` must be specified.
22728
+ */
22729
+ tabId?: number,
22730
+
22731
+ /**
22732
+ * The URL pattern where host access request will be removed. If provided, this must exactly match the pattern of an existing host access request.
22733
+ */
22734
+ pattern?: string,
22735
+ },
22736
+ ): Promise<void>;
22737
+
22738
+ /**
22739
+ * Removes a host access request, if existent.
22740
+ *
22741
+ * @since Pending
22742
+ * @chrome-min-manifest MV3
22743
+ */
22744
+ export function removeHostAccessRequest(
22745
+
22746
+ request: {
22747
+
22748
+ /**
22749
+ * The id of a document where host access request will be removed. Must be the top-level document within a tab. This or `tabId` must be specified.
22750
+ */
22751
+ documentId?: string,
22752
+
22753
+ /**
22754
+ * The id of the tab where host access request will be removed. This or `documentId` must be specified.
22755
+ */
22756
+ tabId?: number,
22757
+
22758
+ /**
22759
+ * The URL pattern where host access request will be removed. If provided, this must exactly match the pattern of an existing host access request.
22760
+ */
22761
+ pattern?: string,
22762
+ },
22763
+
22764
+ callback?: () => void,
22765
+ ): void;
22654
22766
  }
22655
22767
 
22656
22768
  /**
package/index.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Tue Nov 12 2024 22:32:09 GMT+0000 (Coordinated Universal Time)
18
- // Built at 9c21f54bbc71dd14d2d07b5b48dfe6de57a06e46
17
+ // Generated on Tue Nov 26 2024 12:46:21 GMT+0000 (Coordinated Universal Time)
18
+ // Built at f51d021a7fdc741b056043c8ff27223e890964ba
19
19
 
20
20
  // Includes MV3+ APIs only.
21
21
 
@@ -17396,6 +17396,118 @@ declare namespace chrome {
17396
17396
  removed: boolean,
17397
17397
  ) => void,
17398
17398
  ): void;
17399
+
17400
+ /**
17401
+ * Adds a host access request. Request will only be signaled to the user if extension can be granted access to the host in the request. Request will be reset on cross-origin navigation. When accepted, grants persistent access to the site’s top origin
17402
+ *
17403
+ * @since Pending
17404
+ * @chrome-min-manifest MV3
17405
+ */
17406
+ export function addHostAccessRequest(
17407
+
17408
+ request: {
17409
+
17410
+ /**
17411
+ * The id of a document where host access requests can be shown. Must be the top-level document within a tab. If provided, the request is shown on the tab of the specified document and is removed when the document navigates to a new origin. Adding a new request will override any existent request for `tabId`. This or `tabId` must be specified.
17412
+ */
17413
+ documentId?: string,
17414
+
17415
+ /**
17416
+ * The id of the tab where host access requests can be shown. If provided, the request is shown on the specified tab and is removed when the tab navigates to a new origin. Adding a new request will override an existent request for `documentId`. This or `documentId` must be specified.
17417
+ */
17418
+ tabId?: number,
17419
+
17420
+ /**
17421
+ * The URL pattern where host access requests can be shown. If provided, host access requests will only be shown on URLs that match this pattern.
17422
+ */
17423
+ pattern?: string,
17424
+ },
17425
+ ): Promise<void>;
17426
+
17427
+ /**
17428
+ * Adds a host access request. Request will only be signaled to the user if extension can be granted access to the host in the request. Request will be reset on cross-origin navigation. When accepted, grants persistent access to the site’s top origin
17429
+ *
17430
+ * @since Pending
17431
+ * @chrome-min-manifest MV3
17432
+ */
17433
+ export function addHostAccessRequest(
17434
+
17435
+ request: {
17436
+
17437
+ /**
17438
+ * The id of a document where host access requests can be shown. Must be the top-level document within a tab. If provided, the request is shown on the tab of the specified document and is removed when the document navigates to a new origin. Adding a new request will override any existent request for `tabId`. This or `tabId` must be specified.
17439
+ */
17440
+ documentId?: string,
17441
+
17442
+ /**
17443
+ * The id of the tab where host access requests can be shown. If provided, the request is shown on the specified tab and is removed when the tab navigates to a new origin. Adding a new request will override an existent request for `documentId`. This or `documentId` must be specified.
17444
+ */
17445
+ tabId?: number,
17446
+
17447
+ /**
17448
+ * The URL pattern where host access requests can be shown. If provided, host access requests will only be shown on URLs that match this pattern.
17449
+ */
17450
+ pattern?: string,
17451
+ },
17452
+
17453
+ callback?: () => void,
17454
+ ): void;
17455
+
17456
+ /**
17457
+ * Removes a host access request, if existent.
17458
+ *
17459
+ * @since Pending
17460
+ * @chrome-min-manifest MV3
17461
+ */
17462
+ export function removeHostAccessRequest(
17463
+
17464
+ request: {
17465
+
17466
+ /**
17467
+ * The id of a document where host access request will be removed. Must be the top-level document within a tab. This or `tabId` must be specified.
17468
+ */
17469
+ documentId?: string,
17470
+
17471
+ /**
17472
+ * The id of the tab where host access request will be removed. This or `documentId` must be specified.
17473
+ */
17474
+ tabId?: number,
17475
+
17476
+ /**
17477
+ * The URL pattern where host access request will be removed. If provided, this must exactly match the pattern of an existing host access request.
17478
+ */
17479
+ pattern?: string,
17480
+ },
17481
+ ): Promise<void>;
17482
+
17483
+ /**
17484
+ * Removes a host access request, if existent.
17485
+ *
17486
+ * @since Pending
17487
+ * @chrome-min-manifest MV3
17488
+ */
17489
+ export function removeHostAccessRequest(
17490
+
17491
+ request: {
17492
+
17493
+ /**
17494
+ * The id of a document where host access request will be removed. Must be the top-level document within a tab. This or `tabId` must be specified.
17495
+ */
17496
+ documentId?: string,
17497
+
17498
+ /**
17499
+ * The id of the tab where host access request will be removed. This or `documentId` must be specified.
17500
+ */
17501
+ tabId?: number,
17502
+
17503
+ /**
17504
+ * The URL pattern where host access request will be removed. If provided, this must exactly match the pattern of an existing host access request.
17505
+ */
17506
+ pattern?: string,
17507
+ },
17508
+
17509
+ callback?: () => void,
17510
+ ): void;
17399
17511
  }
17400
17512
 
17401
17513
  /**
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "name": "chrome-types",
7
7
  "config": {
8
- "build-hash": "bbf685d79b3e273b"
8
+ "build-hash": "fd96ebb467e84cfb"
9
9
  },
10
10
  "repository": {
11
11
  "type": "git",
@@ -16,5 +16,5 @@
16
16
  "url": "https://github.com/GoogleChrome/chrome-types/issues"
17
17
  },
18
18
  "homepage": "https://github.com/GoogleChrome/chrome-types",
19
- "version": "0.1.320"
19
+ "version": "0.1.322"
20
20
  }