devtools-protocol 0.0.1233178 → 0.0.1234845

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.
@@ -14120,6 +14120,25 @@
14120
14120
  }
14121
14121
  ]
14122
14122
  },
14123
+ {
14124
+ "name": "streamResourceContent",
14125
+ "description": "Enables streaming of the response for the given requestId.\nIf enabled, the dataReceived event contains the data that was received during streaming.",
14126
+ "experimental": true,
14127
+ "parameters": [
14128
+ {
14129
+ "name": "requestId",
14130
+ "description": "Identifier of the request to stream.",
14131
+ "$ref": "RequestId"
14132
+ }
14133
+ ],
14134
+ "returns": [
14135
+ {
14136
+ "name": "bufferedData",
14137
+ "description": "Data that has been buffered until streaming is enabled. (Encoded as a base64 string when passed over JSON)",
14138
+ "type": "string"
14139
+ }
14140
+ ]
14141
+ },
14123
14142
  {
14124
14143
  "name": "getSecurityIsolationStatus",
14125
14144
  "description": "Returns information about the COEP/COOP isolation status.",
@@ -14205,6 +14224,13 @@
14205
14224
  "name": "encodedDataLength",
14206
14225
  "description": "Actual bytes received (might be less than dataLength for compressed encodings).",
14207
14226
  "type": "integer"
14227
+ },
14228
+ {
14229
+ "name": "data",
14230
+ "description": "Data that was received. (Encoded as a base64 string when passed over JSON)",
14231
+ "experimental": true,
14232
+ "optional": true,
14233
+ "type": "string"
14208
14234
  }
14209
14235
  ]
14210
14236
  },
@@ -24435,7 +24461,8 @@
24435
24461
  "PrefetchFailedNetError",
24436
24462
  "PrefetchFailedNon2XX",
24437
24463
  "PrefetchFailedPerPageLimitExceeded",
24438
- "PrefetchEvicted",
24464
+ "PrefetchEvictedAfterCandidateRemoved",
24465
+ "PrefetchEvictedForNewerPrefetch",
24439
24466
  "PrefetchHeldback",
24440
24467
  "PrefetchIneligibleRetryAfter",
24441
24468
  "PrefetchIsPrivacyDecoy",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1233178",
3
+ "version": "0.0.1234845",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -6465,6 +6465,18 @@ domain Network
6465
6465
  integer dataLength
6466
6466
  # Actual bytes received (might be less than dataLength for compressed encodings).
6467
6467
  integer encodedDataLength
6468
+ # Data that was received.
6469
+ experimental optional binary data
6470
+
6471
+ # Enables streaming of the response for the given requestId.
6472
+ # If enabled, the dataReceived event contains the data that was received during streaming.
6473
+ experimental command streamResourceContent
6474
+ parameters
6475
+ # Identifier of the request to stream.
6476
+ RequestId requestId
6477
+ returns
6478
+ # Data that has been buffered until streaming is enabled.
6479
+ binary bufferedData
6468
6480
 
6469
6481
  # Fired when EventSource message is received.
6470
6482
  event eventSourceMessageReceived
@@ -11577,7 +11589,8 @@ experimental domain Preload
11577
11589
  PrefetchFailedNetError
11578
11590
  PrefetchFailedNon2XX
11579
11591
  PrefetchFailedPerPageLimitExceeded
11580
- PrefetchEvicted
11592
+ PrefetchEvictedAfterCandidateRemoved
11593
+ PrefetchEvictedForNewerPrefetch
11581
11594
  PrefetchHeldback
11582
11595
  # A previous prefetch to the origin got a HTTP 503 response with an
11583
11596
  # Retry-After header that has no elapsed yet.
@@ -3352,6 +3352,14 @@ export namespace ProtocolMapping {
3352
3352
  paramsType: [Protocol.Network.SetUserAgentOverrideRequest];
3353
3353
  returnType: void;
3354
3354
  };
3355
+ /**
3356
+ * Enables streaming of the response for the given requestId.
3357
+ * If enabled, the dataReceived event contains the data that was received during streaming.
3358
+ */
3359
+ 'Network.streamResourceContent': {
3360
+ paramsType: [Protocol.Network.StreamResourceContentRequest];
3361
+ returnType: Protocol.Network.StreamResourceContentResponse;
3362
+ };
3355
3363
  /**
3356
3364
  * Returns information about the COEP/COOP isolation status.
3357
3365
  */
