devtools-protocol 0.0.1670834 → 0.0.1672245
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.
- package/json/browser_protocol.json +6 -228
- package/package.json +1 -1
- package/pdl/domains/Audits.pdl +4 -0
- package/pdl/domains/Network.pdl +2 -118
- package/types/protocol-mapping.d.ts +0 -50
- package/types/protocol-proxy-api.d.ts +0 -43
- package/types/protocol-tests-proxy-api.d.ts +0 -45
- package/types/protocol.d.ts +3 -170
|
@@ -1957,6 +1957,7 @@
|
|
|
1957
1957
|
"TooManyRequests",
|
|
1958
1958
|
"WellKnownHttpNotFound",
|
|
1959
1959
|
"WellKnownNoResponse",
|
|
1960
|
+
"WellKnownBlockedByConnectionAllowlist",
|
|
1960
1961
|
"WellKnownInvalidResponse",
|
|
1961
1962
|
"WellKnownListEmpty",
|
|
1962
1963
|
"WellKnownInvalidContentType",
|
|
@@ -1964,6 +1965,7 @@
|
|
|
1964
1965
|
"WellKnownTooBig",
|
|
1965
1966
|
"ConfigHttpNotFound",
|
|
1966
1967
|
"ConfigNoResponse",
|
|
1968
|
+
"ConfigBlockedByConnectionAllowlist",
|
|
1967
1969
|
"ConfigInvalidResponse",
|
|
1968
1970
|
"ConfigInvalidContentType",
|
|
1969
1971
|
"IdpNotPotentiallyTrustworthy",
|
|
@@ -1973,11 +1975,13 @@
|
|
|
1973
1975
|
"InvalidSigninResponse",
|
|
1974
1976
|
"AccountsHttpNotFound",
|
|
1975
1977
|
"AccountsNoResponse",
|
|
1978
|
+
"AccountsBlockedByConnectionAllowlist",
|
|
1976
1979
|
"AccountsInvalidResponse",
|
|
1977
1980
|
"AccountsListEmpty",
|
|
1978
1981
|
"AccountsInvalidContentType",
|
|
1979
1982
|
"IdTokenHttpNotFound",
|
|
1980
1983
|
"IdTokenNoResponse",
|
|
1984
|
+
"IdTokenBlockedByConnectionAllowlist",
|
|
1981
1985
|
"IdTokenInvalidResponse",
|
|
1982
1986
|
"IdTokenIdpErrorResponse",
|
|
1983
1987
|
"IdTokenCrossSiteIdpErrorResponse",
|
|
@@ -15667,11 +15671,6 @@
|
|
|
15667
15671
|
"description": "Unique network request identifier.\nNote that this does not identify individual HTTP requests that are part of\na network request.",
|
|
15668
15672
|
"type": "string"
|
|
15669
15673
|
},
|
|
15670
|
-
{
|
|
15671
|
-
"id": "InterceptionId",
|
|
15672
|
-
"description": "Unique intercepted request identifier.",
|
|
15673
|
-
"type": "string"
|
|
15674
|
-
},
|
|
15675
15674
|
{
|
|
15676
15675
|
"id": "ErrorReason",
|
|
15677
15676
|
"description": "Network level fetch failure reason.",
|
|
@@ -17064,42 +17063,6 @@
|
|
|
17064
17063
|
}
|
|
17065
17064
|
]
|
|
17066
17065
|
},
|
|
17067
|
-
{
|
|
17068
|
-
"id": "InterceptionStage",
|
|
17069
|
-
"description": "Stages of the interception to begin intercepting. Request will intercept before the request is\nsent. Response will intercept after the response is received.",
|
|
17070
|
-
"experimental": true,
|
|
17071
|
-
"type": "string",
|
|
17072
|
-
"enum": [
|
|
17073
|
-
"Request",
|
|
17074
|
-
"HeadersReceived"
|
|
17075
|
-
]
|
|
17076
|
-
},
|
|
17077
|
-
{
|
|
17078
|
-
"id": "RequestPattern",
|
|
17079
|
-
"description": "Request pattern for interception.",
|
|
17080
|
-
"experimental": true,
|
|
17081
|
-
"type": "object",
|
|
17082
|
-
"properties": [
|
|
17083
|
-
{
|
|
17084
|
-
"name": "urlPattern",
|
|
17085
|
-
"description": "Wildcards (`'*'` -> zero or more, `'?'` -> exactly one) are allowed. Escape character is\nbackslash. Omitting is equivalent to `\"*\"`.",
|
|
17086
|
-
"optional": true,
|
|
17087
|
-
"type": "string"
|
|
17088
|
-
},
|
|
17089
|
-
{
|
|
17090
|
-
"name": "resourceType",
|
|
17091
|
-
"description": "If set, only requests for matching resource types will be intercepted.",
|
|
17092
|
-
"optional": true,
|
|
17093
|
-
"$ref": "ResourceType"
|
|
17094
|
-
},
|
|
17095
|
-
{
|
|
17096
|
-
"name": "interceptionStage",
|
|
17097
|
-
"description": "Stage at which to begin intercepting requests. Default is Request.",
|
|
17098
|
-
"optional": true,
|
|
17099
|
-
"$ref": "InterceptionStage"
|
|
17100
|
-
}
|
|
17101
|
-
]
|
|
17102
|
-
},
|
|
17103
17066
|
{
|
|
17104
17067
|
"id": "SignedExchangeSignature",
|
|
17105
17068
|
"description": "Information about a signed exchange signature.\nhttps://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#rfc.section.3.1",
|
|
@@ -18365,60 +18328,6 @@
|
|
|
18365
18328
|
"name": "clearBrowserCookies",
|
|
18366
18329
|
"description": "Clears browser cookies."
|
|
18367
18330
|
},
|
|
18368
|
-
{
|
|
18369
|
-
"name": "continueInterceptedRequest",
|
|
18370
|
-
"description": "Response to Network.requestIntercepted which either modifies the request to continue with any\nmodifications, or blocks it, or completes it with the provided response bytes. If a network\nfetch occurs as a result which encounters a redirect an additional Network.requestIntercepted\nevent will be sent with the same InterceptionId.\nDeprecated, use Fetch.continueRequest, Fetch.fulfillRequest and Fetch.failRequest instead.",
|
|
18371
|
-
"experimental": true,
|
|
18372
|
-
"deprecated": true,
|
|
18373
|
-
"parameters": [
|
|
18374
|
-
{
|
|
18375
|
-
"name": "interceptionId",
|
|
18376
|
-
"$ref": "InterceptionId"
|
|
18377
|
-
},
|
|
18378
|
-
{
|
|
18379
|
-
"name": "errorReason",
|
|
18380
|
-
"description": "If set this causes the request to fail with the given reason. Passing `Aborted` for requests\nmarked with `isNavigationRequest` also cancels the navigation. Must not be set in response\nto an authChallenge.",
|
|
18381
|
-
"optional": true,
|
|
18382
|
-
"$ref": "ErrorReason"
|
|
18383
|
-
},
|
|
18384
|
-
{
|
|
18385
|
-
"name": "rawResponse",
|
|
18386
|
-
"description": "If set the requests completes using with the provided base64 encoded raw response, including\nHTTP status line and headers etc... Must not be set in response to an authChallenge. (Encoded as a base64 string when passed over JSON)",
|
|
18387
|
-
"optional": true,
|
|
18388
|
-
"type": "string"
|
|
18389
|
-
},
|
|
18390
|
-
{
|
|
18391
|
-
"name": "url",
|
|
18392
|
-
"description": "If set the request url will be modified in a way that's not observable by page. Must not be\nset in response to an authChallenge.",
|
|
18393
|
-
"optional": true,
|
|
18394
|
-
"type": "string"
|
|
18395
|
-
},
|
|
18396
|
-
{
|
|
18397
|
-
"name": "method",
|
|
18398
|
-
"description": "If set this allows the request method to be overridden. Must not be set in response to an\nauthChallenge.",
|
|
18399
|
-
"optional": true,
|
|
18400
|
-
"type": "string"
|
|
18401
|
-
},
|
|
18402
|
-
{
|
|
18403
|
-
"name": "postData",
|
|
18404
|
-
"description": "If set this allows postData to be set. Must not be set in response to an authChallenge.",
|
|
18405
|
-
"optional": true,
|
|
18406
|
-
"type": "string"
|
|
18407
|
-
},
|
|
18408
|
-
{
|
|
18409
|
-
"name": "headers",
|
|
18410
|
-
"description": "If set this allows the request headers to be changed. Must not be set in response to an\nauthChallenge.",
|
|
18411
|
-
"optional": true,
|
|
18412
|
-
"$ref": "Headers"
|
|
18413
|
-
},
|
|
18414
|
-
{
|
|
18415
|
-
"name": "authChallengeResponse",
|
|
18416
|
-
"description": "Response to a requestIntercepted with an authChallenge. Must not be set otherwise.",
|
|
18417
|
-
"optional": true,
|
|
18418
|
-
"$ref": "AuthChallengeResponse"
|
|
18419
|
-
}
|
|
18420
|
-
]
|
|
18421
|
-
},
|
|
18422
18331
|
{
|
|
18423
18332
|
"name": "deleteCookies",
|
|
18424
18333
|
"description": "Deletes browser cookies with matching name and url or domain/path/partitionKey pair.",
|
|
@@ -18750,47 +18659,6 @@
|
|
|
18750
18659
|
}
|
|
18751
18660
|
]
|
|
18752
18661
|
},
|
|
18753
|
-
{
|
|
18754
|
-
"name": "getResponseBodyForInterception",
|
|
18755
|
-
"description": "Returns content served for the given currently intercepted request.",
|
|
18756
|
-
"experimental": true,
|
|
18757
|
-
"parameters": [
|
|
18758
|
-
{
|
|
18759
|
-
"name": "interceptionId",
|
|
18760
|
-
"description": "Identifier for the intercepted request to get body for.",
|
|
18761
|
-
"$ref": "InterceptionId"
|
|
18762
|
-
}
|
|
18763
|
-
],
|
|
18764
|
-
"returns": [
|
|
18765
|
-
{
|
|
18766
|
-
"name": "body",
|
|
18767
|
-
"description": "Response body.",
|
|
18768
|
-
"type": "string"
|
|
18769
|
-
},
|
|
18770
|
-
{
|
|
18771
|
-
"name": "base64Encoded",
|
|
18772
|
-
"description": "True, if content was sent as base64.",
|
|
18773
|
-
"type": "boolean"
|
|
18774
|
-
}
|
|
18775
|
-
]
|
|
18776
|
-
},
|
|
18777
|
-
{
|
|
18778
|
-
"name": "takeResponseBodyForInterceptionAsStream",
|
|
18779
|
-
"description": "Returns a handle to the stream representing the response body. Note that after this command,\nthe intercepted request can't be continued as is -- you either need to cancel it or to provide\nthe response body. The stream only supports sequential read, IO.read will fail if the position\nis specified.",
|
|
18780
|
-
"experimental": true,
|
|
18781
|
-
"parameters": [
|
|
18782
|
-
{
|
|
18783
|
-
"name": "interceptionId",
|
|
18784
|
-
"$ref": "InterceptionId"
|
|
18785
|
-
}
|
|
18786
|
-
],
|
|
18787
|
-
"returns": [
|
|
18788
|
-
{
|
|
18789
|
-
"name": "stream",
|
|
18790
|
-
"$ref": "IO.StreamHandle"
|
|
18791
|
-
}
|
|
18792
|
-
]
|
|
18793
|
-
},
|
|
18794
18662
|
{
|
|
18795
18663
|
"name": "replayXHR",
|
|
18796
18664
|
"description": "This method sends a new XMLHttpRequest which is identical to the original one. The following\nparameters should be identical: method, url, async, request body, extra headers, withCredentials\nattribute, user, password.",
|
|
@@ -19021,22 +18889,6 @@
|
|
|
19021
18889
|
}
|
|
19022
18890
|
]
|
|
19023
18891
|
},
|
|
19024
|
-
{
|
|
19025
|
-
"name": "setRequestInterception",
|
|
19026
|
-
"description": "Sets the requests to intercept that match the provided patterns and optionally resource types.\nDeprecated, please use Fetch.enable instead.",
|
|
19027
|
-
"experimental": true,
|
|
19028
|
-
"deprecated": true,
|
|
19029
|
-
"parameters": [
|
|
19030
|
-
{
|
|
19031
|
-
"name": "patterns",
|
|
19032
|
-
"description": "Requests matching any of these patterns will be forwarded and wait for the corresponding\ncontinueInterceptedRequest call.",
|
|
19033
|
-
"type": "array",
|
|
19034
|
-
"items": {
|
|
19035
|
-
"$ref": "RequestPattern"
|
|
19036
|
-
}
|
|
19037
|
-
}
|
|
19038
|
-
]
|
|
19039
|
-
},
|
|
19040
18892
|
{
|
|
19041
18893
|
"name": "setUserAgentOverride",
|
|
19042
18894
|
"description": "Allows overriding user agent with the given string.",
|
|
@@ -19332,80 +19184,6 @@
|
|
|
19332
19184
|
}
|
|
19333
19185
|
]
|
|
19334
19186
|
},
|
|
19335
|
-
{
|
|
19336
|
-
"name": "requestIntercepted",
|
|
19337
|
-
"description": "Details of an intercepted HTTP request, which must be either allowed, blocked, modified or\nmocked.\nDeprecated, use Fetch.requestPaused instead.",
|
|
19338
|
-
"experimental": true,
|
|
19339
|
-
"deprecated": true,
|
|
19340
|
-
"parameters": [
|
|
19341
|
-
{
|
|
19342
|
-
"name": "interceptionId",
|
|
19343
|
-
"description": "Each request the page makes will have a unique id, however if any redirects are encountered\nwhile processing that fetch, they will be reported with the same id as the original fetch.\nLikewise if HTTP authentication is needed then the same fetch id will be used.",
|
|
19344
|
-
"$ref": "InterceptionId"
|
|
19345
|
-
},
|
|
19346
|
-
{
|
|
19347
|
-
"name": "request",
|
|
19348
|
-
"$ref": "Request"
|
|
19349
|
-
},
|
|
19350
|
-
{
|
|
19351
|
-
"name": "frameId",
|
|
19352
|
-
"description": "The id of the frame that initiated the request.",
|
|
19353
|
-
"$ref": "Page.FrameId"
|
|
19354
|
-
},
|
|
19355
|
-
{
|
|
19356
|
-
"name": "resourceType",
|
|
19357
|
-
"description": "How the requested resource will be used.",
|
|
19358
|
-
"$ref": "ResourceType"
|
|
19359
|
-
},
|
|
19360
|
-
{
|
|
19361
|
-
"name": "isNavigationRequest",
|
|
19362
|
-
"description": "Whether this is a navigation request, which can abort the navigation completely.",
|
|
19363
|
-
"type": "boolean"
|
|
19364
|
-
},
|
|
19365
|
-
{
|
|
19366
|
-
"name": "isDownload",
|
|
19367
|
-
"description": "Set if the request is a navigation that will result in a download.\nOnly present after response is received from the server (i.e. HeadersReceived stage).",
|
|
19368
|
-
"optional": true,
|
|
19369
|
-
"type": "boolean"
|
|
19370
|
-
},
|
|
19371
|
-
{
|
|
19372
|
-
"name": "redirectUrl",
|
|
19373
|
-
"description": "Redirect location, only sent if a redirect was intercepted.",
|
|
19374
|
-
"optional": true,
|
|
19375
|
-
"type": "string"
|
|
19376
|
-
},
|
|
19377
|
-
{
|
|
19378
|
-
"name": "authChallenge",
|
|
19379
|
-
"description": "Details of the Authorization Challenge encountered. If this is set then\ncontinueInterceptedRequest must contain an authChallengeResponse.",
|
|
19380
|
-
"optional": true,
|
|
19381
|
-
"$ref": "AuthChallenge"
|
|
19382
|
-
},
|
|
19383
|
-
{
|
|
19384
|
-
"name": "responseErrorReason",
|
|
19385
|
-
"description": "Response error if intercepted at response stage or if redirect occurred while intercepting\nrequest.",
|
|
19386
|
-
"optional": true,
|
|
19387
|
-
"$ref": "ErrorReason"
|
|
19388
|
-
},
|
|
19389
|
-
{
|
|
19390
|
-
"name": "responseStatusCode",
|
|
19391
|
-
"description": "Response code if intercepted at response stage or if redirect occurred while intercepting\nrequest or auth retry occurred.",
|
|
19392
|
-
"optional": true,
|
|
19393
|
-
"type": "integer"
|
|
19394
|
-
},
|
|
19395
|
-
{
|
|
19396
|
-
"name": "responseHeaders",
|
|
19397
|
-
"description": "Response headers if intercepted at the response stage or if redirect occurred while\nintercepting request or auth retry occurred.",
|
|
19398
|
-
"optional": true,
|
|
19399
|
-
"$ref": "Headers"
|
|
19400
|
-
},
|
|
19401
|
-
{
|
|
19402
|
-
"name": "requestId",
|
|
19403
|
-
"description": "If the intercepted request had a corresponding requestWillBeSent event fired for it, then\nthis requestId will be the same as the requestId present in the requestWillBeSent event.",
|
|
19404
|
-
"optional": true,
|
|
19405
|
-
"$ref": "RequestId"
|
|
19406
|
-
}
|
|
19407
|
-
]
|
|
19408
|
-
},
|
|
19409
19187
|
{
|
|
19410
19188
|
"name": "requestServedFromCache",
|
|
19411
19189
|
"description": "Fired if request ended up loading from cache.",
|
|
@@ -19863,7 +19641,7 @@
|
|
|
19863
19641
|
},
|
|
19864
19642
|
{
|
|
19865
19643
|
"name": "errorMessage",
|
|
19866
|
-
"
|
|
19644
|
+
"$ref": "ErrorReason"
|
|
19867
19645
|
},
|
|
19868
19646
|
{
|
|
19869
19647
|
"name": "timestamp",
|
|
@@ -20022,7 +19800,7 @@
|
|
|
20022
19800
|
},
|
|
20023
19801
|
{
|
|
20024
19802
|
"name": "errorMessage",
|
|
20025
|
-
"
|
|
19803
|
+
"$ref": "ErrorReason"
|
|
20026
19804
|
},
|
|
20027
19805
|
{
|
|
20028
19806
|
"name": "timestamp",
|
package/package.json
CHANGED
package/pdl/domains/Audits.pdl
CHANGED
|
@@ -468,6 +468,7 @@ experimental domain Audits
|
|
|
468
468
|
TooManyRequests
|
|
469
469
|
WellKnownHttpNotFound
|
|
470
470
|
WellKnownNoResponse
|
|
471
|
+
WellKnownBlockedByConnectionAllowlist
|
|
471
472
|
WellKnownInvalidResponse
|
|
472
473
|
WellKnownListEmpty
|
|
473
474
|
WellKnownInvalidContentType
|
|
@@ -475,6 +476,7 @@ experimental domain Audits
|
|
|
475
476
|
WellKnownTooBig
|
|
476
477
|
ConfigHttpNotFound
|
|
477
478
|
ConfigNoResponse
|
|
479
|
+
ConfigBlockedByConnectionAllowlist
|
|
478
480
|
ConfigInvalidResponse
|
|
479
481
|
ConfigInvalidContentType
|
|
480
482
|
IdpNotPotentiallyTrustworthy
|
|
@@ -484,11 +486,13 @@ experimental domain Audits
|
|
|
484
486
|
InvalidSigninResponse
|
|
485
487
|
AccountsHttpNotFound
|
|
486
488
|
AccountsNoResponse
|
|
489
|
+
AccountsBlockedByConnectionAllowlist
|
|
487
490
|
AccountsInvalidResponse
|
|
488
491
|
AccountsListEmpty
|
|
489
492
|
AccountsInvalidContentType
|
|
490
493
|
IdTokenHttpNotFound
|
|
491
494
|
IdTokenNoResponse
|
|
495
|
+
IdTokenBlockedByConnectionAllowlist
|
|
492
496
|
IdTokenInvalidResponse
|
|
493
497
|
IdTokenIdpErrorResponse
|
|
494
498
|
IdTokenCrossSiteIdpErrorResponse
|
package/pdl/domains/Network.pdl
CHANGED
|
@@ -42,9 +42,6 @@ domain Network
|
|
|
42
42
|
# a network request.
|
|
43
43
|
type RequestId extends string
|
|
44
44
|
|
|
45
|
-
# Unique intercepted request identifier.
|
|
46
|
-
type InterceptionId extends string
|
|
47
|
-
|
|
48
45
|
# Network level fetch failure reason.
|
|
49
46
|
type ErrorReason extends string
|
|
50
47
|
enum
|
|
@@ -849,24 +846,6 @@ domain Network
|
|
|
849
846
|
# ProvideCredentials.
|
|
850
847
|
optional string password
|
|
851
848
|
|
|
852
|
-
# Stages of the interception to begin intercepting. Request will intercept before the request is
|
|
853
|
-
# sent. Response will intercept after the response is received.
|
|
854
|
-
experimental type InterceptionStage extends string
|
|
855
|
-
enum
|
|
856
|
-
Request
|
|
857
|
-
HeadersReceived
|
|
858
|
-
|
|
859
|
-
# Request pattern for interception.
|
|
860
|
-
experimental type RequestPattern extends object
|
|
861
|
-
properties
|
|
862
|
-
# Wildcards (`'*'` -> zero or more, `'?'` -> exactly one) are allowed. Escape character is
|
|
863
|
-
# backslash. Omitting is equivalent to `"*"`.
|
|
864
|
-
optional string urlPattern
|
|
865
|
-
# If set, only requests for matching resource types will be intercepted.
|
|
866
|
-
optional ResourceType resourceType
|
|
867
|
-
# Stage at which to begin intercepting requests. Default is Request.
|
|
868
|
-
optional InterceptionStage interceptionStage
|
|
869
|
-
|
|
870
849
|
# Information about a signed exchange signature.
|
|
871
850
|
# https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#rfc.section.3.1
|
|
872
851
|
experimental type SignedExchangeSignature extends object
|
|
@@ -981,35 +960,6 @@ domain Network
|
|
|
981
960
|
# Clears browser cookies.
|
|
982
961
|
command clearBrowserCookies
|
|
983
962
|
|
|
984
|
-
# Response to Network.requestIntercepted which either modifies the request to continue with any
|
|
985
|
-
# modifications, or blocks it, or completes it with the provided response bytes. If a network
|
|
986
|
-
# fetch occurs as a result which encounters a redirect an additional Network.requestIntercepted
|
|
987
|
-
# event will be sent with the same InterceptionId.
|
|
988
|
-
# Deprecated, use Fetch.continueRequest, Fetch.fulfillRequest and Fetch.failRequest instead.
|
|
989
|
-
experimental deprecated command continueInterceptedRequest
|
|
990
|
-
parameters
|
|
991
|
-
InterceptionId interceptionId
|
|
992
|
-
# If set this causes the request to fail with the given reason. Passing `Aborted` for requests
|
|
993
|
-
# marked with `isNavigationRequest` also cancels the navigation. Must not be set in response
|
|
994
|
-
# to an authChallenge.
|
|
995
|
-
optional ErrorReason errorReason
|
|
996
|
-
# If set the requests completes using with the provided base64 encoded raw response, including
|
|
997
|
-
# HTTP status line and headers etc... Must not be set in response to an authChallenge.
|
|
998
|
-
optional binary rawResponse
|
|
999
|
-
# If set the request url will be modified in a way that's not observable by page. Must not be
|
|
1000
|
-
# set in response to an authChallenge.
|
|
1001
|
-
optional string url
|
|
1002
|
-
# If set this allows the request method to be overridden. Must not be set in response to an
|
|
1003
|
-
# authChallenge.
|
|
1004
|
-
optional string method
|
|
1005
|
-
# If set this allows postData to be set. Must not be set in response to an authChallenge.
|
|
1006
|
-
optional string postData
|
|
1007
|
-
# If set this allows the request headers to be changed. Must not be set in response to an
|
|
1008
|
-
# authChallenge.
|
|
1009
|
-
optional Headers headers
|
|
1010
|
-
# Response to a requestIntercepted with an authChallenge. Must not be set otherwise.
|
|
1011
|
-
optional AuthChallengeResponse authChallengeResponse
|
|
1012
|
-
|
|
1013
963
|
# Deletes browser cookies with matching name and url or domain/path/partitionKey pair.
|
|
1014
964
|
command deleteCookies
|
|
1015
965
|
parameters
|
|
@@ -1186,27 +1136,6 @@ domain Network
|
|
|
1186
1136
|
# True, if content was sent as base64.
|
|
1187
1137
|
boolean base64Encoded
|
|
1188
1138
|
|
|
1189
|
-
# Returns content served for the given currently intercepted request.
|
|
1190
|
-
experimental command getResponseBodyForInterception
|
|
1191
|
-
parameters
|
|
1192
|
-
# Identifier for the intercepted request to get body for.
|
|
1193
|
-
InterceptionId interceptionId
|
|
1194
|
-
returns
|
|
1195
|
-
# Response body.
|
|
1196
|
-
string body
|
|
1197
|
-
# True, if content was sent as base64.
|
|
1198
|
-
boolean base64Encoded
|
|
1199
|
-
|
|
1200
|
-
# Returns a handle to the stream representing the response body. Note that after this command,
|
|
1201
|
-
# the intercepted request can't be continued as is -- you either need to cancel it or to provide
|
|
1202
|
-
# the response body. The stream only supports sequential read, IO.read will fail if the position
|
|
1203
|
-
# is specified.
|
|
1204
|
-
experimental command takeResponseBodyForInterceptionAsStream
|
|
1205
|
-
parameters
|
|
1206
|
-
InterceptionId interceptionId
|
|
1207
|
-
returns
|
|
1208
|
-
IO.StreamHandle stream
|
|
1209
|
-
|
|
1210
1139
|
# This method sends a new XMLHttpRequest which is identical to the original one. The following
|
|
1211
1140
|
# parameters should be identical: method, url, async, request body, extra headers, withCredentials
|
|
1212
1141
|
# attribute, user, password.
|
|
@@ -1314,14 +1243,6 @@ domain Network
|
|
|
1314
1243
|
# Whether to attach a page script stack for debugging purpose.
|
|
1315
1244
|
boolean enabled
|
|
1316
1245
|
|
|
1317
|
-
# Sets the requests to intercept that match the provided patterns and optionally resource types.
|
|
1318
|
-
# Deprecated, please use Fetch.enable instead.
|
|
1319
|
-
experimental deprecated command setRequestInterception
|
|
1320
|
-
parameters
|
|
1321
|
-
# Requests matching any of these patterns will be forwarded and wait for the corresponding
|
|
1322
|
-
# continueInterceptedRequest call.
|
|
1323
|
-
array of RequestPattern patterns
|
|
1324
|
-
|
|
1325
1246
|
# Allows overriding user agent with the given string.
|
|
1326
1247
|
command setUserAgentOverride
|
|
1327
1248
|
redirect Emulation
|
|
@@ -1402,43 +1323,6 @@ domain Network
|
|
|
1402
1323
|
# Total number of bytes received for this request.
|
|
1403
1324
|
number encodedDataLength
|
|
1404
1325
|
|
|
1405
|
-
# Details of an intercepted HTTP request, which must be either allowed, blocked, modified or
|
|
1406
|
-
# mocked.
|
|
1407
|
-
# Deprecated, use Fetch.requestPaused instead.
|
|
1408
|
-
experimental deprecated event requestIntercepted
|
|
1409
|
-
parameters
|
|
1410
|
-
# Each request the page makes will have a unique id, however if any redirects are encountered
|
|
1411
|
-
# while processing that fetch, they will be reported with the same id as the original fetch.
|
|
1412
|
-
# Likewise if HTTP authentication is needed then the same fetch id will be used.
|
|
1413
|
-
InterceptionId interceptionId
|
|
1414
|
-
Request request
|
|
1415
|
-
# The id of the frame that initiated the request.
|
|
1416
|
-
Page.FrameId frameId
|
|
1417
|
-
# How the requested resource will be used.
|
|
1418
|
-
ResourceType resourceType
|
|
1419
|
-
# Whether this is a navigation request, which can abort the navigation completely.
|
|
1420
|
-
boolean isNavigationRequest
|
|
1421
|
-
# Set if the request is a navigation that will result in a download.
|
|
1422
|
-
# Only present after response is received from the server (i.e. HeadersReceived stage).
|
|
1423
|
-
optional boolean isDownload
|
|
1424
|
-
# Redirect location, only sent if a redirect was intercepted.
|
|
1425
|
-
optional string redirectUrl
|
|
1426
|
-
# Details of the Authorization Challenge encountered. If this is set then
|
|
1427
|
-
# continueInterceptedRequest must contain an authChallengeResponse.
|
|
1428
|
-
optional AuthChallenge authChallenge
|
|
1429
|
-
# Response error if intercepted at response stage or if redirect occurred while intercepting
|
|
1430
|
-
# request.
|
|
1431
|
-
optional ErrorReason responseErrorReason
|
|
1432
|
-
# Response code if intercepted at response stage or if redirect occurred while intercepting
|
|
1433
|
-
# request or auth retry occurred.
|
|
1434
|
-
optional integer responseStatusCode
|
|
1435
|
-
# Response headers if intercepted at the response stage or if redirect occurred while
|
|
1436
|
-
# intercepting request or auth retry occurred.
|
|
1437
|
-
optional Headers responseHeaders
|
|
1438
|
-
# If the intercepted request had a corresponding requestWillBeSent event fired for it, then
|
|
1439
|
-
# this requestId will be the same as the requestId present in the requestWillBeSent event.
|
|
1440
|
-
optional RequestId requestId
|
|
1441
|
-
|
|
1442
1326
|
# Fired if request ended up loading from cache.
|
|
1443
1327
|
event requestServedFromCache
|
|
1444
1328
|
parameters
|
|
@@ -1657,7 +1541,7 @@ domain Network
|
|
|
1657
1541
|
experimental event directTCPSocketAborted
|
|
1658
1542
|
parameters
|
|
1659
1543
|
RequestId identifier
|
|
1660
|
-
|
|
1544
|
+
ErrorReason errorMessage
|
|
1661
1545
|
MonotonicTime timestamp
|
|
1662
1546
|
|
|
1663
1547
|
# Fired when direct_socket.TCPSocket is closed.
|
|
@@ -1736,7 +1620,7 @@ domain Network
|
|
|
1736
1620
|
experimental event directUDPSocketAborted
|
|
1737
1621
|
parameters
|
|
1738
1622
|
RequestId identifier
|
|
1739
|
-
|
|
1623
|
+
ErrorReason errorMessage
|
|
1740
1624
|
MonotonicTime timestamp
|
|
1741
1625
|
|
|
1742
1626
|
# Fired when direct_socket.UDPSocket is closed.
|
|
@@ -407,14 +407,6 @@ export namespace ProtocolMapping {
|
|
|
407
407
|
* Fired when HTTP request has finished loading.
|
|
408
408
|
*/
|
|
409
409
|
'Network.loadingFinished': [Protocol.Network.LoadingFinishedEvent];
|
|
410
|
-
/**
|
|
411
|
-
* Details of an intercepted HTTP request, which must be either allowed, blocked, modified or
|
|
412
|
-
* mocked.
|
|
413
|
-
* Deprecated, use Fetch.requestPaused instead.
|
|
414
|
-
* @deprecated
|
|
415
|
-
* @experimental
|
|
416
|
-
*/
|
|
417
|
-
'Network.requestIntercepted': [Protocol.Network.RequestInterceptedEvent];
|
|
418
410
|
/**
|
|
419
411
|
* Fired if request ended up loading from cache.
|
|
420
412
|
*/
|
|
@@ -4284,19 +4276,6 @@ export namespace ProtocolMapping {
|
|
|
4284
4276
|
paramsType: [];
|
|
4285
4277
|
returnType: void;
|
|
4286
4278
|
};
|
|
4287
|
-
/**
|
|
4288
|
-
* Response to Network.requestIntercepted which either modifies the request to continue with any
|
|
4289
|
-
* modifications, or blocks it, or completes it with the provided response bytes. If a network
|
|
4290
|
-
* fetch occurs as a result which encounters a redirect an additional Network.requestIntercepted
|
|
4291
|
-
* event will be sent with the same InterceptionId.
|
|
4292
|
-
* Deprecated, use Fetch.continueRequest, Fetch.fulfillRequest and Fetch.failRequest instead.
|
|
4293
|
-
* @deprecated
|
|
4294
|
-
* @experimental
|
|
4295
|
-
*/
|
|
4296
|
-
'Network.continueInterceptedRequest': {
|
|
4297
|
-
paramsType: [Protocol.Network.ContinueInterceptedRequestRequest];
|
|
4298
|
-
returnType: void;
|
|
4299
|
-
};
|
|
4300
4279
|
/**
|
|
4301
4280
|
* Deletes browser cookies with matching name and url or domain/path/partitionKey pair.
|
|
4302
4281
|
*/
|
|
@@ -4395,25 +4374,6 @@ export namespace ProtocolMapping {
|
|
|
4395
4374
|
paramsType: [Protocol.Network.GetRequestPostDataRequest];
|
|
4396
4375
|
returnType: Protocol.Network.GetRequestPostDataResponse;
|
|
4397
4376
|
};
|
|
4398
|
-
/**
|
|
4399
|
-
* Returns content served for the given currently intercepted request.
|
|
4400
|
-
* @experimental
|
|
4401
|
-
*/
|
|
4402
|
-
'Network.getResponseBodyForInterception': {
|
|
4403
|
-
paramsType: [Protocol.Network.GetResponseBodyForInterceptionRequest];
|
|
4404
|
-
returnType: Protocol.Network.GetResponseBodyForInterceptionResponse;
|
|
4405
|
-
};
|
|
4406
|
-
/**
|
|
4407
|
-
* Returns a handle to the stream representing the response body. Note that after this command,
|
|
4408
|
-
* the intercepted request can't be continued as is -- you either need to cancel it or to provide
|
|
4409
|
-
* the response body. The stream only supports sequential read, IO.read will fail if the position
|
|
4410
|
-
* is specified.
|
|
4411
|
-
* @experimental
|
|
4412
|
-
*/
|
|
4413
|
-
'Network.takeResponseBodyForInterceptionAsStream': {
|
|
4414
|
-
paramsType: [Protocol.Network.TakeResponseBodyForInterceptionAsStreamRequest];
|
|
4415
|
-
returnType: Protocol.Network.TakeResponseBodyForInterceptionAsStreamResponse;
|
|
4416
|
-
};
|
|
4417
4377
|
/**
|
|
4418
4378
|
* This method sends a new XMLHttpRequest which is identical to the original one. The following
|
|
4419
4379
|
* parameters should be identical: method, url, async, request body, extra headers, withCredentials
|
|
@@ -4483,16 +4443,6 @@ export namespace ProtocolMapping {
|
|
|
4483
4443
|
paramsType: [Protocol.Network.SetAttachDebugStackRequest];
|
|
4484
4444
|
returnType: void;
|
|
4485
4445
|
};
|
|
4486
|
-
/**
|
|
4487
|
-
* Sets the requests to intercept that match the provided patterns and optionally resource types.
|
|
4488
|
-
* Deprecated, please use Fetch.enable instead.
|
|
4489
|
-
* @deprecated
|
|
4490
|
-
* @experimental
|
|
4491
|
-
*/
|
|
4492
|
-
'Network.setRequestInterception': {
|
|
4493
|
-
paramsType: [Protocol.Network.SetRequestInterceptionRequest];
|
|
4494
|
-
returnType: void;
|
|
4495
|
-
};
|
|
4496
4446
|
/**
|
|
4497
4447
|
* Allows overriding user agent with the given string.
|
|
4498
4448
|
*/
|
|
@@ -3072,17 +3072,6 @@ export namespace ProtocolProxyApi {
|
|
|
3072
3072
|
*/
|
|
3073
3073
|
clearBrowserCookies(): Promise<void>;
|
|
3074
3074
|
|
|
3075
|
-
/**
|
|
3076
|
-
* Response to Network.requestIntercepted which either modifies the request to continue with any
|
|
3077
|
-
* modifications, or blocks it, or completes it with the provided response bytes. If a network
|
|
3078
|
-
* fetch occurs as a result which encounters a redirect an additional Network.requestIntercepted
|
|
3079
|
-
* event will be sent with the same InterceptionId.
|
|
3080
|
-
* Deprecated, use Fetch.continueRequest, Fetch.fulfillRequest and Fetch.failRequest instead.
|
|
3081
|
-
* @deprecated
|
|
3082
|
-
* @experimental
|
|
3083
|
-
*/
|
|
3084
|
-
continueInterceptedRequest(params: Protocol.Network.ContinueInterceptedRequestRequest): Promise<void>;
|
|
3085
|
-
|
|
3086
3075
|
/**
|
|
3087
3076
|
* Deletes browser cookies with matching name and url or domain/path/partitionKey pair.
|
|
3088
3077
|
*/
|
|
@@ -3157,21 +3146,6 @@ export namespace ProtocolProxyApi {
|
|
|
3157
3146
|
*/
|
|
3158
3147
|
getRequestPostData(params: Protocol.Network.GetRequestPostDataRequest): Promise<Protocol.Network.GetRequestPostDataResponse>;
|
|
3159
3148
|
|
|
3160
|
-
/**
|
|
3161
|
-
* Returns content served for the given currently intercepted request.
|
|
3162
|
-
* @experimental
|
|
3163
|
-
*/
|
|
3164
|
-
getResponseBodyForInterception(params: Protocol.Network.GetResponseBodyForInterceptionRequest): Promise<Protocol.Network.GetResponseBodyForInterceptionResponse>;
|
|
3165
|
-
|
|
3166
|
-
/**
|
|
3167
|
-
* Returns a handle to the stream representing the response body. Note that after this command,
|
|
3168
|
-
* the intercepted request can't be continued as is -- you either need to cancel it or to provide
|
|
3169
|
-
* the response body. The stream only supports sequential read, IO.read will fail if the position
|
|
3170
|
-
* is specified.
|
|
3171
|
-
* @experimental
|
|
3172
|
-
*/
|
|
3173
|
-
takeResponseBodyForInterceptionAsStream(params: Protocol.Network.TakeResponseBodyForInterceptionAsStreamRequest): Promise<Protocol.Network.TakeResponseBodyForInterceptionAsStreamResponse>;
|
|
3174
|
-
|
|
3175
3149
|
/**
|
|
3176
3150
|
* This method sends a new XMLHttpRequest which is identical to the original one. The following
|
|
3177
3151
|
* parameters should be identical: method, url, async, request body, extra headers, withCredentials
|
|
@@ -3223,14 +3197,6 @@ export namespace ProtocolProxyApi {
|
|
|
3223
3197
|
*/
|
|
3224
3198
|
setAttachDebugStack(params: Protocol.Network.SetAttachDebugStackRequest): Promise<void>;
|
|
3225
3199
|
|
|
3226
|
-
/**
|
|
3227
|
-
* Sets the requests to intercept that match the provided patterns and optionally resource types.
|
|
3228
|
-
* Deprecated, please use Fetch.enable instead.
|
|
3229
|
-
* @deprecated
|
|
3230
|
-
* @experimental
|
|
3231
|
-
*/
|
|
3232
|
-
setRequestInterception(params: Protocol.Network.SetRequestInterceptionRequest): Promise<void>;
|
|
3233
|
-
|
|
3234
3200
|
/**
|
|
3235
3201
|
* Allows overriding user agent with the given string.
|
|
3236
3202
|
*/
|
|
@@ -3307,15 +3273,6 @@ export namespace ProtocolProxyApi {
|
|
|
3307
3273
|
*/
|
|
3308
3274
|
on(event: 'loadingFinished', listener: (params: Protocol.Network.LoadingFinishedEvent) => void): void;
|
|
3309
3275
|
|
|
3310
|
-
/**
|
|
3311
|
-
* Details of an intercepted HTTP request, which must be either allowed, blocked, modified or
|
|
3312
|
-
* mocked.
|
|
3313
|
-
* Deprecated, use Fetch.requestPaused instead.
|
|
3314
|
-
* @deprecated
|
|
3315
|
-
* @experimental
|
|
3316
|
-
*/
|
|
3317
|
-
on(event: 'requestIntercepted', listener: (params: Protocol.Network.RequestInterceptedEvent) => void): void;
|
|
3318
|
-
|
|
3319
3276
|
/**
|
|
3320
3277
|
* Fired if request ended up loading from cache.
|
|
3321
3278
|
*/
|
|
@@ -3248,17 +3248,6 @@ export namespace ProtocolTestsProxyApi {
|
|
|
3248
3248
|
*/
|
|
3249
3249
|
clearBrowserCookies(): Promise<{id: number, result: void, sessionId: string}>;
|
|
3250
3250
|
|
|
3251
|
-
/**
|
|
3252
|
-
* Response to Network.requestIntercepted which either modifies the request to continue with any
|
|
3253
|
-
* modifications, or blocks it, or completes it with the provided response bytes. If a network
|
|
3254
|
-
* fetch occurs as a result which encounters a redirect an additional Network.requestIntercepted
|
|
3255
|
-
* event will be sent with the same InterceptionId.
|
|
3256
|
-
* Deprecated, use Fetch.continueRequest, Fetch.fulfillRequest and Fetch.failRequest instead.
|
|
3257
|
-
* @deprecated
|
|
3258
|
-
* @experimental
|
|
3259
|
-
*/
|
|
3260
|
-
continueInterceptedRequest(params: Protocol.Network.ContinueInterceptedRequestRequest): Promise<{id: number, result: void, sessionId: string}>;
|
|
3261
|
-
|
|
3262
3251
|
/**
|
|
3263
3252
|
* Deletes browser cookies with matching name and url or domain/path/partitionKey pair.
|
|
3264
3253
|
*/
|
|
@@ -3333,21 +3322,6 @@ export namespace ProtocolTestsProxyApi {
|
|
|
3333
3322
|
*/
|
|
3334
3323
|
getRequestPostData(params: Protocol.Network.GetRequestPostDataRequest): Promise<{id: number, result: Protocol.Network.GetRequestPostDataResponse, sessionId: string}>;
|
|
3335
3324
|
|
|
3336
|
-
/**
|
|
3337
|
-
* Returns content served for the given currently intercepted request.
|
|
3338
|
-
* @experimental
|
|
3339
|
-
*/
|
|
3340
|
-
getResponseBodyForInterception(params: Protocol.Network.GetResponseBodyForInterceptionRequest): Promise<{id: number, result: Protocol.Network.GetResponseBodyForInterceptionResponse, sessionId: string}>;
|
|
3341
|
-
|
|
3342
|
-
/**
|
|
3343
|
-
* Returns a handle to the stream representing the response body. Note that after this command,
|
|
3344
|
-
* the intercepted request can't be continued as is -- you either need to cancel it or to provide
|
|
3345
|
-
* the response body. The stream only supports sequential read, IO.read will fail if the position
|
|
3346
|
-
* is specified.
|
|
3347
|
-
* @experimental
|
|
3348
|
-
*/
|
|
3349
|
-
takeResponseBodyForInterceptionAsStream(params: Protocol.Network.TakeResponseBodyForInterceptionAsStreamRequest): Promise<{id: number, result: Protocol.Network.TakeResponseBodyForInterceptionAsStreamResponse, sessionId: string}>;
|
|
3350
|
-
|
|
3351
3325
|
/**
|
|
3352
3326
|
* This method sends a new XMLHttpRequest which is identical to the original one. The following
|
|
3353
3327
|
* parameters should be identical: method, url, async, request body, extra headers, withCredentials
|
|
@@ -3399,14 +3373,6 @@ export namespace ProtocolTestsProxyApi {
|
|
|
3399
3373
|
*/
|
|
3400
3374
|
setAttachDebugStack(params: Protocol.Network.SetAttachDebugStackRequest): Promise<{id: number, result: void, sessionId: string}>;
|
|
3401
3375
|
|
|
3402
|
-
/**
|
|
3403
|
-
* Sets the requests to intercept that match the provided patterns and optionally resource types.
|
|
3404
|
-
* Deprecated, please use Fetch.enable instead.
|
|
3405
|
-
* @deprecated
|
|
3406
|
-
* @experimental
|
|
3407
|
-
*/
|
|
3408
|
-
setRequestInterception(params: Protocol.Network.SetRequestInterceptionRequest): Promise<{id: number, result: void, sessionId: string}>;
|
|
3409
|
-
|
|
3410
3376
|
/**
|
|
3411
3377
|
* Allows overriding user agent with the given string.
|
|
3412
3378
|
*/
|
|
@@ -3491,17 +3457,6 @@ export namespace ProtocolTestsProxyApi {
|
|
|
3491
3457
|
offLoadingFinished(listener: (event: { params: Protocol.Network.LoadingFinishedEvent }) => void): void;
|
|
3492
3458
|
onceLoadingFinished(eventMatcher?: (event: { params: Protocol.Network.LoadingFinishedEvent }) => boolean): Promise<{ params: Protocol.Network.LoadingFinishedEvent }>;
|
|
3493
3459
|
|
|
3494
|
-
/**
|
|
3495
|
-
* Details of an intercepted HTTP request, which must be either allowed, blocked, modified or
|
|
3496
|
-
* mocked.
|
|
3497
|
-
* Deprecated, use Fetch.requestPaused instead.
|
|
3498
|
-
* @deprecated
|
|
3499
|
-
* @experimental
|
|
3500
|
-
*/
|
|
3501
|
-
onRequestIntercepted(listener: (event: { params: Protocol.Network.RequestInterceptedEvent }) => void): void;
|
|
3502
|
-
offRequestIntercepted(listener: (event: { params: Protocol.Network.RequestInterceptedEvent }) => void): void;
|
|
3503
|
-
onceRequestIntercepted(eventMatcher?: (event: { params: Protocol.Network.RequestInterceptedEvent }) => boolean): Promise<{ params: Protocol.Network.RequestInterceptedEvent }>;
|
|
3504
|
-
|
|
3505
3460
|
/**
|
|
3506
3461
|
* Fired if request ended up loading from cache.
|
|
3507
3462
|
*/
|
package/types/protocol.d.ts
CHANGED
|
@@ -3833,7 +3833,7 @@ export namespace Protocol {
|
|
|
3833
3833
|
* third_party/blink/public/mojom/devtools/inspector_issue.mojom to include
|
|
3834
3834
|
* all cases except for success.
|
|
3835
3835
|
*/
|
|
3836
|
-
export type FederatedAuthRequestIssueReason = ('ShouldEmbargo' | 'TooManyRequests' | 'WellKnownHttpNotFound' | 'WellKnownNoResponse' | 'WellKnownInvalidResponse' | 'WellKnownListEmpty' | 'WellKnownInvalidContentType' | 'ConfigNotInWellKnown' | 'WellKnownTooBig' | 'ConfigHttpNotFound' | 'ConfigNoResponse' | 'ConfigInvalidResponse' | 'ConfigInvalidContentType' | 'IdpNotPotentiallyTrustworthy' | 'DisabledInSettings' | 'DisabledInFlags' | 'ErrorFetchingSignin' | 'InvalidSigninResponse' | 'AccountsHttpNotFound' | 'AccountsNoResponse' | 'AccountsInvalidResponse' | 'AccountsListEmpty' | 'AccountsInvalidContentType' | 'IdTokenHttpNotFound' | 'IdTokenNoResponse' | 'IdTokenInvalidResponse' | 'IdTokenIdpErrorResponse' | 'IdTokenCrossSiteIdpErrorResponse' | 'IdTokenInvalidRequest' | 'IdTokenInvalidContentType' | 'ErrorIdToken' | 'Canceled' | 'RpPageNotVisible' | 'SilentMediationFailure' | 'NotSignedInWithIdp' | 'MissingTransientUserActivation' | 'ReplacedByActiveMode' | 'RelyingPartyOriginIsOpaque' | 'TypeNotMatching' | 'UiDismissedNoEmbargo' | 'CorsError' | 'SuppressedBySegmentationPlatform');
|
|
3836
|
+
export type FederatedAuthRequestIssueReason = ('ShouldEmbargo' | 'TooManyRequests' | 'WellKnownHttpNotFound' | 'WellKnownNoResponse' | 'WellKnownBlockedByConnectionAllowlist' | 'WellKnownInvalidResponse' | 'WellKnownListEmpty' | 'WellKnownInvalidContentType' | 'ConfigNotInWellKnown' | 'WellKnownTooBig' | 'ConfigHttpNotFound' | 'ConfigNoResponse' | 'ConfigBlockedByConnectionAllowlist' | 'ConfigInvalidResponse' | 'ConfigInvalidContentType' | 'IdpNotPotentiallyTrustworthy' | 'DisabledInSettings' | 'DisabledInFlags' | 'ErrorFetchingSignin' | 'InvalidSigninResponse' | 'AccountsHttpNotFound' | 'AccountsNoResponse' | 'AccountsBlockedByConnectionAllowlist' | 'AccountsInvalidResponse' | 'AccountsListEmpty' | 'AccountsInvalidContentType' | 'IdTokenHttpNotFound' | 'IdTokenNoResponse' | 'IdTokenBlockedByConnectionAllowlist' | 'IdTokenInvalidResponse' | 'IdTokenIdpErrorResponse' | 'IdTokenCrossSiteIdpErrorResponse' | 'IdTokenInvalidRequest' | 'IdTokenInvalidContentType' | 'ErrorIdToken' | 'Canceled' | 'RpPageNotVisible' | 'SilentMediationFailure' | 'NotSignedInWithIdp' | 'MissingTransientUserActivation' | 'ReplacedByActiveMode' | 'RelyingPartyOriginIsOpaque' | 'TypeNotMatching' | 'UiDismissedNoEmbargo' | 'CorsError' | 'SuppressedBySegmentationPlatform');
|
|
3837
3837
|
|
|
3838
3838
|
export interface FederatedAuthUserInfoRequestIssueDetails {
|
|
3839
3839
|
federatedAuthUserInfoRequestIssueReason: FederatedAuthUserInfoRequestIssueReason;
|
|
@@ -12521,11 +12521,6 @@ export namespace Protocol {
|
|
|
12521
12521
|
*/
|
|
12522
12522
|
export type RequestId = string;
|
|
12523
12523
|
|
|
12524
|
-
/**
|
|
12525
|
-
* Unique intercepted request identifier.
|
|
12526
|
-
*/
|
|
12527
|
-
export type InterceptionId = string;
|
|
12528
|
-
|
|
12529
12524
|
/**
|
|
12530
12525
|
* Network level fetch failure reason.
|
|
12531
12526
|
*/
|
|
@@ -13508,33 +13503,6 @@ export namespace Protocol {
|
|
|
13508
13503
|
password?: string;
|
|
13509
13504
|
}
|
|
13510
13505
|
|
|
13511
|
-
/**
|
|
13512
|
-
* Stages of the interception to begin intercepting. Request will intercept before the request is
|
|
13513
|
-
* sent. Response will intercept after the response is received.
|
|
13514
|
-
* @experimental
|
|
13515
|
-
*/
|
|
13516
|
-
export type InterceptionStage = ('Request' | 'HeadersReceived');
|
|
13517
|
-
|
|
13518
|
-
/**
|
|
13519
|
-
* Request pattern for interception.
|
|
13520
|
-
* @experimental
|
|
13521
|
-
*/
|
|
13522
|
-
export interface RequestPattern {
|
|
13523
|
-
/**
|
|
13524
|
-
* Wildcards (`'*'` -> zero or more, `'?'` -> exactly one) are allowed. Escape character is
|
|
13525
|
-
* backslash. Omitting is equivalent to `"*"`.
|
|
13526
|
-
*/
|
|
13527
|
-
urlPattern?: string;
|
|
13528
|
-
/**
|
|
13529
|
-
* If set, only requests for matching resource types will be intercepted.
|
|
13530
|
-
*/
|
|
13531
|
-
resourceType?: ResourceType;
|
|
13532
|
-
/**
|
|
13533
|
-
* Stage at which to begin intercepting requests. Default is Request.
|
|
13534
|
-
*/
|
|
13535
|
-
interceptionStage?: InterceptionStage;
|
|
13536
|
-
}
|
|
13537
|
-
|
|
13538
13506
|
/**
|
|
13539
13507
|
* Information about a signed exchange signature.
|
|
13540
13508
|
* https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#rfc.section.3.1
|
|
@@ -14360,44 +14328,6 @@ export namespace Protocol {
|
|
|
14360
14328
|
result: boolean;
|
|
14361
14329
|
}
|
|
14362
14330
|
|
|
14363
|
-
export interface ContinueInterceptedRequestRequest {
|
|
14364
|
-
interceptionId: InterceptionId;
|
|
14365
|
-
/**
|
|
14366
|
-
* If set this causes the request to fail with the given reason. Passing `Aborted` for requests
|
|
14367
|
-
* marked with `isNavigationRequest` also cancels the navigation. Must not be set in response
|
|
14368
|
-
* to an authChallenge.
|
|
14369
|
-
*/
|
|
14370
|
-
errorReason?: ErrorReason;
|
|
14371
|
-
/**
|
|
14372
|
-
* If set the requests completes using with the provided base64 encoded raw response, including
|
|
14373
|
-
* HTTP status line and headers etc... Must not be set in response to an authChallenge. (Encoded as a base64 string when passed over JSON)
|
|
14374
|
-
*/
|
|
14375
|
-
rawResponse?: string;
|
|
14376
|
-
/**
|
|
14377
|
-
* If set the request url will be modified in a way that's not observable by page. Must not be
|
|
14378
|
-
* set in response to an authChallenge.
|
|
14379
|
-
*/
|
|
14380
|
-
url?: string;
|
|
14381
|
-
/**
|
|
14382
|
-
* If set this allows the request method to be overridden. Must not be set in response to an
|
|
14383
|
-
* authChallenge.
|
|
14384
|
-
*/
|
|
14385
|
-
method?: string;
|
|
14386
|
-
/**
|
|
14387
|
-
* If set this allows postData to be set. Must not be set in response to an authChallenge.
|
|
14388
|
-
*/
|
|
14389
|
-
postData?: string;
|
|
14390
|
-
/**
|
|
14391
|
-
* If set this allows the request headers to be changed. Must not be set in response to an
|
|
14392
|
-
* authChallenge.
|
|
14393
|
-
*/
|
|
14394
|
-
headers?: Headers;
|
|
14395
|
-
/**
|
|
14396
|
-
* Response to a requestIntercepted with an authChallenge. Must not be set otherwise.
|
|
14397
|
-
*/
|
|
14398
|
-
authChallengeResponse?: AuthChallengeResponse;
|
|
14399
|
-
}
|
|
14400
|
-
|
|
14401
14331
|
export interface DeleteCookiesRequest {
|
|
14402
14332
|
/**
|
|
14403
14333
|
* Name of the cookies to remove.
|
|
@@ -14626,32 +14556,6 @@ export namespace Protocol {
|
|
|
14626
14556
|
base64Encoded: boolean;
|
|
14627
14557
|
}
|
|
14628
14558
|
|
|
14629
|
-
export interface GetResponseBodyForInterceptionRequest {
|
|
14630
|
-
/**
|
|
14631
|
-
* Identifier for the intercepted request to get body for.
|
|
14632
|
-
*/
|
|
14633
|
-
interceptionId: InterceptionId;
|
|
14634
|
-
}
|
|
14635
|
-
|
|
14636
|
-
export interface GetResponseBodyForInterceptionResponse {
|
|
14637
|
-
/**
|
|
14638
|
-
* Response body.
|
|
14639
|
-
*/
|
|
14640
|
-
body: string;
|
|
14641
|
-
/**
|
|
14642
|
-
* True, if content was sent as base64.
|
|
14643
|
-
*/
|
|
14644
|
-
base64Encoded: boolean;
|
|
14645
|
-
}
|
|
14646
|
-
|
|
14647
|
-
export interface TakeResponseBodyForInterceptionAsStreamRequest {
|
|
14648
|
-
interceptionId: InterceptionId;
|
|
14649
|
-
}
|
|
14650
|
-
|
|
14651
|
-
export interface TakeResponseBodyForInterceptionAsStreamResponse {
|
|
14652
|
-
stream: IO.StreamHandle;
|
|
14653
|
-
}
|
|
14654
|
-
|
|
14655
14559
|
export interface ReplayXHRRequest {
|
|
14656
14560
|
/**
|
|
14657
14561
|
* Identifier of XHR to replay.
|
|
@@ -14803,14 +14707,6 @@ export namespace Protocol {
|
|
|
14803
14707
|
enabled: boolean;
|
|
14804
14708
|
}
|
|
14805
14709
|
|
|
14806
|
-
export interface SetRequestInterceptionRequest {
|
|
14807
|
-
/**
|
|
14808
|
-
* Requests matching any of these patterns will be forwarded and wait for the corresponding
|
|
14809
|
-
* continueInterceptedRequest call.
|
|
14810
|
-
*/
|
|
14811
|
-
patterns: RequestPattern[];
|
|
14812
|
-
}
|
|
14813
|
-
|
|
14814
14710
|
export interface SetUserAgentOverrideRequest {
|
|
14815
14711
|
/**
|
|
14816
14712
|
* User agent to use.
|
|
@@ -15020,69 +14916,6 @@ export namespace Protocol {
|
|
|
15020
14916
|
encodedDataLength: number;
|
|
15021
14917
|
}
|
|
15022
14918
|
|
|
15023
|
-
/**
|
|
15024
|
-
* Details of an intercepted HTTP request, which must be either allowed, blocked, modified or
|
|
15025
|
-
* mocked.
|
|
15026
|
-
* Deprecated, use Fetch.requestPaused instead.
|
|
15027
|
-
* @deprecated
|
|
15028
|
-
* @experimental
|
|
15029
|
-
*/
|
|
15030
|
-
export interface RequestInterceptedEvent {
|
|
15031
|
-
/**
|
|
15032
|
-
* Each request the page makes will have a unique id, however if any redirects are encountered
|
|
15033
|
-
* while processing that fetch, they will be reported with the same id as the original fetch.
|
|
15034
|
-
* Likewise if HTTP authentication is needed then the same fetch id will be used.
|
|
15035
|
-
*/
|
|
15036
|
-
interceptionId: InterceptionId;
|
|
15037
|
-
request: Request;
|
|
15038
|
-
/**
|
|
15039
|
-
* The id of the frame that initiated the request.
|
|
15040
|
-
*/
|
|
15041
|
-
frameId: Page.FrameId;
|
|
15042
|
-
/**
|
|
15043
|
-
* How the requested resource will be used.
|
|
15044
|
-
*/
|
|
15045
|
-
resourceType: ResourceType;
|
|
15046
|
-
/**
|
|
15047
|
-
* Whether this is a navigation request, which can abort the navigation completely.
|
|
15048
|
-
*/
|
|
15049
|
-
isNavigationRequest: boolean;
|
|
15050
|
-
/**
|
|
15051
|
-
* Set if the request is a navigation that will result in a download.
|
|
15052
|
-
* Only present after response is received from the server (i.e. HeadersReceived stage).
|
|
15053
|
-
*/
|
|
15054
|
-
isDownload?: boolean;
|
|
15055
|
-
/**
|
|
15056
|
-
* Redirect location, only sent if a redirect was intercepted.
|
|
15057
|
-
*/
|
|
15058
|
-
redirectUrl?: string;
|
|
15059
|
-
/**
|
|
15060
|
-
* Details of the Authorization Challenge encountered. If this is set then
|
|
15061
|
-
* continueInterceptedRequest must contain an authChallengeResponse.
|
|
15062
|
-
*/
|
|
15063
|
-
authChallenge?: AuthChallenge;
|
|
15064
|
-
/**
|
|
15065
|
-
* Response error if intercepted at response stage or if redirect occurred while intercepting
|
|
15066
|
-
* request.
|
|
15067
|
-
*/
|
|
15068
|
-
responseErrorReason?: ErrorReason;
|
|
15069
|
-
/**
|
|
15070
|
-
* Response code if intercepted at response stage or if redirect occurred while intercepting
|
|
15071
|
-
* request or auth retry occurred.
|
|
15072
|
-
*/
|
|
15073
|
-
responseStatusCode?: integer;
|
|
15074
|
-
/**
|
|
15075
|
-
* Response headers if intercepted at the response stage or if redirect occurred while
|
|
15076
|
-
* intercepting request or auth retry occurred.
|
|
15077
|
-
*/
|
|
15078
|
-
responseHeaders?: Headers;
|
|
15079
|
-
/**
|
|
15080
|
-
* If the intercepted request had a corresponding requestWillBeSent event fired for it, then
|
|
15081
|
-
* this requestId will be the same as the requestId present in the requestWillBeSent event.
|
|
15082
|
-
*/
|
|
15083
|
-
requestId?: RequestId;
|
|
15084
|
-
}
|
|
15085
|
-
|
|
15086
14919
|
/**
|
|
15087
14920
|
* Fired if request ended up loading from cache.
|
|
15088
14921
|
*/
|
|
@@ -15442,7 +15275,7 @@ export namespace Protocol {
|
|
|
15442
15275
|
*/
|
|
15443
15276
|
export interface DirectTCPSocketAbortedEvent {
|
|
15444
15277
|
identifier: RequestId;
|
|
15445
|
-
errorMessage:
|
|
15278
|
+
errorMessage: ErrorReason;
|
|
15446
15279
|
timestamp: MonotonicTime;
|
|
15447
15280
|
}
|
|
15448
15281
|
|
|
@@ -15527,7 +15360,7 @@ export namespace Protocol {
|
|
|
15527
15360
|
*/
|
|
15528
15361
|
export interface DirectUDPSocketAbortedEvent {
|
|
15529
15362
|
identifier: RequestId;
|
|
15530
|
-
errorMessage:
|
|
15363
|
+
errorMessage: ErrorReason;
|
|
15531
15364
|
timestamp: MonotonicTime;
|
|
15532
15365
|
}
|
|
15533
15366
|
|