devtools-protocol 0.0.1029085 → 0.0.1030398

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.
@@ -1450,7 +1450,8 @@
1450
1450
  "InsecureContext",
1451
1451
  "InvalidHeader",
1452
1452
  "InvalidRegisterTriggerHeader",
1453
- "InvalidEligibleHeader"
1453
+ "InvalidEligibleHeader",
1454
+ "TooManyConcurrentRequests"
1454
1455
  ]
1455
1456
  },
1456
1457
  {
@@ -19311,6 +19312,17 @@
19311
19312
  }
19312
19313
  ]
19313
19314
  },
19315
+ {
19316
+ "name": "trackIndexedDBForStorageKey",
19317
+ "description": "Registers storage key to be notified when an update occurs to its IndexedDB.",
19318
+ "parameters": [
19319
+ {
19320
+ "name": "storageKey",
19321
+ "description": "Storage key.",
19322
+ "type": "string"
19323
+ }
19324
+ ]
19325
+ },
19314
19326
  {
19315
19327
  "name": "untrackCacheStorageForOrigin",
19316
19328
  "description": "Unregisters origin from receiving notifications for cache storage.",
@@ -19333,6 +19345,17 @@
19333
19345
  }
19334
19346
  ]
19335
19347
  },
19348
+ {
19349
+ "name": "untrackIndexedDBForStorageKey",
19350
+ "description": "Unregisters storage key from receiving notifications for IndexedDB.",
19351
+ "parameters": [
19352
+ {
19353
+ "name": "storageKey",
19354
+ "description": "Storage key.",
19355
+ "type": "string"
19356
+ }
19357
+ ]
19358
+ },
19336
19359
  {
19337
19360
  "name": "getTrustTokens",
19338
19361
  "description": "Returns the number of stored Trust Tokens per issuer for the\ncurrent browsing context.",
@@ -19435,6 +19458,11 @@
19435
19458
  "description": "Origin to update.",
19436
19459
  "type": "string"
19437
19460
  },
19461
+ {
19462
+ "name": "storageKey",
19463
+ "description": "Storage key to update.",
19464
+ "type": "string"
19465
+ },
19438
19466
  {
19439
19467
  "name": "databaseName",
19440
19468
  "description": "Database to update.",
@@ -19455,6 +19483,11 @@
19455
19483
  "name": "origin",
19456
19484
  "description": "Origin to update.",
19457
19485
  "type": "string"
19486
+ },
19487
+ {
19488
+ "name": "storageKey",
19489
+ "description": "Storage key to update.",
19490
+ "type": "string"
19458
19491
  }
19459
19492
  ]
19460
19493
  },
@@ -19841,6 +19874,35 @@
19841
19874
  }
19842
19875
  ]
19843
19876
  },
19877
+ {
19878
+ "id": "FilterEntry",
19879
+ "description": "A filter used by target query/discovery/auto-attach operations.",
19880
+ "experimental": true,
19881
+ "type": "object",
19882
+ "properties": [
19883
+ {
19884
+ "name": "exclude",
19885
+ "description": "If set, causes exclusion of mathcing targets from the list.",
19886
+ "optional": true,
19887
+ "type": "boolean"
19888
+ },
19889
+ {
19890
+ "name": "type",
19891
+ "description": "If not present, matches any type.",
19892
+ "optional": true,
19893
+ "type": "string"
19894
+ }
19895
+ ]
19896
+ },
19897
+ {
19898
+ "id": "TargetFilter",
19899
+ "description": "The entries in TargetFilter are matched sequentially against targets and\nthe first entry that matches determines if the target is included or not,\ndepending on the value of `exclude` field in the entry.\nIf filter is not specified, the one assumed is\n[{type: \"browser\", exclude: true}, {type: \"tab\", exclude: true}, {}]\n(i.e. include everything but `browser` and `tab`).",
19900
+ "experimental": true,
19901
+ "type": "array",
19902
+ "items": {
19903
+ "$ref": "FilterEntry"
19904
+ }
19905
+ },
19844
19906
  {
19845
19907
  "id": "RemoteLocation",
19846
19908
  "experimental": true,
@@ -20101,6 +20163,15 @@
20101
20163
  {
20102
20164
  "name": "getTargets",
20103
20165
  "description": "Retrieves a list of available targets.",
20166
+ "parameters": [
20167
+ {
20168
+ "name": "filter",
20169
+ "description": "Only targets matching filter will be reported. If filter is not specified\nand target discovery is currently enabled, a filter used for target discovery\nis used for consistency.",
20170
+ "experimental": true,
20171
+ "optional": true,
20172
+ "$ref": "TargetFilter"
20173
+ }
20174
+ ],
20104
20175
  "returns": [
20105
20176
  {
20106
20177
  "name": "targetInfos",
@@ -20156,6 +20227,13 @@
20156
20227
  "description": "Enables \"flat\" access to the session via specifying sessionId attribute in the commands.\nWe plan to make this the default, deprecate non-flattened mode,\nand eventually retire it. See crbug.com/991325.",
20157
20228
  "optional": true,
20158
20229
  "type": "boolean"
20230
+ },
20231
+ {
20232
+ "name": "filter",
20233
+ "description": "Only targets matching filter will be attached.",
20234
+ "experimental": true,
20235
+ "optional": true,
20236
+ "$ref": "TargetFilter"
20159
20237
  }
20160
20238
  ]
20161
20239
  },
@@ -20172,6 +20250,13 @@
20172
20250
  "name": "waitForDebuggerOnStart",
20173
20251
  "description": "Whether to pause new targets when attaching to them. Use `Runtime.runIfWaitingForDebugger`\nto run paused targets.",
20174
20252
  "type": "boolean"
20253
+ },
20254
+ {
20255
+ "name": "filter",
20256
+ "description": "Only targets matching filter will be attached.",
20257
+ "experimental": true,
20258
+ "optional": true,
20259
+ "$ref": "TargetFilter"
20175
20260
  }
