devtools-protocol 0.0.1638241 → 0.0.1639953

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.
@@ -598,6 +598,67 @@
598
598
  }
599
599
  ]
600
600
  },
601
+ {
602
+ "domain": "Ads",
603
+ "description": "A domain for ad-related metrics and data.",
604
+ "experimental": true,
605
+ "dependencies": [
606
+ "Network",
607
+ "Page",
608
+ "Runtime"
609
+ ],
610
+ "types": [
611
+ {
612
+ "id": "AdMetrics",
613
+ "description": "Ad metrics for a page.",
614
+ "type": "object",
615
+ "properties": [
616
+ {
617
+ "name": "viewportAdDensityByArea",
618
+ "description": "The viewport ad density by area, represented as a percentage (an integer\nbetween 0 and 100).",
619
+ "type": "integer"
620
+ },
621
+ {
622
+ "name": "averageViewportAdDensityByArea",
623
+ "description": "The time-weighted average of the viewport ad density by area, measured\nacross the duration of the page.",
624
+ "type": "number"
625
+ },
626
+ {
627
+ "name": "viewportAdCount",
628
+ "description": "The number of ads currently visible within the viewport.",
629
+ "type": "integer"
630
+ },
631
+ {
632
+ "name": "averageViewportAdCount",
633
+ "description": "The time-weighted average of the viewport ad count, measured across the\nduration of the page.",
634
+ "type": "number"
635
+ },
636
+ {
637
+ "name": "totalAdCpuTime",
638
+ "description": "The total ad CPU usage, in milliseconds.",
639
+ "type": "number"
640
+ },
641
+ {
642
+ "name": "totalAdNetworkBytes",
643
+ "description": "The total ad network bytes.",
644
+ "type": "number"
645
+ }
646
+ ]
647
+ }
648
+ ],
649
+ "commands": [
650
+ {
651
+ "name": "getAdMetrics",
652
+ "description": "Retrieves ad metrics for the current page.",
653
+ "returns": [
654
+ {
655
+ "name": "metrics",
656
+ "$ref": "AdMetrics"
657
+ }
658
+ ]
659
+ }
660
+ ]
661
+ },
601
662
  {
602
663
  "domain": "Animation",
603
664
  "experimental": true,
@@ -2008,7 +2069,41 @@
2008
2069
  "RpOriginIsOpaque",
2009
2070
  "WellKnownMissingAccountsEndpoint",
2010
2071
  "UserLoggedOut",
2011
- "WellKnownAccountsEndpointCrossOrigin"
2072
+ "WellKnownAccountsEndpointCrossOrigin",
2073
+ "AccountsHttpNotFound",
2074
+ "AccountsNoResponse",
2075
+ "AccountsInvalidResponse",
2076
+ "AccountsInvalidContentType",
2077
+ "AccountsEmptyList",
2078
+ "EmailVerificationWellKnownHttpNotFound",
2079
+ "EmailVerificationWellKnownNoResponse",
2080
+ "EmailVerificationWellKnownInvalidResponse",
2081
+ "EmailVerificationWellKnownInvalidContentType",
2082
+ "JwksHttpNotFound",
2083
+ "JwksInvalidResponse",
2084
+ "TokenVerificationSdJwtUnsupportedHeaderAlg",
2085
+ "TokenVerificationSdJwtMissingIss",
2086
+ "TokenVerificationSdJwtMissingIat",
2087
+ "TokenVerificationSdJwtMissingCnf",
2088
+ "TokenVerificationSdJwtMissingEmail",
2089
+ "TokenVerificationSdJwtInvalidIssuedAt",
2090
+ "TokenVerificationSdJwtInvalidIssuer",
2091
+ "TokenVerificationSdJwtJwksMissingKeys",
2092
+ "TokenVerificationSdJwtSignatureFailed",
2093
+ "TokenVerificationSdJwtInvalidEmailVerified",
2094
+ "TokenVerificationSdJwtInvalidEmail",
2095
+ "TokenVerificationSdJwtInvalidHolderKey",
2096
+ "TokenVerificationKbInvalidTyp",
2097
+ "TokenVerificationKbMissingAud",
2098
+ "TokenVerificationKbMissingNonce",
2099
+ "TokenVerificationKbMissingIat",
2100
+ "TokenVerificationKbMissingSdHash",
2101
+ "TokenVerificationKbInvalidIssuedAt",
2102
+ "TokenVerificationKbInvalidAudience",
2103
+ "TokenVerificationKbInvalidNonce",
2104
+ "TokenVerificationKbInvalidSdHash",
2105
+ "TokenVerificationKbMissingCnf",
2106
+ "TokenVerificationKbSignatureFailed"
2012
2107
  ]
