chrome-types 0.1.325 → 0.1.326
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/_all.d.ts +9 -7
- package/index.d.ts +9 -7
- 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 Thu Dec
|
|
18
|
-
// Built at
|
|
17
|
+
// Generated on Thu Dec 19 2024 22:31:08 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at e8668587e870d154809902cf139af2984249728e
|
|
19
19
|
|
|
20
20
|
// Includes all types, including MV2 + Platform Apps APIs.
|
|
21
21
|
|
|
@@ -12369,7 +12369,7 @@ declare namespace chrome {
|
|
|
12369
12369
|
/**
|
|
12370
12370
|
* Implements the WebCrypto's [SubtleCrypto](https://www.w3.org/TR/WebCryptoAPI/#subtlecrypto-interface) interface. The cryptographic operations, including key generation, are hardware-backed.
|
|
12371
12371
|
*
|
|
12372
|
-
* Only non-extractable keys can be generated. The supported key types are RSASSA-PKCS1-V1\_5 and RSA-OAEP with `modulusLength` up to 2048 and ECDSA with `namedCurve` P-256. Each RSASSA-PKCS1-V1\_5 and ECDSA key can be used for signing data at most once, unless the extension is allowlisted through the [KeyPermissions policy](https://chromeenterprise.google/policies/#KeyPermissions), in which case the key can be used indefinitely. RSA-OAEP keys can be used by extensions allowlisted
|
|
12372
|
+
* Only non-extractable keys can be generated. The supported key types are RSASSA-PKCS1-V1\_5 and RSA-OAEP (on Chrome versions 134+) with `modulusLength` up to 2048 and ECDSA with `namedCurve` P-256. Each RSASSA-PKCS1-V1\_5 and ECDSA key can be used for signing data at most once, unless the extension is allowlisted through the [KeyPermissions policy](https://chromeenterprise.google/policies/#KeyPermissions), in which case the key can be used indefinitely. RSA-OAEP keys are supported since Chrome version 134 and can be used by extensions allowlisted through that same policy to unwrap other keys.
|
|
12373
12373
|
*
|
|
12374
12374
|
* Keys generated on a specific `Token` cannot be used with any other Tokens, nor can they be used with `window.crypto.subtle`. Equally, `Key` objects created with `window.crypto.subtle` cannot be used with this interface.
|
|
12375
12375
|
*/
|
|
@@ -12378,7 +12378,7 @@ declare namespace chrome {
|
|
|
12378
12378
|
/**
|
|
12379
12379
|
* Implements the WebCrypto's [SubtleCrypto](https://www.w3.org/TR/WebCryptoAPI/#subtlecrypto-interface) interface. The cryptographic operations, including key generation, are software-backed. Protection of the keys, and thus implementation of the non-extractable property, is done in software, so the keys are less protected than hardware-backed keys.
|
|
12380
12380
|
*
|
|
12381
|
-
* Only non-extractable keys can be generated. The supported key types are RSASSA-PKCS1-V1\_5 and RSA-OAEP with `modulusLength` up to 2048. Each RSASSA-PKCS1-V1\_5 key can be used for signing data at most once, unless the extension is allowlisted through the [KeyPermissions policy](https://chromeenterprise.google/policies/#KeyPermissions), in which case the key can be used indefinitely. RSA-OAEP keys can be used by extensions allowlisted
|
|
12381
|
+
* Only non-extractable keys can be generated. The supported key types are RSASSA-PKCS1-V1\_5 and RSA-OAEP (on Chrome versions 134+) with `modulusLength` up to 2048. Each RSASSA-PKCS1-V1\_5 key can be used for signing data at most once, unless the extension is allowlisted through the [KeyPermissions policy](https://chromeenterprise.google/policies/#KeyPermissions), in which case the key can be used indefinitely. RSA-OAEP keys are supported since Chrome version 134 and can be used by extensions allowlisted through that same policy to unwrap other keys.
|
|
12382
12382
|
*
|
|
12383
12383
|
* Keys generated on a specific `Token` cannot be used with any other Tokens, nor can they be used with `window.crypto.subtle`. Equally, `Key` objects created with `window.crypto.subtle` cannot be used with this interface.
|
|
12384
12384
|
*
|
|
@@ -22570,7 +22570,7 @@ declare namespace chrome {
|
|
|
22570
22570
|
export function getAll(
|
|
22571
22571
|
|
|
22572
22572
|
/**
|
|
22573
|
-
* @param permissions The extension's active permissions. Note that the `origins` property will contain granted origins from those specified in the `permissions` and `optional_permissions` keys in the manifest and those associated with [Content Scripts](https://developer.chrome.com/docs/extensions/
|
|
22573
|
+
* @param permissions The extension's active permissions. Note that the `origins` property will contain granted origins from those specified in the `permissions` and `optional_permissions` keys in the manifest and those associated with [Content Scripts](https://developer.chrome.com/docs/extensions/develop/concepts/content-scripts).
|
|
22574
22574
|
*/
|
|
22575
22575
|
callback?: (
|
|
22576
22576
|
permissions: Permissions,
|
|
@@ -24744,6 +24744,7 @@ declare namespace chrome {
|
|
|
24744
24744
|
* Retrieves the JavaScript 'window' object for the background page running inside the current extension/app. If the background page is an event page, the system will ensure it is loaded before calling the callback. If there is no background page, an error is set.
|
|
24745
24745
|
*
|
|
24746
24746
|
* @chrome-returns-extra since Chrome 99
|
|
24747
|
+
* @deprecated Background pages do not exist in MV3 extensions.
|
|
24747
24748
|
* @chrome-disallow-service-workers
|
|
24748
24749
|
*/
|
|
24749
24750
|
export function getBackgroundPage(): Promise<Window | undefined>;
|
|
@@ -24751,6 +24752,7 @@ declare namespace chrome {
|
|
|
24751
24752
|
/**
|
|
24752
24753
|
* Retrieves the JavaScript 'window' object for the background page running inside the current extension/app. If the background page is an event page, the system will ensure it is loaded before calling the callback. If there is no background page, an error is set.
|
|
24753
24754
|
*
|
|
24755
|
+
* @deprecated Background pages do not exist in MV3 extensions.
|
|
24754
24756
|
* @chrome-disallow-service-workers
|
|
24755
24757
|
*/
|
|
24756
24758
|
export function getBackgroundPage(
|
|
@@ -34524,9 +34526,9 @@ declare namespace chrome {
|
|
|
34524
34526
|
excludeGlobs?: string[];
|
|
34525
34527
|
|
|
34526
34528
|
/**
|
|
34527
|
-
* The list of ScriptSource objects defining sources of scripts to be injected into matching pages.
|
|
34529
|
+
* The list of ScriptSource objects defining sources of scripts to be injected into matching pages. This property must be specified for ${ref:register}, and when specified it must be a non-empty array.
|
|
34528
34530
|
*/
|
|
34529
|
-
js
|
|
34531
|
+
js?: ScriptSource[];
|
|
34530
34532
|
|
|
34531
34533
|
/**
|
|
34532
34534
|
* Specifies which pages this user script will be injected into. See [Match Patterns](https://developer.chrome.com/extensions/develop/concepts/match-patterns) for more details on the syntax of these strings. This property must be specified for ${ref:register}.
|
package/index.d.ts
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
// Generated on Thu Dec
|
|
18
|
-
// Built at
|
|
17
|
+
// Generated on Thu Dec 19 2024 22:31:03 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at e8668587e870d154809902cf139af2984249728e
|
|
19
19
|
|
|
20
20
|
// Includes MV3+ APIs only.
|
|
21
21
|
|
|
@@ -8489,7 +8489,7 @@ declare namespace chrome {
|
|
|
8489
8489
|
/**
|
|
8490
8490
|
* Implements the WebCrypto's [SubtleCrypto](https://www.w3.org/TR/WebCryptoAPI/#subtlecrypto-interface) interface. The cryptographic operations, including key generation, are hardware-backed.
|
|
8491
8491
|
*
|
|
8492
|
-
* Only non-extractable keys can be generated. The supported key types are RSASSA-PKCS1-V1\_5 and RSA-OAEP with `modulusLength` up to 2048 and ECDSA with `namedCurve` P-256. Each RSASSA-PKCS1-V1\_5 and ECDSA key can be used for signing data at most once, unless the extension is allowlisted through the [KeyPermissions policy](https://chromeenterprise.google/policies/#KeyPermissions), in which case the key can be used indefinitely. RSA-OAEP keys can be used by extensions allowlisted
|
|
8492
|
+
* Only non-extractable keys can be generated. The supported key types are RSASSA-PKCS1-V1\_5 and RSA-OAEP (on Chrome versions 134+) with `modulusLength` up to 2048 and ECDSA with `namedCurve` P-256. Each RSASSA-PKCS1-V1\_5 and ECDSA key can be used for signing data at most once, unless the extension is allowlisted through the [KeyPermissions policy](https://chromeenterprise.google/policies/#KeyPermissions), in which case the key can be used indefinitely. RSA-OAEP keys are supported since Chrome version 134 and can be used by extensions allowlisted through that same policy to unwrap other keys.
|
|
8493
8493
|
*
|
|
8494
8494
|
* Keys generated on a specific `Token` cannot be used with any other Tokens, nor can they be used with `window.crypto.subtle`. Equally, `Key` objects created with `window.crypto.subtle` cannot be used with this interface.
|
|
8495
8495
|
*/
|
|
@@ -8498,7 +8498,7 @@ declare namespace chrome {
|
|
|
8498
8498
|
/**
|
|
8499
8499
|
* Implements the WebCrypto's [SubtleCrypto](https://www.w3.org/TR/WebCryptoAPI/#subtlecrypto-interface) interface. The cryptographic operations, including key generation, are software-backed. Protection of the keys, and thus implementation of the non-extractable property, is done in software, so the keys are less protected than hardware-backed keys.
|
|
8500
8500
|
*
|
|
8501
|
-
* Only non-extractable keys can be generated. The supported key types are RSASSA-PKCS1-V1\_5 and RSA-OAEP with `modulusLength` up to 2048. Each RSASSA-PKCS1-V1\_5 key can be used for signing data at most once, unless the extension is allowlisted through the [KeyPermissions policy](https://chromeenterprise.google/policies/#KeyPermissions), in which case the key can be used indefinitely. RSA-OAEP keys can be used by extensions allowlisted
|
|
8501
|
+
* Only non-extractable keys can be generated. The supported key types are RSASSA-PKCS1-V1\_5 and RSA-OAEP (on Chrome versions 134+) with `modulusLength` up to 2048. Each RSASSA-PKCS1-V1\_5 key can be used for signing data at most once, unless the extension is allowlisted through the [KeyPermissions policy](https://chromeenterprise.google/policies/#KeyPermissions), in which case the key can be used indefinitely. RSA-OAEP keys are supported since Chrome version 134 and can be used by extensions allowlisted through that same policy to unwrap other keys.
|
|
8502
8502
|
*
|
|
8503
8503
|
* Keys generated on a specific `Token` cannot be used with any other Tokens, nor can they be used with `window.crypto.subtle`. Equally, `Key` objects created with `window.crypto.subtle` cannot be used with this interface.
|
|
8504
8504
|
*
|
|
@@ -17315,7 +17315,7 @@ declare namespace chrome {
|
|
|
17315
17315
|
export function getAll(
|
|
17316
17316
|
|
|
17317
17317
|
/**
|
|
17318
|
-
* @param permissions The extension's active permissions. Note that the `origins` property will contain granted origins from those specified in the `permissions` and `optional_permissions` keys in the manifest and those associated with [Content Scripts](https://developer.chrome.com/docs/extensions/
|
|
17318
|
+
* @param permissions The extension's active permissions. Note that the `origins` property will contain granted origins from those specified in the `permissions` and `optional_permissions` keys in the manifest and those associated with [Content Scripts](https://developer.chrome.com/docs/extensions/develop/concepts/content-scripts).
|
|
17319
17319
|
*/
|
|
17320
17320
|
callback?: (
|
|
17321
17321
|
permissions: Permissions,
|
|
@@ -19478,6 +19478,7 @@ declare namespace chrome {
|
|
|
19478
19478
|
* Retrieves the JavaScript 'window' object for the background page running inside the current extension/app. If the background page is an event page, the system will ensure it is loaded before calling the callback. If there is no background page, an error is set.
|
|
19479
19479
|
*
|
|
19480
19480
|
* @chrome-returns-extra since Chrome 99
|
|
19481
|
+
* @deprecated Background pages do not exist in MV3 extensions.
|
|
19481
19482
|
* @chrome-disallow-service-workers
|
|
19482
19483
|
*/
|
|
19483
19484
|
export function getBackgroundPage(): Promise<Window | undefined>;
|
|
@@ -19485,6 +19486,7 @@ declare namespace chrome {
|
|
|
19485
19486
|
/**
|
|
19486
19487
|
* Retrieves the JavaScript 'window' object for the background page running inside the current extension/app. If the background page is an event page, the system will ensure it is loaded before calling the callback. If there is no background page, an error is set.
|
|
19487
19488
|
*
|
|
19489
|
+
* @deprecated Background pages do not exist in MV3 extensions.
|
|
19488
19490
|
* @chrome-disallow-service-workers
|
|
19489
19491
|
*/
|
|
19490
19492
|
export function getBackgroundPage(
|
|
@@ -27330,9 +27332,9 @@ declare namespace chrome {
|
|
|
27330
27332
|
excludeGlobs?: string[];
|
|
27331
27333
|
|
|
27332
27334
|
/**
|
|
27333
|
-
* The list of ScriptSource objects defining sources of scripts to be injected into matching pages.
|
|
27335
|
+
* The list of ScriptSource objects defining sources of scripts to be injected into matching pages. This property must be specified for ${ref:register}, and when specified it must be a non-empty array.
|
|
27334
27336
|
*/
|
|
27335
|
-
js
|
|
27337
|
+
js?: ScriptSource[];
|
|
27336
27338
|
|
|
27337
27339
|
/**
|
|
27338
27340
|
* Specifies which pages this user script will be injected into. See [Match Patterns](https://developer.chrome.com/extensions/develop/concepts/match-patterns) for more details on the syntax of these strings. This property must be specified for ${ref:register}.
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"type": "module",
|
|
6
6
|
"name": "chrome-types",
|
|
7
7
|
"config": {
|
|
8
|
-
"build-hash": "
|
|
8
|
+
"build-hash": "9b273d7270847598"
|
|
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.
|
|
19
|
+
"version": "0.1.326"
|
|
20
20
|
}
|