chrome-types 0.1.96 → 0.1.99
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 +87 -2
- package/index.d.ts +87 -2
- 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 Wed Apr 06 2022 22:29:27 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at e3c39fa4b5dca006a9899e3637e237711c86be81
|
|
19
19
|
|
|
20
20
|
// Includes all types, including MV2 + Platform Apps APIs.
|
|
21
21
|
|
|
@@ -23212,6 +23212,13 @@ declare namespace chrome {
|
|
|
23212
23212
|
* @since Chrome 95
|
|
23213
23213
|
*/
|
|
23214
23214
|
world?: ExecutionWorld;
|
|
23215
|
+
|
|
23216
|
+
/**
|
|
23217
|
+
* Whether the injection should be triggered in the target as soon as possible. Note that this is not a guarantee that injection will occur prior to page load, as the page may have already loaded by the time the script reaches the target.
|
|
23218
|
+
*
|
|
23219
|
+
* @since Pending
|
|
23220
|
+
*/
|
|
23221
|
+
injectImmediately?: boolean;
|
|
23215
23222
|
}
|
|
23216
23223
|
|
|
23217
23224
|
export interface CSSInjection {
|
|
@@ -26009,6 +26016,13 @@ declare namespace chrome {
|
|
|
26009
26016
|
*/
|
|
26010
26017
|
export namespace storage {
|
|
26011
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
|
+
|
|
26012
26026
|
export interface StorageChange {
|
|
26013
26027
|
|
|
26014
26028
|
/**
|
|
@@ -26163,6 +26177,41 @@ declare namespace chrome {
|
|
|
26163
26177
|
|
|
26164
26178
|
callback?: () => void,
|
|
26165
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;
|
|
26166
26215
|
}
|
|
26167
26216
|
|
|
26168
26217
|
/**
|
|
@@ -26221,6 +26270,20 @@ declare namespace chrome {
|
|
|
26221
26270
|
*/
|
|
26222
26271
|
export const managed: StorageArea;
|
|
26223
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
|
+
|
|
26224
26287
|
/**
|
|
26225
26288
|
* Fired when one or more items change.
|
|
26226
26289
|
*/
|
|
@@ -31713,6 +31776,9 @@ declare namespace chrome {
|
|
|
31713
31776
|
* @chrome-permission webAuthenticationProxy
|
|
31714
31777
|
* @chrome-channel trunk
|
|
31715
31778
|
* @chrome-min-manifest MV3
|
|
31779
|
+
* @chrome-platform win
|
|
31780
|
+
* @chrome-platform linux
|
|
31781
|
+
* @chrome-platform mac
|
|
31716
31782
|
*/
|
|
31717
31783
|
export namespace webAuthenticationProxy {
|
|
31718
31784
|
|
|
@@ -31808,6 +31874,17 @@ declare namespace chrome {
|
|
|
31808
31874
|
isUvpaa: boolean;
|
|
31809
31875
|
}
|
|
31810
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
|
+
|
|
31811
31888
|
/**
|
|
31812
31889
|
* Fires when a WebAuthn navigator.credentials.create() call occurs. The extension must supply a response by calling completeCreateRequest() with the given requestId.
|
|
31813
31890
|
*/
|
|
@@ -31898,6 +31975,8 @@ declare namespace chrome {
|
|
|
31898
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.
|
|
31899
31976
|
*
|
|
31900
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.
|
|
31901
31980
|
*/
|
|
31902
31981
|
export function attach(): Promise<string | undefined>;
|
|
31903
31982
|
|
|
@@ -31909,6 +31988,8 @@ declare namespace chrome {
|
|
|
31909
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.
|
|
31910
31989
|
*
|
|
31911
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.
|
|
31912
31993
|
*/
|
|
31913
31994
|
export function attach(
|
|
31914
31995
|
|
|
@@ -31921,6 +32002,8 @@ declare namespace chrome {
|
|
|
31921
32002
|
* Removes this extension from being the active Web Authentication API request proxy.
|
|
31922
32003
|
*
|
|
31923
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.
|
|
31924
32007
|
*/
|
|
31925
32008
|
export function detach(): Promise<string | undefined>;
|
|
31926
32009
|
|
|
@@ -31928,6 +32011,8 @@ declare namespace chrome {
|
|
|
31928
32011
|
* Removes this extension from being the active Web Authentication API request proxy.
|
|
31929
32012
|
*
|
|
31930
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.
|
|
31931
32016
|
*/
|
|
31932
32017
|
export function detach(
|
|
31933
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 Wed Apr 06 2022 22:29:21 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at e3c39fa4b5dca006a9899e3637e237711c86be81
|
|
19
19
|
|
|
20
20
|
// Includes MV3+ APIs only.
|
|
21
21
|
|
|
@@ -18105,6 +18105,13 @@ declare namespace chrome {
|
|
|
18105
18105
|
* @since Chrome 95
|
|
18106
18106
|
*/
|
|
18107
18107
|
world?: ExecutionWorld;
|
|
18108
|
+
|
|
18109
|
+
/**
|
|
18110
|
+
* Whether the injection should be triggered in the target as soon as possible. Note that this is not a guarantee that injection will occur prior to page load, as the page may have already loaded by the time the script reaches the target.
|
|
18111
|
+
*
|
|
18112
|
+
* @since Pending
|
|
18113
|
+
*/
|
|
18114
|
+
injectImmediately?: boolean;
|
|
18108
18115
|
}
|
|
18109
18116
|
|
|
18110
18117
|
export interface CSSInjection {
|
|
@@ -19820,6 +19827,13 @@ declare namespace chrome {
|
|
|
19820
19827
|
*/
|
|
19821
19828
|
export namespace storage {
|
|
19822
19829
|
|
|
19830
|
+
/**
|
|
19831
|
+
* The storage area's access level.
|
|
19832
|
+
*
|
|
19833
|
+
* @since Pending
|
|
19834
|
+
*/
|
|
19835
|
+
export type AccessLevel = "TRUSTED_CONTEXTS" | "TRUSTED_AND_UNTRUSTED_CONTEXTS";
|
|
19836
|
+
|
|
19823
19837
|
export interface StorageChange {
|
|
19824
19838
|
|
|
19825
19839
|
/**
|
|
@@ -19974,6 +19988,41 @@ declare namespace chrome {
|
|
|
19974
19988
|
|
|
19975
19989
|
callback?: () => void,
|
|
19976
19990
|
): void;
|
|
19991
|
+
|
|
19992
|
+
/**
|
|
19993
|
+
* Sets the desired access level for the storage area. The default will be only trusted contexts.
|
|
19994
|
+
*
|
|
19995
|
+
* @since Pending
|
|
19996
|
+
*/
|
|
19997
|
+
setAccessLevel(
|
|
19998
|
+
|
|
19999
|
+
accessOptions: {
|
|
20000
|
+
|
|
20001
|
+
/**
|
|
20002
|
+
* The access level of the storage area.
|
|
20003
|
+
*/
|
|
20004
|
+
accessLevel: AccessLevel,
|
|
20005
|
+
},
|
|
20006
|
+
): Promise<void>;
|
|
20007
|
+
|
|
20008
|
+
/**
|
|
20009
|
+
* Sets the desired access level for the storage area. The default will be only trusted contexts.
|
|
20010
|
+
*
|
|
20011
|
+
* @param callback Callback on success, or on failure (in which case {@link runtime.lastError} will be set).
|
|
20012
|
+
* @since Pending
|
|
20013
|
+
*/
|
|
20014
|
+
setAccessLevel(
|
|
20015
|
+
|
|
20016
|
+
accessOptions: {
|
|
20017
|
+
|
|
20018
|
+
/**
|
|
20019
|
+
* The access level of the storage area.
|
|
20020
|
+
*/
|
|
20021
|
+
accessLevel: AccessLevel,
|
|
20022
|
+
},
|
|
20023
|
+
|
|
20024
|
+
callback?: () => void,
|
|
20025
|
+
): void;
|
|
19977
20026
|
}
|
|
19978
20027
|
|
|
19979
20028
|
/**
|
|
@@ -20032,6 +20081,20 @@ declare namespace chrome {
|
|
|
20032
20081
|
*/
|
|
20033
20082
|
export const managed: StorageArea;
|
|
20034
20083
|
|
|
20084
|
+
/**
|
|
20085
|
+
* Items in the `session` storage area are stored in-memory and will not be persisted to disk.
|
|
20086
|
+
*
|
|
20087
|
+
* @since Pending
|
|
20088
|
+
* @chrome-min-manifest MV3
|
|
20089
|
+
*/
|
|
20090
|
+
export const session: StorageArea & {
|
|
20091
|
+
|
|
20092
|
+
/**
|
|
20093
|
+
* 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}.
|
|
20094
|
+
*/
|
|
20095
|
+
QUOTA_BYTES: 1048576,
|
|
20096
|
+
};
|
|
20097
|
+
|
|
20035
20098
|
/**
|
|
20036
20099
|
* Fired when one or more items change.
|
|
20037
20100
|
*/
|
|
@@ -24959,6 +25022,9 @@ declare namespace chrome {
|
|
|
24959
25022
|
* @chrome-permission webAuthenticationProxy
|
|
24960
25023
|
* @chrome-channel trunk
|
|
24961
25024
|
* @chrome-min-manifest MV3
|
|
25025
|
+
* @chrome-platform win
|
|
25026
|
+
* @chrome-platform linux
|
|
25027
|
+
* @chrome-platform mac
|
|
24962
25028
|
*/
|
|
24963
25029
|
export namespace webAuthenticationProxy {
|
|
24964
25030
|
|
|
@@ -25054,6 +25120,17 @@ declare namespace chrome {
|
|
|
25054
25120
|
isUvpaa: boolean;
|
|
25055
25121
|
}
|
|
25056
25122
|
|
|
25123
|
+
/**
|
|
25124
|
+
* 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).
|
|
25125
|
+
*
|
|
25126
|
+
* 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.
|
|
25127
|
+
*
|
|
25128
|
+
* 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.
|
|
25129
|
+
*
|
|
25130
|
+
* The event listener must be registered synchronously at load time.
|
|
25131
|
+
*/
|
|
25132
|
+
export const onRemoteSessionStateChange: events.Event<() => void>;
|
|
25133
|
+
|
|
25057
25134
|
/**
|
|
25058
25135
|
* Fires when a WebAuthn navigator.credentials.create() call occurs. The extension must supply a response by calling completeCreateRequest() with the given requestId.
|
|
25059
25136
|
*/
|
|
@@ -25144,6 +25221,8 @@ declare namespace chrome {
|
|
|
25144
25221
|
* 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.
|
|
25145
25222
|
*
|
|
25146
25223
|
* 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.
|
|
25224
|
+
*
|
|
25225
|
+
* Refer to the `onRemoteSessionStateChange` event for signaling a change of remote session attachment from a native application to to the (possibly suspended) extension.
|
|
25147
25226
|
*/
|
|
25148
25227
|
export function attach(): Promise<string | undefined>;
|
|
25149
25228
|
|
|
@@ -25155,6 +25234,8 @@ declare namespace chrome {
|
|
|
25155
25234
|
* 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.
|
|
25156
25235
|
*
|
|
25157
25236
|
* 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.
|
|
25237
|
+
*
|
|
25238
|
+
* Refer to the `onRemoteSessionStateChange` event for signaling a change of remote session attachment from a native application to to the (possibly suspended) extension.
|
|
25158
25239
|
*/
|
|
25159
25240
|
export function attach(
|
|
25160
25241
|
|
|
@@ -25167,6 +25248,8 @@ declare namespace chrome {
|
|
|
25167
25248
|
* Removes this extension from being the active Web Authentication API request proxy.
|
|
25168
25249
|
*
|
|
25169
25250
|
* 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.
|
|
25251
|
+
*
|
|
25252
|
+
* Refer to the `onRemoteSessionStateChange` event for signaling a change of remote session attachment from a native application to to the (possibly suspended) extension.
|
|
25170
25253
|
*/
|
|
25171
25254
|
export function detach(): Promise<string | undefined>;
|
|
25172
25255
|
|
|
@@ -25174,6 +25257,8 @@ declare namespace chrome {
|
|
|
25174
25257
|
* Removes this extension from being the active Web Authentication API request proxy.
|
|
25175
25258
|
*
|
|
25176
25259
|
* 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.
|
|
25260
|
+
*
|
|
25261
|
+
* Refer to the `onRemoteSessionStateChange` event for signaling a change of remote session attachment from a native application to to the (possibly suspended) extension.
|
|
25177
25262
|
*/
|
|
25178
25263
|
export function detach(
|
|
25179
25264
|
|
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": "6e3d3cdd667496fa"
|
|
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.99"
|
|
20
20
|
}
|