chrome-types 0.1.319 → 0.1.321

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 +116 -4
  2. package/index.d.ts +116 -4
  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 Mon Nov 11 2024 22:31:15 GMT+0000 (Coordinated Universal Time)
18
- // Built at 00286af3592f11a16ef120d0213b361c39a63720
17
+ // Generated on Fri Nov 15 2024 11:30:36 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 588dc418b18653a904c97c7a0f2ecef4b82ca3b1
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 site access request. Request will only be signaled to the user if extension can be granted access to site 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 addSiteAccessRequest(
22662
+
22663
+ request: {
22664
+
22665
+ /**
22666
+ * The id of a document where site 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 site 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 site access requests can be shown. If provided, site 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 site access request. Request will only be signaled to the user if extension can be granted access to site 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 addSiteAccessRequest(
22689
+
22690
+ request: {
22691
+
22692
+ /**
22693
+ * The id of a document where site 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 site 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 site access requests can be shown. If provided, site 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 site access request, if existent.
22713
+ *
22714
+ * @since Pending
22715
+ * @chrome-min-manifest MV3
22716
+ */
22717
+ export function removeSiteAccessRequest(
22718
+
22719
+ request: {
22720
+
22721
+ /**
22722
+ * The id of a document where site 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 site access request will be removed. This or `documentId` must be specified.
22728
+ */
22729
+ tabId?: number,
22730
+
22731
+ /**
22732
+ * The URL pattern where site access request will be removed. If provided, this must exactly match the pattern of an existing site access request.
22733
+ */
22734
+ pattern?: string,
22735
+ },
22736
+ ): Promise<void>;
22737
+
22738
+ /**
22739
+ * Removes a site access request, if existent.
22740
+ *
22741
+ * @since Pending
22742
+ * @chrome-min-manifest MV3
22743
+ */
22744
+ export function removeSiteAccessRequest(
22745
+
22746
+ request: {
22747
+
22748
+ /**
22749
+ * The id of a document where site 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 site access request will be removed. This or `documentId` must be specified.
22755
+ */
22756
+ tabId?: number,
22757
+
22758
+ /**
22759
+ * The URL pattern where site access request will be removed. If provided, this must exactly match the pattern of an existing site access request.
22760
+ */
22761
+ pattern?: string,
22762
+ },
22763
+
22764
+ callback?: () => void,
22765
+ ): void;
22654
22766
  }
22655
22767
 
22656
22768
  /**
@@ -24654,7 +24766,7 @@ declare namespace chrome {
24654
24766
  /**
24655
24767
  * Open your Extension's options page, if possible.
24656
24768
  *
24657
- * The precise behavior may depend on your manifest's `[options_ui](https://developer.chrome.com/docs/extensions/develop/ui/options-page#embedded_options)` or `[options_page](https://developer.chrome.com/docs/extensions/develop/ui/options-page#full_page)` key, or what Chrome happens to support at the time. For example, the page may be opened in a new tab, within chrome://extensions, within an App, or it may just focus an open options page. It will never cause the caller page to reload.
24769
+ * The precise behavior may depend on your manifest's [`options_ui`](https://developer.chrome.com/docs/extensions/develop/ui/options-page#embedded_options) or [`options_page`](https://developer.chrome.com/docs/extensions/develop/ui/options-page#full_page) key, or what Chrome happens to support at the time. For example, the page may be opened in a new tab, within chrome://extensions, within an App, or it may just focus an open options page. It will never cause the caller page to reload.
24658
24770
  *
24659
24771
  * If your Extension does not declare an options page, or Chrome failed to create one for some other reason, the callback will set {@link lastError}.
24660
24772
  *
@@ -24665,7 +24777,7 @@ declare namespace chrome {
24665
24777
  /**
24666
24778
  * Open your Extension's options page, if possible.
24667
24779
  *
24668
- * The precise behavior may depend on your manifest's `[options_ui](https://developer.chrome.com/docs/extensions/develop/ui/options-page#embedded_options)` or `[options_page](https://developer.chrome.com/docs/extensions/develop/ui/options-page#full_page)` key, or what Chrome happens to support at the time. For example, the page may be opened in a new tab, within chrome://extensions, within an App, or it may just focus an open options page. It will never cause the caller page to reload.
24780
+ * The precise behavior may depend on your manifest's [`options_ui`](https://developer.chrome.com/docs/extensions/develop/ui/options-page#embedded_options) or [`options_page`](https://developer.chrome.com/docs/extensions/develop/ui/options-page#full_page) key, or what Chrome happens to support at the time. For example, the page may be opened in a new tab, within chrome://extensions, within an App, or it may just focus an open options page. It will never cause the caller page to reload.
24669
24781
  *
24670
24782
  * If your Extension does not declare an options page, or Chrome failed to create one for some other reason, the callback will set {@link lastError}.
24671
24783
  */
package/index.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Mon Nov 11 2024 22:31:10 GMT+0000 (Coordinated Universal Time)
18
- // Built at 00286af3592f11a16ef120d0213b361c39a63720
17
+ // Generated on Fri Nov 15 2024 11:30:31 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 588dc418b18653a904c97c7a0f2ecef4b82ca3b1
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 site access request. Request will only be signaled to the user if extension can be granted access to site 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 addSiteAccessRequest(
17407
+
17408
+ request: {
17409
+
17410
+ /**
17411
+ * The id of a document where site 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 site 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 site access requests can be shown. If provided, site 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 site access request. Request will only be signaled to the user if extension can be granted access to site 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 addSiteAccessRequest(
17434
+
17435
+ request: {
17436
+
17437
+ /**
17438
+ * The id of a document where site 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 site 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 site access requests can be shown. If provided, site 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 site access request, if existent.
17458
+ *
17459
+ * @since Pending
17460
+ * @chrome-min-manifest MV3
17461
+ */
17462
+ export function removeSiteAccessRequest(
17463
+
17464
+ request: {
17465
+
17466
+ /**
17467
+ * The id of a document where site 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 site access request will be removed. This or `documentId` must be specified.
17473
+ */
17474
+ tabId?: number,
17475
+
17476
+ /**
17477
+ * The URL pattern where site access request will be removed. If provided, this must exactly match the pattern of an existing site access request.
17478
+ */
17479
+ pattern?: string,
17480
+ },
17481
+ ): Promise<void>;
17482
+
17483
+ /**
17484
+ * Removes a site access request, if existent.
17485
+ *
17486
+ * @since Pending
17487
+ * @chrome-min-manifest MV3
17488
+ */
17489
+ export function removeSiteAccessRequest(
17490
+
17491
+ request: {
17492
+
17493
+ /**
17494
+ * The id of a document where site 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 site access request will be removed. This or `documentId` must be specified.
17500
+ */
17501
+ tabId?: number,
17502
+
17503
+ /**
17504
+ * The URL pattern where site access request will be removed. If provided, this must exactly match the pattern of an existing site access request.
17505
+ */
17506
+ pattern?: string,
17507
+ },
17508
+
17509
+ callback?: () => void,
17510
+ ): void;
17399
17511
  }
17400
17512
 
17401
17513
  /**
@@ -19388,7 +19500,7 @@ declare namespace chrome {
19388
19500
  /**
19389
19501
  * Open your Extension's options page, if possible.
19390
19502
  *
19391
- * The precise behavior may depend on your manifest's `[options_ui](https://developer.chrome.com/docs/extensions/develop/ui/options-page#embedded_options)` or `[options_page](https://developer.chrome.com/docs/extensions/develop/ui/options-page#full_page)` key, or what Chrome happens to support at the time. For example, the page may be opened in a new tab, within chrome://extensions, within an App, or it may just focus an open options page. It will never cause the caller page to reload.
19503
+ * The precise behavior may depend on your manifest's [`options_ui`](https://developer.chrome.com/docs/extensions/develop/ui/options-page#embedded_options) or [`options_page`](https://developer.chrome.com/docs/extensions/develop/ui/options-page#full_page) key, or what Chrome happens to support at the time. For example, the page may be opened in a new tab, within chrome://extensions, within an App, or it may just focus an open options page. It will never cause the caller page to reload.
19392
19504
  *
19393
19505
  * If your Extension does not declare an options page, or Chrome failed to create one for some other reason, the callback will set {@link lastError}.
19394
19506
  *
@@ -19399,7 +19511,7 @@ declare namespace chrome {
19399
19511
  /**
19400
19512
  * Open your Extension's options page, if possible.
19401
19513
  *
19402
- * The precise behavior may depend on your manifest's `[options_ui](https://developer.chrome.com/docs/extensions/develop/ui/options-page#embedded_options)` or `[options_page](https://developer.chrome.com/docs/extensions/develop/ui/options-page#full_page)` key, or what Chrome happens to support at the time. For example, the page may be opened in a new tab, within chrome://extensions, within an App, or it may just focus an open options page. It will never cause the caller page to reload.
19514
+ * The precise behavior may depend on your manifest's [`options_ui`](https://developer.chrome.com/docs/extensions/develop/ui/options-page#embedded_options) or [`options_page`](https://developer.chrome.com/docs/extensions/develop/ui/options-page#full_page) key, or what Chrome happens to support at the time. For example, the page may be opened in a new tab, within chrome://extensions, within an App, or it may just focus an open options page. It will never cause the caller page to reload.
19403
19515
  *
19404
19516
  * If your Extension does not declare an options page, or Chrome failed to create one for some other reason, the callback will set {@link lastError}.
19405
19517
  */
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "name": "chrome-types",
7
7
  "config": {
8
- "build-hash": "d82c231e89b7003f"
8
+ "build-hash": "53dd66e8df0b955d"
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.319"
19
+ "version": "0.1.321"
20
20
  }