chrome-types 0.1.286 → 0.1.288

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 +11 -13
  2. package/index.d.ts +11 -13
  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 May 28 2024 09:35:54 GMT+0000 (Coordinated Universal Time)
18
- // Built at 0e5fe59bc5c7f25ab953964599bf1177c7bb2bce
17
+ // Generated on Tue Jun 18 2024 10:55:58 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 9ca5be28988d4181e2fe1f4db566c22e31b79739
19
19
 
20
20
  // Includes all types, including MV2 + Platform Apps APIs.
21
21
 
@@ -678,11 +678,10 @@ declare namespace chrome {
678
678
  ): void;
679
679
 
680
680
  /**
681
- * Opens the extension's popup.
681
+ * Opens the extension's popup. Between Chrome 118 and Chrome 126, this is only available to policy installed extensions.
682
682
  *
683
683
  * @param options Specifies options for opening the popup.
684
- * @since Chrome 118
685
- * @chrome-install-location policy
684
+ * @since Pending
686
685
  */
687
686
  export function openPopup(
688
687
 
@@ -690,11 +689,10 @@ declare namespace chrome {
690
689
  ): Promise<void>;
691
690
 
692
691
  /**
693
- * Opens the extension's popup.
692
+ * Opens the extension's popup. Between Chrome 118 and Chrome 126, this is only available to policy installed extensions.
694
693
  *
695
694
  * @param options Specifies options for opening the popup.
696
- * @since Chrome 118
697
- * @chrome-install-location policy
695
+ * @since Pending
698
696
  */
699
697
  export function openPopup(
700
698
 
@@ -4912,7 +4910,7 @@ declare namespace chrome {
4912
4910
  *
4913
4911
  * @since Chrome 74
4914
4912
  */
4915
- origins?: string[];
4913
+ origins?: [string, ...string[]];
4916
4914
 
4917
4915
  /**
4918
4916
  * When present, data for origins in this list is excluded from deletion. Can't be used together with `origins`. Only supported for cookies, storage and cache. Cookies are excluded for the whole registrable domain.
@@ -8577,7 +8575,7 @@ declare namespace chrome {
8577
8575
  * * This update happens as a single atomic operation: either all specified rules are added and removed, or an error is returned.
8578
8576
  * * These rules are persisted across browser sessions and across extension updates.
8579
8577
  * * Static rules specified as part of the extension package can not be removed using this function.
8580
- * * {@link MAX_NUMBER_OF_DYNAMIC_AND_SESSION_RULES} is the maximum number of combined dynamic and session rules an extension can add.
8578
+ * * {@link MAX_NUMBER_OF_DYNAMIC_RULES} is the maximum number of dynamic rules an extension can add. The number of [unsafe rules](https://developer.chrome.com/docs/extensions/reference/declarativeNetRequest/#safe_rules) must not exceed {@link MAX_NUMBER_OF_UNSAFE_DYNAMIC_RULES}.
8581
8579
  *
8582
8580
  * @chrome-returns-extra since Chrome 91
8583
8581
  */
@@ -8595,7 +8593,7 @@ declare namespace chrome {
8595
8593
  * * This update happens as a single atomic operation: either all specified rules are added and removed, or an error is returned.
8596
8594
  * * These rules are persisted across browser sessions and across extension updates.
8597
8595
  * * Static rules specified as part of the extension package can not be removed using this function.
8598
- * * {@link MAX_NUMBER_OF_DYNAMIC_AND_SESSION_RULES} is the maximum number of combined dynamic and session rules an extension can add.
8596
+ * * {@link MAX_NUMBER_OF_DYNAMIC_RULES} is the maximum number of dynamic rules an extension can add. The number of [unsafe rules](https://developer.chrome.com/docs/extensions/reference/declarativeNetRequest/#safe_rules) must not exceed {@link MAX_NUMBER_OF_UNSAFE_DYNAMIC_RULES}.
8599
8597
  *
8600
8598
  * @param callback Called once the update is complete or has failed. In case of an error, {@link runtime.lastError} will be set and no change will be made to the rule set. This can happen for multiple reasons, such as invalid rule format, duplicate rule ID, rule count limit exceeded, internal errors, and others.
8601
8599
  */
@@ -8646,7 +8644,7 @@ declare namespace chrome {
8646
8644
  *
8647
8645
  * * This update happens as a single atomic operation: either all specified rules are added and removed, or an error is returned.
8648
8646
  * * These rules are not persisted across sessions and are backed in memory.
8649
- * * {@link MAX_NUMBER_OF_DYNAMIC_AND_SESSION_RULES} is the maximum number of combined dynamic and session rules an extension can add.
8647
+ * * {@link MAX_NUMBER_OF_SESSION_RULES} is the maximum number of session rules an extension can add.
8650
8648
  *
8651
8649
  * @chrome-returns-extra since Chrome 91
8652
8650
  * @since Chrome 90
@@ -8661,7 +8659,7 @@ declare namespace chrome {
8661
8659
  *
8662
8660
  * * This update happens as a single atomic operation: either all specified rules are added and removed, or an error is returned.
8663
8661
  * * These rules are not persisted across sessions and are backed in memory.
8664
- * * {@link MAX_NUMBER_OF_DYNAMIC_AND_SESSION_RULES} is the maximum number of combined dynamic and session rules an extension can add.
8662
+ * * {@link MAX_NUMBER_OF_SESSION_RULES} is the maximum number of session rules an extension can add.
8665
8663
  *
8666
8664
  * @param callback Called once the update is complete or has failed. In case of an error, {@link runtime.lastError} will be set and no change will be made to the rule set. This can happen for multiple reasons, such as invalid rule format, duplicate rule ID, rule count limit exceeded, and others.
8667
8665
  * @since Chrome 90
package/index.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Tue May 28 2024 09:35:49 GMT+0000 (Coordinated Universal Time)
18
- // Built at 0e5fe59bc5c7f25ab953964599bf1177c7bb2bce
17
+ // Generated on Tue Jun 18 2024 10:55:53 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 9ca5be28988d4181e2fe1f4db566c22e31b79739
19
19
 
20
20
  // Includes MV3+ APIs only.
21
21
 
@@ -736,11 +736,10 @@ declare namespace chrome {
736
736
  ): void;
737
737
 
738
738
  /**
739
- * Opens the extension's popup.
739
+ * Opens the extension's popup. Between Chrome 118 and Chrome 126, this is only available to policy installed extensions.
740
740
  *
741
741
  * @param options Specifies options for opening the popup.
742
- * @since Chrome 118
743
- * @chrome-install-location policy
742
+ * @since Pending
744
743
  */
745
744
  export function openPopup(
746
745
 
@@ -748,11 +747,10 @@ declare namespace chrome {
748
747
  ): Promise<void>;
749
748
 
750
749
  /**
751
- * Opens the extension's popup.
750
+ * Opens the extension's popup. Between Chrome 118 and Chrome 126, this is only available to policy installed extensions.
752
751
  *
753
752
  * @param options Specifies options for opening the popup.
754
- * @since Chrome 118
755
- * @chrome-install-location policy
753
+ * @since Pending
756
754
  */
757
755
  export function openPopup(
758
756
 
@@ -1787,7 +1785,7 @@ declare namespace chrome {
1787
1785
  *
1788
1786
  * @since Chrome 74
1789
1787
  */
1790
- origins?: string[];
1788
+ origins?: [string, ...string[]];
1791
1789
 
1792
1790
  /**
1793
1791
  * When present, data for origins in this list is excluded from deletion. Can't be used together with `origins`. Only supported for cookies, storage and cache. Cookies are excluded for the whole registrable domain.
@@ -5323,7 +5321,7 @@ declare namespace chrome {
5323
5321
  * * This update happens as a single atomic operation: either all specified rules are added and removed, or an error is returned.
5324
5322
  * * These rules are persisted across browser sessions and across extension updates.
5325
5323
  * * Static rules specified as part of the extension package can not be removed using this function.
5326
- * * {@link MAX_NUMBER_OF_DYNAMIC_AND_SESSION_RULES} is the maximum number of combined dynamic and session rules an extension can add.
5324
+ * * {@link MAX_NUMBER_OF_DYNAMIC_RULES} is the maximum number of dynamic rules an extension can add. The number of [unsafe rules](https://developer.chrome.com/docs/extensions/reference/declarativeNetRequest/#safe_rules) must not exceed {@link MAX_NUMBER_OF_UNSAFE_DYNAMIC_RULES}.
5327
5325
  *
5328
5326
  * @chrome-returns-extra since Chrome 91
5329
5327
  */
@@ -5341,7 +5339,7 @@ declare namespace chrome {
5341
5339
  * * This update happens as a single atomic operation: either all specified rules are added and removed, or an error is returned.
5342
5340
  * * These rules are persisted across browser sessions and across extension updates.
5343
5341
  * * Static rules specified as part of the extension package can not be removed using this function.
5344
- * * {@link MAX_NUMBER_OF_DYNAMIC_AND_SESSION_RULES} is the maximum number of combined dynamic and session rules an extension can add.
5342
+ * * {@link MAX_NUMBER_OF_DYNAMIC_RULES} is the maximum number of dynamic rules an extension can add. The number of [unsafe rules](https://developer.chrome.com/docs/extensions/reference/declarativeNetRequest/#safe_rules) must not exceed {@link MAX_NUMBER_OF_UNSAFE_DYNAMIC_RULES}.
5345
5343
  *
5346
5344
  * @param callback Called once the update is complete or has failed. In case of an error, {@link runtime.lastError} will be set and no change will be made to the rule set. This can happen for multiple reasons, such as invalid rule format, duplicate rule ID, rule count limit exceeded, internal errors, and others.
5347
5345
  */
@@ -5392,7 +5390,7 @@ declare namespace chrome {
5392
5390
  *
5393
5391
  * * This update happens as a single atomic operation: either all specified rules are added and removed, or an error is returned.
5394
5392
  * * These rules are not persisted across sessions and are backed in memory.
5395
- * * {@link MAX_NUMBER_OF_DYNAMIC_AND_SESSION_RULES} is the maximum number of combined dynamic and session rules an extension can add.
5393
+ * * {@link MAX_NUMBER_OF_SESSION_RULES} is the maximum number of session rules an extension can add.
5396
5394
  *
5397
5395
  * @chrome-returns-extra since Chrome 91
5398
5396
  * @since Chrome 90
@@ -5407,7 +5405,7 @@ declare namespace chrome {
5407
5405
  *
5408
5406
  * * This update happens as a single atomic operation: either all specified rules are added and removed, or an error is returned.
5409
5407
  * * These rules are not persisted across sessions and are backed in memory.
5410
- * * {@link MAX_NUMBER_OF_DYNAMIC_AND_SESSION_RULES} is the maximum number of combined dynamic and session rules an extension can add.
5408
+ * * {@link MAX_NUMBER_OF_SESSION_RULES} is the maximum number of session rules an extension can add.
5411
5409
  *
5412
5410
  * @param callback Called once the update is complete or has failed. In case of an error, {@link runtime.lastError} will be set and no change will be made to the rule set. This can happen for multiple reasons, such as invalid rule format, duplicate rule ID, rule count limit exceeded, and others.
5413
5411
  * @since Chrome 90
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "name": "chrome-types",
7
7
  "config": {
8
- "build-hash": "bdfc40b001382e24"
8
+ "build-hash": "89b5c9470762ac54"
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.286"
19
+ "version": "0.1.288"
20
20
  }