devtools-protocol 0.0.1548244 → 0.0.1550230

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.
@@ -20487,6 +20487,7 @@
20487
20487
  "ambient-light-sensor",
20488
20488
  "aria-notify",
20489
20489
  "attribution-reporting",
20490
+ "autofill",
20490
20491
  "autoplay",
20491
20492
  "bluetooth",
20492
20493
  "browsing-topics",
@@ -20552,6 +20553,7 @@
20552
20553
  "local-fonts",
20553
20554
  "local-network-access",
20554
20555
  "magnetometer",
20556
+ "manual-text",
20555
20557
  "media-playback-while-not-visible",
20556
20558
  "microphone",
20557
20559
  "midi",
@@ -20569,7 +20571,6 @@
20569
20571
  "run-ad-auction",
20570
20572
  "screen-wake-lock",
20571
20573
  "serial",
20572
- "shared-autofill",
20573
20574
  "shared-storage",
20574
20575
  "shared-storage-select-url",
20575
20576
  "smart-card",
@@ -23306,6 +23307,26 @@
23306
23307
  "type": "boolean"
23307
23308
  }
23308
23309
  ]
23310
+ },
23311
+ {
23312
+ "name": "getAnnotatedPageContent",
23313
+ "description": "Get the annotated page content for the main frame.\nThis is an experimental command that is subject to change.",
23314
+ "experimental": true,
23315
+ "parameters": [
23316
+ {
23317
+ "name": "includeActionableInformation",
23318
+ "description": "Whether to include actionable information. Defaults to true.",
23319
+ "optional": true,
23320
+ "type": "boolean"
23321
+ }
23322
+ ],
23323
+ "returns": [
23324
+ {
23325
+ "name": "content",
23326
+ "description": "The annotated page content as a base64 encoded protobuf.\nThe format is defined by the `AnnotatedPageContent` message in\ncomponents/optimization_guide/proto/features/common_quality_data.proto (Encoded as a base64 string when passed over JSON)",
23327
+ "type": "string"
23328
+ }
23329
+ ]
23309
23330
  }
23310
23331
  ],
23311
23332
  "events": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1548244",
3
+ "version": "0.0.1550230",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -100,6 +100,7 @@ domain Page
100
100
  ambient-light-sensor
101
101
  aria-notify
102
102
  attribution-reporting
103
+ autofill
103
104
  autoplay
104
105
  bluetooth
105
106
  browsing-topics
@@ -165,6 +166,7 @@ domain Page
165
166
  local-fonts
166
167
  local-network-access
167
168
  magnetometer
169
+ manual-text
168
170
  media-playback-while-not-visible
169
171
  microphone
170
172
  midi
@@ -182,7 +184,6 @@ domain Page
182
184
  run-ad-auction
183
185
  screen-wake-lock
184
186
  serial
185
- shared-autofill
186
187
  shared-storage
187
188
  shared-storage-select-url
188
189
  smart-card
@@ -1767,3 +1768,15 @@ domain Page
1767
1768
  experimental command setPrerenderingAllowed
1768
1769
  parameters
1769
1770
  boolean isAllowed
1771
+
1772
+ # Get the annotated page content for the main frame.
1773
+ # This is an experimental command that is subject to change.
1774
+ experimental command getAnnotatedPageContent
1775
+ parameters
1776
+ # Whether to include actionable information. Defaults to true.
1777
+ optional boolean includeActionableInformation
1778
+ returns
1779
+ # The annotated page content as a base64 encoded protobuf.
1780
+ # The format is defined by the `AnnotatedPageContent` message in
1781
+ # components/optimization_guide/proto/features/common_quality_data.proto
1782
+ binary content
@@ -5154,6 +5154,15 @@ export namespace ProtocolMapping {
5154
5154
  paramsType: [Protocol.Page.SetPrerenderingAllowedRequest];
5155
5155
  returnType: void;
5156
5156
  };
5157
+ /**
5158
+ * Get the annotated page content for the main frame.
5159
+ * This is an experimental command that is subject to change.
5160
+ * @experimental
5161
+ */
5162
+ 'Page.getAnnotatedPageContent': {
5163
+ paramsType: [Protocol.Page.GetAnnotatedPageContentRequest?];
5164
+ returnType: Protocol.Page.GetAnnotatedPageContentResponse;
5165
+ };
5157
5166
  /**
5158
5167
  * Disable collecting and reporting metrics.
5159
5168
  */
