@types/chrome 0.0.159 → 0.0.163

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. chrome/README.md +1 -1
  2. chrome/index.d.ts +35 -5
  3. 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: Fri, 08 Oct 2021 16:31:22 GMT
11
+ * Last updated: Thu, 04 Nov 2021 15:01: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
@@ -774,7 +774,7 @@ declare namespace chrome.browserAction {
774
774
 
775
775
  export interface BadgeTextDetails {
776
776
  /** Any number of characters can be passed, but only about four can fit in the space. */
777
- text?: string | undefined;
777
+ text?: string | null;
778
778
  /** Optional. Limits the change to when a particular tab is selected. Automatically resets when the tab is closed. */
779
779
  tabId?: number | undefined;
780
780
  }
@@ -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
- peristent: boolean;
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
- peristent?: boolean | undefined;
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. */
chrome/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/chrome",
3
- "version": "0.0.159",
3
+ "version": "0.0.163",
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": "a04bf9677124c275908329b4be2146fbc75190a247fb61ad461844199cceee40",
101
+ "typesPublisherContentHash": "df61c999cd8799c3394d14be5688ce2983588774b1ecfaab9392e3ce448e8ed8",
102
102
  "typeScriptVersion": "3.7"
103
103
  }