chrome-types 0.1.325 → 0.1.327
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 +68 -7
- package/index.d.ts +68 -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
|
|
18
|
-
// Built at
|
|
17
|
+
// Generated on Fri Dec 20 2024 22:30:26 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at 4eee6e3177095e795db1a007571f94f5bcea5ad9
|
|
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}.
|
|
@@ -34542,6 +34544,13 @@ declare namespace chrome {
|
|
|
34542
34544
|
* The JavaScript execution environment to run the script in. The default is `` `USER_SCRIPT` ``.
|
|
34543
34545
|
*/
|
|
34544
34546
|
world?: ExecutionWorld;
|
|
34547
|
+
|
|
34548
|
+
/**
|
|
34549
|
+
* If specified, specifies a specific user script world ID to execute in. Only valid if `world` is omitted or is `USER_SCRIPT`. If omitted, the script will execute in the default user script world. Values with leading underscores (`_`) are reserved.
|
|
34550
|
+
*
|
|
34551
|
+
* @since Pending
|
|
34552
|
+
*/
|
|
34553
|
+
worldId?: string;
|
|
34545
34554
|
}
|
|
34546
34555
|
|
|
34547
34556
|
export interface UserScriptFilter {
|
|
@@ -34554,6 +34563,13 @@ declare namespace chrome {
|
|
|
34554
34563
|
|
|
34555
34564
|
export interface WorldProperties {
|
|
34556
34565
|
|
|
34566
|
+
/**
|
|
34567
|
+
* Specifies the ID of the specific user script world to update. If not provided, updates the properties of the default user script world. Values with leading underscores (`_`) are reserved.
|
|
34568
|
+
*
|
|
34569
|
+
* @since Pending
|
|
34570
|
+
*/
|
|
34571
|
+
worldId?: string;
|
|
34572
|
+
|
|
34557
34573
|
/**
|
|
34558
34574
|
* Specifies the world csp. The default is the `` `ISOLATED` `` world csp.
|
|
34559
34575
|
*/
|
|
@@ -34681,6 +34697,51 @@ declare namespace chrome {
|
|
|
34681
34697
|
|
|
34682
34698
|
callback?: () => void,
|
|
34683
34699
|
): void;
|
|
34700
|
+
|
|
34701
|
+
/**
|
|
34702
|
+
* Retrieves all registered world configurations.
|
|
34703
|
+
*
|
|
34704
|
+
* @since Pending
|
|
34705
|
+
*/
|
|
34706
|
+
export function getWorldConfigurations(): Promise<WorldProperties[]>;
|
|
34707
|
+
|
|
34708
|
+
/**
|
|
34709
|
+
* Retrieves all registered world configurations.
|
|
34710
|
+
*
|
|
34711
|
+
* @param callback Called with the registered world configurations.
|
|
34712
|
+
* @since Pending
|
|
34713
|
+
*/
|
|
34714
|
+
export function getWorldConfigurations(
|
|
34715
|
+
|
|
34716
|
+
callback?: (
|
|
34717
|
+
worlds: WorldProperties[],
|
|
34718
|
+
) => void,
|
|
34719
|
+
): void;
|
|
34720
|
+
|
|
34721
|
+
/**
|
|
34722
|
+
* Resets the configuration for a user script world. Any scripts that inject into the world with the specified ID will use the default world configuration.
|
|
34723
|
+
*
|
|
34724
|
+
* @param worldId The ID of the user script world to reset. If omitted, resets the default world's configuration.
|
|
34725
|
+
* @since Pending
|
|
34726
|
+
*/
|
|
34727
|
+
export function resetWorldConfiguration(
|
|
34728
|
+
|
|
34729
|
+
worldId?: string,
|
|
34730
|
+
): Promise<void>;
|
|
34731
|
+
|
|
34732
|
+
/**
|
|
34733
|
+
* Resets the configuration for a user script world. Any scripts that inject into the world with the specified ID will use the default world configuration.
|
|
34734
|
+
*
|
|
34735
|
+
* @param worldId The ID of the user script world to reset. If omitted, resets the default world's configuration.
|
|
34736
|
+
* @param callback Called when the configuration is reset.
|
|
34737
|
+
* @since Pending
|
|
34738
|
+
*/
|
|
34739
|
+
export function resetWorldConfiguration(
|
|
34740
|
+
|
|
34741
|
+
worldId?: string,
|
|
34742
|
+
|
|
34743
|
+
callback?: () => void,
|
|
34744
|
+
): void;
|
|
34684
34745
|
}
|
|
34685
34746
|
|
|
34686
34747
|
/**
|
package/index.d.ts
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
// Generated on
|
|
18
|
-
// Built at
|
|
17
|
+
// Generated on Fri Dec 20 2024 22:30:21 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at 4eee6e3177095e795db1a007571f94f5bcea5ad9
|
|
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}.
|
|
@@ -27348,6 +27350,13 @@ declare namespace chrome {
|
|
|
27348
27350
|
* The JavaScript execution environment to run the script in. The default is `` `USER_SCRIPT` ``.
|
|
27349
27351
|
*/
|
|
27350
27352
|
world?: ExecutionWorld;
|
|
27353
|
+
|
|
27354
|
+
/**
|
|
27355
|
+
* If specified, specifies a specific user script world ID to execute in. Only valid if `world` is omitted or is `USER_SCRIPT`. If omitted, the script will execute in the default user script world. Values with leading underscores (`_`) are reserved.
|
|
27356
|
+
*
|
|
27357
|
+
* @since Pending
|
|
27358
|
+
*/
|
|
27359
|
+
worldId?: string;
|
|
27351
27360
|
}
|
|
27352
27361
|
|
|
27353
27362
|
export interface UserScriptFilter {
|
|
@@ -27360,6 +27369,13 @@ declare namespace chrome {
|
|
|
27360
27369
|
|
|
27361
27370
|
export interface WorldProperties {
|
|
27362
27371
|
|
|
27372
|
+
/**
|
|
27373
|
+
* Specifies the ID of the specific user script world to update. If not provided, updates the properties of the default user script world. Values with leading underscores (`_`) are reserved.
|
|
27374
|
+
*
|
|
27375
|
+
* @since Pending
|
|
27376
|
+
*/
|
|
27377
|
+
worldId?: string;
|
|
27378
|
+
|
|
27363
27379
|
/**
|
|
27364
27380
|
* Specifies the world csp. The default is the `` `ISOLATED` `` world csp.
|
|
27365
27381
|
*/
|
|
@@ -27487,6 +27503,51 @@ declare namespace chrome {
|
|
|
27487
27503
|
|
|
27488
27504
|
callback?: () => void,
|
|
27489
27505
|
): void;
|
|
27506
|
+
|
|
27507
|
+
/**
|
|
27508
|
+
* Retrieves all registered world configurations.
|
|
27509
|
+
*
|
|
27510
|
+
* @since Pending
|
|
27511
|
+
*/
|
|
27512
|
+
export function getWorldConfigurations(): Promise<WorldProperties[]>;
|
|
27513
|
+
|
|
27514
|
+
/**
|
|
27515
|
+
* Retrieves all registered world configurations.
|
|
27516
|
+
*
|
|
27517
|
+
* @param callback Called with the registered world configurations.
|
|
27518
|
+
* @since Pending
|
|
27519
|
+
*/
|
|
27520
|
+
export function getWorldConfigurations(
|
|
27521
|
+
|
|
27522
|
+
callback?: (
|
|
27523
|
+
worlds: WorldProperties[],
|
|
27524
|
+
) => void,
|
|
27525
|
+
): void;
|
|
27526
|
+
|
|
27527
|
+
/**
|
|
27528
|
+
* Resets the configuration for a user script world. Any scripts that inject into the world with the specified ID will use the default world configuration.
|
|
27529
|
+
*
|
|
27530
|
+
* @param worldId The ID of the user script world to reset. If omitted, resets the default world's configuration.
|
|
27531
|
+
* @since Pending
|
|
27532
|
+
*/
|
|
27533
|
+
export function resetWorldConfiguration(
|
|
27534
|
+
|
|
27535
|
+
worldId?: string,
|
|
27536
|
+
): Promise<void>;
|
|
27537
|
+
|
|
27538
|
+
/**
|
|
27539
|
+
* Resets the configuration for a user script world. Any scripts that inject into the world with the specified ID will use the default world configuration.
|
|
27540
|
+
*
|
|
27541
|
+
* @param worldId The ID of the user script world to reset. If omitted, resets the default world's configuration.
|
|
27542
|
+
* @param callback Called when the configuration is reset.
|
|
27543
|
+
* @since Pending
|
|
27544
|
+
*/
|
|
27545
|
+
export function resetWorldConfiguration(
|
|
27546
|
+
|
|
27547
|
+
worldId?: string,
|
|
27548
|
+
|
|
27549
|
+
callback?: () => void,
|
|
27550
|
+
): void;
|
|
27490
27551
|
}
|
|
27491
27552
|
|
|
27492
27553
|
/**
|
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": "2227d32003049f4c"
|
|
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.327"
|
|
20
20
|
}
|