@@ -4068,6 +4068,13 @@ export namespace ProtocolProxyApi {
4068
4068
  */
4069
4069
  setPrerenderingAllowed(params: Protocol.Page.SetPrerenderingAllowedRequest): Promise<void>;
4070
4070
 
4071
+ /**
4072
+ * Get the annotated page content for the main frame.
4073
+ * This is an experimental command that is subject to change.
4074
+ * @experimental
4075
+ */
4076
+ getAnnotatedPageContent(params: Protocol.Page.GetAnnotatedPageContentRequest): Promise<Protocol.Page.GetAnnotatedPageContentResponse>;
4077
+
4071
4078
  on(event: 'domContentEventFired', listener: (params: Protocol.Page.DomContentEventFiredEvent) => void): void;
4072
4079
 
4073
4080
  /**
@@ -4330,6 +4330,13 @@ export namespace ProtocolTestsProxyApi {
4330
4330
  */
4331
4331
  setPrerenderingAllowed(params: Protocol.Page.SetPrerenderingAllowedRequest): Promise<{id: number, result: void, sessionId: string}>;
4332
4332
 
4333
+ /**
4334
+ * Get the annotated page content for the main frame.
4335
+ * This is an experimental command that is subject to change.
4336
+ * @experimental
4337
+ */
4338
+ getAnnotatedPageContent(params: Protocol.Page.GetAnnotatedPageContentRequest): Promise<{id: number, result: Protocol.Page.GetAnnotatedPageContentResponse, sessionId: string}>;
4339
+
4333
4340
  onDomContentEventFired(listener: (event: { params: Protocol.Page.DomContentEventFiredEvent }) => void): void;
4334
4341
  offDomContentEventFired(listener: (event: { params: Protocol.Page.DomContentEventFiredEvent }) => void): void;
4335
4342
  onceDomContentEventFired(eventMatcher?: (event: { params: Protocol.Page.DomContentEventFiredEvent }) => boolean): Promise<{ params: Protocol.Page.DomContentEventFiredEvent }>;
@@ -15817,7 +15817,7 @@ export namespace Protocol {
15817
15817
  * in services/network/public/cpp/permissions_policy/permissions_policy_features.json5.
15818
15818
  * @experimental
15819
15819
  */
15820
- export type PermissionsPolicyFeature = ('accelerometer' | 'all-screens-capture' | 'ambient-light-sensor' | 'aria-notify' | 'attribution-reporting' | 'autoplay' | 'bluetooth' | 'browsing-topics' | 'camera' | 'captured-surface-control' | 'ch-dpr' | 'ch-device-memory' | 'ch-downlink' | 'ch-ect' | 'ch-prefers-color-scheme' | 'ch-prefers-reduced-motion' | 'ch-prefers-reduced-transparency' | 'ch-rtt' | 'ch-save-data' | 'ch-ua' | 'ch-ua-arch' | 'ch-ua-bitness' | 'ch-ua-high-entropy-values' | 'ch-ua-platform' | 'ch-ua-model' | 'ch-ua-mobile' | 'ch-ua-form-factors' | 'ch-ua-full-version' | 'ch-ua-full-version-list' | 'ch-ua-platform-version' | 'ch-ua-wow64' | 'ch-viewport-height' | 'ch-viewport-width' | 'ch-width' | 'clipboard-read' | 'clipboard-write' | 'compute-pressure' | 'controlled-frame' | 'cross-origin-isolated' | 'deferred-fetch' | 'deferred-fetch-minimal' | 'device-attributes' | 'digital-credentials-create' | 'digital-credentials-get' | 'direct-sockets' | 'direct-sockets-multicast' | 'direct-sockets-private' | 'display-capture' | 'document-domain' | 'encrypted-media' | 'execution-while-out-of-viewport' | 'execution-while-not-rendered' | 'fenced-unpartitioned-storage-read' | 'focus-without-user-activation' | 'fullscreen' | 'frobulate' | 'gamepad' | 'geolocation' | 'gyroscope' | 'hid' | 'identity-credentials-get' | 'idle-detection' | 'interest-cohort' | 'join-ad-interest-group' | 'keyboard-map' | 'language-detector' | 'language-model' | 'local-fonts' | 'local-network-access' | 'magnetometer' | 'media-playback-while-not-visible' | 'microphone' | 'midi' | 'on-device-speech-recognition' | 'otp-credentials' | 'payment' | 'picture-in-picture' | 'private-aggregation' | 'private-state-token-issuance' | 'private-state-token-redemption' | 'publickey-credentials-create' | 'publickey-credentials-get' | 'record-ad-auction-events' | 'rewriter' | 'run-ad-auction' | 'screen-wake-lock' | 'serial' | 'shared-autofill' | 'shared-storage' | 'shared-storage-select-url' | 'smart-card' | 'speaker-selection' | 'storage-access' | 'sub-apps' | 'summarizer' | 'sync-xhr' | 'translator' | 'unload' | 'usb' | 'usb-unrestricted' | 'vertical-scroll' | 'web-app-installation' | 'web-printing' | 'web-share' | 'window-management' | 'writer' | 'xr-spatial-tracking');
15820
+ export type PermissionsPolicyFeature = ('accelerometer' | 'all-screens-capture' | 'ambient-light-sensor' | 'aria-notify' | 'attribution-reporting' | 'autofill' | 'autoplay' | 'bluetooth' | 'browsing-topics' | 'camera' | 'captured-surface-control' | 'ch-dpr' | 'ch-device-memory' | 'ch-downlink' | 'ch-ect' | 'ch-prefers-color-scheme' | 'ch-prefers-reduced-motion' | 'ch-prefers-reduced-transparency' | 'ch-rtt' | 'ch-save-data' | 'ch-ua' | 'ch-ua-arch' | 'ch-ua-bitness' | 'ch-ua-high-entropy-values' | 'ch-ua-platform' | 'ch-ua-model' | 'ch-ua-mobile' | 'ch-ua-form-factors' | 'ch-ua-full-version' | 'ch-ua-full-version-list' | 'ch-ua-platform-version' | 'ch-ua-wow64' | 'ch-viewport-height' | 'ch-viewport-width' | 'ch-width' | 'clipboard-read' | 'clipboard-write' | 'compute-pressure' | 'controlled-frame' | 'cross-origin-isolated' | 'deferred-fetch' | 'deferred-fetch-minimal' | 'device-attributes' | 'digital-credentials-create' | 'digital-credentials-get' | 'direct-sockets' | 'direct-sockets-multicast' | 'direct-sockets-private' | 'display-capture' | 'document-domain' | 'encrypted-media' | 'execution-while-out-of-viewport' | 'execution-while-not-rendered' | 'fenced-unpartitioned-storage-read' | 'focus-without-user-activation' | 'fullscreen' | 'frobulate' | 'gamepad' | 'geolocation' | 'gyroscope' | 'hid' | 'identity-credentials-get' | 'idle-detection' | 'interest-cohort' | 'join-ad-interest-group' | 'keyboard-map' | 'language-detector' | 'language-model' | 'local-fonts' | 'local-network-access' | 'magnetometer' | 'manual-text' | 'media-playback-while-not-visible' | 'microphone' | 'midi' | 'on-device-speech-recognition' | 'otp-credentials' | 'payment' | 'picture-in-picture' | 'private-aggregation' | 'private-state-token-issuance' | 'private-state-token-redemption' | 'publickey-credentials-create' | 'publickey-credentials-get' | 'record-ad-auction-events' | 'rewriter' | 'run-ad-auction' | 'screen-wake-lock' | 'serial' | 'shared-storage' | 'shared-storage-select-url' | 'smart-card' | 'speaker-selection' | 'storage-access' | 'sub-apps' | 'summarizer' | 'sync-xhr' | 'translator' | 'unload' | 'usb' | 'usb-unrestricted' | 'vertical-scroll' | 'web-app-installation' | 'web-printing' | 'web-share' | 'window-management' | 'writer' | 'xr-spatial-tracking');
15821
15821
 
15822
15822
  /**
15823
15823
  * Reason for a permissions policy feature to be disabled.
@@ -17412,6 +17412,22 @@ export namespace Protocol {
17412
17412
  isAllowed: boolean;
17413
17413
  }
17414
17414
 
17415
+ export interface GetAnnotatedPageContentRequest {
17416
+ /**
17417
+ * Whether to include actionable information. Defaults to true.
17418
+ */
17419
+ includeActionableInformation?: boolean;
17420
+ }
17421
+
17422
+ export interface GetAnnotatedPageContentResponse {
17423
+ /**
17424
+ * The annotated page content as a base64 encoded protobuf.
17425
+ * The format is defined by the `AnnotatedPageContent` message in
17426
+ * components/optimization_guide/proto/features/common_quality_data.proto (Encoded as a base64 string when passed over JSON)
17427
+ */
17428
+ content: string;
17429
+ }
17430
+
17415
17431
  export interface DomContentEventFiredEvent {
17416
17432
  timestamp: Network.MonotonicTime;
17417
17433
  }