devtools-protocol 0.0.1029085 → 0.0.1029622

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.
@@ -19841,6 +19841,35 @@
19841
19841
  }
19842
19842
  ]
19843
19843
  },
19844
+ {
19845
+ "id": "FilterEntry",
19846
+ "description": "A filter used by target query/discovery/auto-attach operations.",
19847
+ "experimental": true,
19848
+ "type": "object",
19849
+ "properties": [
19850
+ {
19851
+ "name": "exclude",
19852
+ "description": "If set, causes exclusion of mathcing targets from the list.\nThe remainder of filter entries in the filter arrat are ignored.",
19853
+ "optional": true,
19854
+ "type": "boolean"
19855
+ },
19856
+ {
19857
+ "name": "type",
19858
+ "description": "If not present, matches any type.",
19859
+ "optional": true,
19860
+ "type": "string"
19861
+ }
19862
+ ]
19863
+ },
19864
+ {
19865
+ "id": "TargetFilter",
19866
+ "description": "If filter is not specified, the one assumed is [{type: \"browser\", exclude: true}, {}]\n(i.e. include everything but browser).",
19867
+ "experimental": true,
19868
+ "type": "array",
19869
+ "items": {
19870
+ "$ref": "FilterEntry"
19871
+ }
19872
+ },
19844
19873
  {
19845
19874
  "id": "RemoteLocation",
19846
19875
  "experimental": true,
@@ -20101,6 +20130,15 @@
20101
20130
  {
20102
20131
  "name": "getTargets",
20103
20132
  "description": "Retrieves a list of available targets.",
20133
+ "parameters": [
20134
+ {
20135
+ "name": "filter",
20136
+ "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.",
20137
+ "experimental": true,
20138
+ "optional": true,
20139
+ "$ref": "TargetFilter"
20140
+ }
20141
+ ],
20104
20142
  "returns": [
20105
20143
  {
20106
20144
  "name": "targetInfos",
@@ -20156,6 +20194,13 @@
20156
20194
  "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
20195
  "optional": true,
20158
20196
  "type": "boolean"
20197
+ },
20198
+ {
20199
+ "name": "filter",
20200
+ "description": "Only targets matching filter will be attached.",
20201
+ "experimental": true,
20202
+ "optional": true,
20203
+ "$ref": "TargetFilter"
20159
20204
  }
20160
20205
  ]
20161
20206
  },
@@ -20172,6 +20217,13 @@
20172
20217
  "name": "waitForDebuggerOnStart",
20173
20218
  "description": "Whether to pause new targets when attaching to them. Use `Runtime.runIfWaitingForDebugger`\nto run paused targets.",
20174
20219
  "type": "boolean"
20220
+ },
20221
+ {
20222
+ "name": "filter",
20223
+ "description": "Only targets matching filter will be attached.",
20224
+ "experimental": true,
20225
+ "optional": true,
20226
+ "$ref": "TargetFilter"
20175
20227
  }
20176
20228
  ]
20177
20229
  },
@@ -20183,6 +20235,13 @@
20183
20235
  "name": "discover",
20184
20236
  "description": "Whether to discover available targets.",
20185
20237
  "type": "boolean"
20238
+ },
20239
+ {
20240
+ "name": "filter",
20241
+ "description": "Only targets matching filter will be attached. If `discover` is false,\n`filter` must be omitted or empty.",
20242
+ "experimental": true,
20243
+ "optional": true,
20244
+ "$ref": "TargetFilter"
20186
20245
  }
20187
20246
  ]
20188
20247
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1029085",
3
+ "version": "0.0.1029622",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -9326,6 +9326,19 @@ domain Target
9326
9326
  experimental optional Page.FrameId openerFrameId
9327
9327
  experimental optional Browser.BrowserContextID browserContextId
9328
9328
 
9329
+ # A filter used by target query/discovery/auto-attach operations.
9330
+ experimental type FilterEntry extends object
9331
+ properties
9332
+ # If set, causes exclusion of mathcing targets from the list.
9333
+ # The remainder of filter entries in the filter arrat are ignored.
9334
+ optional boolean exclude
9335
+ # If not present, matches any type.
9336
+ optional string type
9337
+
9338
+ # If filter is not specified, the one assumed is [{type: "browser", exclude: true}, {}]
9339
+ # (i.e. include everything but browser).
9340
+ experimental type TargetFilter extends array of FilterEntry
9341
+
9329
9342
  experimental type RemoteLocation extends object
9330
9343
  properties
9331
9344
  string host
@@ -9389,7 +9402,6 @@ domain Target
9389
9402
  # An optional list of origins to grant unlimited cross-origin access to.
9390
9403
  # Parts of the URL other than those constituting origin are ignored.
9391
9404
  optional array of string originsWithUniversalNetworkAccess
9392
-
9393
9405
  returns
9394
9406
  # The id of the context created.
9395
9407
  Browser.BrowserContextID browserContextId
@@ -9446,6 +9458,11 @@ domain Target
9446
9458
 
9447
9459
  # Retrieves a list of available targets.
9448
9460
  command getTargets
9461
+ parameters
9462
+ # Only targets matching filter will be reported. If filter is not specified
9463
+ # and target discovery is currently enabled, a filter used for target discovery
9464
+ # is used for consistency.
9465
+ experimental optional TargetFilter filter
9449
9466
  returns
9450
9467
  # The list of targets.
9451
9468
  array of TargetInfo targetInfos