2013
2108
  },
2014
2109
  {
@@ -25625,7 +25720,8 @@
25625
25720
  "PrefetchProxyNotAvailable",
25626
25721
  "PrefetchResponseUsed",
25627
25722
  "PrefetchSuccessfulButNotUsed",
25628
- "PrefetchNotUsedProbeFailed"
25723
+ "PrefetchNotUsedProbeFailed",
25724
+ "PrefetchCancelledOnUserNavigation"
25629
25725
  ]
25630
25726
  },
25631
25727
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1638241",
3
+ "version": "0.0.1639953",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -9,6 +9,7 @@ version
9
9
  minor 3
10
10
 
11
11
  include domains/Accessibility.pdl
12
+ include domains/Ads.pdl
12
13
  include domains/Animation.pdl
13
14
  include domains/Audits.pdl
14
15
  include domains/Autofill.pdl
@@ -0,0 +1,33 @@
1
+ # Copyright 2026 The Chromium Authors
2
+ # Use of this source code is governed by a BSD-style license that can be
3
+ # found in the LICENSE file.
4
+
5
+ # A domain for ad-related metrics and data.
6
+ experimental domain Ads
7
+ depends on Network
8
+ depends on Page
9
+ depends on Runtime
10
+
11
+ # Ad metrics for a page.
12
+ type AdMetrics extends object
13
+ properties
14
+ # The viewport ad density by area, represented as a percentage (an integer
15
+ # between 0 and 100).
16
+ integer viewportAdDensityByArea
17
+ # The time-weighted average of the viewport ad density by area, measured
18
+ # across the duration of the page.
19
+ number averageViewportAdDensityByArea
20
+ # The number of ads currently visible within the viewport.
21
+ integer viewportAdCount
22
+ # The time-weighted average of the viewport ad count, measured across the
23
+ # duration of the page.
24
+ number averageViewportAdCount
25
+ # The total ad CPU usage, in milliseconds.
26
+ number totalAdCpuTime
27
+ # The total ad network bytes.
28
+ number totalAdNetworkBytes
29
+
30
+ # Retrieves ad metrics for the current page.
31
+ command getAdMetrics
32
+ returns
33
+ AdMetrics metrics
@@ -592,6 +592,40 @@ experimental domain Audits
592
592
  WellKnownMissingAccountsEndpoint
593
593
  UserLoggedOut
594
594
  WellKnownAccountsEndpointCrossOrigin
595
+ AccountsHttpNotFound
596
+ AccountsNoResponse
597
+ AccountsInvalidResponse
598
+ AccountsInvalidContentType
599
+ AccountsEmptyList
600
+ EmailVerificationWellKnownHttpNotFound
601
+ EmailVerificationWellKnownNoResponse
602
+ EmailVerificationWellKnownInvalidResponse
603
+ EmailVerificationWellKnownInvalidContentType
604
+ JwksHttpNotFound
605
+ JwksInvalidResponse
606
+ TokenVerificationSdJwtUnsupportedHeaderAlg
607
+ TokenVerificationSdJwtMissingIss
608
+ TokenVerificationSdJwtMissingIat
609
+ TokenVerificationSdJwtMissingCnf
610
+ TokenVerificationSdJwtMissingEmail
611
+ TokenVerificationSdJwtInvalidIssuedAt
612
+ TokenVerificationSdJwtInvalidIssuer
613
+ TokenVerificationSdJwtJwksMissingKeys
614
+ TokenVerificationSdJwtSignatureFailed
615
+ TokenVerificationSdJwtInvalidEmailVerified
616
+ TokenVerificationSdJwtInvalidEmail
617
+ TokenVerificationSdJwtInvalidHolderKey
618
+ TokenVerificationKbInvalidTyp
619
+ TokenVerificationKbMissingAud
620
+ TokenVerificationKbMissingNonce
621
+ TokenVerificationKbMissingIat
622
+ TokenVerificationKbMissingSdHash
623
+ TokenVerificationKbInvalidIssuedAt
624
+ TokenVerificationKbInvalidAudience
625
+ TokenVerificationKbInvalidNonce
626
+ TokenVerificationKbInvalidSdHash
627
+ TokenVerificationKbMissingCnf
628
+ TokenVerificationKbSignatureFailed
595
629
 
