@@ -17,7 +17,7 @@ export module Protocol {
17
17
/**
18
18
* Enum of possible native property sources (as a subtype of a particular AXValueSourceType).
19
19
*/
20
- export type AXValueNativeSourceType = "figcaption" | "label" | "labelfor" | "labelwrapped" | "legend" | "tablecaption" | "title" | "other" ;
20
+ export type AXValueNativeSourceType = "figcaption" | "label" | "labelfor" | "labelwrapped" | "legend" | "rubyannotation" | " tablecaption"| "title" | "other" ;
21
21
/**
22
22
* A single source for a computed AX property.
23
23
*/
@@ -204,13 +204,28 @@ children, if requested.
204
204
nodes : AXNode [ ] ;
205
205
}
206
206
/**
207
- * Fetches the entire accessibility tree
207
+ * Fetches the entire accessibility tree for the root Document
208
208
*/
209
209
export type getFullAXTreeParameters = {
210
+ /**
211
+ * The maximum depth at which descendants of the root node should be retrieved.
212
+ If omitted, the full tree is returned.
213
+ */
214
+ max_depth ?: number ;
210
215
}
211
216
export type getFullAXTreeReturnValue = {
212
217
nodes : AXNode [ ] ;
213
218
}
219
+ /**
220
+ * Fetches a particular accessibility node by AXNodeId.
221
+ Requires `enable()` to have been called previously.
222
+ */
223
+ export type getChildAXNodesParameters = {
224
+ id : AXNodeId ;
225
+ }
226
+ export type getChildAXNodesReturnValue = {
227
+ nodes : AXNode [ ] ;
228
+ }
214
229
/**
215
230
* Query a DOM node's accessibility subtree for accessible name and role.
216
231
This command computes the name and role for all nodes in the subtree, including those that are
@@ -6580,7 +6595,7 @@ file, data and other requests and responses, their headers, bodies, timing, etc.
6580
6595
/**
6581
6596
* Resource type as it was perceived by the rendering engine.
6582
6597
*/
6583
- export type ResourceType = "Document" | "Stylesheet" | "Image" | "Media" | "Font" | "Script" | "TextTrack" | "XHR" | "Fetch" | "EventSource" | "WebSocket" | "Manifest" | "SignedExchange" | "Ping" | "CSPViolationReport" | "Other" ;
6598
+ export type ResourceType = "Document" | "Stylesheet" | "Image" | "Media" | "Font" | "Script" | "TextTrack" | "XHR" | "Fetch" | "EventSource" | "WebSocket" | "Manifest" | "SignedExchange" | "Ping" | "CSPViolationReport" | "Preflight" | " Other";
6584
6599
/**
6585
6600
* Unique loader identifier.
6586
6601
*/
@@ -7080,7 +7095,7 @@ If the opcode isn't 1, then payloadData is a base64 encoded string representing
7080
7095
/**
7081
7096
* Type of this initiator.
7082
7097
*/
7083
- type : "parser" | "script" | "preload" | "SignedExchange" | "other" ;
7098
+ type : "parser" | "script" | "preload" | "SignedExchange" | "preflight" | " other";
7084
7099
/**
7085
7100
* Initiator JavaScript stack trace, set for Script only.
7086
7101
*/
@@ -7099,6 +7114,10 @@ module) (0-based).
7099
7114
module) (0-based).
7100
7115
*/
7101
7116
columnNumber ?: number ;
7117
+ /**
7118
+ * Set if another request triggered this request (e.g. preflight).
7119
+ */
7120
+ requestId ?: RequestId ;
7102
7121
}
7103
7122
/**
7104
7123
* Cookie object
@@ -7411,6 +7430,13 @@ https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-
7411
7430
*/
7412
7431
errors ?: SignedExchangeError [ ] ;
7413
7432
}
7433
+ export type PrivateNetworkRequestPolicy = "Allow" | "BlockFromInsecureToMorePrivate" ;
7434
+ export type IPAddressSpace = "Local" | "Private" | "Public" | "Unknown" ;
7435
+ export interface ClientSecurityState {
7436
+ initiatorIsSecureContext : boolean ;
7437
+ initiatorIPAddressSpace : IPAddressSpace ;
7438
+ privateNetworkRequestPolicy : PrivateNetworkRequestPolicy ;
7439
+ }
7414
7440
export type CrossOriginOpenerPolicyValue = "SameOrigin" | "SameOriginAllowPopups" | "UnsafeNone" | "SameOriginPlusCoep" ;
7415
7441
export interface CrossOriginOpenerPolicyStatus {
7416
7442
value : CrossOriginOpenerPolicyValue ;
@@ -7855,6 +7881,29 @@ this requestId will be the same as the requestId present in the requestWillBeSen
7855
7881
*/
7856
7882
request : WebSocketRequest ;
7857
7883
}
7884
+ /**
7885
+ * Fired upon WebTransport creation.
7886
+ */
7887
+ export type webTransportCreatedPayload = {
7888
+ /**
7889
+ * WebTransport identifier.
7890
+ */
7891
+ transportId : RequestId ;
7892
+ /**
7893
+ * WebTransport request URL.
7894
+ */
7895
+ url : string ;
7896
+ /**
7897
+ * Request initiator.
7898
+ */
7899
+ initiator ?: Initiator ;
7900
+ }
7901
+ export type webTransportClosedPayload = {
7902
+ /**
7903
+ * WebTransport identifier.
7904
+ */
7905
+ transportId : RequestId ;
7906
+ }
7858
7907
/**
7859
7908
* Fired when additional information about a requestWillBeSent event is available from the
7860
7909
network stack. Not every requestWillBeSent event will have an additional
@@ -7875,6 +7924,10 @@ the request and the ones not sent; the latter are distinguished by having blocke
7875
7924
* Raw request headers as they will be sent over the wire.
7876
7925
*/
7877
7926
headers : Headers ;
7927
+ /**
7928
+ * The client security state set for the request.
7929
+ */
7930
+ clientSecurityState ?: ClientSecurityState ;
7878
7931
}
7879
7932
/**
7880
7933
* Fired when additional information about a responseReceived event is available from the network
@@ -7902,6 +7955,35 @@ available, such as in the case of HTTP/2 or QUIC.
7902
7955
*/
7903
7956
headersText ?: string ;
7904
7957
}
7958
+ /**
7959
+ * Fired exactly once for each Trust Token operation. Depending on
7960
+ the type of the operation and whether the operation succeeded or
7961
+ failed, the event is fired before the corresponding request was sent
7962
+ or after the response was received.
7963
+ */
7964
+ export type trustTokenOperationDonePayload = {
7965
+ /**
7966
+ * Detailed success or error status of the operation.
7967
+ 'AlreadyExists' also signifies a successful operation, as the result
7968
+ of the operation already exists und thus, the operation was abort
7969
+ preemptively (e.g. a cache hit).
7970
+ */
7971
+ status : "Ok" | "InvalidArgument" | "FailedPrecondition" | "ResourceExhausted" | "AlreadyExists" | "Unavailable" | "BadResponse" | "InternalError" | "UnknownError" | "FulfilledLocally" ;
7972
+ type : TrustTokenOperationType ;
7973
+ requestId : RequestId ;
7974
+ /**
7975
+ * Top level origin. The context in which the operation was attempted.
7976
+ */
7977
+ topLevelOrigin ?: string ;
7978
+ /**
7979
+ * Origin of the issuer in case of a "Issuance" or "Redemption" operation.
7980
+ */
7981
+ issuerOrigin ?: string ;
7982
+ /**
7983
+ * The number of obtained Trust Tokens on a successful "Issuance" operation.
7984
+ */
7985
+ issuedTokenCount ?: number ;
7986
+ }
7905
7987
7906
7988
/**
7907
7989
* Tells whether clearing browser cache is supported.
@@ -8541,6 +8623,26 @@ continueInterceptedRequest call.
8541
8623
* The style of the separator between items
8542
8624
*/
8543
8625
itemSeparator ?: LineStyle ;
8626
+ /**
8627
+ * Style of content-distribution space on the main axis (justify-content).
8628
+ */
8629
+ mainDistributedSpace ?: BoxStyle ;
8630
+ /**
8631
+ * Style of content-distribution space on the cross axis (align-content).
8632
+ */
8633
+ crossDistributedSpace ?: BoxStyle ;
8634
+ /**
8635
+ * Style of empty space caused by row gaps (gap/row-gap).
8636
+ */
8637
+ rowGapSpace ?: BoxStyle ;
8638
+ /**
8639
+ * Style of empty space caused by columns gaps (gap/column-gap).
8640
+ */
8641
+ columnGapSpace ?: BoxStyle ;
8642
+ /**
8643
+ * Style of the self-alignment line (align-items).
8644
+ */
8645
+ crossAlignment ?: LineStyle ;
8544
8646
}
8545
8647
/**
8546
8648
* Style information for drawing a line.
@@ -8555,6 +8657,20 @@ continueInterceptedRequest call.
8555
8657
*/
8556
8658
pattern ?: "dashed" | "dotted" ;
8557
8659
}
8660
+ /**
8661
+ * Style information for drawing a box.
8662
+ */
8663
+ export interface BoxStyle {
8664
+ /**
8665
+ * The background color for the box (default: transparent)
8666
+ */
8667
+ fillColor ?: DOM . RGBA ;
8668
+ /**
8669
+ * The hatching color for the box (default: transparent)
8670
+ */
8671
+ hatchColor ?: DOM . RGBA ;
8672
+ }
8673
+ export type ContrastAlgorithm = "aa" | "aaa" | "apca" ;
8558
8674
/**
8559
8675
* Configuration data for the highlighting of page elements.
8560
8676
*/
@@ -8623,6 +8739,10 @@ continueInterceptedRequest call.
8623
8739
* The flex container highlight configuration (default: all transparent).
8624
8740
*/
8625
8741
flexContainerHighlightConfig ?: FlexContainerHighlightConfig ;
8742
+ /**
8743
+ * The contrast algorithm to use for the contrast ratio (default: aa).
8744
+ */
8745
+ contrastAlgorithm ?: ContrastAlgorithm ;
8626
8746
}
8627
8747
export type ColorFormat = "rgb" | "hsl" | "hex" ;
8628
8748
/**
@@ -9517,6 +9637,15 @@ Example URLs: http://www.google.com/file.html -> "google.com"
9517
9637
*/
9518
9638
frame : Frame ;
9519
9639
}
9640
+ /**
9641
+ * Fired when opening document to write to.
9642
+ */
9643
+ export type documentOpenedPayload = {
9644
+ /**
9645
+ * Frame object.
9646
+ */
9647
+ frame : Frame ;
9648
+ }
9520
9649
export type frameResizedPayload = void ;
9521
9650
/**
9522
9651
* Fired when a renderer-initiated navigation is requested.
@@ -9820,6 +9949,10 @@ event is emitted.
9820
9949
* Capture the screenshot from the surface, rather than the view. Defaults to true.
9821
9950
*/
9822
9951
fromSurface ?: boolean ;
9952
+ /**
9953
+ * Capture the screenshot beyond the viewport. Defaults to false.
9954
+ */
9955
+ captureBeyondViewport ?: boolean ;
9823
9956
}
9824
9957
export type captureScreenshotReturnValue = {
9825
9958
/**
@@ -15589,8 +15722,11 @@ unsubscribes current runtime agent from Runtime.bindingCalled notifications.
15589
15722
"Network.webSocketFrameSent" : Network . webSocketFrameSentPayload ;
15590
15723
"Network.webSocketHandshakeResponseReceived" : Network . webSocketHandshakeResponseReceivedPayload ;
15591
15724
"Network.webSocketWillSendHandshakeRequest" : Network . webSocketWillSendHandshakeRequestPayload ;
15725
+ "Network.webTransportCreated" : Network . webTransportCreatedPayload ;
15726
+ "Network.webTransportClosed" : Network . webTransportClosedPayload ;
15592
15727
"Network.requestWillBeSentExtraInfo" : Network . requestWillBeSentExtraInfoPayload ;
15593
15728
"Network.responseReceivedExtraInfo" : Network . responseReceivedExtraInfoPayload ;
15729
+ "Network.trustTokenOperationDone" : Network . trustTokenOperationDonePayload ;
15594
15730
"Overlay.inspectNodeRequested" : Overlay . inspectNodeRequestedPayload ;
15595
15731
"Overlay.nodeHighlightRequested" : Overlay . nodeHighlightRequestedPayload ;
15596
15732
"Overlay.screenshotRequested" : Overlay . screenshotRequestedPayload ;
@@ -15601,6 +15737,7 @@ unsubscribes current runtime agent from Runtime.bindingCalled notifications.
15601
15737
"Page.frameClearedScheduledNavigation" : Page . frameClearedScheduledNavigationPayload ;
15602
15738
"Page.frameDetached" : Page . frameDetachedPayload ;
15603
15739
"Page.frameNavigated" : Page . frameNavigatedPayload ;
15740
+ "Page.documentOpened" : Page . documentOpenedPayload ;
15604
15741
"Page.frameResized" : Page . frameResizedPayload ;
15605
15742
"Page.frameRequestedNavigation" : Page . frameRequestedNavigationPayload ;
15606
15743
"Page.frameScheduledNavigation" : Page . frameScheduledNavigationPayload ;
@@ -15689,6 +15826,7 @@ unsubscribes current runtime agent from Runtime.bindingCalled notifications.
15689
15826
"Accessibility.enable" : Accessibility . enableParameters ;
15690
15827
"Accessibility.getPartialAXTree" : Accessibility . getPartialAXTreeParameters ;
15691
15828
"Accessibility.getFullAXTree" : Accessibility . getFullAXTreeParameters ;
15829
+ "Accessibility.getChildAXNodes" : Accessibility . getChildAXNodesParameters ;
15692
15830
"Accessibility.queryAXTree" : Accessibility . queryAXTreeParameters ;
15693
15831
"Animation.disable" : Animation . disableParameters ;
15694
15832
"Animation.enable" : Animation . enableParameters ;
@@ -16193,6 +16331,7 @@ unsubscribes current runtime agent from Runtime.bindingCalled notifications.
16193
16331
"Accessibility.enable" : Accessibility . enableReturnValue ;
16194
16332
"Accessibility.getPartialAXTree" : Accessibility . getPartialAXTreeReturnValue ;
16195
16333
"Accessibility.getFullAXTree" : Accessibility . getFullAXTreeReturnValue ;
16334
+ "Accessibility.getChildAXNodes" : Accessibility . getChildAXNodesReturnValue ;
16196
16335
"Accessibility.queryAXTree" : Accessibility . queryAXTreeReturnValue ;
16197
16336
"Animation.disable" : Animation . disableReturnValue ;
16198
16337
"Animation.enable" : Animation . enableReturnValue ;
0 commit comments