@@ -2399,6 +2399,12 @@ export namespace ProtocolProxyApi {
2399
2399
  */
2400
2400
  setUserAgentOverride(params: Protocol.Network.SetUserAgentOverrideRequest): Promise<void>;
2401
2401
 
2402
+ /**
2403
+ * Enables streaming of the response for the given requestId.
2404
+ * If enabled, the dataReceived event contains the data that was received during streaming.
2405
+ */
2406
+ streamResourceContent(params: Protocol.Network.StreamResourceContentRequest): Promise<Protocol.Network.StreamResourceContentResponse>;
2407
+
2402
2408
  /**
2403
2409
  * Returns information about the COEP/COOP isolation status.
2404
2410
  */
@@ -11395,6 +11395,20 @@ export namespace Protocol {
11395
11395
  userAgentMetadata?: Emulation.UserAgentMetadata;
11396
11396
  }
11397
11397
 
11398
+ export interface StreamResourceContentRequest {
11399
+ /**
11400
+ * Identifier of the request to stream.
11401
+ */
11402
+ requestId: RequestId;
11403
+ }
11404
+
11405
+ export interface StreamResourceContentResponse {
11406
+ /**
11407
+ * Data that has been buffered until streaming is enabled. (Encoded as a base64 string when passed over JSON)
11408
+ */
11409
+ bufferedData: string;
11410
+ }
11411
+
11398
11412
  export interface GetSecurityIsolationStatusRequest {
11399
11413
  /**
11400
11414
  * If no frameId is provided, the status of the target is provided.
@@ -11453,6 +11467,10 @@ export namespace Protocol {
11453
11467
  * Actual bytes received (might be less than dataLength for compressed encodings).
11454
11468
  */
11455
11469
  encodedDataLength: integer;
11470
+ /**
11471
+ * Data that was received. (Encoded as a base64 string when passed over JSON)
11472
+ */
11473
+ data?: string;
11456
11474
  }
11457
11475
 
11458
11476
  /**
@@ -17716,7 +17734,7 @@ export namespace Protocol {
17716
17734
  * TODO(https://crbug.com/1384419): revisit the list of PrefetchStatus and
17717
17735
  * filter out the ones that aren't necessary to the developers.
17718
17736
  */
17719
- export type PrefetchStatus = ('PrefetchAllowed' | 'PrefetchFailedIneligibleRedirect' | 'PrefetchFailedInvalidRedirect' | 'PrefetchFailedMIMENotSupported' | 'PrefetchFailedNetError' | 'PrefetchFailedNon2XX' | 'PrefetchFailedPerPageLimitExceeded' | 'PrefetchEvicted' | 'PrefetchHeldback' | 'PrefetchIneligibleRetryAfter' | 'PrefetchIsPrivacyDecoy' | 'PrefetchIsStale' | 'PrefetchNotEligibleBrowserContextOffTheRecord' | 'PrefetchNotEligibleDataSaverEnabled' | 'PrefetchNotEligibleExistingProxy' | 'PrefetchNotEligibleHostIsNonUnique' | 'PrefetchNotEligibleNonDefaultStoragePartition' | 'PrefetchNotEligibleSameSiteCrossOriginPrefetchRequiredProxy' | 'PrefetchNotEligibleSchemeIsNotHttps' | 'PrefetchNotEligibleUserHasCookies' | 'PrefetchNotEligibleUserHasServiceWorker' | 'PrefetchNotEligibleBatterySaverEnabled' | 'PrefetchNotEligiblePreloadingDisabled' | 'PrefetchNotFinishedInTime' | 'PrefetchNotStarted' | 'PrefetchNotUsedCookiesChanged' | 'PrefetchProxyNotAvailable' | 'PrefetchResponseUsed' | 'PrefetchSuccessfulButNotUsed' | 'PrefetchNotUsedProbeFailed');
17737
+ export type PrefetchStatus = ('PrefetchAllowed' | 'PrefetchFailedIneligibleRedirect' | 'PrefetchFailedInvalidRedirect' | 'PrefetchFailedMIMENotSupported' | 'PrefetchFailedNetError' | 'PrefetchFailedNon2XX' | 'PrefetchFailedPerPageLimitExceeded' | 'PrefetchEvictedAfterCandidateRemoved' | 'PrefetchEvictedForNewerPrefetch' | 'PrefetchHeldback' | 'PrefetchIneligibleRetryAfter' | 'PrefetchIsPrivacyDecoy' | 'PrefetchIsStale' | 'PrefetchNotEligibleBrowserContextOffTheRecord' | 'PrefetchNotEligibleDataSaverEnabled' | 'PrefetchNotEligibleExistingProxy' | 'PrefetchNotEligibleHostIsNonUnique' | 'PrefetchNotEligibleNonDefaultStoragePartition' | 'PrefetchNotEligibleSameSiteCrossOriginPrefetchRequiredProxy' | 'PrefetchNotEligibleSchemeIsNotHttps' | 'PrefetchNotEligibleUserHasCookies' | 'PrefetchNotEligibleUserHasServiceWorker' | 'PrefetchNotEligibleBatterySaverEnabled' | 'PrefetchNotEligiblePreloadingDisabled' | 'PrefetchNotFinishedInTime' | 'PrefetchNotStarted' | 'PrefetchNotUsedCookiesChanged' | 'PrefetchProxyNotAvailable' | 'PrefetchResponseUsed' | 'PrefetchSuccessfulButNotUsed' | 'PrefetchNotUsedProbeFailed');
17720
17738
 
17721
17739
  /**
17722
17740
  * Information of headers to be displayed when the header mismatch occurred.