@@ -9477,6 +9494,8 @@ domain Target
9477
9494
  # We plan to make this the default, deprecate non-flattened mode,
9478
9495
  # and eventually retire it. See crbug.com/991325.
9479
9496
  optional boolean flatten
9497
+ # Only targets matching filter will be attached.
9498
+ experimental optional TargetFilter filter
9480
9499
 
9481
9500
  # Adds the specified target to the list of targets that will be monitored for any related target
9482
9501
  # creation (such as child frames, child workers and new versions of service worker) and reported
@@ -9489,6 +9508,8 @@ domain Target
9489
9508
  # Whether to pause new targets when attaching to them. Use `Runtime.runIfWaitingForDebugger`
9490
9509
  # to run paused targets.
9491
9510
  boolean waitForDebuggerOnStart
9511
+ # Only targets matching filter will be attached.
9512
+ experimental optional TargetFilter filter
9492
9513
 
9493
9514
  # Controls whether to discover available targets and notify via
9494
9515
  # `targetCreated/targetInfoChanged/targetDestroyed` events.
@@ -9496,6 +9517,9 @@ domain Target
9496
9517
  parameters
9497
9518
  # Whether to discover available targets.
9498
9519
  boolean discover
9520
+ # Only targets matching filter will be attached. If `discover` is false,
9521
+ # `filter` must be omitted or empty.
9522
+ experimental optional TargetFilter filter
9499
9523
 
9500
9524
  # Enables target discovery for the specified locations, when `setDiscoverTargets` was set to
9501
9525
  # `true`.
@@ -4200,7 +4200,7 @@ export namespace ProtocolMapping {
4200
4200
  * Retrieves a list of available targets.
4201
4201
  */
4202
4202
  'Target.getTargets': {
4203
- paramsType: [];
4203
+ paramsType: [Protocol.Target.GetTargetsRequest?];
4204
4204
  returnType: Protocol.Target.GetTargetsResponse;
4205
4205
  };
4206
4206
  /**
@@ -3424,7 +3424,7 @@ export namespace ProtocolProxyApi {
3424
3424
  /**
3425
3425
  * Retrieves a list of available targets.
3426
3426
  */
3427
- getTargets(): Promise<Protocol.Target.GetTargetsResponse>;
3427
+ getTargets(params: Protocol.Target.GetTargetsRequest): Promise<Protocol.Target.GetTargetsResponse>;
3428
3428
 
3429
3429
  /**
3430
3430
  * Sends protocol message over session with given id.
@@ -15045,6 +15045,27 @@ export namespace Protocol {
15045
15045
  browserContextId?: Browser.BrowserContextID;
15046
15046
  }
15047
15047
 
15048
+ /**
15049
+ * A filter used by target query/discovery/auto-attach operations.
15050
+ */
15051
+ export interface FilterEntry {
15052
+ /**
15053
+ * If set, causes exclusion of mathcing targets from the list.
15054
+ * The remainder of filter entries in the filter arrat are ignored.
15055
+ */
15056
+ exclude?: boolean;
15057
+ /**
15058
+ * If not present, matches any type.
15059
+ */
15060
+ type?: string;
15061
+ }
15062
+
15063
+ /**
15064
+ * If filter is not specified, the one assumed is [{type: "browser", exclude: true}, {}]
15065
+ * (i.e. include everything but browser).
15066
+ */
15067
+ export type TargetFilter = FilterEntry[];
15068
+
15048
15069
  export interface RemoteLocation {
15049
15070
  host: string;
15050
15071
  port: integer;
@@ -15194,6 +15215,15 @@ export namespace Protocol {
15194
15215
  targetInfo: TargetInfo;
15195
15216
  }
15196
15217
 
15218
+ export interface GetTargetsRequest {
15219
+ /**
15220
+ * Only targets matching filter will be reported. If filter is not specified
15221
+ * and target discovery is currently enabled, a filter used for target discovery
15222
+ * is used for consistency.
15223
+ */
15224
+ filter?: TargetFilter;
15225
+ }
15226
+
15197
15227
  export interface GetTargetsResponse {
15198
15228
  /**
15199
15229
  * The list of targets.
@@ -15229,6 +15259,10 @@ export namespace Protocol {
15229
15259
  * and eventually retire it. See crbug.com/991325.
15230
15260
  */
15231
15261
  flatten?: boolean;
15262
+ /**
15263
+ * Only targets matching filter will be attached.
15264
+ */
15265
+ filter?: TargetFilter;
15232
15266
  }
15233
15267
 
15234
15268
  export interface AutoAttachRelatedRequest {
@@ -15238,6 +15272,10 @@ export namespace Protocol {
15238
15272
  * to run paused targets.
15239
15273
  */
15240
15274
  waitForDebuggerOnStart: boolean;
15275
+ /**
15276
+ * Only targets matching filter will be attached.
15277
+ */
15278
+ filter?: TargetFilter;
15241
15279
  }
15242
15280
 
15243
15281
  export interface SetDiscoverTargetsRequest {
@@ -15245,6 +15283,11 @@ export namespace Protocol {
15245
15283
  * Whether to discover available targets.
15246
15284
  */
15247
15285
  discover: boolean;
15286
+ /**
15287
+ * Only targets matching filter will be attached. If `discover` is false,
15288
+ * `filter` must be omitted or empty.
15289
+ */
15290
+ filter?: TargetFilter;
15248
15291
  }
15249
15292
 
15250
15293
  export interface SetRemoteLocationsRequest {