chrome-types 0.1.98 → 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 +58 -2
- package/index.d.ts +58 -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
|
|
|
@@ -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
|
*/
|
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
|
|
|
@@ -19827,6 +19827,13 @@ declare namespace chrome {
|
|
|
19827
19827
|
*/
|
|
19828
19828
|
export namespace storage {
|
|
19829
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
|
+
|
|
19830
19837
|
export interface StorageChange {
|
|
19831
19838
|
|
|
19832
19839
|
/**
|
|
@@ -19981,6 +19988,41 @@ declare namespace chrome {
|
|
|
19981
19988
|
|
|
19982
19989
|
callback?: () => void,
|
|
19983
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;
|
|
19984
20026
|
}
|
|
19985
20027
|
|
|
19986
20028
|
/**
|
|
@@ -20039,6 +20081,20 @@ declare namespace chrome {
|
|
|
20039
20081
|
*/
|
|
20040
20082
|
export const managed: StorageArea;
|
|
20041
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
|
+
|
|
20042
20098
|
/**
|
|
20043
20099
|
* Fired when one or more items change.
|
|
20044
20100
|
*/
|
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
|
}
|