20176
20261
  ]
20177
20262
  },
@@ -20183,6 +20268,13 @@
20183
20268
  "name": "discover",
20184
20269
  "description": "Whether to discover available targets.",
20185
20270
  "type": "boolean"
20271
+ },
20272
+ {
20273
+ "name": "filter",
20274
+ "description": "Only targets matching filter will be attached. If `discover` is false,\n`filter` must be omitted or empty.",
20275
+ "experimental": true,
20276
+ "optional": true,
20277
+ "$ref": "TargetFilter"
20186
20278
  }
20187
20279
  ]
20188
20280
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1029085",
3
+ "version": "0.0.1030398",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -705,6 +705,7 @@ experimental domain Audits
705
705
  InvalidHeader
706
706
  InvalidRegisterTriggerHeader
707
707
  InvalidEligibleHeader
708
+ TooManyConcurrentRequests
708
709
 
709
710
  # Details for issues around "Attribution Reporting API" usage.
710
711
  # Explainer: https://github.com/WICG/attribution-reporting-api
@@ -9091,6 +9092,12 @@ experimental domain Storage
9091
9092
  # Security origin.
9092
9093
  string origin
9093
9094
 
9095
+ # Registers storage key to be notified when an update occurs to its IndexedDB.
9096
+ command trackIndexedDBForStorageKey
9097
+ parameters
9098
+ # Storage key.
9099
+ string storageKey
9100
+
9094
9101
  # Unregisters origin from receiving notifications for cache storage.
9095
9102
  command untrackCacheStorageForOrigin
9096
9103
  parameters
@@ -9103,6 +9110,12 @@ experimental domain Storage
9103
9110
  # Security origin.
9104
9111
  string origin
9105
9112
 
9113
+ # Unregisters storage key from receiving notifications for IndexedDB.
9114
+ command untrackIndexedDBForStorageKey
9115
+ parameters
9116
+ # Storage key.
9117
+ string storageKey
9118
+
9106
9119
  # Returns the number of stored Trust Tokens per issuer for the
9107
9120
  # current browsing context.
9108
9121
  experimental command getTrustTokens
@@ -9150,6 +9163,8 @@ experimental domain Storage
9150
9163
  parameters
9151
9164
  # Origin to update.
9152
9165
  string origin
9166
+ # Storage key to update.
9167
+ string storageKey
9153
9168
  # Database to update.
9154
9169
  string databaseName
9155
9170
  # ObjectStore to update.
@@ -9160,6 +9175,8 @@ experimental domain Storage
9160
9175
  parameters
9161
9176
  # Origin to update.
9162
9177
  string origin
9178
+ # Storage key to update.
9179
+ string storageKey
9163
9180
 
9164
9181
  # One of the interest groups was accessed by the associated page.
