chrome-types 0.1.315 → 0.1.317
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 +99 -12
- package/index.d.ts +98 -12
- 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 Thu Nov 07 2024 22:31:27 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at ffca9c169a23fc1884e7fda28d3af60c24a6eff2
|
|
19
19
|
|
|
20
20
|
// Includes all types, including MV2 + Platform Apps APIs.
|
|
21
21
|
|
|
@@ -7027,6 +7027,29 @@ declare namespace chrome {
|
|
|
7027
7027
|
partitionKey?: CookiePartitionKey;
|
|
7028
7028
|
}
|
|
7029
7029
|
|
|
7030
|
+
/**
|
|
7031
|
+
* Details to identify the frame.
|
|
7032
|
+
*
|
|
7033
|
+
* @since Pending
|
|
7034
|
+
*/
|
|
7035
|
+
export interface FrameDetails {
|
|
7036
|
+
|
|
7037
|
+
/**
|
|
7038
|
+
* The unique identifier for the tab containing the frame.
|
|
7039
|
+
*/
|
|
7040
|
+
tabId?: number;
|
|
7041
|
+
|
|
7042
|
+
/**
|
|
7043
|
+
* The unique identifier for the frame within the tab.
|
|
7044
|
+
*/
|
|
7045
|
+
frameId?: number;
|
|
7046
|
+
|
|
7047
|
+
/**
|
|
7048
|
+
* The unique identifier for the document. If the frameId and/or tabId are provided they will be validated to match the document found by provided document ID.
|
|
7049
|
+
*/
|
|
7050
|
+
documentId?: string;
|
|
7051
|
+
}
|
|
7052
|
+
|
|
7030
7053
|
/**
|
|
7031
7054
|
* Fired when a cookie is set or removed. As a special case, note that updating a cookie's properties is implemented as a two step process: the cookie to be updated is first removed entirely, generating a notification with "cause" of "overwrite" . Afterwards, a new cookie is written with the updated values, generating a second notification with "cause" "explicit".
|
|
7032
7055
|
*/
|
|
@@ -7427,6 +7450,45 @@ declare namespace chrome {
|
|
|
7427
7450
|
cookieStores: CookieStore[],
|
|
7428
7451
|
) => void,
|
|
7429
7452
|
): void;
|
|
7453
|
+
|
|
7454
|
+
/**
|
|
7455
|
+
* The partition key for the frame indicated.
|
|
7456
|
+
*
|
|
7457
|
+
* @since Pending
|
|
7458
|
+
*/
|
|
7459
|
+
export function getPartitionKey(
|
|
7460
|
+
|
|
7461
|
+
details: FrameDetails,
|
|
7462
|
+
): Promise<{
|
|
7463
|
+
|
|
7464
|
+
/**
|
|
7465
|
+
* The partition key for reading or modifying cookies with the Partitioned attribute.
|
|
7466
|
+
*/
|
|
7467
|
+
partitionKey: CookiePartitionKey,
|
|
7468
|
+
}>;
|
|
7469
|
+
|
|
7470
|
+
/**
|
|
7471
|
+
* The partition key for the frame indicated.
|
|
7472
|
+
*
|
|
7473
|
+
* @since Pending
|
|
7474
|
+
*/
|
|
7475
|
+
export function getPartitionKey(
|
|
7476
|
+
|
|
7477
|
+
details: FrameDetails,
|
|
7478
|
+
|
|
7479
|
+
/**
|
|
7480
|
+
* @param details Contains details about the partition key that's been retrieved.
|
|
7481
|
+
*/
|
|
7482
|
+
callback?: (
|
|
7483
|
+
details: {
|
|
7484
|
+
|
|
7485
|
+
/**
|
|
7486
|
+
* The partition key for reading or modifying cookies with the Partitioned attribute.
|
|
7487
|
+
*/
|
|
7488
|
+
partitionKey: CookiePartitionKey,
|
|
7489
|
+
},
|
|
7490
|
+
) => void,
|
|
7491
|
+
): void;
|
|
7430
7492
|
}
|
|
7431
7493
|
|
|
7432
7494
|
/**
|
|
@@ -12374,7 +12436,7 @@ declare namespace chrome {
|
|
|
12374
12436
|
/**
|
|
12375
12437
|
* 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).
|
|
12376
12438
|
*
|
|
12377
|
-
* @chrome-returns-extra since
|
|
12439
|
+
* @chrome-returns-extra since Chrome 131
|
|
12378
12440
|
*/
|
|
12379
12441
|
export function getTokens(): Promise<Token[]>;
|
|
12380
12442
|
|
|
@@ -12396,7 +12458,7 @@ declare namespace chrome {
|
|
|
12396
12458
|
/**
|
|
12397
12459
|
* Returns the list of all client certificates available from the given token. Can be used to check for the existence and expiration of client certificates that are usable for a certain authentication.
|
|
12398
12460
|
*
|
|
12399
|
-
* @chrome-returns-extra since
|
|
12461
|
+
* @chrome-returns-extra since Chrome 131
|
|
12400
12462
|
* @param tokenId The id of a Token returned by `getTokens`.
|
|
12401
12463
|
*/
|
|
12402
12464
|
export function getCertificates(
|
|
@@ -12425,7 +12487,7 @@ declare namespace chrome {
|
|
|
12425
12487
|
/**
|
|
12426
12488
|
* Imports `certificate` to the given token if the certified key is already stored in this token. After a successful certification request, this function should be used to store the obtained certificate and to make it available to the operating system and browser for authentication.
|
|
12427
12489
|
*
|
|
12428
|
-
* @chrome-returns-extra since
|
|
12490
|
+
* @chrome-returns-extra since Chrome 131
|
|
12429
12491
|
* @param tokenId The id of a Token returned by `getTokens`.
|
|
12430
12492
|
* @param certificate The DER encoding of a X.509 certificate.
|
|
12431
12493
|
*/
|
|
@@ -12455,7 +12517,7 @@ declare namespace chrome {
|
|
|
12455
12517
|
/**
|
|
12456
12518
|
* Removes `certificate` from the given token if present. Should be used to remove obsolete certificates so that they are not considered during authentication and do not clutter the certificate choice. Should be used to free storage in the certificate store.
|
|
12457
12519
|
*
|
|
12458
|
-
* @chrome-returns-extra since
|
|
12520
|
+
* @chrome-returns-extra since Chrome 131
|
|
12459
12521
|
* @param tokenId The id of a Token returned by `getTokens`.
|
|
12460
12522
|
* @param certificate The DER encoding of a X.509 certificate.
|
|
12461
12523
|
*/
|
|
@@ -12489,7 +12551,7 @@ declare namespace chrome {
|
|
|
12489
12551
|
*
|
|
12490
12552
|
* 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 challenged key does not reside in the `"system"` or `"user"` token and is not accessible by any other API.
|
|
12491
12553
|
*
|
|
12492
|
-
* @chrome-returns-extra since
|
|
12554
|
+
* @chrome-returns-extra since Chrome 131
|
|
12493
12555
|
* @param options Object containing the fields defined in {@link ChallengeKeyOptions}.
|
|
12494
12556
|
* @since Chrome 110
|
|
12495
12557
|
*/
|
|
@@ -12524,7 +12586,7 @@ declare namespace chrome {
|
|
|
12524
12586
|
/**
|
|
12525
12587
|
* Challenges a hardware-backed Enterprise Machine Key and emits the response as part of a remote attestation protocol. Only useful on ChromeOS 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: \* The current device is a legitimate ChromeOS device. \* The current device is managed by the domain specified during verification. \* The current signed-in user is managed by the domain specified during verification. \* The current device state complies with enterprise device policy. For example, a policy may specify that the device must not be in developer mode. \* Any device identity emitted by the verification is tightly bound to the hardware of the current device. 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.
|
|
12526
12588
|
*
|
|
12527
|
-
* @chrome-returns-extra since
|
|
12589
|
+
* @chrome-returns-extra since Chrome 131
|
|
12528
12590
|
* @param challenge A challenge as emitted by the Verified Access Web API.
|
|
12529
12591
|
* @param registerKey If set, the current Enterprise Machine Key is registered with the `"system"` token and relinquishes the Enterprise Machine Key role. The key can then be associated with a certificate and used like any other signing key. This key is 2048-bit RSA. Subsequent calls to this function will then generate a new Enterprise Machine Key.
|
|
12530
12592
|
* @deprecated Use {@link challengeKey} instead.
|
|
@@ -12571,7 +12633,7 @@ declare namespace chrome {
|
|
|
12571
12633
|
/**
|
|
12572
12634
|
* Challenges a hardware-backed Enterprise User Key and emits the response as part of a remote attestation protocol. Only useful on ChromeOS 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: \* The current device is a legitimate ChromeOS device. \* The current device is managed by the domain specified during verification. \* The current signed-in user is managed by the domain specified during verification. \* The current device state complies with enterprise user policy. For example, a policy may specify that the device must not be in developer mode. \* The public key emitted by the verification is tightly bound to the hardware of the current device and to the current signed-in user. 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 user policy. The Enterprise User Key does not reside in the `"user"` token and is not accessible by any other API.
|
|
12573
12635
|
*
|
|
12574
|
-
* @chrome-returns-extra since
|
|
12636
|
+
* @chrome-returns-extra since Chrome 131
|
|
12575
12637
|
* @param challenge A challenge as emitted by the Verified Access Web API.
|
|
12576
12638
|
* @param registerKey If set, the current Enterprise User Key is registered with the `"user"` token and relinquishes the Enterprise User Key role. The key can then be associated with a certificate and used like any other signing key. This key is 2048-bit RSA. Subsequent calls to this function will then generate a new Enterprise User Key.
|
|
12577
12639
|
* @deprecated Use {@link challengeKey} instead.
|
|
@@ -20551,6 +20613,7 @@ declare namespace chrome {
|
|
|
20551
20613
|
|
|
20552
20614
|
/**
|
|
20553
20615
|
* @deprecated Removed in M131. There is no active ARP polling now.
|
|
20616
|
+
* @chrome-deprecated-since Chrome 131
|
|
20554
20617
|
*/
|
|
20555
20618
|
AllowGatewayARPPolling?: boolean;
|
|
20556
20619
|
|
|
@@ -32841,14 +32904,14 @@ declare namespace chrome {
|
|
|
32841
32904
|
/**
|
|
32842
32905
|
* Type of requestor.
|
|
32843
32906
|
*
|
|
32844
|
-
* @since
|
|
32907
|
+
* @since Chrome 131
|
|
32845
32908
|
*/
|
|
32846
32909
|
export type TtsClientSource = "chromefeature" | "extension";
|
|
32847
32910
|
|
|
32848
32911
|
/**
|
|
32849
32912
|
* Identifier for the client requesting status.
|
|
32850
32913
|
*
|
|
32851
|
-
* @since
|
|
32914
|
+
* @since Chrome 131
|
|
32852
32915
|
*/
|
|
32853
32916
|
export interface TtsClient {
|
|
32854
32917
|
|
|
@@ -32870,6 +32933,19 @@ declare namespace chrome {
|
|
|
32870
32933
|
*/
|
|
32871
32934
|
export type VoiceGender = "male" | "female";
|
|
32872
32935
|
|
|
32936
|
+
/**
|
|
32937
|
+
* Options for uninstalling a given language.
|
|
32938
|
+
*
|
|
32939
|
+
* @since Pending
|
|
32940
|
+
*/
|
|
32941
|
+
export interface LanguageUninstallOptions {
|
|
32942
|
+
|
|
32943
|
+
/**
|
|
32944
|
+
* True if the TTS client wants the language to be immediately uninstalled. The engine may choose whether or when to uninstall the language, based on this parameter and the requestor information. If false, it may use other criteria, such as recent usage, to determine when to uninstall.
|
|
32945
|
+
*/
|
|
32946
|
+
uninstallImmediately: boolean;
|
|
32947
|
+
}
|
|
32948
|
+
|
|
32873
32949
|
/**
|
|
32874
32950
|
* The install status of a voice.
|
|
32875
32951
|
*
|
|
@@ -33038,13 +33114,24 @@ declare namespace chrome {
|
|
|
33038
33114
|
/**
|
|
33039
33115
|
* Fired when a TTS client requests to install a new language. The engine should attempt to download and install the language, and call ttsEngine.updateLanguage with the result. On success, the engine should also call ttsEngine.updateVoices to register the newly available voices.
|
|
33040
33116
|
*
|
|
33041
|
-
* @since
|
|
33117
|
+
* @since Chrome 131
|
|
33042
33118
|
*/
|
|
33043
33119
|
export const onInstallLanguageRequest: events.Event<(
|
|
33044
33120
|
requestor: TtsClient,
|
|
33045
33121
|
lang: string,
|
|
33046
33122
|
) => void>;
|
|
33047
33123
|
|
|
33124
|
+
/**
|
|
33125
|
+
* Fired when a TTS client indicates a language is no longer needed.
|
|
33126
|
+
*
|
|
33127
|
+
* @since Pending
|
|
33128
|
+
*/
|
|
33129
|
+
export const onUninstallLanguageRequest: events.Event<(
|
|
33130
|
+
requestor: TtsClient,
|
|
33131
|
+
lang: string,
|
|
33132
|
+
uninstallOptions: LanguageUninstallOptions,
|
|
33133
|
+
) => void>;
|
|
33134
|
+
|
|
33048
33135
|
/**
|
|
33049
33136
|
* Fired when a TTS client requests the install status of a language.
|
|
33050
33137
|
*
|
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 Thu Nov 07 2024 22:31:22 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at ffca9c169a23fc1884e7fda28d3af60c24a6eff2
|
|
19
19
|
|
|
20
20
|
// Includes MV3+ APIs only.
|
|
21
21
|
|
|
@@ -3763,6 +3763,29 @@ declare namespace chrome {
|
|
|
3763
3763
|
partitionKey?: CookiePartitionKey;
|
|
3764
3764
|
}
|
|
3765
3765
|
|
|
3766
|
+
/**
|
|
3767
|
+
* Details to identify the frame.
|
|
3768
|
+
*
|
|
3769
|
+
* @since Pending
|
|
3770
|
+
*/
|
|
3771
|
+
export interface FrameDetails {
|
|
3772
|
+
|
|
3773
|
+
/**
|
|
3774
|
+
* The unique identifier for the tab containing the frame.
|
|
3775
|
+
*/
|
|
3776
|
+
tabId?: number;
|
|
3777
|
+
|
|
3778
|
+
/**
|
|
3779
|
+
* The unique identifier for the frame within the tab.
|
|
3780
|
+
*/
|
|
3781
|
+
frameId?: number;
|
|
3782
|
+
|
|
3783
|
+
/**
|
|
3784
|
+
* The unique identifier for the document. If the frameId and/or tabId are provided they will be validated to match the document found by provided document ID.
|
|
3785
|
+
*/
|
|
3786
|
+
documentId?: string;
|
|
3787
|
+
}
|
|
3788
|
+
|
|
3766
3789
|
/**
|
|
3767
3790
|
* Fired when a cookie is set or removed. As a special case, note that updating a cookie's properties is implemented as a two step process: the cookie to be updated is first removed entirely, generating a notification with "cause" of "overwrite" . Afterwards, a new cookie is written with the updated values, generating a second notification with "cause" "explicit".
|
|
3768
3791
|
*/
|
|
@@ -4163,6 +4186,45 @@ declare namespace chrome {
|
|
|
4163
4186
|
cookieStores: CookieStore[],
|
|
4164
4187
|
) => void,
|
|
4165
4188
|
): void;
|
|
4189
|
+
|
|
4190
|
+
/**
|
|
4191
|
+
* The partition key for the frame indicated.
|
|
4192
|
+
*
|
|
4193
|
+
* @since Pending
|
|
4194
|
+
*/
|
|
4195
|
+
export function getPartitionKey(
|
|
4196
|
+
|
|
4197
|
+
details: FrameDetails,
|
|
4198
|
+
): Promise<{
|
|
4199
|
+
|
|
4200
|
+
/**
|
|
4201
|
+
* The partition key for reading or modifying cookies with the Partitioned attribute.
|
|
4202
|
+
*/
|
|
4203
|
+
partitionKey: CookiePartitionKey,
|
|
4204
|
+
}>;
|
|
4205
|
+
|
|
4206
|
+
/**
|
|
4207
|
+
* The partition key for the frame indicated.
|
|
4208
|
+
*
|
|
4209
|
+
* @since Pending
|
|
4210
|
+
*/
|
|
4211
|
+
export function getPartitionKey(
|
|
4212
|
+
|
|
4213
|
+
details: FrameDetails,
|
|
4214
|
+
|
|
4215
|
+
/**
|
|
4216
|
+
* @param details Contains details about the partition key that's been retrieved.
|
|
4217
|
+
*/
|
|
4218
|
+
callback?: (
|
|
4219
|
+
details: {
|
|
4220
|
+
|
|
4221
|
+
/**
|
|
4222
|
+
* The partition key for reading or modifying cookies with the Partitioned attribute.
|
|
4223
|
+
*/
|
|
4224
|
+
partitionKey: CookiePartitionKey,
|
|
4225
|
+
},
|
|
4226
|
+
) => void,
|
|
4227
|
+
): void;
|
|
4166
4228
|
}
|
|
4167
4229
|
|
|
4168
4230
|
/**
|
|
@@ -8494,7 +8556,7 @@ declare namespace chrome {
|
|
|
8494
8556
|
/**
|
|
8495
8557
|
* 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).
|
|
8496
8558
|
*
|
|
8497
|
-
* @chrome-returns-extra since
|
|
8559
|
+
* @chrome-returns-extra since Chrome 131
|
|
8498
8560
|
*/
|
|
8499
8561
|
export function getTokens(): Promise<Token[]>;
|
|
8500
8562
|
|
|
@@ -8516,7 +8578,7 @@ declare namespace chrome {
|
|
|
8516
8578
|
/**
|
|
8517
8579
|
* Returns the list of all client certificates available from the given token. Can be used to check for the existence and expiration of client certificates that are usable for a certain authentication.
|
|
8518
8580
|
*
|
|
8519
|
-
* @chrome-returns-extra since
|
|
8581
|
+
* @chrome-returns-extra since Chrome 131
|
|
8520
8582
|
* @param tokenId The id of a Token returned by `getTokens`.
|
|
8521
8583
|
*/
|
|
8522
8584
|
export function getCertificates(
|
|
@@ -8545,7 +8607,7 @@ declare namespace chrome {
|
|
|
8545
8607
|
/**
|
|
8546
8608
|
* Imports `certificate` to the given token if the certified key is already stored in this token. After a successful certification request, this function should be used to store the obtained certificate and to make it available to the operating system and browser for authentication.
|
|
8547
8609
|
*
|
|
8548
|
-
* @chrome-returns-extra since
|
|
8610
|
+
* @chrome-returns-extra since Chrome 131
|
|
8549
8611
|
* @param tokenId The id of a Token returned by `getTokens`.
|
|
8550
8612
|
* @param certificate The DER encoding of a X.509 certificate.
|
|
8551
8613
|
*/
|
|
@@ -8575,7 +8637,7 @@ declare namespace chrome {
|
|
|
8575
8637
|
/**
|
|
8576
8638
|
* Removes `certificate` from the given token if present. Should be used to remove obsolete certificates so that they are not considered during authentication and do not clutter the certificate choice. Should be used to free storage in the certificate store.
|
|
8577
8639
|
*
|
|
8578
|
-
* @chrome-returns-extra since
|
|
8640
|
+
* @chrome-returns-extra since Chrome 131
|
|
8579
8641
|
* @param tokenId The id of a Token returned by `getTokens`.
|
|
8580
8642
|
* @param certificate The DER encoding of a X.509 certificate.
|
|
8581
8643
|
*/
|
|
@@ -8609,7 +8671,7 @@ declare namespace chrome {
|
|
|
8609
8671
|
*
|
|
8610
8672
|
* 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 challenged key does not reside in the `"system"` or `"user"` token and is not accessible by any other API.
|
|
8611
8673
|
*
|
|
8612
|
-
* @chrome-returns-extra since
|
|
8674
|
+
* @chrome-returns-extra since Chrome 131
|
|
8613
8675
|
* @param options Object containing the fields defined in {@link ChallengeKeyOptions}.
|
|
8614
8676
|
* @since Chrome 110
|
|
8615
8677
|
*/
|
|
@@ -8644,7 +8706,7 @@ declare namespace chrome {
|
|
|
8644
8706
|
/**
|
|
8645
8707
|
* Challenges a hardware-backed Enterprise Machine Key and emits the response as part of a remote attestation protocol. Only useful on ChromeOS 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: \* The current device is a legitimate ChromeOS device. \* The current device is managed by the domain specified during verification. \* The current signed-in user is managed by the domain specified during verification. \* The current device state complies with enterprise device policy. For example, a policy may specify that the device must not be in developer mode. \* Any device identity emitted by the verification is tightly bound to the hardware of the current device. 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.
|
|
8646
8708
|
*
|
|
8647
|
-
* @chrome-returns-extra since
|
|
8709
|
+
* @chrome-returns-extra since Chrome 131
|
|
8648
8710
|
* @param challenge A challenge as emitted by the Verified Access Web API.
|
|
8649
8711
|
* @param registerKey If set, the current Enterprise Machine Key is registered with the `"system"` token and relinquishes the Enterprise Machine Key role. The key can then be associated with a certificate and used like any other signing key. This key is 2048-bit RSA. Subsequent calls to this function will then generate a new Enterprise Machine Key.
|
|
8650
8712
|
* @deprecated Use {@link challengeKey} instead.
|
|
@@ -8691,7 +8753,7 @@ declare namespace chrome {
|
|
|
8691
8753
|
/**
|
|
8692
8754
|
* Challenges a hardware-backed Enterprise User Key and emits the response as part of a remote attestation protocol. Only useful on ChromeOS 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: \* The current device is a legitimate ChromeOS device. \* The current device is managed by the domain specified during verification. \* The current signed-in user is managed by the domain specified during verification. \* The current device state complies with enterprise user policy. For example, a policy may specify that the device must not be in developer mode. \* The public key emitted by the verification is tightly bound to the hardware of the current device and to the current signed-in user. 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 user policy. The Enterprise User Key does not reside in the `"user"` token and is not accessible by any other API.
|
|
8693
8755
|
*
|
|
8694
|
-
* @chrome-returns-extra since
|
|
8756
|
+
* @chrome-returns-extra since Chrome 131
|
|
8695
8757
|
* @param challenge A challenge as emitted by the Verified Access Web API.
|
|
8696
8758
|
* @param registerKey If set, the current Enterprise User Key is registered with the `"user"` token and relinquishes the Enterprise User Key role. The key can then be associated with a certificate and used like any other signing key. This key is 2048-bit RSA. Subsequent calls to this function will then generate a new Enterprise User Key.
|
|
8697
8759
|
* @deprecated Use {@link challengeKey} instead.
|
|
@@ -25680,14 +25742,14 @@ declare namespace chrome {
|
|
|
25680
25742
|
/**
|
|
25681
25743
|
* Type of requestor.
|
|
25682
25744
|
*
|
|
25683
|
-
* @since
|
|
25745
|
+
* @since Chrome 131
|
|
25684
25746
|
*/
|
|
25685
25747
|
export type TtsClientSource = "chromefeature" | "extension";
|
|
25686
25748
|
|
|
25687
25749
|
/**
|
|
25688
25750
|
* Identifier for the client requesting status.
|
|
25689
25751
|
*
|
|
25690
|
-
* @since
|
|
25752
|
+
* @since Chrome 131
|
|
25691
25753
|
*/
|
|
25692
25754
|
export interface TtsClient {
|
|
25693
25755
|
|
|
@@ -25709,6 +25771,19 @@ declare namespace chrome {
|
|
|
25709
25771
|
*/
|
|
25710
25772
|
export type VoiceGender = "male" | "female";
|
|
25711
25773
|
|
|
25774
|
+
/**
|
|
25775
|
+
* Options for uninstalling a given language.
|
|
25776
|
+
*
|
|
25777
|
+
* @since Pending
|
|
25778
|
+
*/
|
|
25779
|
+
export interface LanguageUninstallOptions {
|
|
25780
|
+
|
|
25781
|
+
/**
|
|
25782
|
+
* True if the TTS client wants the language to be immediately uninstalled. The engine may choose whether or when to uninstall the language, based on this parameter and the requestor information. If false, it may use other criteria, such as recent usage, to determine when to uninstall.
|
|
25783
|
+
*/
|
|
25784
|
+
uninstallImmediately: boolean;
|
|
25785
|
+
}
|
|
25786
|
+
|
|
25712
25787
|
/**
|
|
25713
25788
|
* The install status of a voice.
|
|
25714
25789
|
*
|
|
@@ -25877,13 +25952,24 @@ declare namespace chrome {
|
|
|
25877
25952
|
/**
|
|
25878
25953
|
* Fired when a TTS client requests to install a new language. The engine should attempt to download and install the language, and call ttsEngine.updateLanguage with the result. On success, the engine should also call ttsEngine.updateVoices to register the newly available voices.
|
|
25879
25954
|
*
|
|
25880
|
-
* @since
|
|
25955
|
+
* @since Chrome 131
|
|
25881
25956
|
*/
|
|
25882
25957
|
export const onInstallLanguageRequest: events.Event<(
|
|
25883
25958
|
requestor: TtsClient,
|
|
25884
25959
|
lang: string,
|
|
25885
25960
|
) => void>;
|
|
25886
25961
|
|
|
25962
|
+
/**
|
|
25963
|
+
* Fired when a TTS client indicates a language is no longer needed.
|
|
25964
|
+
*
|
|
25965
|
+
* @since Pending
|
|
25966
|
+
*/
|
|
25967
|
+
export const onUninstallLanguageRequest: events.Event<(
|
|
25968
|
+
requestor: TtsClient,
|
|
25969
|
+
lang: string,
|
|
25970
|
+
uninstallOptions: LanguageUninstallOptions,
|
|
25971
|
+
) => void>;
|
|
25972
|
+
|
|
25887
25973
|
/**
|
|
25888
25974
|
* Fired when a TTS client requests the install status of a language.
|
|
25889
25975
|
*
|
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": "cc7b059b8ae82b7b"
|
|
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.317"
|
|
20
20
|
}
|