devtools-protocol 0.0.1279463 → 0.0.1281655

Sign up to get free protection for your applications and to get access to all the features.
@@ -9121,13 +9121,30 @@
9121
9121
  },
9122
9122
  {
9123
9123
  "name": "devicePosture",
9124
- "description": "If set, the posture of a foldable device. If not set the posture is set\nto continuous.",
9124
+ "description": "If set, the posture of a foldable device. If not set the posture is set\nto continuous.\nDeprecated, use Emulation.setDevicePostureOverride.",
9125
9125
  "experimental": true,
9126
+ "deprecated": true,
9126
9127
  "optional": true,
9127
9128
  "$ref": "DevicePosture"
9128
9129
  }
9129
9130
  ]
9130
9131
  },
9132
+ {
9133
+ "name": "setDevicePostureOverride",
9134
+ "description": "Start reporting the given posture value to the Device Posture API.\nThis override can also be set in setDeviceMetricsOverride().",
9135
+ "experimental": true,
9136
+ "parameters": [
9137
+ {
9138
+ "name": "posture",
9139
+ "$ref": "DevicePosture"
9140
+ }
9141
+ ]
9142
+ },
9143
+ {
9144
+ "name": "clearDevicePostureOverride",
9145
+ "description": "Clears a device posture override set with either setDeviceMetricsOverride()\nor setDevicePostureOverride() and starts using posture information from the\nplatform again.\nDoes nothing if no override is set.",
9146
+ "experimental": true
9147
+ },
9131
9148
  {
9132
9149
  "name": "setScrollbarsHidden",
9133
9150
  "experimental": true,
@@ -12547,6 +12564,12 @@
12547
12564
  "optional": true,
12548
12565
  "type": "boolean"
12549
12566
  },
12567
+ {
12568
+ "name": "fromEarlyHints",
12569
+ "description": "Specifies that the request was served from the prefetch cache.",
12570
+ "optional": true,
12571
+ "type": "boolean"
12572
+ },
12550
12573
  {
12551
12574
  "name": "serviceWorkerRouterInfo",
12552
12575
  "description": "Information about how Service Worker Static Router was used.",
@@ -12967,6 +12990,11 @@
12967
12990
  "description": "The reason the cookie was exempted.",
12968
12991
  "$ref": "CookieExemptionReason"
12969
12992
  },
12993
+ {
12994
+ "name": "cookieLine",
12995
+ "description": "The string representing this individual cookie as it would appear in the header.",
12996
+ "type": "string"
12997
+ },
12970
12998
  {
12971
12999
  "name": "cookie",
12972
13000
  "description": "The cookie object representing the cookie.",
@@ -15108,6 +15136,23 @@
15108
15136
  }
15109
15137
  ]
15110
15138
  },
