devtools-protocol 0.0.1340018 → 0.0.1342118

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 `area`. If `keys` is\nspecified, these are used to filter the result.",
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,67 @@
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
+ ]
2284
+ },
2285
+ {
2286
+ "name": "setStorageItems",
2287
+ "description": "Sets `values` in extension storage in the given `storageArea`. The provided `values`\nwill be merged with existing values in the storage area.",
2288
+ "parameters": [
2289
+ {
2290
+ "name": "id",
2291
+ "description": "ID of extension.",
2292
+ "type": "string"
2293
+ },
2294
+ {
2295
+ "name": "storageArea",
2296
+ "description": "StorageArea to set data in.",
2297
+ "$ref": "StorageArea"
2298
+ },
2299
+ {
2300
+ "name": "values",
2301
+ "description": "Values to set.",
2302
+ "type": "object"
2303
+ }
2304
+ ]
2244
2305
  }
2245
2306
  ]
2246
2307
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1340018",
3
+ "version": "0.0.1342118",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -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 `area`. If `keys` is
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,32 @@ 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
1154
+ # Sets `values` in extension storage in the given `storageArea`. The provided `values`
1155
+ # will be merged with existing values in the storage area.
1156
+ command setStorageItems
1157
+ parameters
1158
+ # ID of extension.
1159
+ string id
1160
+ # StorageArea to set data in.
1161
+ StorageArea storageArea
1162
+ # Values to set.
1163
+ object values
1138
1164
 
1139
1165
  # Defines commands and events for Autofill.
1140
1166
  experimental domain Autofill
@@ -1518,13 +1518,35 @@ export namespace ProtocolMapping {
1518
1518
  returnType: Protocol.Extensions.LoadUnpackedResponse;
1519
1519
  };
1520
1520
  /**
1521
- * Gets data from extension storage in the given `area`. If `keys` is
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
+ };
1542
+ /**
1543
+ * Sets `values` in extension storage in the given `storageArea`. The provided `values`
1544
+ * will be merged with existing values in the storage area.
1545
+ */
1546
+ 'Extensions.setStorageItems': {
1547
+ paramsType: [Protocol.Extensions.SetStorageItemsRequest];
1548
+ returnType: void;
1549
+ };
1528
1550
  /**
1529
1551
  * Trigger autofill on a form identified by the fieldId.
1530
1552
  * If the field and related form cannot be autofilled, returns an error.
@@ -822,11 +822,27 @@ 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 `area`. If `keys` is
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
+
840
+ /**
841
+ * Sets `values` in extension storage in the given `storageArea`. The provided `values`
842
+ * will be merged with existing values in the storage area.
843
+ */
844
+ setStorageItems(params: Protocol.Extensions.SetStorageItemsRequest): Promise<void>;
845
+
830
846
  }
831
847
 
832
848
  export interface AutofillApi {
@@ -880,11 +880,27 @@ 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 `area`. If `keys` is
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
+
898
+ /**
899
+ * Sets `values` in extension storage in the given `storageArea`. The provided `values`
900
+ * will be merged with existing values in the storage area.
901
+ */
902
+ setStorageItems(params: Protocol.Extensions.SetStorageItemsRequest): Promise<{id: number, result: void, sessionId: string}>;
903
+
888
904
  }
889
905
 
890
906
  export interface AutofillApi {
@@ -3807,6 +3807,47 @@ 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
+ }
3836
+
3837
+ export interface SetStorageItemsRequest {
3838
+ /**
3839
+ * ID of extension.
3840
+ */
3841
+ id: string;
3842
+ /**
3843
+ * StorageArea to set data in.
3844
+ */
3845
+ storageArea: StorageArea;
3846
+ /**
3847
+ * Values to set.
3848
+ */
3849
+ values: any;
3850
+ }
3810
3851
  }
3811
3852
 
3812
3853
  /**