596
630
  # This issue tracks client hints related issues. It's used to deprecate old
597
631
  # features, encourage the use of new ones, and provide general guidance.
@@ -258,6 +258,7 @@ experimental domain Preload
258
258
  # The prefetch finished successfully but was never used.
259
259
  PrefetchSuccessfulButNotUsed
260
260
  PrefetchNotUsedProbeFailed
261
+ PrefetchCancelledOnUserNavigation
261
262
 
262
263
  # Fired when a prefetch attempt is updated.
263
264
  event prefetchStatusUpdated
@@ -1779,6 +1779,13 @@ export namespace ProtocolMapping {
1779
1779
  paramsType: [Protocol.Accessibility.QueryAXTreeRequest?];
1780
1780
  returnType: Protocol.Accessibility.QueryAXTreeResponse;
1781
1781
  };
1782
+ /**
1783
+ * Retrieves ad metrics for the current page.
1784
+ */
1785
+ 'Ads.getAdMetrics': {
1786
+ paramsType: [];
1787
+ returnType: Protocol.Ads.GetAdMetricsResponse;
1788
+ };
1782
1789
  /**
1783
1790
  * Disables animation domain notifications.
1784
1791
  */
@@ -28,6 +28,8 @@ export namespace ProtocolProxyApi {
28
28
 
29
29
  Accessibility: AccessibilityApi;
30
30
 
31
+ Ads: AdsApi;
32
+
31
33
  Animation: AnimationApi;
32
34
 
33
35
  Audits: AuditsApi;
@@ -756,6 +758,14 @@ export namespace ProtocolProxyApi {
756
758
 
757
759
  }
758
760
 
761
+ export interface AdsApi {
762
+ /**
763
+ * Retrieves ad metrics for the current page.
764
+ */
765
+ getAdMetrics(): Promise<Protocol.Ads.GetAdMetricsResponse>;
766
+
767
+ }
768
+
759
769
  export interface AnimationApi {
760
770
  /**
761
771
  * Disables animation domain notifications.
@@ -28,6 +28,8 @@ export namespace ProtocolTestsProxyApi {
28
28
 
29
29
  Accessibility: AccessibilityApi;
30
30
 
31
+ Ads: AdsApi;
32
+
31
33
  Animation: AnimationApi;
32
34
 
33
35
  Audits: AuditsApi;
@@ -804,6 +806,14 @@ export namespace ProtocolTestsProxyApi {
804
806
 
805
807
  }
806
808
 
809
+ export interface AdsApi {
810
+ /**
811
+ * Retrieves ad metrics for the current page.
812
+ */
813
+ getAdMetrics(): Promise<{id: number, result: Protocol.Ads.GetAdMetricsResponse, sessionId: string}>;
814
+
815
+ }
816
+
807
817
  export interface AnimationApi {
808
818
  /**
809
819
  * Disables animation domain notifications.
@@ -3118,6 +3118,50 @@ export namespace Protocol {
3118
3118
  }
3119
3119
  }
3120
3120
 
3121
+ /**
3122
+ * A domain for ad-related metrics and data.
3123
+ * @experimental
3124
+ */
3125
+ export namespace Ads {
3126
+
3127
+ /**
3128
+ * Ad metrics for a page.
3129
+ */
3130
+ export interface AdMetrics {
3131
+ /**
3132
+ * The viewport ad density by area, represented as a percentage (an integer
3133
+ * between 0 and 100).
3134
+ */
3135
+ viewportAdDensityByArea: integer;
3136
+ /**
3137
+ * The time-weighted average of the viewport ad density by area, measured
3138
+ * across the duration of the page.
3139
+ */
3140
+ averageViewportAdDensityByArea: number;
3141
+ /**
3142
+ * The number of ads currently visible within the viewport.
3143
+ */
3144
+ viewportAdCount: integer;
3145
+ /**
3146
+ * The time-weighted average of the viewport ad count, measured across the
3147
+ * duration of the page.
3148
+ */
3149
+ averageViewportAdCount: number;
3150
+ /**
3151
+ * The total ad CPU usage, in milliseconds.
3152
+ */
3153
+ totalAdCpuTime: number;
3154
+ /**
3155
+ * The total ad network bytes.
3156
+ */
3157
+ totalAdNetworkBytes: number;
3158
+ }
3159
+
3160
+ export interface GetAdMetricsResponse {
3161
+ metrics: AdMetrics;
3162
+ }
3163
+ }
3164
+
3121
3165
  /**
3122
3166
  * @experimental
3123
3167
  */
@@ -3793,7 +3837,7 @@ export namespace Protocol {
3793
3837
  * Should be updated alongside EmailVerificationRequestResult in
3794
3838
  * third_party/blink/public/mojom/devtools/inspector_issue.mojom.
3795
3839
  */
3796
- export type EmailVerificationRequestIssueReason = ('InvalidEmail' | 'DnsFetchFailed' | 'DnsInvalidRecord' | 'WellKnownHttpNotFound' | 'WellKnownNoResponse' | 'WellKnownInvalidResponse' | 'WellKnownListEmpty' | 'WellKnownInvalidContentType' | 'WellKnownMissingIssuanceEndpoint' | 'WellKnownIssuanceEndpointCrossOrigin' | 'WellKnownUnsupportedSigningAlgorithm' | 'TokenHttpNotFound' | 'TokenNoResponse' | 'TokenInvalidResponse' | 'TokenInvalidContentType' | 'TokenMalformedSdJwt' | 'TokenInvalidSdJwt' | 'KeyBindingSigningFailed' | 'RpOriginIsOpaque' | 'WellKnownMissingAccountsEndpoint' | 'UserLoggedOut' | 'WellKnownAccountsEndpointCrossOrigin');
3840
+ export type EmailVerificationRequestIssueReason = ('InvalidEmail' | 'DnsFetchFailed' | 'DnsInvalidRecord' | 'WellKnownHttpNotFound' | 'WellKnownNoResponse' | 'WellKnownInvalidResponse' | 'WellKnownListEmpty' | 'WellKnownInvalidContentType' | 'WellKnownMissingIssuanceEndpoint' | 'WellKnownIssuanceEndpointCrossOrigin' | 'WellKnownUnsupportedSigningAlgorithm' | 'TokenHttpNotFound' | 'TokenNoResponse' | 'TokenInvalidResponse' | 'TokenInvalidContentType' | 'TokenMalformedSdJwt' | 'TokenInvalidSdJwt' | 'KeyBindingSigningFailed' | 'RpOriginIsOpaque' | 'WellKnownMissingAccountsEndpoint' | 'UserLoggedOut' | 'WellKnownAccountsEndpointCrossOrigin' | 'AccountsHttpNotFound' | 'AccountsNoResponse' | 'AccountsInvalidResponse' | 'AccountsInvalidContentType' | 'AccountsEmptyList' | 'EmailVerificationWellKnownHttpNotFound' | 'EmailVerificationWellKnownNoResponse' | 'EmailVerificationWellKnownInvalidResponse' | 'EmailVerificationWellKnownInvalidContentType' | 'JwksHttpNotFound' | 'JwksInvalidResponse' | 'TokenVerificationSdJwtUnsupportedHeaderAlg' | 'TokenVerificationSdJwtMissingIss' | 'TokenVerificationSdJwtMissingIat' | 'TokenVerificationSdJwtMissingCnf' | 'TokenVerificationSdJwtMissingEmail' | 'TokenVerificationSdJwtInvalidIssuedAt' | 'TokenVerificationSdJwtInvalidIssuer' | 'TokenVerificationSdJwtJwksMissingKeys' | 'TokenVerificationSdJwtSignatureFailed' | 'TokenVerificationSdJwtInvalidEmailVerified' | 'TokenVerificationSdJwtInvalidEmail' | 'TokenVerificationSdJwtInvalidHolderKey' | 'TokenVerificationKbInvalidTyp' | 'TokenVerificationKbMissingAud' | 'TokenVerificationKbMissingNonce' | 'TokenVerificationKbMissingIat' | 'TokenVerificationKbMissingSdHash' | 'TokenVerificationKbInvalidIssuedAt' | 'TokenVerificationKbInvalidAudience' | 'TokenVerificationKbInvalidNonce' | 'TokenVerificationKbInvalidSdHash' | 'TokenVerificationKbMissingCnf' | 'TokenVerificationKbSignatureFailed');
3797
3841
 
3798
3842
  /**
3799
3843
  * This issue tracks client hints related issues. It's used to deprecate old
@@ -18968,7 +19012,7 @@ export namespace Protocol {
18968
19012
  * TODO(https://crbug.com/1384419): revisit the list of PrefetchStatus and
18969
19013
  * filter out the ones that aren't necessary to the developers.
18970
19014
  */
18971
- export type PrefetchStatus = ('PrefetchAllowed' | 'PrefetchFailedIneligibleRedirect' | 'PrefetchFailedInvalidRedirect' | 'PrefetchFailedMIMENotSupported' | 'PrefetchFailedNetError' | 'PrefetchFailedNon2XX' | 'PrefetchEvictedAfterBrowsingDataRemoved' | 'PrefetchEvictedAfterCandidateRemoved' | 'PrefetchEvictedForNewerPrefetch' | 'PrefetchHeldback' | 'PrefetchIneligibleRetryAfter' | 'PrefetchIsPrivacyDecoy' | 'PrefetchIsStale' | 'PrefetchNotEligibleBrowserContextOffTheRecord' | 'PrefetchNotEligibleDataSaverEnabled' | 'PrefetchNotEligibleExistingProxy' | 'PrefetchNotEligibleHostIsNonUnique' | 'PrefetchNotEligibleNonDefaultStoragePartition' | 'PrefetchNotEligibleSameSiteCrossOriginPrefetchRequiredProxy' | 'PrefetchNotEligibleSchemeIsNotHttps' | 'PrefetchNotEligibleUserHasCookies' | 'PrefetchNotEligibleUserHasServiceWorker' | 'PrefetchNotEligibleUserHasServiceWorkerNoFetchHandler' | 'PrefetchNotEligibleRedirectFromServiceWorker' | 'PrefetchNotEligibleRedirectToServiceWorker' | 'PrefetchNotEligibleBatterySaverEnabled' | 'PrefetchNotEligiblePreloadingDisabled' | 'PrefetchNotFinishedInTime' | 'PrefetchNotStarted' | 'PrefetchNotUsedCookiesChanged' | 'PrefetchProxyNotAvailable' | 'PrefetchResponseUsed' | 'PrefetchSuccessfulButNotUsed' | 'PrefetchNotUsedProbeFailed');
19015
+ export type PrefetchStatus = ('PrefetchAllowed' | 'PrefetchFailedIneligibleRedirect' | 'PrefetchFailedInvalidRedirect' | 'PrefetchFailedMIMENotSupported' | 'PrefetchFailedNetError' | 'PrefetchFailedNon2XX' | 'PrefetchEvictedAfterBrowsingDataRemoved' | 'PrefetchEvictedAfterCandidateRemoved' | 'PrefetchEvictedForNewerPrefetch' | 'PrefetchHeldback' | 'PrefetchIneligibleRetryAfter' | 'PrefetchIsPrivacyDecoy' | 'PrefetchIsStale' | 'PrefetchNotEligibleBrowserContextOffTheRecord' | 'PrefetchNotEligibleDataSaverEnabled' | 'PrefetchNotEligibleExistingProxy' | 'PrefetchNotEligibleHostIsNonUnique' | 'PrefetchNotEligibleNonDefaultStoragePartition' | 'PrefetchNotEligibleSameSiteCrossOriginPrefetchRequiredProxy' | 'PrefetchNotEligibleSchemeIsNotHttps' | 'PrefetchNotEligibleUserHasCookies' | 'PrefetchNotEligibleUserHasServiceWorker' | 'PrefetchNotEligibleUserHasServiceWorkerNoFetchHandler' | 'PrefetchNotEligibleRedirectFromServiceWorker' | 'PrefetchNotEligibleRedirectToServiceWorker' | 'PrefetchNotEligibleBatterySaverEnabled' | 'PrefetchNotEligiblePreloadingDisabled' | 'PrefetchNotFinishedInTime' | 'PrefetchNotStarted' | 'PrefetchNotUsedCookiesChanged' | 'PrefetchProxyNotAvailable' | 'PrefetchResponseUsed' | 'PrefetchSuccessfulButNotUsed' | 'PrefetchNotUsedProbeFailed' | 'PrefetchCancelledOnUserNavigation');
18972
19016
 
18973
19017
  /**
18974
19018
  * Information of headers to be displayed when the header mismatch occurred.