@types/chrome 0.0.265 → 0.0.267

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 +68 -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:36:08 GMT
11
+ * Last updated: Sat, 27 Apr 2024 23:07:26 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.
@@ -3721,6 +3779,11 @@ declare namespace chrome.fileSystemProvider {
3721
3779
  id: string;
3722
3780
  }
3723
3781
 
3782
+ export interface CloudFileInfo {
3783
+ /** A tag that represents the version of the file. */
3784
+ versionTag?: string | undefined;
3785
+ }
3786
+
3724
3787
  export interface EntryMetadata {
3725
3788
  /** True if it is a directory. Must be provided if requested in `options`. */
3726
3789
  isDirectory?: boolean;
@@ -3736,6 +3799,8 @@ declare namespace chrome.fileSystemProvider {
3736
3799
  thumbnail?: string | undefined;
3737
3800
  /** Optional. Cloud storage representation of this entry. Must be provided if requested in `options` and the file is backed by cloud storage. For local files not backed by cloud storage, it should be undefined when requested. */
3738
3801
  cloudIdentifier?: CloudIdentifier | undefined;
3802
+ /** Optional. Information that identifies a specific file in the underlying cloud file system. Must be provided if requested in `options` and the file is backed by cloud storage. */
3803
+ cloudFileInfo?: CloudFileInfo | undefined;
3739
3804
  }
3740
3805
 
3741
3806
  export interface FileSystemInfo {
@@ -3873,6 +3938,8 @@ declare namespace chrome.fileSystemProvider {
3873
3938
  thumbnail: boolean;
3874
3939
  /** Set to true if `cloudIdentifier` is requested. */
3875
3940
  cloudIdentifier: boolean;
3941
+ /** Set to true if `cloudFileInfo` is requested. */
3942
+ cloudFileInfo: boolean;
3876
3943
  }
3877
3944
 
3878
3945
  export interface DirectoryPathRequestedEventOptions extends RequestedEventOptions {
@@ -3981,7 +4048,7 @@ declare namespace chrome.fileSystemProvider {
3981
4048
  chrome.events.Event<
3982
4049
  (
3983
4050
  options: OpenFileRequestedEventOptions,
3984
- successCallback: Function,
4051
+ successCallback: (metadata?: EntryMetadata) => void,
3985
4052
  errorCallback: (error: string) => void,
3986
4053
  ) => void
3987
4054
  >
chrome/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/chrome",
3
- "version": "0.0.265",
3
+ "version": "0.0.267",
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": "89e9b3d4e49f2bc1500ee94f7e6667b57c3b89adbbc01f6e6f4a52cb719b629a",
96
+ "typesPublisherContentHash": "d21a90653c0ee65ac9a146a42fa7c837263588b5706b4100fcae0979c795ab40",
97
97
  "typeScriptVersion": "4.7"
98
98
  }