@types/chrome 0.0.158 → 0.0.162
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.
- chrome/README.md +1 -1
- chrome/index.d.ts +36 -6
- chrome/package.json +2 -2
chrome/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for Chrome extension development (http://
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Fri, 29 Oct 2021 07:31:20 GMT
|
|
12
12
|
* Dependencies: [@types/filesystem](https://npmjs.com/package/@types/filesystem), [@types/har-format](https://npmjs.com/package/@types/har-format)
|
|
13
13
|
* Global values: `chrome`
|
|
14
14
|
|
chrome/index.d.ts
CHANGED
|
@@ -2941,10 +2941,18 @@ declare namespace chrome.enterprise.platformKeys {
|
|
|
2941
2941
|
id: string;
|
|
2942
2942
|
/**
|
|
2943
2943
|
* Implements the WebCrypto's SubtleCrypto interface. The cryptographic operations, including key generation, are hardware-backed.
|
|
2944
|
-
* Only non-extractable RSASSA-PKCS1-V1_5 keys with modulusLength up to 2048 can be generated. Each key can be used for signing data at most once.
|
|
2944
|
+
* Only non-extractable RSASSA-PKCS1-V1_5 keys with modulusLength up to 2048 and ECDSA with namedCurve P-256 can be generated. Each key can be used for signing data at most once.
|
|
2945
2945
|
* 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.
|
|
2946
2946
|
*/
|
|
2947
2947
|
subtleCrypto: SubtleCrypto;
|
|
2948
|
+
/**
|
|
2949
|
+
* Implements the WebCrypto's SubtleCrypto interface. The cryptographic operations, including key generation, are software-backed.
|
|
2950
|
+
* 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.
|
|
2951
|
+
* Only non-extractable RSASSA-PKCS1-V1_5 keys with modulusLength up to 2048 can be generated. Each key can be used for signing data at most once.
|
|
2952
|
+
* 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.
|
|
2953
|
+
* @since Chrome 97.
|
|
2954
|
+
*/
|
|
2955
|
+
softwareBackedSubtleCrypto: SubtleCrypto;
|
|
2948
2956
|
}
|
|
2949
2957
|
|
|
2950
2958
|
/**
|
|
@@ -3074,6 +3082,14 @@ declare namespace chrome.enterprise.deviceAttributes {
|
|
|
3074
3082
|
* @param callback Called with the Annotated Location of the device.
|
|
3075
3083
|
*/
|
|
3076
3084
|
export function getDeviceAnnotatedLocation(callback: (annotatedLocation: string) => void): void;
|
|
3085
|
+
/**
|
|
3086
|
+
* @since Chrome 82.
|
|
3087
|
+
* @description
|
|
3088
|
+
* Fetches the device's hostname as set by DeviceHostnameTemplate policy.
|
|
3089
|
+
* If the current user is not affiliated or no hostname has been set by the the enterprise policy, returns an empty string.
|
|
3090
|
+
* @param callback Called with the hostname of the device.
|
|
3091
|
+
*/
|
|
3092
|
+
export function getDeviceHostname(callback: (hostname: string) => void): void;
|
|
3077
3093
|
}
|
|
3078
3094
|
|
|
3079
3095
|
////////////////////
|
|
@@ -6195,7 +6211,7 @@ declare namespace chrome.serial {
|
|
|
6195
6211
|
/** Flag indicating whether the connection is blocked from firing onReceive events. */
|
|
6196
6212
|
paused: boolean;
|
|
6197
6213
|
/** See ConnectionOptions.persistent */
|
|
6198
|
-
|
|
6214
|
+
persistent: boolean;
|
|
6199
6215
|
/** See ConnectionOptions.name */
|
|
6200
6216
|
name: string;
|
|
6201
6217
|
/** See ConnectionOptions.bufferSize */
|
|
@@ -6220,7 +6236,7 @@ declare namespace chrome.serial {
|
|
|
6220
6236
|
export interface ConnectionOptions {
|
|
6221
6237
|
/** Optional. Flag indicating whether or not the connection should be left open when the application is suspended (see Manage App Lifecycle: https://developer.chrome.com/apps/app_lifecycle).
|
|
6222
6238
|
* The default value is "false." When the application is loaded, any serial connections previously opened with persistent=true can be fetched with getConnections. */
|
|
6223
|
-
|
|
6239
|
+
persistent?: boolean | undefined;
|
|
6224
6240
|
/** Optional. An application-defined string to associate with the connection. */
|
|
6225
6241
|
name?: string | undefined;
|
|
6226
6242
|
/** Optional. The size of the buffer used to receive data. The default value is 4096. */
|
|
@@ -10126,6 +10142,13 @@ declare namespace chrome.webNavigation {
|
|
|
10126
10142
|
* Optional parameter details: Information about the requested frame, null if the specified frame ID and/or tab ID are invalid.
|
|
10127
10143
|
*/
|
|
10128
10144
|
export function getFrame(details: GetFrameDetails, callback: (details: GetFrameResultDetails | null) => void): void;
|
|
10145
|
+
/**
|
|
10146
|
+
* Retrieves information about the given frame. A frame refers to an <iframe> or a <frame> of a web page and is identified by a tab ID and a frame ID.
|
|
10147
|
+
* @param details Information about the frame to retrieve information about.
|
|
10148
|
+
* @return The getFrame method provides its result via callback or returned as a Promise (MV3 only).
|
|
10149
|
+
*/
|
|
10150
|
+
export function getFrame(details: GetFrameDetails): Promise<GetFrameResultDetails | null>;
|
|
10151
|
+
|
|
10129
10152
|
/**
|
|
10130
10153
|
* Retrieves information about all frames of a given tab.
|
|
10131
10154
|
* @param details Information about the tab to retrieve all frames from.
|
|
@@ -10136,7 +10159,14 @@ declare namespace chrome.webNavigation {
|
|
|
10136
10159
|
details: GetAllFrameDetails,
|
|
10137
10160
|
callback: (details: GetAllFrameResultDetails[] | null) => void,
|
|
10138
10161
|
): void;
|
|
10139
|
-
|
|
10162
|
+
/**
|
|
10163
|
+
* Retrieves information about all frames of a given tab.
|
|
10164
|
+
* @param details Information about the tab to retrieve all frames from.
|
|
10165
|
+
* @return The getAllFrames method provides its result via callback or returned as a Promise (MV3 only).
|
|
10166
|
+
*/
|
|
10167
|
+
export function getAllFrames(
|
|
10168
|
+
details: GetAllFrameDetails,
|
|
10169
|
+
): Promise<GetAllFrameResultDetails[] | null>;
|
|
10140
10170
|
/** Fired when the reference fragment of a frame was updated. All future events for that frame will use the updated URL. */
|
|
10141
10171
|
export var onReferenceFragmentUpdated: WebNavigationTransitionalEvent;
|
|
10142
10172
|
/** Fired when a document, including the resources it refers to, is completely loaded and initialized. */
|
|
@@ -10919,11 +10949,11 @@ declare namespace chrome.declarativeNetRequest {
|
|
|
10919
10949
|
IMAGE = "image",
|
|
10920
10950
|
FONT = "font",
|
|
10921
10951
|
OBJECT = "object",
|
|
10922
|
-
|
|
10952
|
+
XMLHTTPREQUEST = "xmlhttprequest",
|
|
10923
10953
|
PING = "ping",
|
|
10924
10954
|
CSP_REPORT = "csp_report",
|
|
10925
10955
|
MEDIA = "media",
|
|
10926
|
-
|
|
10956
|
+
WEBSOCKET = "websocket",
|
|
10927
10957
|
OTHER = "other"
|
|
10928
10958
|
}
|
|
10929
10959
|
|
chrome/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/chrome",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.162",
|
|
4
4
|
"description": "TypeScript definitions for Chrome extension development",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome",
|
|
6
6
|
"license": "MIT",
|
|
@@ -98,6 +98,6 @@
|
|
|
98
98
|
"@types/filesystem": "*",
|
|
99
99
|
"@types/har-format": "*"
|
|
100
100
|
},
|
|
101
|
-
"typesPublisherContentHash": "
|
|
101
|
+
"typesPublisherContentHash": "4603e266a952458d468abddb8eb896dc707ef1feb21163821d1272610a0ee2bf",
|
|
102
102
|
"typeScriptVersion": "3.7"
|
|
103
103
|
}
|