9165
9182
  event interestGroupAccessed
@@ -9326,6 +9343,22 @@ domain Target
9326
9343
  experimental optional Page.FrameId openerFrameId
9327
9344
  experimental optional Browser.BrowserContextID browserContextId
9328
9345
 
9346
+ # A filter used by target query/discovery/auto-attach operations.
9347
+ experimental type FilterEntry extends object
9348
+ properties
9349
+ # If set, causes exclusion of mathcing targets from the list.
9350
+ optional boolean exclude
9351
+ # If not present, matches any type.
9352
+ optional string type
9353
+
9354
+ # The entries in TargetFilter are matched sequentially against targets and
9355
+ # the first entry that matches determines if the target is included or not,
9356
+ # depending on the value of `exclude` field in the entry.
9357
+ # If filter is not specified, the one assumed is
9358
+ # [{type: "browser", exclude: true}, {type: "tab", exclude: true}, {}]
9359
+ # (i.e. include everything but `browser` and `tab`).
9360
+ experimental type TargetFilter extends array of FilterEntry
9361
+
9329
9362
  experimental type RemoteLocation extends object
9330
9363
  properties
9331
9364
  string host
@@ -9389,7 +9422,6 @@ domain Target
9389
9422
  # An optional list of origins to grant unlimited cross-origin access to.
9390
9423
  # Parts of the URL other than those constituting origin are ignored.
9391
9424
  optional array of string originsWithUniversalNetworkAccess
9392
-
9393
9425
  returns
9394
9426
  # The id of the context created.
9395
9427
  Browser.BrowserContextID browserContextId
@@ -9446,6 +9478,11 @@ domain Target
9446
9478
 
9447
9479
  # Retrieves a list of available targets.
9448
9480
  command getTargets
9481
+ parameters
9482
+ # Only targets matching filter will be reported. If filter is not specified
9483
+ # and target discovery is currently enabled, a filter used for target discovery
9484
+ # is used for consistency.
9485
+ experimental optional TargetFilter filter
9449
9486
  returns
9450
9487
  # The list of targets.
9451
9488
  array of TargetInfo targetInfos
@@ -9477,6 +9514,8 @@ domain Target
9477
9514
  # We plan to make this the default, deprecate non-flattened mode,
9478
9515
  # and eventually retire it. See crbug.com/991325.
9479
9516
  optional boolean flatten
9517
+ # Only targets matching filter will be attached.
9518
+ experimental optional TargetFilter filter
9480
9519
 
9481
9520
  # Adds the specified target to the list of targets that will be monitored for any related target
9482
9521
  # creation (such as child frames, child workers and new versions of service worker) and reported
@@ -9489,6 +9528,8 @@ domain Target
9489
9528
  # Whether to pause new targets when attaching to them. Use `Runtime.runIfWaitingForDebugger`
9490
9529
  # to run paused targets.
9491
9530
  boolean waitForDebuggerOnStart
9531
+ # Only targets matching filter will be attached.
9532
+ experimental optional TargetFilter filter
9492
9533
 
9493
9534
  # Controls whether to discover available targets and notify via
9494
9535
  # `targetCreated/targetInfoChanged/targetDestroyed` events.
@@ -9496,6 +9537,9 @@ domain Target
9496
9537
  parameters
9497
9538
  # Whether to discover available targets.
9498
9539
  boolean discover
9540
+ # Only targets matching filter will be attached. If `discover` is false,
9541
+ # `filter` must be omitted or empty.
9542
+ experimental optional TargetFilter filter
9499
9543
 
9500
9544
  # Enables target discovery for the specified locations, when `setDiscoverTargets` was set to
9501
9545
  # `true`.
@@ -4052,6 +4052,13 @@ export namespace ProtocolMapping {
4052
4052
  paramsType: [Protocol.Storage.TrackIndexedDBForOriginRequest];
4053
4053
  returnType: void;
4054
4054
  };
4055
+ /**
4056
+ * Registers storage key to be notified when an update occurs to its IndexedDB.
4057
+ */
4058
+ 'Storage.trackIndexedDBForStorageKey': {
4059
+ paramsType: [Protocol.Storage.TrackIndexedDBForStorageKeyRequest];
4060
+ returnType: void;
4061
+ };
4055
4062
  /**
4056
4063
  * Unregisters origin from receiving notifications for cache storage.
4057
4064
  */
