@types/chrome 0.0.264 → 0.0.266

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 +59 -1
  3. chrome/package.json +2 -2
chrome/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for chrome (http://developer.chrome.com/e
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, 05 Apr 2024 06:07:51 GMT
11
+ * Last updated: Sun, 07 Apr 2024 09:35:59 GMT
12
12
  * Dependencies: [@types/filesystem](https://npmjs.com/package/@types/filesystem), [@types/har-format](https://npmjs.com/package/@types/har-format)
13
13
 
14
14
  # Credits
chrome/index.d.ts CHANGED
@@ -3214,6 +3214,45 @@ declare namespace chrome.enterprise.platformKeys {
3214
3214
  softwareBackedSubtleCrypto: SubtleCrypto;
3215
3215
  }
3216
3216
 
3217
+ /** @since Chrome 110 */
3218
+ export interface ChallengeKeyOptions {
3219
+ /**
3220
+ * A challenge as emitted by the Verified Access Web API.
3221
+ */
3222
+ challenge: ArrayBuffer;
3223
+ /**
3224
+ * Which Enterprise Key to challenge.
3225
+ * @since Chrome 110
3226
+ */
3227
+ scope: Scope;
3228
+ /**
3229
+ * If present, registers the challenged key with the specified scope's token.
3230
+ * The key can then be associated with a certificate and used like any other signing key.
3231
+ * Subsequent calls to this function will then generate a new Enterprise Key in the specified scope.
3232
+ */
3233
+ registerKey?: RegisterKeyOptions | undefined;
3234
+ }
3235
+
3236
+ /** @since Chrome 110 */
3237
+ export interface RegisterKeyOptions {
3238
+ /**
3239
+ * Which algorithm the registered key should use.
3240
+ */
3241
+ algorithm: Algorithm;
3242
+ }
3243
+
3244
+ /**
3245
+ * @since Chrome 110
3246
+ * Type of key to generate.
3247
+ */
3248
+ type Algorithm = "RSA" | "ECDSA";
3249
+
3250
+ /**
3251
+ * @since Chrome 110
3252
+ * Whether to use the Enterprise User Key or the Enterprise Machine Key.
3253
+ */
3254
+ type Scope = "USER" | "MACHINE";
3255
+
3217
3256
  /**
3218
3257
  * Returns the available Tokens. In a regular user's session the list will always contain the user's token with id "user". If a system-wide TPM token is available, the returned list will also contain the system-wide token with id "system". The system-wide token will be the same for all sessions on this device (device in the sense of e.g. a Chromebook).
3219
3258
  * @param callback Invoked by getTokens with the list of available Tokens.
@@ -3242,6 +3281,23 @@ declare namespace chrome.enterprise.platformKeys {
3242
3281
  */
3243
3282
  export function removeCertificate(tokenId: string, certificate: ArrayBuffer, callback?: () => void): void;
3244
3283
  /**
3284
+ * Challenges a hardware-backed Enterprise Machine Key and emits the response as part of a remote attestation protocol. Only useful on Chrome OS and in conjunction with the Verified Access Web API which both issues challenges and verifies responses. A successful verification by the Verified Access Web API is a strong signal of all of the following:
3285
+ *
3286
+ * * The current device is a legitimate Chrome OS device.
3287
+ * * The current device is managed by the domain specified during verification.
3288
+ * * The current signed-in user is managed by the domain specified during verification.
3289
+ * * The current device state complies with enterprise device policy. For example, a policy may specify that the device must not be in developer mode.
3290
+ * * Any device identity emitted by the verification is tightly bound to the hardware of the current device.
3291
+ *
3292
+ * This function is highly restricted and will fail if the current device is not managed, the current user is not managed, or if this operation has not explicitly been enabled for the caller by enterprise device policy. The Enterprise Machine Key does not reside in the "system" token and is not accessible by any other API.
3293
+ * @param options Object containing the fields defined in ChallengeKeyOptions.
3294
+ * @param callback Called back with the challenge response.
3295
+ * @since Chrome 110
3296
+ */
3297
+ export function challengeKey(options: ChallengeKeyOptions, callback: (response: ArrayBuffer) => void): void;
3298
+ /**
3299
+ * @deprecated Deprecated since Chrome 110, use enterprise.platformKeys.challengeKey instead.
3300
+ *
3245
3301
  * Challenges a hardware-backed Enterprise Machine Key and emits the response as part of a remote attestation protocol. Only useful on Chrome OS and in conjunction with the Verified Access Web API which both issues challenges and verifies responses. A successful verification by the Verified Access Web API is a strong signal of all of the following:
3246
3302
  *
3247
3303
  * * The current device is a legitimate Chrome OS device.
@@ -3263,6 +3319,8 @@ declare namespace chrome.enterprise.platformKeys {
3263
3319
  ): void;
3264
3320
  export function challengeMachineKey(challenge: ArrayBuffer, callback: (response: ArrayBuffer) => void): void;
3265
3321
  /**
3322
+ * @deprecated Deprecated since Chrome 110, use enterprise.platformKeys.challengeKey instead.
3323
+ *
3266
3324
  * Challenges a hardware-backed Enterprise User Key and emits the response as part of a remote attestation protocol. Only useful on Chrome OS and in conjunction with the Verified Access Web API which both issues challenges and verifies responses. A successful verification by the Verified Access Web API is a strong signal of all of the following:
3267
3325
  *
3268
3326
  * * The current device is a legitimate Chrome OS device.
@@ -4902,7 +4960,7 @@ declare namespace chrome.idle {
4902
4960
  * @since Chrome 25
4903
4961
  */
4904
4962
  export function queryState(detectionIntervalInSeconds: number, callback: (newState: IdleState) => void): void;
4905
-
4963
+
4906
4964
  /**
4907
4965
  * Sets the interval, in seconds, used to determine when the system is in an idle state for onStateChanged events. The default interval is 60 seconds.
4908
4966
  * @since Chrome 25
chrome/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/chrome",
3
- "version": "0.0.264",
3
+ "version": "0.0.266",
4
4
  "description": "TypeScript definitions for chrome",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome",
6
6
  "license": "MIT",
@@ -93,6 +93,6 @@
93
93
  "@types/filesystem": "*",
94
94
  "@types/har-format": "*"
95
95
  },
96
- "typesPublisherContentHash": "b28b46b7e8380ada3e5c16e50603c5bb07c3e278a0be356e521ec24b11fbbf14",
96
+ "typesPublisherContentHash": "a6004e3bd4b3b10a9b226024fe0d1cb43e65d2ea1862d8ca3bcf9c5ba3a71713",
97
97
  "typeScriptVersion": "4.7"
98
98
  }