chrome-types 0.1.316 → 0.1.318
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 +58 -12
- package/index.d.ts +57 -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 Fri Nov 08 2024 22:31:01 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at c21dbaf65dac7f45d0c60ada30be720b95b66b4c
|
|
19
19
|
|
|
20
20
|
// Includes all types, including MV2 + Platform Apps APIs.
|
|
21
21
|
|
|
@@ -12436,7 +12436,7 @@ declare namespace chrome {
|
|
|
12436
12436
|
/**
|
|
12437
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).
|
|
12438
12438
|
*
|
|
12439
|
-
* @chrome-returns-extra since
|
|
12439
|
+
* @chrome-returns-extra since Chrome 131
|
|
12440
12440
|
*/
|
|
12441
12441
|
export function getTokens(): Promise<Token[]>;
|
|
12442
12442
|
|
|
@@ -12458,7 +12458,7 @@ declare namespace chrome {
|
|
|
12458
12458
|
/**
|
|
12459
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.
|
|
12460
12460
|
*
|
|
12461
|
-
* @chrome-returns-extra since
|
|
12461
|
+
* @chrome-returns-extra since Chrome 131
|
|
12462
12462
|
* @param tokenId The id of a Token returned by `getTokens`.
|
|
12463
12463
|
*/
|
|
12464
12464
|
export function getCertificates(
|
|
@@ -12487,7 +12487,7 @@ declare namespace chrome {
|
|
|
12487
12487
|
/**
|
|
12488
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.
|
|
12489
12489
|
*
|
|
12490
|
-
* @chrome-returns-extra since
|
|
12490
|
+
* @chrome-returns-extra since Chrome 131
|
|
12491
12491
|
* @param tokenId The id of a Token returned by `getTokens`.
|
|
12492
12492
|
* @param certificate The DER encoding of a X.509 certificate.
|
|
12493
12493
|
*/
|
|
@@ -12517,7 +12517,7 @@ declare namespace chrome {
|
|
|
12517
12517
|
/**
|
|
12518
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.
|
|
12519
12519
|
*
|
|
12520
|
-
* @chrome-returns-extra since
|
|
12520
|
+
* @chrome-returns-extra since Chrome 131
|
|
12521
12521
|
* @param tokenId The id of a Token returned by `getTokens`.
|
|
12522
12522
|
* @param certificate The DER encoding of a X.509 certificate.
|
|
12523
12523
|
*/
|
|
@@ -12551,7 +12551,7 @@ declare namespace chrome {
|
|
|
12551
12551
|
*
|
|
12552
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.
|
|
12553
12553
|
*
|
|
12554
|
-
* @chrome-returns-extra since
|
|
12554
|
+
* @chrome-returns-extra since Chrome 131
|
|
12555
12555
|
* @param options Object containing the fields defined in {@link ChallengeKeyOptions}.
|
|
12556
12556
|
* @since Chrome 110
|
|
12557
12557
|
*/
|
|
@@ -12586,7 +12586,7 @@ declare namespace chrome {
|
|
|
12586
12586
|
/**
|
|
12587
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.
|
|
12588
12588
|
*
|
|
12589
|
-
* @chrome-returns-extra since
|
|
12589
|
+
* @chrome-returns-extra since Chrome 131
|
|
12590
12590
|
* @param challenge A challenge as emitted by the Verified Access Web API.
|
|
12591
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.
|
|
12592
12592
|
* @deprecated Use {@link challengeKey} instead.
|
|
@@ -12633,7 +12633,7 @@ declare namespace chrome {
|
|
|
12633
12633
|
/**
|
|
12634
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.
|
|
12635
12635
|
*
|
|
12636
|
-
* @chrome-returns-extra since
|
|
12636
|
+
* @chrome-returns-extra since Chrome 131
|
|
12637
12637
|
* @param challenge A challenge as emitted by the Verified Access Web API.
|
|
12638
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.
|
|
12639
12639
|
* @deprecated Use {@link challengeKey} instead.
|
|
@@ -20613,6 +20613,7 @@ declare namespace chrome {
|
|
|
20613
20613
|
|
|
20614
20614
|
/**
|
|
20615
20615
|
* @deprecated Removed in M131. There is no active ARP polling now.
|
|
20616
|
+
* @chrome-deprecated-since Chrome 131
|
|
20616
20617
|
*/
|
|
20617
20618
|
AllowGatewayARPPolling?: boolean;
|
|
20618
20619
|
|
|
@@ -30629,6 +30630,13 @@ declare namespace chrome {
|
|
|
30629
30630
|
*/
|
|
30630
30631
|
audible?: boolean;
|
|
30631
30632
|
|
|
30633
|
+
/**
|
|
30634
|
+
* Whether the tab is frozen. A frozen tab cannot execute tasks, including event handlers or timers. It is visible in the tab strip and its content is loaded in memory. It is unfrozen on activation.
|
|
30635
|
+
*
|
|
30636
|
+
* @since Pending
|
|
30637
|
+
*/
|
|
30638
|
+
frozen: boolean;
|
|
30639
|
+
|
|
30632
30640
|
/**
|
|
30633
30641
|
* Whether the tab is discarded. A discarded tab is one whose content has been unloaded from memory, but is still visible in the tab strip. Its content is reloaded the next time it is activated.
|
|
30634
30642
|
*
|
|
@@ -31414,6 +31422,13 @@ declare namespace chrome {
|
|
|
31414
31422
|
*/
|
|
31415
31423
|
highlighted?: boolean,
|
|
31416
31424
|
|
|
31425
|
+
/**
|
|
31426
|
+
* Whether the tabs are frozen. A frozen tab cannot execute tasks, including event handlers or timers. It is visible in the tab strip and its content is loaded in memory. It is unfrozen on activation.
|
|
31427
|
+
*
|
|
31428
|
+
* @since Pending
|
|
31429
|
+
*/
|
|
31430
|
+
frozen?: boolean,
|
|
31431
|
+
|
|
31417
31432
|
/**
|
|
31418
31433
|
* Whether the tabs are discarded. A discarded tab is one whose content has been unloaded from memory, but is still visible in the tab strip. Its content is reloaded the next time it is activated.
|
|
31419
31434
|
*
|
|
@@ -31513,6 +31528,13 @@ declare namespace chrome {
|
|
|
31513
31528
|
*/
|
|
31514
31529
|
highlighted?: boolean,
|
|
31515
31530
|
|
|
31531
|
+
/**
|
|
31532
|
+
* Whether the tabs are frozen. A frozen tab cannot execute tasks, including event handlers or timers. It is visible in the tab strip and its content is loaded in memory. It is unfrozen on activation.
|
|
31533
|
+
*
|
|
31534
|
+
* @since Pending
|
|
31535
|
+
*/
|
|
31536
|
+
frozen?: boolean,
|
|
31537
|
+
|
|
31516
31538
|
/**
|
|
31517
31539
|
* Whether the tabs are discarded. A discarded tab is one whose content has been unloaded from memory, but is still visible in the tab strip. Its content is reloaded the next time it is activated.
|
|
31518
31540
|
*
|
|
@@ -32903,14 +32925,14 @@ declare namespace chrome {
|
|
|
32903
32925
|
/**
|
|
32904
32926
|
* Type of requestor.
|
|
32905
32927
|
*
|
|
32906
|
-
* @since
|
|
32928
|
+
* @since Chrome 131
|
|
32907
32929
|
*/
|
|
32908
32930
|
export type TtsClientSource = "chromefeature" | "extension";
|
|
32909
32931
|
|
|
32910
32932
|
/**
|
|
32911
32933
|
* Identifier for the client requesting status.
|
|
32912
32934
|
*
|
|
32913
|
-
* @since
|
|
32935
|
+
* @since Chrome 131
|
|
32914
32936
|
*/
|
|
32915
32937
|
export interface TtsClient {
|
|
32916
32938
|
|
|
@@ -32932,6 +32954,19 @@ declare namespace chrome {
|
|
|
32932
32954
|
*/
|
|
32933
32955
|
export type VoiceGender = "male" | "female";
|
|
32934
32956
|
|
|
32957
|
+
/**
|
|
32958
|
+
* Options for uninstalling a given language.
|
|
32959
|
+
*
|
|
32960
|
+
* @since Pending
|
|
32961
|
+
*/
|
|
32962
|
+
export interface LanguageUninstallOptions {
|
|
32963
|
+
|
|
32964
|
+
/**
|
|
32965
|
+
* 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.
|
|
32966
|
+
*/
|
|
32967
|
+
uninstallImmediately: boolean;
|
|
32968
|
+
}
|
|
32969
|
+
|
|
32935
32970
|
/**
|
|
32936
32971
|
* The install status of a voice.
|
|
32937
32972
|
*
|
|
@@ -33100,13 +33135,24 @@ declare namespace chrome {
|
|
|
33100
33135
|
/**
|
|
33101
33136
|
* 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.
|
|
33102
33137
|
*
|
|
33103
|
-
* @since
|
|
33138
|
+
* @since Chrome 131
|
|
33104
33139
|
*/
|
|
33105
33140
|
export const onInstallLanguageRequest: events.Event<(
|
|
33106
33141
|
requestor: TtsClient,
|
|
33107
33142
|
lang: string,
|
|
33108
33143
|
) => void>;
|
|
33109
33144
|
|
|
33145
|
+
/**
|
|
33146
|
+
* Fired when a TTS client indicates a language is no longer needed.
|
|
33147
|
+
*
|
|
33148
|
+
* @since Pending
|
|
33149
|
+
*/
|
|
33150
|
+
export const onUninstallLanguageRequest: events.Event<(
|
|
33151
|
+
requestor: TtsClient,
|
|
33152
|
+
lang: string,
|
|
33153
|
+
uninstallOptions: LanguageUninstallOptions,
|
|
33154
|
+
) => void>;
|
|
33155
|
+
|
|
33110
33156
|
/**
|
|
33111
33157
|
* Fired when a TTS client requests the install status of a language.
|
|
33112
33158
|
*
|
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 Fri Nov 08 2024 22:30:56 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at c21dbaf65dac7f45d0c60ada30be720b95b66b4c
|
|
19
19
|
|
|
20
20
|
// Includes MV3+ APIs only.
|
|
21
21
|
|
|
@@ -8556,7 +8556,7 @@ declare namespace chrome {
|
|
|
8556
8556
|
/**
|
|
8557
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).
|
|
8558
8558
|
*
|
|
8559
|
-
* @chrome-returns-extra since
|
|
8559
|
+
* @chrome-returns-extra since Chrome 131
|
|
8560
8560
|
*/
|
|
8561
8561
|
export function getTokens(): Promise<Token[]>;
|
|
8562
8562
|
|
|
@@ -8578,7 +8578,7 @@ declare namespace chrome {
|
|
|
8578
8578
|
/**
|
|
8579
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.
|
|
8580
8580
|
*
|
|
8581
|
-
* @chrome-returns-extra since
|
|
8581
|
+
* @chrome-returns-extra since Chrome 131
|
|
8582
8582
|
* @param tokenId The id of a Token returned by `getTokens`.
|
|
8583
8583
|
*/
|
|
8584
8584
|
export function getCertificates(
|
|
@@ -8607,7 +8607,7 @@ declare namespace chrome {
|
|
|
8607
8607
|
/**
|
|
8608
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.
|
|
8609
8609
|
*
|
|
8610
|
-
* @chrome-returns-extra since
|
|
8610
|
+
* @chrome-returns-extra since Chrome 131
|
|
8611
8611
|
* @param tokenId The id of a Token returned by `getTokens`.
|
|
8612
8612
|
* @param certificate The DER encoding of a X.509 certificate.
|
|
8613
8613
|
*/
|
|
@@ -8637,7 +8637,7 @@ declare namespace chrome {
|
|
|
8637
8637
|
/**
|
|
8638
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.
|
|
8639
8639
|
*
|
|
8640
|
-
* @chrome-returns-extra since
|
|
8640
|
+
* @chrome-returns-extra since Chrome 131
|
|
8641
8641
|
* @param tokenId The id of a Token returned by `getTokens`.
|
|
8642
8642
|
* @param certificate The DER encoding of a X.509 certificate.
|
|
8643
8643
|
*/
|
|
@@ -8671,7 +8671,7 @@ declare namespace chrome {
|
|
|
8671
8671
|
*
|
|
8672
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.
|
|
8673
8673
|
*
|
|
8674
|
-
* @chrome-returns-extra since
|
|
8674
|
+
* @chrome-returns-extra since Chrome 131
|
|
8675
8675
|
* @param options Object containing the fields defined in {@link ChallengeKeyOptions}.
|
|
8676
8676
|
* @since Chrome 110
|
|
8677
8677
|
*/
|
|
@@ -8706,7 +8706,7 @@ declare namespace chrome {
|
|
|
8706
8706
|
/**
|
|
8707
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.
|
|
8708
8708
|
*
|
|
8709
|
-
* @chrome-returns-extra since
|
|
8709
|
+
* @chrome-returns-extra since Chrome 131
|
|
8710
8710
|
* @param challenge A challenge as emitted by the Verified Access Web API.
|
|
8711
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.
|
|
8712
8712
|
* @deprecated Use {@link challengeKey} instead.
|
|
@@ -8753,7 +8753,7 @@ declare namespace chrome {
|
|
|
8753
8753
|
/**
|
|
8754
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.
|
|
8755
8755
|
*
|
|
8756
|
-
* @chrome-returns-extra since
|
|
8756
|
+
* @chrome-returns-extra since Chrome 131
|
|
8757
8757
|
* @param challenge A challenge as emitted by the Verified Access Web API.
|
|
8758
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.
|
|
8759
8759
|
* @deprecated Use {@link challengeKey} instead.
|
|
@@ -23828,6 +23828,13 @@ declare namespace chrome {
|
|
|
23828
23828
|
*/
|
|
23829
23829
|
audible?: boolean;
|
|
23830
23830
|
|
|
23831
|
+
/**
|
|
23832
|
+
* Whether the tab is frozen. A frozen tab cannot execute tasks, including event handlers or timers. It is visible in the tab strip and its content is loaded in memory. It is unfrozen on activation.
|
|
23833
|
+
*
|
|
23834
|
+
* @since Pending
|
|
23835
|
+
*/
|
|
23836
|
+
frozen: boolean;
|
|
23837
|
+
|
|
23831
23838
|
/**
|
|
23832
23839
|
* Whether the tab is discarded. A discarded tab is one whose content has been unloaded from memory, but is still visible in the tab strip. Its content is reloaded the next time it is activated.
|
|
23833
23840
|
*
|
|
@@ -24465,6 +24472,13 @@ declare namespace chrome {
|
|
|
24465
24472
|
*/
|
|
24466
24473
|
highlighted?: boolean,
|
|
24467
24474
|
|
|
24475
|
+
/**
|
|
24476
|
+
* Whether the tabs are frozen. A frozen tab cannot execute tasks, including event handlers or timers. It is visible in the tab strip and its content is loaded in memory. It is unfrozen on activation.
|
|
24477
|
+
*
|
|
24478
|
+
* @since Pending
|
|
24479
|
+
*/
|
|
24480
|
+
frozen?: boolean,
|
|
24481
|
+
|
|
24468
24482
|
/**
|
|
24469
24483
|
* Whether the tabs are discarded. A discarded tab is one whose content has been unloaded from memory, but is still visible in the tab strip. Its content is reloaded the next time it is activated.
|
|
24470
24484
|
*
|
|
@@ -24564,6 +24578,13 @@ declare namespace chrome {
|
|
|
24564
24578
|
*/
|
|
24565
24579
|
highlighted?: boolean,
|
|
24566
24580
|
|
|
24581
|
+
/**
|
|
24582
|
+
* Whether the tabs are frozen. A frozen tab cannot execute tasks, including event handlers or timers. It is visible in the tab strip and its content is loaded in memory. It is unfrozen on activation.
|
|
24583
|
+
*
|
|
24584
|
+
* @since Pending
|
|
24585
|
+
*/
|
|
24586
|
+
frozen?: boolean,
|
|
24587
|
+
|
|
24567
24588
|
/**
|
|
24568
24589
|
* Whether the tabs are discarded. A discarded tab is one whose content has been unloaded from memory, but is still visible in the tab strip. Its content is reloaded the next time it is activated.
|
|
24569
24590
|
*
|
|
@@ -25742,14 +25763,14 @@ declare namespace chrome {
|
|
|
25742
25763
|
/**
|
|
25743
25764
|
* Type of requestor.
|
|
25744
25765
|
*
|
|
25745
|
-
* @since
|
|
25766
|
+
* @since Chrome 131
|
|
25746
25767
|
*/
|
|
25747
25768
|
export type TtsClientSource = "chromefeature" | "extension";
|
|
25748
25769
|
|
|
25749
25770
|
/**
|
|
25750
25771
|
* Identifier for the client requesting status.
|
|
25751
25772
|
*
|
|
25752
|
-
* @since
|
|
25773
|
+
* @since Chrome 131
|
|
25753
25774
|
*/
|
|
25754
25775
|
export interface TtsClient {
|
|
25755
25776
|
|
|
@@ -25771,6 +25792,19 @@ declare namespace chrome {
|
|
|
25771
25792
|
*/
|
|
25772
25793
|
export type VoiceGender = "male" | "female";
|
|
25773
25794
|
|
|
25795
|
+
/**
|
|
25796
|
+
* Options for uninstalling a given language.
|
|
25797
|
+
*
|
|
25798
|
+
* @since Pending
|
|
25799
|
+
*/
|
|
25800
|
+
export interface LanguageUninstallOptions {
|
|
25801
|
+
|
|
25802
|
+
/**
|
|
25803
|
+
* 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.
|
|
25804
|
+
*/
|
|
25805
|
+
uninstallImmediately: boolean;
|
|
25806
|
+
}
|
|
25807
|
+
|
|
25774
25808
|
/**
|
|
25775
25809
|
* The install status of a voice.
|
|
25776
25810
|
*
|
|
@@ -25939,13 +25973,24 @@ declare namespace chrome {
|
|
|
25939
25973
|
/**
|
|
25940
25974
|
* 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.
|
|
25941
25975
|
*
|
|
25942
|
-
* @since
|
|
25976
|
+
* @since Chrome 131
|
|
25943
25977
|
*/
|
|
25944
25978
|
export const onInstallLanguageRequest: events.Event<(
|
|
25945
25979
|
requestor: TtsClient,
|
|
25946
25980
|
lang: string,
|
|
25947
25981
|
) => void>;
|
|
25948
25982
|
|
|
25983
|
+
/**
|
|
25984
|
+
* Fired when a TTS client indicates a language is no longer needed.
|
|
25985
|
+
*
|
|
25986
|
+
* @since Pending
|
|
25987
|
+
*/
|
|
25988
|
+
export const onUninstallLanguageRequest: events.Event<(
|
|
25989
|
+
requestor: TtsClient,
|
|
25990
|
+
lang: string,
|
|
25991
|
+
uninstallOptions: LanguageUninstallOptions,
|
|
25992
|
+
) => void>;
|
|
25993
|
+
|
|
25949
25994
|
/**
|
|
25950
25995
|
* Fired when a TTS client requests the install status of a language.
|
|
25951
25996
|
*
|
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": "9cceb3396df3c9ba"
|
|
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.318"
|
|
20
20
|
}
|