@@ -4066,6 +4073,13 @@ export namespace ProtocolMapping {
4066
4073
  paramsType: [Protocol.Storage.UntrackIndexedDBForOriginRequest];
4067
4074
  returnType: void;
4068
4075
  };
4076
+ /**
4077
+ * Unregisters storage key from receiving notifications for IndexedDB.
4078
+ */
4079
+ 'Storage.untrackIndexedDBForStorageKey': {
4080
+ paramsType: [Protocol.Storage.UntrackIndexedDBForStorageKeyRequest];
4081
+ returnType: void;
4082
+ };
4069
4083
  /**
4070
4084
  * Returns the number of stored Trust Tokens per issuer for the
4071
4085
  * current browsing context.
@@ -4200,7 +4214,7 @@ export namespace ProtocolMapping {
4200
4214
  * Retrieves a list of available targets.
4201
4215
  */
4202
4216
  'Target.getTargets': {
4203
- paramsType: [];
4217
+ paramsType: [Protocol.Target.GetTargetsRequest?];
4204
4218
  returnType: Protocol.Target.GetTargetsResponse;
4205
4219
  };
4206
4220
  /**
@@ -3284,6 +3284,11 @@ export namespace ProtocolProxyApi {
3284
3284
  */
3285
3285
  trackIndexedDBForOrigin(params: Protocol.Storage.TrackIndexedDBForOriginRequest): Promise<void>;
3286
3286
 
3287
+ /**
3288
+ * Registers storage key to be notified when an update occurs to its IndexedDB.
3289
+ */
3290
+ trackIndexedDBForStorageKey(params: Protocol.Storage.TrackIndexedDBForStorageKeyRequest): Promise<void>;
3291
+
3287
3292
  /**
3288
3293
  * Unregisters origin from receiving notifications for cache storage.
3289
3294
  */
@@ -3294,6 +3299,11 @@ export namespace ProtocolProxyApi {
3294
3299
  */
3295
3300
  untrackIndexedDBForOrigin(params: Protocol.Storage.UntrackIndexedDBForOriginRequest): Promise<void>;
3296
3301
 
3302
+ /**
3303
+ * Unregisters storage key from receiving notifications for IndexedDB.
3304
+ */
3305
+ untrackIndexedDBForStorageKey(params: Protocol.Storage.UntrackIndexedDBForStorageKeyRequest): Promise<void>;
3306
+
3297
3307
  /**
3298
3308
  * Returns the number of stored Trust Tokens per issuer for the
3299
3309
  * current browsing context.
@@ -3424,7 +3434,7 @@ export namespace ProtocolProxyApi {
3424
3434
  /**
3425
3435
  * Retrieves a list of available targets.
3426
3436
  */
3427
- getTargets(): Promise<Protocol.Target.GetTargetsResponse>;
3437
+ getTargets(params: Protocol.Target.GetTargetsRequest): Promise<Protocol.Target.GetTargetsResponse>;
3428
3438
 
3429
3439
  /**
3430
3440
  * Sends protocol message over session with given id.
@@ -3423,7 +3423,7 @@ export namespace Protocol {
3423
3423
  clientSecurityState?: Network.ClientSecurityState;
3424
3424
  }
3425
3425
 
3426
- export type AttributionReportingIssueType = ('PermissionPolicyDisabled' | 'UntrustworthyReportingOrigin' | 'InsecureContext' | 'InvalidHeader' | 'InvalidRegisterTriggerHeader' | 'InvalidEligibleHeader');
3426
+ export type AttributionReportingIssueType = ('PermissionPolicyDisabled' | 'UntrustworthyReportingOrigin' | 'InsecureContext' | 'InvalidHeader' | 'InvalidRegisterTriggerHeader' | 'InvalidEligibleHeader' | 'TooManyConcurrentRequests');
3427
3427
 
3428
3428
  /**
3429
3429
  * Details for issues around "Attribution Reporting API" usage.
@@ -14690,6 +14690,13 @@ export namespace Protocol {
14690
14690
  origin: string;
14691
14691
  }
14692
14692
 
14693
+ export interface TrackIndexedDBForStorageKeyRequest {
14694
+ /**
14695
+ * Storage key.
14696
+ */
14697
+ storageKey: string;
14698
+ }
14699
+
14693
14700
  export interface UntrackCacheStorageForOriginRequest {
14694
14701
  /**
14695
14702
  * Security origin.
@@ -14704,6 +14711,13 @@ export namespace Protocol {
14704
14711
  origin: string;
14705
14712
  }
14706
14713
 
14714
+ export interface UntrackIndexedDBForStorageKeyRequest {
14715
+ /**
14716
+ * Storage key.
14717
+ */
14718
+ storageKey: string;
14719
+ }
14720
+
14707
14721
  export interface GetTrustTokensResponse {
14708
14722
  tokens: TrustTokens[];
14709
14723
  }
