devtools-protocol 0.0.1059094 → 0.0.1060866

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.
@@ -16641,6 +16641,24 @@
16641
16641
  }
16642
16642
  ]
16643
16643
  },
16644
+ {
16645
+ "name": "getAdScriptId",
16646
+ "experimental": true,
16647
+ "parameters": [
16648
+ {
16649
+ "name": "frameId",
16650
+ "$ref": "FrameId"
16651
+ }
16652
+ ],
16653
+ "returns": [
16654
+ {
16655
+ "name": "adScriptId",
16656
+ "description": "Identifies the bottom-most script which caused the frame to be labelled\nas an ad. Only sent if frame is labelled as an ad and id is available.",
16657
+ "optional": true,
16658
+ "$ref": "AdScriptId"
16659
+ }
16660
+ ]
16661
+ },
16644
16662
  {
16645
16663
  "name": "getCookies",
16646
16664
  "description": "Returns all browser cookies for the page and all of its subframes. Depending\non the backend support, will return detailed cookie information in the\n`cookies` field.",
@@ -17585,13 +17603,6 @@
17585
17603
  "description": "JavaScript stack trace of when frame was attached, only set if frame initiated from script.",
17586
17604
  "optional": true,
17587
17605
  "$ref": "Runtime.StackTrace"
17588
- },
17589
- {
17590
- "name": "adScriptId",
17591
- "description": "Identifies the bottom-most script which caused the frame to be labelled\nas an ad. Only sent if frame is labelled as an ad and id is available.",
17592
- "experimental": true,
17593
- "optional": true,
17594
- "$ref": "AdScriptId"
17595
17606
  }
17596
17607
  ]
17597
17608
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1059094",
3
+ "version": "0.0.1060866",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -7682,6 +7682,14 @@ domain Page
7682
7682
  # Recommendation for manifest's id attribute to match current id computed from start_url
7683
7683
  optional string recommendedId
7684
7684
 
7685
+ experimental command getAdScriptId
7686
+ parameters
7687
+ FrameId frameId
7688
+ returns
7689
+ # Identifies the bottom-most script which caused the frame to be labelled
7690
+ # as an ad. Only sent if frame is labelled as an ad and id is available.
7691
+ optional AdScriptId adScriptId
7692
+
7685
7693
  # Returns all browser cookies for the page and all of its subframes. Depending
7686
7694
  # on the backend support, will return detailed cookie information in the
7687
7695
  # `cookies` field.
@@ -8127,9 +8135,6 @@ domain Page
8127
8135
  FrameId parentFrameId
8128
8136
  # JavaScript stack trace of when frame was attached, only set if frame initiated from script.
8129
8137
  optional Runtime.StackTrace stack
8130
- # Identifies the bottom-most script which caused the frame to be labelled
8131
- # as an ad. Only sent if frame is labelled as an ad and id is available.
8132
- experimental optional AdScriptId adScriptId
8133
8138
 
8134
8139
  # Fired when frame no longer has a scheduled navigation.
8135
8140
  deprecated event frameClearedScheduledNavigation
@@ -3526,6 +3526,10 @@ export namespace ProtocolMapping {
3526
3526
  paramsType: [];
3527
3527
  returnType: Protocol.Page.GetAppIdResponse;
3528
3528
  };
3529
+ 'Page.getAdScriptId': {
3530
+ paramsType: [Protocol.Page.GetAdScriptIdRequest];
3531
+ returnType: Protocol.Page.GetAdScriptIdResponse;
3532
+ };
3529
3533
  /**
3530
3534
  * Returns all browser cookies for the page and all of its subframes. Depending
3531
3535
  * on the backend support, will return detailed cookie information in the
@@ -2729,6 +2729,8 @@ export namespace ProtocolProxyApi {
2729
2729
  */
2730
2730
  getAppId(): Promise<Protocol.Page.GetAppIdResponse>;
2731
2731
 
2732
+ getAdScriptId(params: Protocol.Page.GetAdScriptIdRequest): Promise<Protocol.Page.GetAdScriptIdResponse>;
2733
+
2732
2734
  /**
2733
2735
  * Returns all browser cookies for the page and all of its subframes. Depending
2734
2736
  * on the backend support, will return detailed cookie information in the
@@ -12992,6 +12992,18 @@ export namespace Protocol {
12992
12992
  recommendedId?: string;
12993
12993
  }
12994
12994
 
12995
+ export interface GetAdScriptIdRequest {
12996
+ frameId: FrameId;
12997
+ }
12998
+
12999
+ export interface GetAdScriptIdResponse {
13000
+ /**
13001
+ * Identifies the bottom-most script which caused the frame to be labelled
13002
+ * as an ad. Only sent if frame is labelled as an ad and id is available.
13003
+ */
13004
+ adScriptId?: AdScriptId;
13005
+ }
13006
+
12995
13007
  export interface GetCookiesResponse {
12996
13008
  /**
12997
13009
  * Array of cookie objects.
@@ -13588,11 +13600,6 @@ export namespace Protocol {
13588
13600
  * JavaScript stack trace of when frame was attached, only set if frame initiated from script.
13589
13601
  */
13590
13602
  stack?: Runtime.StackTrace;
13591
- /**
13592
- * Identifies the bottom-most script which caused the frame to be labelled
13593
- * as an ad. Only sent if frame is labelled as an ad and id is available.
13594
- */
13595
- adScriptId?: AdScriptId;
13596
13603
  }
13597
13604
 
13598
13605
  /**