chrome-types 0.1.97 → 0.1.100
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 +82 -4
- package/index.d.ts +85 -9
- 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 Tue Apr 12 2022 22:29:25 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at 1241cdafb6a389ba5f981b54a1d162131e6a1c0f
|
|
19
19
|
|
|
20
20
|
// Includes all types, including MV2 + Platform Apps APIs.
|
|
21
21
|
|
|
@@ -1604,6 +1604,7 @@ declare namespace chrome {
|
|
|
1604
1604
|
*
|
|
1605
1605
|
* @since Chrome 59
|
|
1606
1606
|
* @chrome-permission audio
|
|
1607
|
+
* @chrome-platform-apps
|
|
1607
1608
|
* @chrome-platform chromeos
|
|
1608
1609
|
*/
|
|
1609
1610
|
export namespace audio {
|
|
@@ -21249,7 +21250,6 @@ declare namespace chrome {
|
|
|
21249
21250
|
*
|
|
21250
21251
|
* @since Chrome 45
|
|
21251
21252
|
* @chrome-permission platformKeys
|
|
21252
|
-
* @chrome-disallow-service-workers
|
|
21253
21253
|
* @chrome-platform chromeos
|
|
21254
21254
|
* @chrome-platform lacros
|
|
21255
21255
|
*/
|
|
@@ -26016,6 +26016,13 @@ declare namespace chrome {
|
|
|
26016
26016
|
*/
|
|
26017
26017
|
export namespace storage {
|
|
26018
26018
|
|
|
26019
|
+
/**
|
|
26020
|
+
* The storage area's access level.
|
|
26021
|
+
*
|
|
26022
|
+
* @since Pending
|
|
26023
|
+
*/
|
|
26024
|
+
export type AccessLevel = "TRUSTED_CONTEXTS" | "TRUSTED_AND_UNTRUSTED_CONTEXTS";
|
|
26025
|
+
|
|
26019
26026
|
export interface StorageChange {
|
|
26020
26027
|
|
|
26021
26028
|
/**
|
|
@@ -26170,6 +26177,41 @@ declare namespace chrome {
|
|
|
26170
26177
|
|
|
26171
26178
|
callback?: () => void,
|
|
26172
26179
|
): void;
|
|
26180
|
+
|
|
26181
|
+
/**
|
|
26182
|
+
* Sets the desired access level for the storage area. The default will be only trusted contexts.
|
|
26183
|
+
*
|
|
26184
|
+
* @since Pending
|
|
26185
|
+
*/
|
|
26186
|
+
setAccessLevel(
|
|
26187
|
+
|
|
26188
|
+
accessOptions: {
|
|
26189
|
+
|
|
26190
|
+
/**
|
|
26191
|
+
* The access level of the storage area.
|
|
26192
|
+
*/
|
|
26193
|
+
accessLevel: AccessLevel,
|
|
26194
|
+
},
|
|
26195
|
+
): Promise<void>;
|
|
26196
|
+
|
|
26197
|
+
/**
|
|
26198
|
+
* Sets the desired access level for the storage area. The default will be only trusted contexts.
|
|
26199
|
+
*
|
|
26200
|
+
* @param callback Callback on success, or on failure (in which case {@link runtime.lastError} will be set).
|
|
26201
|
+
* @since Pending
|
|
26202
|
+
*/
|
|
26203
|
+
setAccessLevel(
|
|
26204
|
+
|
|
26205
|
+
accessOptions: {
|
|
26206
|
+
|
|
26207
|
+
/**
|
|
26208
|
+
* The access level of the storage area.
|
|
26209
|
+
*/
|
|
26210
|
+
accessLevel: AccessLevel,
|
|
26211
|
+
},
|
|
26212
|
+
|
|
26213
|
+
callback?: () => void,
|
|
26214
|
+
): void;
|
|
26173
26215
|
}
|
|
26174
26216
|
|
|
26175
26217
|
/**
|
|
@@ -26228,6 +26270,20 @@ declare namespace chrome {
|
|
|
26228
26270
|
*/
|
|
26229
26271
|
export const managed: StorageArea;
|
|
26230
26272
|
|
|
26273
|
+
/**
|
|
26274
|
+
* Items in the `session` storage area are stored in-memory and will not be persisted to disk.
|
|
26275
|
+
*
|
|
26276
|
+
* @since Pending
|
|
26277
|
+
* @chrome-min-manifest MV3
|
|
26278
|
+
*/
|
|
26279
|
+
export const session: StorageArea & {
|
|
26280
|
+
|
|
26281
|
+
/**
|
|
26282
|
+
* The maximum amount (in bytes) of data that can be stored in memory, as measured by estimating the dynamically allocated memory usage of every value and key. Updates that would cause this limit to be exceeded fail immediately and set {@link runtime.lastError}.
|
|
26283
|
+
*/
|
|
26284
|
+
QUOTA_BYTES: 1048576,
|
|
26285
|
+
};
|
|
26286
|
+
|
|
26231
26287
|
/**
|
|
26232
26288
|
* Fired when one or more items change.
|
|
26233
26289
|
*/
|
|
@@ -31271,8 +31327,8 @@ declare namespace chrome {
|
|
|
31271
31327
|
*
|
|
31272
31328
|
* @since Chrome 58
|
|
31273
31329
|
* @chrome-permission virtualKeyboard
|
|
31330
|
+
* @chrome-platform-apps
|
|
31274
31331
|
* @chrome-platform chromeos
|
|
31275
|
-
* @chrome-platform lacros
|
|
31276
31332
|
*/
|
|
31277
31333
|
export namespace virtualKeyboard {
|
|
31278
31334
|
|
|
@@ -31720,6 +31776,9 @@ declare namespace chrome {
|
|
|
31720
31776
|
* @chrome-permission webAuthenticationProxy
|
|
31721
31777
|
* @chrome-channel trunk
|
|
31722
31778
|
* @chrome-min-manifest MV3
|
|
31779
|
+
* @chrome-platform win
|
|
31780
|
+
* @chrome-platform linux
|
|
31781
|
+
* @chrome-platform mac
|
|
31723
31782
|
*/
|
|
31724
31783
|
export namespace webAuthenticationProxy {
|
|
31725
31784
|
|
|
@@ -31815,6 +31874,17 @@ declare namespace chrome {
|
|
|
31815
31874
|
isUvpaa: boolean;
|
|
31816
31875
|
}
|
|
31817
31876
|
|
|
31877
|
+
/**
|
|
31878
|
+
* A native application associated with this extension can cause this event to be fired by writing to a file with a name equal to the extension's ID in a directory named `WebAuthenticationProxyRemoteSessionStateChange` inside the \[default user data directory\](https://chromium.googlesource.com/chromium/src/+/master/docs/user\_data\_dir.md#default-location).
|
|
31879
|
+
*
|
|
31880
|
+
* The contents of the file should be empty. I.e., it is not necessary to change the contents of the file in order to trigger this event.
|
|
31881
|
+
*
|
|
31882
|
+
* The native host application may use this event mechanism to signal a possible remote session state change (i.e. from detached to attached, or vice versa) while the extension service worker is possibly suspended. In the handler for this event, the extension can call the \`attach()\` or \`detach()\` API methods accordingly.
|
|
31883
|
+
*
|
|
31884
|
+
* The event listener must be registered synchronously at load time.
|
|
31885
|
+
*/
|
|
31886
|
+
export const onRemoteSessionStateChange: events.Event<() => void>;
|
|
31887
|
+
|
|
31818
31888
|
/**
|
|
31819
31889
|
* Fires when a WebAuthn navigator.credentials.create() call occurs. The extension must supply a response by calling completeCreateRequest() with the given requestId.
|
|
31820
31890
|
*/
|
|
@@ -31905,6 +31975,8 @@ declare namespace chrome {
|
|
|
31905
31975
|
* This method fails with an error if a different extension is already attached or if the extension has not subscribed to all of the events defined in this API.
|
|
31906
31976
|
*
|
|
31907
31977
|
* The attached extension must call \`detach()\` once the remote desktop session has ended in order to resume regular WebAuthn request processing. Extensions automatically become detached if they are unloaded.
|
|
31978
|
+
*
|
|
31979
|
+
* Refer to the `onRemoteSessionStateChange` event for signaling a change of remote session attachment from a native application to to the (possibly suspended) extension.
|
|
31908
31980
|
*/
|
|
31909
31981
|
export function attach(): Promise<string | undefined>;
|
|
31910
31982
|
|
|
@@ -31916,6 +31988,8 @@ declare namespace chrome {
|
|
|
31916
31988
|
* This method fails with an error if a different extension is already attached or if the extension has not subscribed to all of the events defined in this API.
|
|
31917
31989
|
*
|
|
31918
31990
|
* The attached extension must call \`detach()\` once the remote desktop session has ended in order to resume regular WebAuthn request processing. Extensions automatically become detached if they are unloaded.
|
|
31991
|
+
*
|
|
31992
|
+
* Refer to the `onRemoteSessionStateChange` event for signaling a change of remote session attachment from a native application to to the (possibly suspended) extension.
|
|
31919
31993
|
*/
|
|
31920
31994
|
export function attach(
|
|
31921
31995
|
|
|
@@ -31928,6 +32002,8 @@ declare namespace chrome {
|
|
|
31928
32002
|
* Removes this extension from being the active Web Authentication API request proxy.
|
|
31929
32003
|
*
|
|
31930
32004
|
* This method is typically called when the extension detects that a remote desktop session was terminated. Once this method returns without error, regular processing of WebAuthn requests continues.
|
|
32005
|
+
*
|
|
32006
|
+
* Refer to the `onRemoteSessionStateChange` event for signaling a change of remote session attachment from a native application to to the (possibly suspended) extension.
|
|
31931
32007
|
*/
|
|
31932
32008
|
export function detach(): Promise<string | undefined>;
|
|
31933
32009
|
|
|
@@ -31935,6 +32011,8 @@ declare namespace chrome {
|
|
|
31935
32011
|
* Removes this extension from being the active Web Authentication API request proxy.
|
|
31936
32012
|
*
|
|
31937
32013
|
* This method is typically called when the extension detects that a remote desktop session was terminated. Once this method returns without error, regular processing of WebAuthn requests continues.
|
|
32014
|
+
*
|
|
32015
|
+
* Refer to the `onRemoteSessionStateChange` event for signaling a change of remote session attachment from a native application to to the (possibly suspended) extension.
|
|
31938
32016
|
*/
|
|
31939
32017
|
export function detach(
|
|
31940
32018
|
|
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 Tue Apr 12 2022 22:29:20 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at 1241cdafb6a389ba5f981b54a1d162131e6a1c0f
|
|
19
19
|
|
|
20
20
|
// Includes MV3+ APIs only.
|
|
21
21
|
|
|
@@ -852,9 +852,11 @@ declare namespace chrome {
|
|
|
852
852
|
/**
|
|
853
853
|
* The `chrome.audio` API is provided to allow users to get information about and control the audio devices attached to the system. This API is currently only available in kiosk mode for ChromeOS.
|
|
854
854
|
*
|
|
855
|
-
* @
|
|
855
|
+
* @alpha
|
|
856
856
|
* @chrome-permission audio
|
|
857
|
+
* @chrome-channel dev
|
|
857
858
|
* @chrome-platform chromeos
|
|
859
|
+
* @chrome-platform lacros
|
|
858
860
|
*/
|
|
859
861
|
export namespace audio {
|
|
860
862
|
|
|
@@ -16153,7 +16155,6 @@ declare namespace chrome {
|
|
|
16153
16155
|
*
|
|
16154
16156
|
* @since Chrome 45
|
|
16155
16157
|
* @chrome-permission platformKeys
|
|
16156
|
-
* @chrome-disallow-service-workers
|
|
16157
16158
|
* @chrome-platform chromeos
|
|
16158
16159
|
* @chrome-platform lacros
|
|
16159
16160
|
*/
|
|
@@ -19827,6 +19828,13 @@ declare namespace chrome {
|
|
|
19827
19828
|
*/
|
|
19828
19829
|
export namespace storage {
|
|
19829
19830
|
|
|
19831
|
+
/**
|
|
19832
|
+
* The storage area's access level.
|
|
19833
|
+
*
|
|
19834
|
+
* @since Pending
|
|
19835
|
+
*/
|
|
19836
|
+
export type AccessLevel = "TRUSTED_CONTEXTS" | "TRUSTED_AND_UNTRUSTED_CONTEXTS";
|
|
19837
|
+
|
|
19830
19838
|
export interface StorageChange {
|
|
19831
19839
|
|
|
19832
19840
|
/**
|
|
@@ -19981,6 +19989,41 @@ declare namespace chrome {
|
|
|
19981
19989
|
|
|
19982
19990
|
callback?: () => void,
|
|
19983
19991
|
): void;
|
|
19992
|
+
|
|
19993
|
+
/**
|
|
19994
|
+
* Sets the desired access level for the storage area. The default will be only trusted contexts.
|
|
19995
|
+
*
|
|
19996
|
+
* @since Pending
|
|
19997
|
+
*/
|
|
19998
|
+
setAccessLevel(
|
|
19999
|
+
|
|
20000
|
+
accessOptions: {
|
|
20001
|
+
|
|
20002
|
+
/**
|
|
20003
|
+
* The access level of the storage area.
|
|
20004
|
+
*/
|
|
20005
|
+
accessLevel: AccessLevel,
|
|
20006
|
+
},
|
|
20007
|
+
): Promise<void>;
|
|
20008
|
+
|
|
20009
|
+
/**
|
|
20010
|
+
* Sets the desired access level for the storage area. The default will be only trusted contexts.
|
|
20011
|
+
*
|
|
20012
|
+
* @param callback Callback on success, or on failure (in which case {@link runtime.lastError} will be set).
|
|
20013
|
+
* @since Pending
|
|
20014
|
+
*/
|
|
20015
|
+
setAccessLevel(
|
|
20016
|
+
|
|
20017
|
+
accessOptions: {
|
|
20018
|
+
|
|
20019
|
+
/**
|
|
20020
|
+
* The access level of the storage area.
|
|
20021
|
+
*/
|
|
20022
|
+
accessLevel: AccessLevel,
|
|
20023
|
+
},
|
|
20024
|
+
|
|
20025
|
+
callback?: () => void,
|
|
20026
|
+
): void;
|
|
19984
20027
|
}
|
|
19985
20028
|
|
|
19986
20029
|
/**
|
|
@@ -20039,6 +20082,20 @@ declare namespace chrome {
|
|
|
20039
20082
|
*/
|
|
20040
20083
|
export const managed: StorageArea;
|
|
20041
20084
|
|
|
20085
|
+
/**
|
|
20086
|
+
* Items in the `session` storage area are stored in-memory and will not be persisted to disk.
|
|
20087
|
+
*
|
|
20088
|
+
* @since Pending
|
|
20089
|
+
* @chrome-min-manifest MV3
|
|
20090
|
+
*/
|
|
20091
|
+
export const session: StorageArea & {
|
|
20092
|
+
|
|
20093
|
+
/**
|
|
20094
|
+
* The maximum amount (in bytes) of data that can be stored in memory, as measured by estimating the dynamically allocated memory usage of every value and key. Updates that would cause this limit to be exceeded fail immediately and set {@link runtime.lastError}.
|
|
20095
|
+
*/
|
|
20096
|
+
QUOTA_BYTES: 1048576,
|
|
20097
|
+
};
|
|
20098
|
+
|
|
20042
20099
|
/**
|
|
20043
20100
|
* Fired when one or more items change.
|
|
20044
20101
|
*/
|
|
@@ -24515,8 +24572,9 @@ declare namespace chrome {
|
|
|
24515
24572
|
/**
|
|
24516
24573
|
* The `chrome.virtualKeyboard` API is a kiosk only API used to configure virtual keyboard layout and behavior in kiosk sessions.
|
|
24517
24574
|
*
|
|
24518
|
-
* @
|
|
24575
|
+
* @alpha
|
|
24519
24576
|
* @chrome-permission virtualKeyboard
|
|
24577
|
+
* @chrome-channel dev
|
|
24520
24578
|
* @chrome-platform chromeos
|
|
24521
24579
|
* @chrome-platform lacros
|
|
24522
24580
|
*/
|
|
@@ -24553,7 +24611,6 @@ declare namespace chrome {
|
|
|
24553
24611
|
/**
|
|
24554
24612
|
* Sets restrictions on features provided by the virtual keyboard.
|
|
24555
24613
|
*
|
|
24556
|
-
* @chrome-returns-extra since Pending
|
|
24557
24614
|
* @param restrictions the preferences to enabled/disabled virtual keyboard features.
|
|
24558
24615
|
*/
|
|
24559
24616
|
export function restrictFeatures(
|
|
@@ -24572,9 +24629,6 @@ declare namespace chrome {
|
|
|
24572
24629
|
restrictions: FeatureRestrictions,
|
|
24573
24630
|
|
|
24574
24631
|
callback?: (
|
|
24575
|
-
/**
|
|
24576
|
-
* @since Chrome 63
|
|
24577
|
-
*/
|
|
24578
24632
|
update: FeatureRestrictions,
|
|
24579
24633
|
) => void,
|
|
24580
24634
|
): void;
|
|
@@ -24966,6 +25020,9 @@ declare namespace chrome {
|
|
|
24966
25020
|
* @chrome-permission webAuthenticationProxy
|
|
24967
25021
|
* @chrome-channel trunk
|
|
24968
25022
|
* @chrome-min-manifest MV3
|
|
25023
|
+
* @chrome-platform win
|
|
25024
|
+
* @chrome-platform linux
|
|
25025
|
+
* @chrome-platform mac
|
|
24969
25026
|
*/
|
|
24970
25027
|
export namespace webAuthenticationProxy {
|
|
24971
25028
|
|
|
@@ -25061,6 +25118,17 @@ declare namespace chrome {
|
|
|
25061
25118
|
isUvpaa: boolean;
|
|
25062
25119
|
}
|
|
25063
25120
|
|
|
25121
|
+
/**
|
|
25122
|
+
* A native application associated with this extension can cause this event to be fired by writing to a file with a name equal to the extension's ID in a directory named `WebAuthenticationProxyRemoteSessionStateChange` inside the \[default user data directory\](https://chromium.googlesource.com/chromium/src/+/master/docs/user\_data\_dir.md#default-location).
|
|
25123
|
+
*
|
|
25124
|
+
* The contents of the file should be empty. I.e., it is not necessary to change the contents of the file in order to trigger this event.
|
|
25125
|
+
*
|
|
25126
|
+
* The native host application may use this event mechanism to signal a possible remote session state change (i.e. from detached to attached, or vice versa) while the extension service worker is possibly suspended. In the handler for this event, the extension can call the \`attach()\` or \`detach()\` API methods accordingly.
|
|
25127
|
+
*
|
|
25128
|
+
* The event listener must be registered synchronously at load time.
|
|
25129
|
+
*/
|
|
25130
|
+
export const onRemoteSessionStateChange: events.Event<() => void>;
|
|
25131
|
+
|
|
25064
25132
|
/**
|
|
25065
25133
|
* Fires when a WebAuthn navigator.credentials.create() call occurs. The extension must supply a response by calling completeCreateRequest() with the given requestId.
|
|
25066
25134
|
*/
|
|
@@ -25151,6 +25219,8 @@ declare namespace chrome {
|
|
|
25151
25219
|
* This method fails with an error if a different extension is already attached or if the extension has not subscribed to all of the events defined in this API.
|
|
25152
25220
|
*
|
|
25153
25221
|
* The attached extension must call \`detach()\` once the remote desktop session has ended in order to resume regular WebAuthn request processing. Extensions automatically become detached if they are unloaded.
|
|
25222
|
+
*
|
|
25223
|
+
* Refer to the `onRemoteSessionStateChange` event for signaling a change of remote session attachment from a native application to to the (possibly suspended) extension.
|
|
25154
25224
|
*/
|
|
25155
25225
|
export function attach(): Promise<string | undefined>;
|
|
25156
25226
|
|
|
@@ -25162,6 +25232,8 @@ declare namespace chrome {
|
|
|
25162
25232
|
* This method fails with an error if a different extension is already attached or if the extension has not subscribed to all of the events defined in this API.
|
|
25163
25233
|
*
|
|
25164
25234
|
* The attached extension must call \`detach()\` once the remote desktop session has ended in order to resume regular WebAuthn request processing. Extensions automatically become detached if they are unloaded.
|
|
25235
|
+
*
|
|
25236
|
+
* Refer to the `onRemoteSessionStateChange` event for signaling a change of remote session attachment from a native application to to the (possibly suspended) extension.
|
|
25165
25237
|
*/
|
|
25166
25238
|
export function attach(
|
|
25167
25239
|
|
|
@@ -25174,6 +25246,8 @@ declare namespace chrome {
|
|
|
25174
25246
|
* Removes this extension from being the active Web Authentication API request proxy.
|
|
25175
25247
|
*
|
|
25176
25248
|
* This method is typically called when the extension detects that a remote desktop session was terminated. Once this method returns without error, regular processing of WebAuthn requests continues.
|
|
25249
|
+
*
|
|
25250
|
+
* Refer to the `onRemoteSessionStateChange` event for signaling a change of remote session attachment from a native application to to the (possibly suspended) extension.
|
|
25177
25251
|
*/
|
|
25178
25252
|
export function detach(): Promise<string | undefined>;
|
|
25179
25253
|
|
|
@@ -25181,6 +25255,8 @@ declare namespace chrome {
|
|
|
25181
25255
|
* Removes this extension from being the active Web Authentication API request proxy.
|
|
25182
25256
|
*
|
|
25183
25257
|
* This method is typically called when the extension detects that a remote desktop session was terminated. Once this method returns without error, regular processing of WebAuthn requests continues.
|
|
25258
|
+
*
|
|
25259
|
+
* Refer to the `onRemoteSessionStateChange` event for signaling a change of remote session attachment from a native application to to the (possibly suspended) extension.
|
|
25184
25260
|
*/
|
|
25185
25261
|
export function detach(
|
|
25186
25262
|
|
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": "275d9cd23a2282ab"
|
|
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.100"
|
|
20
20
|
}
|