@@ -14764,6 +14778,10 @@ export namespace Protocol {
14764
14778
  * Origin to update.
14765
14779
  */
14766
14780
  origin: string;
14781
+ /**
14782
+ * Storage key to update.
14783
+ */
14784
+ storageKey: string;
14767
14785
  /**
14768
14786
  * Database to update.
14769
14787
  */
@@ -14782,6 +14800,10 @@ export namespace Protocol {
14782
14800
  * Origin to update.
14783
14801
  */
14784
14802
  origin: string;
14803
+ /**
14804
+ * Storage key to update.
14805
+ */
14806
+ storageKey: string;
14785
14807
  }
14786
14808
 
14787
14809
  /**
@@ -15045,6 +15067,30 @@ export namespace Protocol {
15045
15067
  browserContextId?: Browser.BrowserContextID;
15046
15068
  }
15047
15069
 
15070
+ /**
15071
+ * A filter used by target query/discovery/auto-attach operations.
15072
+ */
15073
+ export interface FilterEntry {
15074
+ /**
15075
+ * If set, causes exclusion of mathcing targets from the list.
15076
+ */
15077
+ exclude?: boolean;
15078
+ /**
15079
+ * If not present, matches any type.
15080
+ */
15081
+ type?: string;
15082
+ }
15083
+
15084
+ /**
15085
+ * The entries in TargetFilter are matched sequentially against targets and
15086
+ * the first entry that matches determines if the target is included or not,
15087
+ * depending on the value of `exclude` field in the entry.
15088
+ * If filter is not specified, the one assumed is
15089
+ * [{type: "browser", exclude: true}, {type: "tab", exclude: true}, {}]
15090
+ * (i.e. include everything but `browser` and `tab`).
15091
+ */
15092
+ export type TargetFilter = FilterEntry[];
15093
+
15048
15094
  export interface RemoteLocation {
15049
15095
  host: string;
15050
15096
  port: integer;
@@ -15194,6 +15240,15 @@ export namespace Protocol {
15194
15240
  targetInfo: TargetInfo;
15195
15241
  }
15196
15242
 
15243
+ export interface GetTargetsRequest {
15244
+ /**
15245
+ * Only targets matching filter will be reported. If filter is not specified
15246
+ * and target discovery is currently enabled, a filter used for target discovery
15247
+ * is used for consistency.
15248
+ */
15249
+ filter?: TargetFilter;
15250
+ }
15251
+
15197
15252
  export interface GetTargetsResponse {
15198
15253
  /**
15199
15254
  * The list of targets.
@@ -15229,6 +15284,10 @@ export namespace Protocol {
15229
15284
  * and eventually retire it. See crbug.com/991325.
15230
15285
  */
15231
15286
  flatten?: boolean;
15287
+ /**
15288
+ * Only targets matching filter will be attached.
15289
+ */
15290
+ filter?: TargetFilter;
15232
15291
  }
15233
15292
 
15234
15293
  export interface AutoAttachRelatedRequest {
@@ -15238,6 +15297,10 @@ export namespace Protocol {
15238
15297
  * to run paused targets.
15239
15298
  */
15240
15299
  waitForDebuggerOnStart: boolean;
15300
+ /**
15301
+ * Only targets matching filter will be attached.
15302
+ */
15303
+ filter?: TargetFilter;
15241
15304
  }
15242
15305
 
15243
15306
  export interface SetDiscoverTargetsRequest {
@@ -15245,6 +15308,11 @@ export namespace Protocol {
15245
15308
  * Whether to discover available targets.
15246
15309
  */
15247
15310
  discover: boolean;
15311
+ /**
15312
+ * Only targets matching filter will be attached. If `discover` is false,
15313
+ * `filter` must be omitted or empty.
15314
+ */
15315
+ filter?: TargetFilter;
15248
15316
  }
15249
15317
 
15250
15318
  export interface SetRemoteLocationsRequest {