chrome-types 0.1.316 → 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 +37 -12
- package/index.d.ts +36 -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
|
|
|
@@ -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
|
|
|
@@ -32903,14 +32904,14 @@ declare namespace chrome {
|
|
|
32903
32904
|
/**
|
|
32904
32905
|
* Type of requestor.
|
|
32905
32906
|
*
|
|
32906
|
-
* @since
|
|
32907
|
+
* @since Chrome 131
|
|
32907
32908
|
*/
|
|
32908
32909
|
export type TtsClientSource = "chromefeature" | "extension";
|
|
32909
32910
|
|
|
32910
32911
|
/**
|
|
32911
32912
|
* Identifier for the client requesting status.
|
|
32912
32913
|
*
|
|
32913
|
-
* @since
|
|
32914
|
+
* @since Chrome 131
|
|
32914
32915
|
*/
|
|
32915
32916
|
export interface TtsClient {
|
|
32916
32917
|
|
|
@@ -32932,6 +32933,19 @@ declare namespace chrome {
|
|
|
32932
32933
|
*/
|
|
32933
32934
|
export type VoiceGender = "male" | "female";
|
|
32934
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
|
+
|
|
32935
32949
|
/**
|
|
32936
32950
|
* The install status of a voice.
|
|
32937
32951
|
*
|
|
@@ -33100,13 +33114,24 @@ declare namespace chrome {
|
|
|
33100
33114
|
/**
|
|
33101
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.
|
|
33102
33116
|
*
|
|
33103
|
-
* @since
|
|
33117
|
+
* @since Chrome 131
|
|
33104
33118
|
*/
|
|
33105
33119
|
export const onInstallLanguageRequest: events.Event<(
|
|
33106
33120
|
requestor: TtsClient,
|
|
33107
33121
|
lang: string,
|
|
33108
33122
|
) => void>;
|
|
33109
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
|
+
|
|
33110
33135
|
/**
|
|
33111
33136
|
* Fired when a TTS client requests the install status of a language.
|
|
33112
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
|
|
|
@@ -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.
|
|
@@ -25742,14 +25742,14 @@ declare namespace chrome {
|
|
|
25742
25742
|
/**
|
|
25743
25743
|
* Type of requestor.
|
|
25744
25744
|
*
|
|
25745
|
-
* @since
|
|
25745
|
+
* @since Chrome 131
|
|
25746
25746
|
*/
|
|
25747
25747
|
export type TtsClientSource = "chromefeature" | "extension";
|
|
25748
25748
|
|
|
25749
25749
|
/**
|
|
25750
25750
|
* Identifier for the client requesting status.
|
|
25751
25751
|
*
|
|
25752
|
-
* @since
|
|
25752
|
+
* @since Chrome 131
|
|
25753
25753
|
*/
|
|
25754
25754
|
export interface TtsClient {
|
|
25755
25755
|
|
|
@@ -25771,6 +25771,19 @@ declare namespace chrome {
|
|
|
25771
25771
|
*/
|
|
25772
25772
|
export type VoiceGender = "male" | "female";
|
|
25773
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
|
+
|
|
25774
25787
|
/**
|
|
25775
25788
|
* The install status of a voice.
|
|
25776
25789
|
*
|
|
@@ -25939,13 +25952,24 @@ declare namespace chrome {
|
|
|
25939
25952
|
/**
|
|
25940
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.
|
|
25941
25954
|
*
|
|
25942
|
-
* @since
|
|
25955
|
+
* @since Chrome 131
|
|
25943
25956
|
*/
|
|
25944
25957
|
export const onInstallLanguageRequest: events.Event<(
|
|
25945
25958
|
requestor: TtsClient,
|
|
25946
25959
|
lang: string,
|
|
25947
25960
|
) => void>;
|
|
25948
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
|
+
|
|
25949
25973
|
/**
|
|
25950
25974
|
* Fired when a TTS client requests the install status of a language.
|
|
25951
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
|
}
|