devtools-protocol 0.0.1340018 → 0.0.1341448
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.
@@ -2213,7 +2213,7 @@
|
|
2213
2213
|
},
|
2214
2214
|
{
|
2215
2215
|
"name": "getStorageItems",
|
2216
|
-
"description": "Gets data from extension storage in the given `
|
2216
|
+
"description": "Gets data from extension storage in the given `storageArea`. If `keys` is\nspecified, these are used to filter the result.",
|
2217
2217
|
"parameters": [
|
2218
2218
|
{
|
2219
2219
|
"name": "id",
|
@@ -2241,6 +2241,46 @@
|
|
2241
2241
|
"type": "object"
|
2242
2242
|
}
|
2243
2243
|
]
|
2244
|
+
},
|
2245
|
+
{
|
2246
|
+
"name": "removeStorageItems",
|
2247
|
+
"description": "Removes `keys` from extension storage in the given `storageArea`.",
|
2248
|
+
"parameters": [
|
2249
|
+
{
|
2250
|
+
"name": "id",
|
2251
|
+
"description": "ID of extension.",
|
2252
|
+
"type": "string"
|
2253
|
+
},
|
2254
|
+
{
|
2255
|
+
"name": "storageArea",
|
2256
|
+
"description": "StorageArea to remove data from.",
|
2257
|
+
"$ref": "StorageArea"
|
2258
|
+
},
|
2259
|
+
{
|
2260
|
+
"name": "keys",
|
2261
|
+
"description": "Keys to remove.",
|
2262
|
+
"type": "array",
|
2263
|
+
"items": {
|
2264
|
+
"type": "string"
|
2265
|
+
}
|
2266
|
+
}
|
2267
|
+
]
|
2268
|
+
},
|
2269
|
+
{
|
2270
|
+
"name": "clearStorageItems",
|
2271
|
+
"description": "Clears extension storage in the given `storageArea`.",
|
2272
|
+
"parameters": [
|
2273
|
+
{
|
2274
|
+
"name": "id",
|
2275
|
+
"description": "ID of extension.",
|
2276
|
+
"type": "string"
|
2277
|
+
},
|
2278
|
+
{
|
2279
|
+
"name": "storageArea",
|
2280
|
+
"description": "StorageArea to remove data from.",
|
2281
|
+
"$ref": "StorageArea"
|
2282
|
+
}
|
2283
|
+
]
|
2244
2284
|
}
|
2245
2285
|
]
|
2246
2286
|
},
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
@@ -1123,7 +1123,7 @@ experimental domain Extensions
|
|
1123
1123
|
returns
|
1124
1124
|
# Extension id.
|
1125
1125
|
string id
|
1126
|
-
# Gets data from extension storage in the given `
|
1126
|
+
# Gets data from extension storage in the given `storageArea`. If `keys` is
|
1127
1127
|
# specified, these are used to filter the result.
|
1128
1128
|
command getStorageItems
|
1129
1129
|
parameters
|
@@ -1135,6 +1135,22 @@ experimental domain Extensions
|
|
1135
1135
|
optional array of string keys
|
1136
1136
|
returns
|
1137
1137
|
object data
|
1138
|
+
# Removes `keys` from extension storage in the given `storageArea`.
|
1139
|
+
command removeStorageItems
|
1140
|
+
parameters
|
1141
|
+
# ID of extension.
|
1142
|
+
string id
|
1143
|
+
# StorageArea to remove data from.
|
1144
|
+
StorageArea storageArea
|
1145
|
+
# Keys to remove.
|
1146
|
+
array of string keys
|
1147
|
+
# Clears extension storage in the given `storageArea`.
|
1148
|
+
command clearStorageItems
|
1149
|
+
parameters
|
1150
|
+
# ID of extension.
|
1151
|
+
string id
|
1152
|
+
# StorageArea to remove data from.
|
1153
|
+
StorageArea storageArea
|
1138
1154
|
|
1139
1155
|
# Defines commands and events for Autofill.
|
1140
1156
|
experimental domain Autofill
|
@@ -1518,13 +1518,27 @@ export namespace ProtocolMapping {
|
|
1518
1518
|
returnType: Protocol.Extensions.LoadUnpackedResponse;
|
1519
1519
|
};
|
1520
1520
|
/**
|
1521
|
-
* Gets data from extension storage in the given `
|
1521
|
+
* Gets data from extension storage in the given `storageArea`. If `keys` is
|
1522
1522
|
* specified, these are used to filter the result.
|
1523
1523
|
*/
|
1524
1524
|
'Extensions.getStorageItems': {
|
1525
1525
|
paramsType: [Protocol.Extensions.GetStorageItemsRequest];
|
1526
1526
|
returnType: Protocol.Extensions.GetStorageItemsResponse;
|
1527
1527
|
};
|
1528
|
+
/**
|
1529
|
+
* Removes `keys` from extension storage in the given `storageArea`.
|
1530
|
+
*/
|
1531
|
+
'Extensions.removeStorageItems': {
|
1532
|
+
paramsType: [Protocol.Extensions.RemoveStorageItemsRequest];
|
1533
|
+
returnType: void;
|
1534
|
+
};
|
1535
|
+
/**
|
1536
|
+
* Clears extension storage in the given `storageArea`.
|
1537
|
+
*/
|
1538
|
+
'Extensions.clearStorageItems': {
|
1539
|
+
paramsType: [Protocol.Extensions.ClearStorageItemsRequest];
|
1540
|
+
returnType: void;
|
1541
|
+
};
|
1528
1542
|
/**
|
1529
1543
|
* Trigger autofill on a form identified by the fieldId.
|
1530
1544
|
* If the field and related form cannot be autofilled, returns an error.
|
@@ -822,11 +822,21 @@ export namespace ProtocolProxyApi {
|
|
822
822
|
loadUnpacked(params: Protocol.Extensions.LoadUnpackedRequest): Promise<Protocol.Extensions.LoadUnpackedResponse>;
|
823
823
|
|
824
824
|
/**
|
825
|
-
* Gets data from extension storage in the given `
|
825
|
+
* Gets data from extension storage in the given `storageArea`. If `keys` is
|
826
826
|
* specified, these are used to filter the result.
|
827
827
|
*/
|
828
828
|
getStorageItems(params: Protocol.Extensions.GetStorageItemsRequest): Promise<Protocol.Extensions.GetStorageItemsResponse>;
|
829
829
|
|
830
|
+
/**
|
831
|
+
* Removes `keys` from extension storage in the given `storageArea`.
|
832
|
+
*/
|
833
|
+
removeStorageItems(params: Protocol.Extensions.RemoveStorageItemsRequest): Promise<void>;
|
834
|
+
|
835
|
+
/**
|
836
|
+
* Clears extension storage in the given `storageArea`.
|
837
|
+
*/
|
838
|
+
clearStorageItems(params: Protocol.Extensions.ClearStorageItemsRequest): Promise<void>;
|
839
|
+
|
830
840
|
}
|
831
841
|
|
832
842
|
export interface AutofillApi {
|
@@ -880,11 +880,21 @@ export namespace ProtocolTestsProxyApi {
|
|
880
880
|
loadUnpacked(params: Protocol.Extensions.LoadUnpackedRequest): Promise<{id: number, result: Protocol.Extensions.LoadUnpackedResponse, sessionId: string}>;
|
881
881
|
|
882
882
|
/**
|
883
|
-
* Gets data from extension storage in the given `
|
883
|
+
* Gets data from extension storage in the given `storageArea`. If `keys` is
|
884
884
|
* specified, these are used to filter the result.
|
885
885
|
*/
|
886
886
|
getStorageItems(params: Protocol.Extensions.GetStorageItemsRequest): Promise<{id: number, result: Protocol.Extensions.GetStorageItemsResponse, sessionId: string}>;
|
887
887
|
|
888
|
+
/**
|
889
|
+
* Removes `keys` from extension storage in the given `storageArea`.
|
890
|
+
*/
|
891
|
+
removeStorageItems(params: Protocol.Extensions.RemoveStorageItemsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
892
|
+
|
893
|
+
/**
|
894
|
+
* Clears extension storage in the given `storageArea`.
|
895
|
+
*/
|
896
|
+
clearStorageItems(params: Protocol.Extensions.ClearStorageItemsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
897
|
+
|
888
898
|
}
|
889
899
|
|
890
900
|
export interface AutofillApi {
|
package/types/protocol.d.ts
CHANGED
@@ -3807,6 +3807,32 @@ export namespace Protocol {
|
|
3807
3807
|
export interface GetStorageItemsResponse {
|
3808
3808
|
data: any;
|
3809
3809
|
}
|
3810
|
+
|
3811
|
+
export interface RemoveStorageItemsRequest {
|
3812
|
+
/**
|
3813
|
+
* ID of extension.
|
3814
|
+
*/
|
3815
|
+
id: string;
|
3816
|
+
/**
|
3817
|
+
* StorageArea to remove data from.
|
3818
|
+
*/
|
3819
|
+
storageArea: StorageArea;
|
3820
|
+
/**
|
3821
|
+
* Keys to remove.
|
3822
|
+
*/
|
3823
|
+
keys: string[];
|
3824
|
+
}
|
3825
|
+
|
3826
|
+
export interface ClearStorageItemsRequest {
|
3827
|
+
/**
|
3828
|
+
* ID of extension.
|
3829
|
+
*/
|
3830
|
+
id: string;
|
3831
|
+
/**
|
3832
|
+
* StorageArea to remove data from.
|
3833
|
+
*/
|
3834
|
+
storageArea: StorageArea;
|
3835
|
+
}
|
3810
3836
|
}
|
3811
3837
|
|
3812
3838
|
/**
|