15139
+ {
15140
+ "name": "responseReceivedEarlyHints",
15141
+ "description": "Fired when 103 Early Hints headers is received in addition to the common response.\nNot every responseReceived event will have an responseReceivedEarlyHints fired.\nOnly one responseReceivedEarlyHints may be fired for eached responseReceived event.",
15142
+ "experimental": true,
15143
+ "parameters": [
15144
+ {
15145
+ "name": "requestId",
15146
+ "description": "Request identifier. Used to match this information to another responseReceived event.",
15147
+ "$ref": "RequestId"
15148
+ },
15149
+ {
15150
+ "name": "headers",
15151
+ "description": "Raw response headers as they were received over the wire.",
15152
+ "$ref": "Headers"
15153
+ }
15154
+ ]
15155
+ },
15111
15156
  {
15112
15157
  "name": "trustTokenOperationDone",
15113
15158
  "description": "Fired exactly once for each Trust Token operation. Depending on\nthe type of the operation and whether the operation succeeded or\nfailed, the event is fired before the corresponding request was sent\nor after the response was received.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1279463",
3
+ "version": "0.0.1281655",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -4159,7 +4159,20 @@ domain Emulation
4159
4159
  experimental optional DisplayFeature displayFeature
4160
4160
  # If set, the posture of a foldable device. If not set the posture is set
4161
4161
  # to continuous.
4162
- experimental optional DevicePosture devicePosture
4162
+ # Deprecated, use Emulation.setDevicePostureOverride.
4163
+ experimental deprecated optional DevicePosture devicePosture
4164
+
4165
+ # Start reporting the given posture value to the Device Posture API.
4166
+ # This override can also be set in setDeviceMetricsOverride().
4167
+ experimental command setDevicePostureOverride
4168
+ parameters
4169
+ DevicePosture posture
4170
+
4171
+ # Clears a device posture override set with either setDeviceMetricsOverride()
4172
+ # or setDevicePostureOverride() and starts using posture information from the
4173
+ # platform again.
4174
+ # Does nothing if no override is set.
4175
+ experimental command clearDevicePostureOverride
4163
4176
 
4164
4177
  experimental command setScrollbarsHidden
4165
4178
  parameters
@@ -5817,6 +5830,8 @@ domain Network
5817
5830
  optional boolean fromServiceWorker
5818
5831
  # Specifies that the request was served from the prefetch cache.
5819
5832
  optional boolean fromPrefetchCache
5833
+ # Specifies that the request was served from the prefetch cache.
5834
+ optional boolean fromEarlyHints
5820
5835
  # Information about how Service Worker Static Router was used.
5821
5836
  experimental optional ServiceWorkerRouterInfo serviceWorkerRouterInfo
5822
5837
  # Total number of bytes received for this request so far.
@@ -6108,6 +6123,8 @@ domain Network
6108
6123
  properties
6109
6124
  # The reason the cookie was exempted.
6110
6125
  CookieExemptionReason exemptionReason
6126
+ # The string representing this individual cookie as it would appear in the header.
6127
+ string cookieLine
6111
6128
  # The cookie object representing the cookie.
6112
6129
  Cookie cookie
6113
6130
 
@@ -6942,6 +6959,16 @@ domain Network
6942
6959
  # the response with the corresponding reason.
6943
6960
  optional array of ExemptedSetCookieWithReason exemptedCookies
6944
6961
 
6962
+ # Fired when 103 Early Hints headers is received in addition to the common response.
6963
+ # Not every responseReceived event will have an responseReceivedEarlyHints fired.
6964
+ # Only one responseReceivedEarlyHints may be fired for eached responseReceived event.
6965
+ experimental event responseReceivedEarlyHints
6966
+ parameters
6967
+ # Request identifier. Used to match this information to another responseReceived event.
6968
+ RequestId requestId
6969
+ # Raw response headers as they were received over the wire.
6970
+ Headers headers
6971
+
6945
6972
  # Fired exactly once for each Trust Token operation. Depending on
6946
6973
  # the type of the operation and whether the operation succeeded or
6947
6974
  # failed, the event is fired before the corresponding request was sent
@@ -355,6 +355,12 @@ export namespace ProtocolMapping {
355
355
  * it, and responseReceivedExtraInfo may be fired before or after responseReceived.
356
356
  */
357
357
  'Network.responseReceivedExtraInfo': [Protocol.Network.ResponseReceivedExtraInfoEvent];
358
+ /**
359
+ * Fired when 103 Early Hints headers is received in addition to the common response.
360
+ * Not every responseReceived event will have an responseReceivedEarlyHints fired.
361
+ * Only one responseReceivedEarlyHints may be fired for eached responseReceived event.
362
+ */
363
+ 'Network.responseReceivedEarlyHints': [Protocol.Network.ResponseReceivedEarlyHintsEvent];
358
364
  /**
359
365
  * Fired exactly once for each Trust Token operation. Depending on
360
366
  * the type of the operation and whether the operation succeeded or
@@ -2615,6 +2621,24 @@ export namespace ProtocolMapping {
2615
2621
  paramsType: [Protocol.Emulation.SetDeviceMetricsOverrideRequest];
2616
2622
  returnType: void;
2617
2623
  };
2624
+ /**
2625
+ * Start reporting the given posture value to the Device Posture API.
2626
+ * This override can also be set in setDeviceMetricsOverride().
2627
+ */
2628
+ 'Emulation.setDevicePostureOverride': {
2629
+ paramsType: [Protocol.Emulation.SetDevicePostureOverrideRequest];
2630
+ returnType: void;
2631
+ };
2632
+ /**
2633
+ * Clears a device posture override set with either setDeviceMetricsOverride()
2634
+ * or setDevicePostureOverride() and starts using posture information from the
2635
+ * platform again.
2636
+ * Does nothing if no override is set.
2637
+ */
2638
+ 'Emulation.clearDevicePostureOverride': {
2639
+ paramsType: [];
2640
+ returnType: void;
2641
+ };
2618
2642
  'Emulation.setScrollbarsHidden': {
2619
2643
  paramsType: [Protocol.Emulation.SetScrollbarsHiddenRequest];
2620
2644
  returnType: void;
@@ -1802,6 +1802,20 @@ export namespace ProtocolProxyApi {
1802
1802
  */
1803
1803
  setDeviceMetricsOverride(params: Protocol.Emulation.SetDeviceMetricsOverrideRequest): Promise<void>;
1804
1804
 
1805
+ /**
1806
+ * Start reporting the given posture value to the Device Posture API.
1807
+ * This override can also be set in setDeviceMetricsOverride().
1808
+ */
1809
+ setDevicePostureOverride(params: Protocol.Emulation.SetDevicePostureOverrideRequest): Promise<void>;
1810
+
1811
+ /**
1812
+ * Clears a device posture override set with either setDeviceMetricsOverride()
1813
+ * or setDevicePostureOverride() and starts using posture information from the
1814
+ * platform again.
1815
+ * Does nothing if no override is set.
1816
+ */
1817
+ clearDevicePostureOverride(): Promise<void>;
1818
+
1805
1819
  setScrollbarsHidden(params: Protocol.Emulation.SetScrollbarsHiddenRequest): Promise<void>;
1806
1820
 
1807
1821
  setDocumentCookieDisabled(params: Protocol.Emulation.SetDocumentCookieDisabledRequest): Promise<void>;
@@ -2545,6 +2559,13 @@ export namespace ProtocolProxyApi {
2545
2559
  */
2546
2560
  on(event: 'responseReceivedExtraInfo', listener: (params: Protocol.Network.ResponseReceivedExtraInfoEvent) => void): void;
2547
2561
 
2562
+ /**
2563
+ * Fired when 103 Early Hints headers is received in addition to the common response.
2564
+ * Not every responseReceived event will have an responseReceivedEarlyHints fired.
2565
+ * Only one responseReceivedEarlyHints may be fired for eached responseReceived event.
2566
+ */
2567
+ on(event: 'responseReceivedEarlyHints', listener: (params: Protocol.Network.ResponseReceivedEarlyHintsEvent) => void): void;
2568
+
2548
2569
  /**
2549
2570
  * Fired exactly once for each Trust Token operation. Depending on
2550
2571
  * the type of the operation and whether the operation succeeded or