@yuebai008/cli
Version:
Command line interface for rapid qg-minigame development
1 lines • 473 kB
JavaScript
export let InspectorBackendAPI;export function registerCommands(e){e.registerEnum("Accessibility.AXValueType",{Boolean:"boolean",Tristate:"tristate",BooleanOrUndefined:"booleanOrUndefined",Idref:"idref",IdrefList:"idrefList",Integer:"integer",Node:"node",NodeList:"nodeList",Number:"number",String:"string",ComputedString:"computedString",Token:"token",TokenList:"tokenList",DomRelation:"domRelation",Role:"role",InternalRole:"internalRole",ValueUndefined:"valueUndefined"}),e.registerEnum("Accessibility.AXValueSourceType",{Attribute:"attribute",Implicit:"implicit",Style:"style",Contents:"contents",Placeholder:"placeholder",RelatedElement:"relatedElement"}),e.registerEnum("Accessibility.AXValueNativeSourceType",{Description:"description",Figcaption:"figcaption",Label:"label",Labelfor:"labelfor",Labelwrapped:"labelwrapped",Legend:"legend",Rubyannotation:"rubyannotation",Tablecaption:"tablecaption",Title:"title",Other:"other"}),e.registerEnum("Accessibility.AXPropertyName",{Busy:"busy",Disabled:"disabled",Editable:"editable",Focusable:"focusable",Focused:"focused",Hidden:"hidden",HiddenRoot:"hiddenRoot",Invalid:"invalid",Keyshortcuts:"keyshortcuts",Settable:"settable",Roledescription:"roledescription",Live:"live",Atomic:"atomic",Relevant:"relevant",Root:"root",Autocomplete:"autocomplete",HasPopup:"hasPopup",Level:"level",Multiselectable:"multiselectable",Orientation:"orientation",Multiline:"multiline",Readonly:"readonly",Required:"required",Valuemin:"valuemin",Valuemax:"valuemax",Valuetext:"valuetext",Checked:"checked",Expanded:"expanded",Modal:"modal",Pressed:"pressed",Selected:"selected",Activedescendant:"activedescendant",Controls:"controls",Describedby:"describedby",Details:"details",Errormessage:"errormessage",Flowto:"flowto",Labelledby:"labelledby",Owns:"owns"}),e.registerEvent("Accessibility.loadComplete",["root"]),e.registerEvent("Accessibility.nodesUpdated",["nodes"]),e.registerCommand("Accessibility.disable",[],[],"Disables the accessibility domain."),e.registerCommand("Accessibility.enable",[],[],"Enables the accessibility domain which causes `AXNodeId`s to remain consistent between method calls. This turns on accessibility for the page, which can impact performance until accessibility is disabled."),e.registerCommand("Accessibility.getPartialAXTree",[{name:"nodeId",type:"number",optional:!0,description:"Identifier of the node to get the partial accessibility tree for.",typeRef:"DOM.NodeId"},{name:"backendNodeId",type:"number",optional:!0,description:"Identifier of the backend node to get the partial accessibility tree for.",typeRef:"DOM.BackendNodeId"},{name:"objectId",type:"string",optional:!0,description:"JavaScript object id of the node wrapper to get the partial accessibility tree for.",typeRef:"Runtime.RemoteObjectId"},{name:"fetchRelatives",type:"boolean",optional:!0,description:"Whether to fetch this node's ancestors, siblings and children. Defaults to true.",typeRef:null}],["nodes"],"Fetches the accessibility node and partial accessibility tree for this DOM node, if it exists."),e.registerCommand("Accessibility.getFullAXTree",[{name:"depth",type:"number",optional:!0,description:"The maximum depth at which descendants of the root node should be retrieved. If omitted, the full tree is returned.",typeRef:null},{name:"frameId",type:"string",optional:!0,description:"The frame for whose document the AX tree should be retrieved. If omited, the root frame is used.",typeRef:"Page.FrameId"}],["nodes"],"Fetches the entire accessibility tree for the root Document"),e.registerCommand("Accessibility.getRootAXNode",[{name:"frameId",type:"string",optional:!0,description:"The frame in whose document the node resides. If omitted, the root frame is used.",typeRef:"Page.FrameId"}],["node"],"Fetches the root node. Requires `enable()` to have been called previously."),e.registerCommand("Accessibility.getAXNodeAndAncestors",[{name:"nodeId",type:"number",optional:!0,description:"Identifier of the node to get.",typeRef:"DOM.NodeId"},{name:"backendNodeId",type:"number",optional:!0,description:"Identifier of the backend node to get.",typeRef:"DOM.BackendNodeId"},{name:"objectId",type:"string",optional:!0,description:"JavaScript object id of the node wrapper to get.",typeRef:"Runtime.RemoteObjectId"}],["nodes"],"Fetches a node and all ancestors up to and including the root. Requires `enable()` to have been called previously."),e.registerCommand("Accessibility.getChildAXNodes",[{name:"id",type:"string",optional:!1,description:"",typeRef:"AXNodeId"},{name:"frameId",type:"string",optional:!0,description:"The frame in whose document the node resides. If omitted, the root frame is used.",typeRef:"Page.FrameId"}],["nodes"],"Fetches a particular accessibility node by AXNodeId. Requires `enable()` to have been called previously."),e.registerCommand("Accessibility.queryAXTree",[{name:"nodeId",type:"number",optional:!0,description:"Identifier of the node for the root to query.",typeRef:"DOM.NodeId"},{name:"backendNodeId",type:"number",optional:!0,description:"Identifier of the backend node for the root to query.",typeRef:"DOM.BackendNodeId"},{name:"objectId",type:"string",optional:!0,description:"JavaScript object id of the node wrapper for the root to query.",typeRef:"Runtime.RemoteObjectId"},{name:"accessibleName",type:"string",optional:!0,description:"Find nodes with this computed name.",typeRef:null},{name:"role",type:"string",optional:!0,description:"Find nodes with this computed role.",typeRef:null}],["nodes"],"Query a DOM node's accessibility subtree for accessible name and role. This command computes the name and role for all nodes in the subtree, including those that are ignored for accessibility, and returns those that mactch the specified name and role. If no DOM node is specified, or the DOM node does not exist, the command returns an error. If neither `accessibleName` or `role` is specified, it returns all the accessibility nodes in the subtree."),e.registerType("Accessibility.AXValueSource",[{name:"type",type:"string",optional:!1,description:"What type of source this is.",typeRef:"AXValueSourceType"},{name:"value",type:"object",optional:!0,description:"The value of this property source.",typeRef:"Accessibility.AXValue"},{name:"attribute",type:"string",optional:!0,description:"The name of the relevant attribute, if any.",typeRef:null},{name:"attributeValue",type:"object",optional:!0,description:"The value of the relevant attribute, if any.",typeRef:"Accessibility.AXValue"},{name:"superseded",type:"boolean",optional:!0,description:"Whether this source is superseded by a higher priority source.",typeRef:null},{name:"nativeSource",type:"string",optional:!0,description:"The native markup source for this value, e.g. a `<label>` element.",typeRef:"AXValueNativeSourceType"},{name:"nativeSourceValue",type:"object",optional:!0,description:"The value, such as a node or node list, of the native source.",typeRef:"Accessibility.AXValue"},{name:"invalid",type:"boolean",optional:!0,description:"Whether the value for this property is invalid.",typeRef:null},{name:"invalidReason",type:"string",optional:!0,description:"Reason for the value being invalid, if it is.",typeRef:null}]),e.registerType("Accessibility.AXRelatedNode",[{name:"backendDOMNodeId",type:"number",optional:!1,description:"The BackendNodeId of the related DOM node.",typeRef:"DOM.BackendNodeId"},{name:"idref",type:"string",optional:!0,description:"The IDRef value provided, if any.",typeRef:null},{name:"text",type:"string",optional:!0,description:"The text alternative of this node in the current context.",typeRef:null}]),e.registerType("Accessibility.AXProperty",[{name:"name",type:"string",optional:!1,description:"The name of this property.",typeRef:"AXPropertyName"},{name:"value",type:"object",optional:!1,description:"The value of this property.",typeRef:"Accessibility.AXValue"}]),e.registerType("Accessibility.AXValue",[{name:"type",type:"string",optional:!1,description:"The type of this value.",typeRef:"AXValueType"},{name:"value",type:"any",optional:!0,description:"The computed value of this property.",typeRef:null},{name:"relatedNodes",type:"array",optional:!0,description:"One or more related nodes, if applicable.",typeRef:"Accessibility.AXRelatedNode"},{name:"sources",type:"array",optional:!0,description:"The sources which contributed to the computation of this property.",typeRef:"Accessibility.AXValueSource"}]),e.registerType("Accessibility.AXNode",[{name:"nodeId",type:"string",optional:!1,description:"Unique identifier for this node.",typeRef:"AXNodeId"},{name:"ignored",type:"boolean",optional:!1,description:"Whether this node is ignored for accessibility",typeRef:null},{name:"ignoredReasons",type:"array",optional:!0,description:"Collection of reasons why this node is hidden.",typeRef:"Accessibility.AXProperty"},{name:"role",type:"object",optional:!0,description:"This `Node`'s role, whether explicit or implicit.",typeRef:"Accessibility.AXValue"},{name:"chromeRole",type:"object",optional:!0,description:"This `Node`'s Chrome raw role.",typeRef:"Accessibility.AXValue"},{name:"name",type:"object",optional:!0,description:"The accessible name for this `Node`.",typeRef:"Accessibility.AXValue"},{name:"description",type:"object",optional:!0,description:"The accessible description for this `Node`.",typeRef:"Accessibility.AXValue"},{name:"value",type:"object",optional:!0,description:"The value for this `Node`.",typeRef:"Accessibility.AXValue"},{name:"properties",type:"array",optional:!0,description:"All other properties",typeRef:"Accessibility.AXProperty"},{name:"parentId",type:"string",optional:!0,description:"ID for this node's parent.",typeRef:"AXNodeId"},{name:"childIds",type:"array",optional:!0,description:"IDs for each of this node's child nodes.",typeRef:"Accessibility.AXNodeId"},{name:"backendDOMNodeId",type:"number",optional:!0,description:"The backend ID for the associated DOM node, if any.",typeRef:"DOM.BackendNodeId"},{name:"frameId",type:"string",optional:!0,description:"The frame ID for the frame associated with this nodes document.",typeRef:"Page.FrameId"}]),e.registerEnum("Animation.AnimationType",{CSSTransition:"CSSTransition",CSSAnimation:"CSSAnimation",WebAnimation:"WebAnimation"}),e.registerEvent("Animation.animationCanceled",["id"]),e.registerEvent("Animation.animationCreated",["id"]),e.registerEvent("Animation.animationStarted",["animation"]),e.registerCommand("Animation.disable",[],[],"Disables animation domain notifications."),e.registerCommand("Animation.enable",[],[],"Enables animation domain notifications."),e.registerCommand("Animation.getCurrentTime",[{name:"id",type:"string",optional:!1,description:"Id of animation.",typeRef:null}],["currentTime"],"Returns the current time of the an animation."),e.registerCommand("Animation.getPlaybackRate",[],["playbackRate"],"Gets the playback rate of the document timeline."),e.registerCommand("Animation.releaseAnimations",[{name:"animations",type:"array",optional:!1,description:"List of animation ids to seek.",typeRef:"string"}],[],"Releases a set of animations to no longer be manipulated."),e.registerCommand("Animation.resolveAnimation",[{name:"animationId",type:"string",optional:!1,description:"Animation id.",typeRef:null}],["remoteObject"],"Gets the remote object of the Animation."),e.registerCommand("Animation.seekAnimations",[{name:"animations",type:"array",optional:!1,description:"List of animation ids to seek.",typeRef:"string"},{name:"currentTime",type:"number",optional:!1,description:"Set the current time of each animation.",typeRef:null}],[],"Seek a set of animations to a particular time within each animation."),e.registerCommand("Animation.setPaused",[{name:"animations",type:"array",optional:!1,description:"Animations to set the pause state of.",typeRef:"string"},{name:"paused",type:"boolean",optional:!1,description:"Paused state to set to.",typeRef:null}],[],"Sets the paused state of a set of animations."),e.registerCommand("Animation.setPlaybackRate",[{name:"playbackRate",type:"number",optional:!1,description:"Playback rate for animations on page",typeRef:null}],[],"Sets the playback rate of the document timeline."),e.registerCommand("Animation.setTiming",[{name:"animationId",type:"string",optional:!1,description:"Animation id.",typeRef:null},{name:"duration",type:"number",optional:!1,description:"Duration of the animation.",typeRef:null},{name:"delay",type:"number",optional:!1,description:"Delay of the animation.",typeRef:null}],[],"Sets the timing of an animation node."),e.registerType("Animation.Animation",[{name:"id",type:"string",optional:!1,description:"`Animation`'s id.",typeRef:null},{name:"name",type:"string",optional:!1,description:"`Animation`'s name.",typeRef:null},{name:"pausedState",type:"boolean",optional:!1,description:"`Animation`'s internal paused state.",typeRef:null},{name:"playState",type:"string",optional:!1,description:"`Animation`'s play state.",typeRef:null},{name:"playbackRate",type:"number",optional:!1,description:"`Animation`'s playback rate.",typeRef:null},{name:"startTime",type:"number",optional:!1,description:"`Animation`'s start time.",typeRef:null},{name:"currentTime",type:"number",optional:!1,description:"`Animation`'s current time.",typeRef:null},{name:"type",type:"string",optional:!1,description:"Animation type of `Animation`.",typeRef:null},{name:"source",type:"object",optional:!0,description:"`Animation`'s source animation node.",typeRef:"Animation.AnimationEffect"},{name:"cssId",type:"string",optional:!0,description:"A unique ID for `Animation` representing the sources that triggered this CSS animation/transition.",typeRef:null}]),e.registerType("Animation.AnimationEffect",[{name:"delay",type:"number",optional:!1,description:"`AnimationEffect`'s delay.",typeRef:null},{name:"endDelay",type:"number",optional:!1,description:"`AnimationEffect`'s end delay.",typeRef:null},{name:"iterationStart",type:"number",optional:!1,description:"`AnimationEffect`'s iteration start.",typeRef:null},{name:"iterations",type:"number",optional:!1,description:"`AnimationEffect`'s iterations.",typeRef:null},{name:"duration",type:"number",optional:!1,description:"`AnimationEffect`'s iteration duration.",typeRef:null},{name:"direction",type:"string",optional:!1,description:"`AnimationEffect`'s playback direction.",typeRef:null},{name:"fill",type:"string",optional:!1,description:"`AnimationEffect`'s fill mode.",typeRef:null},{name:"backendNodeId",type:"number",optional:!0,description:"`AnimationEffect`'s target node.",typeRef:"DOM.BackendNodeId"},{name:"keyframesRule",type:"object",optional:!0,description:"`AnimationEffect`'s keyframes.",typeRef:"Animation.KeyframesRule"},{name:"easing",type:"string",optional:!1,description:"`AnimationEffect`'s timing function.",typeRef:null}]),e.registerType("Animation.KeyframesRule",[{name:"name",type:"string",optional:!0,description:"CSS keyframed animation's name.",typeRef:null},{name:"keyframes",type:"array",optional:!1,description:"List of animation keyframes.",typeRef:"Animation.KeyframeStyle"}]),e.registerType("Animation.KeyframeStyle",[{name:"offset",type:"string",optional:!1,description:"Keyframe's time offset.",typeRef:null},{name:"easing",type:"string",optional:!1,description:"`AnimationEffect`'s timing function.",typeRef:null}]),e.registerEnum("Audits.CookieExclusionReason",{ExcludeSameSiteUnspecifiedTreatedAsLax:"ExcludeSameSiteUnspecifiedTreatedAsLax",ExcludeSameSiteNoneInsecure:"ExcludeSameSiteNoneInsecure",ExcludeSameSiteLax:"ExcludeSameSiteLax",ExcludeSameSiteStrict:"ExcludeSameSiteStrict",ExcludeInvalidSameParty:"ExcludeInvalidSameParty",ExcludeSamePartyCrossPartyContext:"ExcludeSamePartyCrossPartyContext",ExcludeDomainNonASCII:"ExcludeDomainNonASCII",ExcludeThirdPartyCookieBlockedInFirstPartySet:"ExcludeThirdPartyCookieBlockedInFirstPartySet",ExcludeThirdPartyPhaseout:"ExcludeThirdPartyPhaseout"}),e.registerEnum("Audits.CookieWarningReason",{WarnSameSiteUnspecifiedCrossSiteContext:"WarnSameSiteUnspecifiedCrossSiteContext",WarnSameSiteNoneInsecure:"WarnSameSiteNoneInsecure",WarnSameSiteUnspecifiedLaxAllowUnsafe:"WarnSameSiteUnspecifiedLaxAllowUnsafe",WarnSameSiteStrictLaxDowngradeStrict:"WarnSameSiteStrictLaxDowngradeStrict",WarnSameSiteStrictCrossDowngradeStrict:"WarnSameSiteStrictCrossDowngradeStrict",WarnSameSiteStrictCrossDowngradeLax:"WarnSameSiteStrictCrossDowngradeLax",WarnSameSiteLaxCrossDowngradeStrict:"WarnSameSiteLaxCrossDowngradeStrict",WarnSameSiteLaxCrossDowngradeLax:"WarnSameSiteLaxCrossDowngradeLax",WarnAttributeValueExceedsMaxSize:"WarnAttributeValueExceedsMaxSize",WarnDomainNonASCII:"WarnDomainNonASCII",WarnThirdPartyPhaseout:"WarnThirdPartyPhaseout"}),e.registerEnum("Audits.CookieOperation",{SetCookie:"SetCookie",ReadCookie:"ReadCookie"}),e.registerEnum("Audits.MixedContentResolutionStatus",{MixedContentBlocked:"MixedContentBlocked",MixedContentAutomaticallyUpgraded:"MixedContentAutomaticallyUpgraded",MixedContentWarning:"MixedContentWarning"}),e.registerEnum("Audits.MixedContentResourceType",{AttributionSrc:"AttributionSrc",Audio:"Audio",Beacon:"Beacon",CSPReport:"CSPReport",Download:"Download",EventSource:"EventSource",Favicon:"Favicon",Font:"Font",Form:"Form",Frame:"Frame",Image:"Image",Import:"Import",Manifest:"Manifest",Ping:"Ping",PluginData:"PluginData",PluginResource:"PluginResource",Prefetch:"Prefetch",Resource:"Resource",Script:"Script",ServiceWorker:"ServiceWorker",SharedWorker:"SharedWorker",Stylesheet:"Stylesheet",Track:"Track",Video:"Video",Worker:"Worker",XMLHttpRequest:"XMLHttpRequest",XSLT:"XSLT"}),e.registerEnum("Audits.BlockedByResponseReason",{CoepFrameResourceNeedsCoepHeader:"CoepFrameResourceNeedsCoepHeader",CoopSandboxedIFrameCannotNavigateToCoopPage:"CoopSandboxedIFrameCannotNavigateToCoopPage",CorpNotSameOrigin:"CorpNotSameOrigin",CorpNotSameOriginAfterDefaultedToSameOriginByCoep:"CorpNotSameOriginAfterDefaultedToSameOriginByCoep",CorpNotSameSite:"CorpNotSameSite"}),e.registerEnum("Audits.HeavyAdResolutionStatus",{HeavyAdBlocked:"HeavyAdBlocked",HeavyAdWarning:"HeavyAdWarning"}),e.registerEnum("Audits.HeavyAdReason",{NetworkTotalLimit:"NetworkTotalLimit",CpuTotalLimit:"CpuTotalLimit",CpuPeakLimit:"CpuPeakLimit"}),e.registerEnum("Audits.ContentSecurityPolicyViolationType",{KInlineViolation:"kInlineViolation",KEvalViolation:"kEvalViolation",KURLViolation:"kURLViolation",KTrustedTypesSinkViolation:"kTrustedTypesSinkViolation",KTrustedTypesPolicyViolation:"kTrustedTypesPolicyViolation",KWasmEvalViolation:"kWasmEvalViolation"}),e.registerEnum("Audits.SharedArrayBufferIssueType",{TransferIssue:"TransferIssue",CreationIssue:"CreationIssue"}),e.registerEnum("Audits.AttributionReportingIssueType",{PermissionPolicyDisabled:"PermissionPolicyDisabled",UntrustworthyReportingOrigin:"UntrustworthyReportingOrigin",InsecureContext:"InsecureContext",InvalidHeader:"InvalidHeader",InvalidRegisterTriggerHeader:"InvalidRegisterTriggerHeader",SourceAndTriggerHeaders:"SourceAndTriggerHeaders",SourceIgnored:"SourceIgnored",TriggerIgnored:"TriggerIgnored",OsSourceIgnored:"OsSourceIgnored",OsTriggerIgnored:"OsTriggerIgnored",InvalidRegisterOsSourceHeader:"InvalidRegisterOsSourceHeader",InvalidRegisterOsTriggerHeader:"InvalidRegisterOsTriggerHeader",WebAndOsHeaders:"WebAndOsHeaders",NoWebOrOsSupport:"NoWebOrOsSupport",NavigationRegistrationWithoutTransientUserActivation:"NavigationRegistrationWithoutTransientUserActivation"}),e.registerEnum("Audits.GenericIssueErrorType",{CrossOriginPortalPostMessageError:"CrossOriginPortalPostMessageError",FormLabelForNameError:"FormLabelForNameError",FormDuplicateIdForInputError:"FormDuplicateIdForInputError",FormInputWithNoLabelError:"FormInputWithNoLabelError",FormAutocompleteAttributeEmptyError:"FormAutocompleteAttributeEmptyError",FormEmptyIdAndNameAttributesForInputError:"FormEmptyIdAndNameAttributesForInputError",FormAriaLabelledByToNonExistingId:"FormAriaLabelledByToNonExistingId",FormInputAssignedAutocompleteValueToIdOrNameAttributeError:"FormInputAssignedAutocompleteValueToIdOrNameAttributeError",FormLabelHasNeitherForNorNestedInput:"FormLabelHasNeitherForNorNestedInput",FormLabelForMatchesNonExistingIdError:"FormLabelForMatchesNonExistingIdError",FormInputHasWrongButWellIntendedAutocompleteValueError:"FormInputHasWrongButWellIntendedAutocompleteValueError",ResponseWasBlockedByORB:"ResponseWasBlockedByORB"}),e.registerEnum("Audits.ClientHintIssueReason",{MetaTagAllowListInvalidOrigin:"MetaTagAllowListInvalidOrigin",MetaTagModifiedHTML:"MetaTagModifiedHTML"}),e.registerEnum("Audits.FederatedAuthRequestIssueReason",{ShouldEmbargo:"ShouldEmbargo",TooManyRequests:"TooManyRequests",WellKnownHttpNotFound:"WellKnownHttpNotFound",WellKnownNoResponse:"WellKnownNoResponse",WellKnownInvalidResponse:"WellKnownInvalidResponse",WellKnownListEmpty:"WellKnownListEmpty",WellKnownInvalidContentType:"WellKnownInvalidContentType",ConfigNotInWellKnown:"ConfigNotInWellKnown",WellKnownTooBig:"WellKnownTooBig",ConfigHttpNotFound:"ConfigHttpNotFound",ConfigNoResponse:"ConfigNoResponse",ConfigInvalidResponse:"ConfigInvalidResponse",ConfigInvalidContentType:"ConfigInvalidContentType",ClientMetadataHttpNotFound:"ClientMetadataHttpNotFound",ClientMetadataNoResponse:"ClientMetadataNoResponse",ClientMetadataInvalidResponse:"ClientMetadataInvalidResponse",ClientMetadataInvalidContentType:"ClientMetadataInvalidContentType",DisabledInSettings:"DisabledInSettings",ErrorFetchingSignin:"ErrorFetchingSignin",InvalidSigninResponse:"InvalidSigninResponse",AccountsHttpNotFound:"AccountsHttpNotFound",AccountsNoResponse:"AccountsNoResponse",AccountsInvalidResponse:"AccountsInvalidResponse",AccountsListEmpty:"AccountsListEmpty",AccountsInvalidContentType:"AccountsInvalidContentType",IdTokenHttpNotFound:"IdTokenHttpNotFound",IdTokenNoResponse:"IdTokenNoResponse",IdTokenInvalidResponse:"IdTokenInvalidResponse",IdTokenInvalidRequest:"IdTokenInvalidRequest",IdTokenInvalidContentType:"IdTokenInvalidContentType",ErrorIdToken:"ErrorIdToken",Canceled:"Canceled",RpPageNotVisible:"RpPageNotVisible",SilentMediationFailure:"SilentMediationFailure",ThirdPartyCookiesBlocked:"ThirdPartyCookiesBlocked"}),e.registerEnum("Audits.FederatedAuthUserInfoRequestIssueReason",{NotSameOrigin:"NotSameOrigin",NotIframe:"NotIframe",NotPotentiallyTrustworthy:"NotPotentiallyTrustworthy",NoAPIPermission:"NoApiPermission",NotSignedInWithIdp:"NotSignedInWithIdp",NoAccountSharingPermission:"NoAccountSharingPermission",InvalidConfigOrWellKnown:"InvalidConfigOrWellKnown",InvalidAccountsResponse:"InvalidAccountsResponse",NoReturningUserFromFetchedAccounts:"NoReturningUserFromFetchedAccounts"}),e.registerEnum("Audits.StyleSheetLoadingIssueReason",{LateImportRule:"LateImportRule",RequestFailed:"RequestFailed"}),e.registerEnum("Audits.InspectorIssueCode",{CookieIssue:"CookieIssue",MixedContentIssue:"MixedContentIssue",BlockedByResponseIssue:"BlockedByResponseIssue",HeavyAdIssue:"HeavyAdIssue",ContentSecurityPolicyIssue:"ContentSecurityPolicyIssue",SharedArrayBufferIssue:"SharedArrayBufferIssue",LowTextContrastIssue:"LowTextContrastIssue",CorsIssue:"CorsIssue",AttributionReportingIssue:"AttributionReportingIssue",QuirksModeIssue:"QuirksModeIssue",NavigatorUserAgentIssue:"NavigatorUserAgentIssue",GenericIssue:"GenericIssue",DeprecationIssue:"DeprecationIssue",ClientHintIssue:"ClientHintIssue",FederatedAuthRequestIssue:"FederatedAuthRequestIssue",BounceTrackingIssue:"BounceTrackingIssue",StylesheetLoadingIssue:"StylesheetLoadingIssue",FederatedAuthUserInfoRequestIssue:"FederatedAuthUserInfoRequestIssue"}),e.registerEvent("Audits.issueAdded",["issue"]),e.registerEnum("Audits.GetEncodedResponseRequestEncoding",{Webp:"webp",Jpeg:"jpeg",Png:"png"}),e.registerCommand("Audits.getEncodedResponse",[{name:"requestId",type:"string",optional:!1,description:"Identifier of the network request to get content for.",typeRef:"Network.RequestId"},{name:"encoding",type:"string",optional:!1,description:"The encoding to use.",typeRef:null},{name:"quality",type:"number",optional:!0,description:"The quality of the encoding (0-1). (defaults to 1)",typeRef:null},{name:"sizeOnly",type:"boolean",optional:!0,description:"Whether to only return the size information (defaults to false).",typeRef:null}],["body","originalSize","encodedSize"],"Returns the response body and size if it were re-encoded with the specified settings. Only applies to images."),e.registerCommand("Audits.disable",[],[],"Disables issues domain, prevents further issues from being reported to the client."),e.registerCommand("Audits.enable",[],[],"Enables issues domain, sends the issues collected so far to the client by means of the `issueAdded` event."),e.registerCommand("Audits.checkContrast",[{name:"reportAAA",type:"boolean",optional:!0,description:"Whether to report WCAG AAA level issues. Default is false.",typeRef:null}],[],"Runs the contrast check for the target page. Found issues are reported using Audits.issueAdded event."),e.registerCommand("Audits.checkFormsIssues",[],["formIssues"],"Runs the form issues check for the target page. Found issues are reported using Audits.issueAdded event."),e.registerType("Audits.AffectedCookie",[{name:"name",type:"string",optional:!1,description:"The following three properties uniquely identify a cookie",typeRef:null},{name:"path",type:"string",optional:!1,description:"",typeRef:null},{name:"domain",type:"string",optional:!1,description:"",typeRef:null}]),e.registerType("Audits.AffectedRequest",[{name:"requestId",type:"string",optional:!1,description:"The unique request id.",typeRef:"Network.RequestId"},{name:"url",type:"string",optional:!0,description:"",typeRef:null}]),e.registerType("Audits.AffectedFrame",[{name:"frameId",type:"string",optional:!1,description:"",typeRef:"Page.FrameId"}]),e.registerType("Audits.CookieIssueDetails",[{name:"cookie",type:"object",optional:!0,description:"If AffectedCookie is not set then rawCookieLine contains the raw Set-Cookie header string. This hints at a problem where the cookie line is syntactically or semantically malformed in a way that no valid cookie could be created.",typeRef:"Audits.AffectedCookie"},{name:"rawCookieLine",type:"string",optional:!0,description:"",typeRef:null},{name:"cookieWarningReasons",type:"array",optional:!1,description:"",typeRef:"Audits.CookieWarningReason"},{name:"cookieExclusionReasons",type:"array",optional:!1,description:"",typeRef:"Audits.CookieExclusionReason"},{name:"operation",type:"string",optional:!1,description:"Optionally identifies the site-for-cookies and the cookie url, which may be used by the front-end as additional context.",typeRef:"CookieOperation"},{name:"siteForCookies",type:"string",optional:!0,description:"",typeRef:null},{name:"cookieUrl",type:"string",optional:!0,description:"",typeRef:null},{name:"request",type:"object",optional:!0,description:"",typeRef:"Audits.AffectedRequest"}]),e.registerType("Audits.MixedContentIssueDetails",[{name:"resourceType",type:"string",optional:!0,description:"The type of resource causing the mixed content issue (css, js, iframe, form,...). Marked as optional because it is mapped to from blink::mojom::RequestContextType, which will be replaced by network::mojom::RequestDestination",typeRef:"MixedContentResourceType"},{name:"resolutionStatus",type:"string",optional:!1,description:"The way the mixed content issue is being resolved.",typeRef:"MixedContentResolutionStatus"},{name:"insecureURL",type:"string",optional:!1,description:"The unsafe http url causing the mixed content issue.",typeRef:null},{name:"mainResourceURL",type:"string",optional:!1,description:"The url responsible for the call to an unsafe url.",typeRef:null},{name:"request",type:"object",optional:!0,description:"The mixed content request. Does not always exist (e.g. for unsafe form submission urls).",typeRef:"Audits.AffectedRequest"},{name:"frame",type:"object",optional:!0,description:"Optional because not every mixed content issue is necessarily linked to a frame.",typeRef:"Audits.AffectedFrame"}]),e.registerType("Audits.BlockedByResponseIssueDetails",[{name:"request",type:"object",optional:!1,description:"",typeRef:"Audits.AffectedRequest"},{name:"parentFrame",type:"object",optional:!0,description:"",typeRef:"Audits.AffectedFrame"},{name:"blockedFrame",type:"object",optional:!0,description:"",typeRef:"Audits.AffectedFrame"},{name:"reason",type:"string",optional:!1,description:"",typeRef:"BlockedByResponseReason"}]),e.registerType("Audits.HeavyAdIssueDetails",[{name:"resolution",type:"string",optional:!1,description:"The resolution status, either blocking the content or warning.",typeRef:"HeavyAdResolutionStatus"},{name:"reason",type:"string",optional:!1,description:"The reason the ad was blocked, total network or cpu or peak cpu.",typeRef:"HeavyAdReason"},{name:"frame",type:"object",optional:!1,description:"The frame that was blocked.",typeRef:"Audits.AffectedFrame"}]),e.registerType("Audits.SourceCodeLocation",[{name:"scriptId",type:"string",optional:!0,description:"",typeRef:"Runtime.ScriptId"},{name:"url",type:"string",optional:!1,description:"",typeRef:null},{name:"lineNumber",type:"number",optional:!1,description:"",typeRef:null},{name:"columnNumber",type:"number",optional:!1,description:"",typeRef:null}]),e.registerType("Audits.ContentSecurityPolicyIssueDetails",[{name:"blockedURL",type:"string",optional:!0,description:"The url not included in allowed sources.",typeRef:null},{name:"violatedDirective",type:"string",optional:!1,description:"Specific directive that is violated, causing the CSP issue.",typeRef:null},{name:"isReportOnly",type:"boolean",optional:!1,description:"",typeRef:null},{name:"contentSecurityPolicyViolationType",type:"string",optional:!1,description:"",typeRef:"ContentSecurityPolicyViolationType"},{name:"frameAncestor",type:"object",optional:!0,description:"",typeRef:"Audits.AffectedFrame"},{name:"sourceCodeLocation",type:"object",optional:!0,description:"",typeRef:"Audits.SourceCodeLocation"},{name:"violatingNodeId",type:"number",optional:!0,description:"",typeRef:"DOM.BackendNodeId"}]),e.registerType("Audits.SharedArrayBufferIssueDetails",[{name:"sourceCodeLocation",type:"object",optional:!1,description:"",typeRef:"Audits.SourceCodeLocation"},{name:"isWarning",type:"boolean",optional:!1,description:"",typeRef:null},{name:"type",type:"string",optional:!1,description:"",typeRef:"SharedArrayBufferIssueType"}]),e.registerType("Audits.LowTextContrastIssueDetails",[{name:"violatingNodeId",type:"number",optional:!1,description:"",typeRef:"DOM.BackendNodeId"},{name:"violatingNodeSelector",type:"string",optional:!1,description:"",typeRef:null},{name:"contrastRatio",type:"number",optional:!1,description:"",typeRef:null},{name:"thresholdAA",type:"number",optional:!1,description:"",typeRef:null},{name:"thresholdAAA",type:"number",optional:!1,description:"",typeRef:null},{name:"fontSize",type:"string",optional:!1,description:"",typeRef:null},{name:"fontWeight",type:"string",optional:!1,description:"",typeRef:null}]),e.registerType("Audits.CorsIssueDetails",[{name:"corsErrorStatus",type:"object",optional:!1,description:"",typeRef:"Network.CorsErrorStatus"},{name:"isWarning",type:"boolean",optional:!1,description:"",typeRef:null},{name:"request",type:"object",optional:!1,description:"",typeRef:"Audits.AffectedRequest"},{name:"location",type:"object",optional:!0,description:"",typeRef:"Audits.SourceCodeLocation"},{name:"initiatorOrigin",type:"string",optional:!0,description:"",typeRef:null},{name:"resourceIPAddressSpace",type:"string",optional:!0,description:"",typeRef:"Network.IPAddressSpace"},{name:"clientSecurityState",type:"object",optional:!0,description:"",typeRef:"Network.ClientSecurityState"}]),e.registerType("Audits.AttributionReportingIssueDetails",[{name:"violationType",type:"string",optional:!1,description:"",typeRef:"AttributionReportingIssueType"},{name:"request",type:"object",optional:!0,description:"",typeRef:"Audits.AffectedRequest"},{name:"violatingNodeId",type:"number",optional:!0,description:"",typeRef:"DOM.BackendNodeId"},{name:"invalidParameter",type:"string",optional:!0,description:"",typeRef:null}]),e.registerType("Audits.QuirksModeIssueDetails",[{name:"isLimitedQuirksMode",type:"boolean",optional:!1,description:'If false, it means the document\'s mode is \\"quirks\\" instead of \\"limited-quirks\\".',typeRef:null},{name:"documentNodeId",type:"number",optional:!1,description:"",typeRef:"DOM.BackendNodeId"},{name:"url",type:"string",optional:!1,description:"",typeRef:null},{name:"frameId",type:"string",optional:!1,description:"",typeRef:"Page.FrameId"},{name:"loaderId",type:"string",optional:!1,description:"",typeRef:"Network.LoaderId"}]),e.registerType("Audits.NavigatorUserAgentIssueDetails",[{name:"url",type:"string",optional:!1,description:"",typeRef:null},{name:"location",type:"object",optional:!0,description:"",typeRef:"Audits.SourceCodeLocation"}]),e.registerType("Audits.GenericIssueDetails",[{name:"errorType",type:"string",optional:!1,description:"Issues with the same errorType are aggregated in the frontend.",typeRef:"GenericIssueErrorType"},{name:"frameId",type:"string",optional:!0,description:"",typeRef:"Page.FrameId"},{name:"violatingNodeId",type:"number",optional:!0,description:"",typeRef:"DOM.BackendNodeId"},{name:"violatingNodeAttribute",type:"string",optional:!0,description:"",typeRef:null},{name:"request",type:"object",optional:!0,description:"",typeRef:"Audits.AffectedRequest"}]),e.registerType("Audits.DeprecationIssueDetails",[{name:"affectedFrame",type:"object",optional:!0,description:"",typeRef:"Audits.AffectedFrame"},{name:"sourceCodeLocation",type:"object",optional:!1,description:"",typeRef:"Audits.SourceCodeLocation"},{name:"type",type:"string",optional:!1,description:"One of the deprecation names from third_party/blink/renderer/core/frame/deprecation/deprecation.json5",typeRef:null}]),e.registerType("Audits.BounceTrackingIssueDetails",[{name:"trackingSites",type:"array",optional:!1,description:"",typeRef:"string"}]),e.registerType("Audits.FederatedAuthRequestIssueDetails",[{name:"federatedAuthRequestIssueReason",type:"string",optional:!1,description:"",typeRef:"FederatedAuthRequestIssueReason"}]),e.registerType("Audits.FederatedAuthUserInfoRequestIssueDetails",[{name:"federatedAuthUserInfoRequestIssueReason",type:"string",optional:!1,description:"",typeRef:"FederatedAuthUserInfoRequestIssueReason"}]),e.registerType("Audits.ClientHintIssueDetails",[{name:"sourceCodeLocation",type:"object",optional:!1,description:"",typeRef:"Audits.SourceCodeLocation"},{name:"clientHintIssueReason",type:"string",optional:!1,description:"",typeRef:"ClientHintIssueReason"}]),e.registerType("Audits.FailedRequestInfo",[{name:"url",type:"string",optional:!1,description:"The URL that failed to load.",typeRef:null},{name:"failureMessage",type:"string",optional:!1,description:"The failure message for the failed request.",typeRef:null},{name:"requestId",type:"string",optional:!0,description:"",typeRef:"Network.RequestId"}]),e.registerType("Audits.StylesheetLoadingIssueDetails",[{name:"sourceCodeLocation",type:"object",optional:!1,description:"Source code position that referenced the failing stylesheet.",typeRef:"Audits.SourceCodeLocation"},{name:"styleSheetLoadingIssueReason",type:"string",optional:!1,description:"Reason why the stylesheet couldn't be loaded.",typeRef:"StyleSheetLoadingIssueReason"},{name:"failedRequestInfo",type:"object",optional:!0,description:"Contains additional info when the failure was due to a request.",typeRef:"Audits.FailedRequestInfo"}]),e.registerType("Audits.InspectorIssueDetails",[{name:"cookieIssueDetails",type:"object",optional:!0,description:"",typeRef:"Audits.CookieIssueDetails"},{name:"mixedContentIssueDetails",type:"object",optional:!0,description:"",typeRef:"Audits.MixedContentIssueDetails"},{name:"blockedByResponseIssueDetails",type:"object",optional:!0,description:"",typeRef:"Audits.BlockedByResponseIssueDetails"},{name:"heavyAdIssueDetails",type:"object",optional:!0,description:"",typeRef:"Audits.HeavyAdIssueDetails"},{name:"contentSecurityPolicyIssueDetails",type:"object",optional:!0,description:"",typeRef:"Audits.ContentSecurityPolicyIssueDetails"},{name:"sharedArrayBufferIssueDetails",type:"object",optional:!0,description:"",typeRef:"Audits.SharedArrayBufferIssueDetails"},{name:"lowTextContrastIssueDetails",type:"object",optional:!0,description:"",typeRef:"Audits.LowTextContrastIssueDetails"},{name:"corsIssueDetails",type:"object",optional:!0,description:"",typeRef:"Audits.CorsIssueDetails"},{name:"attributionReportingIssueDetails",type:"object",optional:!0,description:"",typeRef:"Audits.AttributionReportingIssueDetails"},{name:"quirksModeIssueDetails",type:"object",optional:!0,description:"",typeRef:"Audits.QuirksModeIssueDetails"},{name:"navigatorUserAgentIssueDetails",type:"object",optional:!0,description:"",typeRef:"Audits.NavigatorUserAgentIssueDetails"},{name:"genericIssueDetails",type:"object",optional:!0,description:"",typeRef:"Audits.GenericIssueDetails"},{name:"deprecationIssueDetails",type:"object",optional:!0,description:"",typeRef:"Audits.DeprecationIssueDetails"},{name:"clientHintIssueDetails",type:"object",optional:!0,description:"",typeRef:"Audits.ClientHintIssueDetails"},{name:"federatedAuthRequestIssueDetails",type:"object",optional:!0,description:"",typeRef:"Audits.FederatedAuthRequestIssueDetails"},{name:"bounceTrackingIssueDetails",type:"object",optional:!0,description:"",typeRef:"Audits.BounceTrackingIssueDetails"},{name:"stylesheetLoadingIssueDetails",type:"object",optional:!0,description:"",typeRef:"Audits.StylesheetLoadingIssueDetails"},{name:"federatedAuthUserInfoRequestIssueDetails",type:"object",optional:!0,description:"",typeRef:"Audits.FederatedAuthUserInfoRequestIssueDetails"}]),e.registerType("Audits.InspectorIssue",[{name:"code",type:"string",optional:!1,description:"",typeRef:"InspectorIssueCode"},{name:"details",type:"object",optional:!1,description:"",typeRef:"Audits.InspectorIssueDetails"},{name:"issueId",type:"string",optional:!0,description:"A unique id for this issue. May be omitted if no other entity (e.g. exception, CDP message, etc.) is referencing this issue.",typeRef:"IssueId"}]),e.registerCommand("Autofill.trigger",[{name:"fieldId",type:"number",optional:!1,description:"Identifies a field that serves as an anchor for autofill.",typeRef:"DOM.BackendNodeId"},{name:"frameId",type:"string",optional:!0,description:"Identifies the frame that field belongs to.",typeRef:"Page.FrameId"},{name:"card",type:"object",optional:!1,description:"Credit card information to fill out the form. Credit card data is not saved.",typeRef:"Autofill.CreditCard"}],[],"Trigger autofill on a form identified by the fieldId. If the field and related form cannot be autofilled, returns an error."),e.registerCommand("Autofill.setAddresses",[{name:"addresses",type:"array",optional:!1,description:"",typeRef:"Autofill.Address"}],[],"Set addresses so that developers can verify their forms implementation."),e.registerType("Autofill.CreditCard",[{name:"number",type:"string",optional:!1,description:"16-digit credit card number.",typeRef:null},{name:"name",type:"string",optional:!1,description:"Name of the credit card owner.",typeRef:null},{name:"expiryMonth",type:"string",optional:!1,description:"2-digit expiry month.",typeRef:null},{name:"expiryYear",type:"string",optional:!1,description:"4-digit expiry year.",typeRef:null},{name:"cvc",type:"string",optional:!1,description:"3-digit card verification code.",typeRef:null}]),e.registerType("Autofill.AddressField",[{name:"name",type:"string",optional:!1,description:"address field name, for example GIVEN_NAME.",typeRef:null},{name:"value",type:"string",optional:!1,description:"address field name, for example Jon Doe.",typeRef:null}]),e.registerType("Autofill.Address",[{name:"fields",type:"array",optional:!1,description:"fields and values defining a test address.",typeRef:"Autofill.AddressField"}]),e.registerEnum("BackgroundService.ServiceName",{BackgroundFetch:"backgroundFetch",BackgroundSync:"backgroundSync",PushMessaging:"pushMessaging",Notifications:"notifications",PaymentHandler:"paymentHandler",PeriodicBackgroundSync:"periodicBackgroundSync"}),e.registerEvent("BackgroundService.recordingStateChanged",["isRecording","service"]),e.registerEvent("BackgroundService.backgroundServiceEventReceived",["backgroundServiceEvent"]),e.registerCommand("BackgroundService.startObserving",[{name:"service",type:"string",optional:!1,description:"",typeRef:"ServiceName"}],[],"Enables event updates for the service."),e.registerCommand("BackgroundService.stopObserving",[{name:"service",type:"string",optional:!1,description:"",typeRef:"ServiceName"}],[],"Disables event updates for the service."),e.registerCommand("BackgroundService.setRecording",[{name:"shouldRecord",type:"boolean",optional:!1,description:"",typeRef:null},{name:"service",type:"string",optional:!1,description:"",typeRef:"ServiceName"}],[],"Set the recording state for the service."),e.registerCommand("BackgroundService.clearEvents",[{name:"service",type:"string",optional:!1,description:"",typeRef:"ServiceName"}],[],"Clears all stored data for the service."),e.registerType("BackgroundService.EventMetadata",[{name:"key",type:"string",optional:!1,description:"",typeRef:null},{name:"value",type:"string",optional:!1,description:"",typeRef:null}]),e.registerType("BackgroundService.BackgroundServiceEvent",[{name:"timestamp",type:"number",optional:!1,description:"Timestamp of the event (in seconds).",typeRef:"Network.TimeSinceEpoch"},{name:"origin",type:"string",optional:!1,description:"The origin this event belongs to.",typeRef:null},{name:"serviceWorkerRegistrationId",type:"string",optional:!1,description:"The Service Worker ID that initiated the event.",typeRef:"ServiceWorker.RegistrationID"},{name:"service",type:"string",optional:!1,description:"The Background Service this event belongs to.",typeRef:"ServiceName"},{name:"eventName",type:"string",optional:!1,description:"A description of the event.",typeRef:null},{name:"instanceId",type:"string",optional:!1,description:"An identifier that groups related events together.",typeRef:null},{name:"eventMetadata",type:"array",optional:!1,description:"A list of event-specific information.",typeRef:"BackgroundService.EventMetadata"},{name:"storageKey",type:"string",optional:!1,description:"Storage key this event belongs to.",typeRef:null}]),e.registerEnum("Browser.WindowState",{Normal:"normal",Minimized:"minimized",Maximized:"maximized",Fullscreen:"fullscreen"}),e.registerEnum("Browser.PermissionType",{AccessibilityEvents:"accessibilityEvents",AudioCapture:"audioCapture",BackgroundSync:"backgroundSync",BackgroundFetch:"backgroundFetch",ClipboardReadWrite:"clipboardReadWrite",ClipboardSanitizedWrite:"clipboardSanitizedWrite",DisplayCapture:"displayCapture",DurableStorage:"durableStorage",Flash:"flash",Geolocation:"geolocation",IdleDetection:"idleDetection",LocalFonts:"localFonts",Midi:"midi",MidiSysex:"midiSysex",Nfc:"nfc",Notifications:"notifications",PaymentHandler:"paymentHandler",PeriodicBackgroundSync:"periodicBackgroundSync",ProtectedMediaIdentifier:"protectedMediaIdentifier",Sensors:"sensors",StorageAccess:"storageAccess",TopLevelStorageAccess:"topLevelStorageAccess",VideoCapture:"videoCapture",VideoCapturePanTiltZoom:"videoCapturePanTiltZoom",WakeLockScreen:"wakeLockScreen",WakeLockSystem:"wakeLockSystem",WindowManagement:"windowManagement"}),e.registerEnum("Browser.PermissionSetting",{Granted:"granted",Denied:"denied",Prompt:"prompt"}),e.registerEnum("Browser.BrowserCommandId",{OpenTabSearch:"openTabSearch",CloseTabSearch:"closeTabSearch"}),e.registerEvent("Browser.downloadWillBegin",["frameId","guid","url","suggestedFilename"]),e.registerEnum("Browser.DownloadProgressEventState",{InProgress:"inProgress",Completed:"completed",Canceled:"canceled"}),e.registerEvent("Browser.downloadProgress",["guid","totalBytes","receivedBytes","state"]),e.registerCommand("Browser.setPermission",[{name:"permission",type:"object",optional:!1,description:"Descriptor of permission to override.",typeRef:"Browser.PermissionDescriptor"},{name:"setting",type:"string",optional:!1,description:"Setting of the permission.",typeRef:"PermissionSetting"},{name:"origin",type:"string",optional:!0,description:"Origin the permission applies to, all origins if not specified.",typeRef:null},{name:"browserContextId",type:"string",optional:!0,description:"Context to override. When omitted, default browser context is used.",typeRef:"BrowserContextID"}],[],"Set permission settings for given origin."),e.registerCommand("Browser.grantPermissions",[{name:"permissions",type:"array",optional:!1,description:"",typeRef:"Browser.PermissionType"},{name:"origin",type:"string",optional:!0,description:"Origin the permission applies to, all origins if not specified.",typeRef:null},{name:"browserContextId",type:"string",optional:!0,description:"BrowserContext to override permissions. When omitted, default browser context is used.",typeRef:"BrowserContextID"}],[],"Grant specific permissions to the given origin and reject all others."),e.registerCommand("Browser.resetPermissions",[{name:"browserContextId",type:"string",optional:!0,description:"BrowserContext to reset permissions. When omitted, default browser context is used.",typeRef:"BrowserContextID"}],[],"Reset all permission management for all origins."),e.registerEnum("Browser.SetDownloadBehaviorRequestBehavior",{Deny:"deny",Allow:"allow",AllowAndName:"allowAndName",Default:"default"}),e.registerCommand("Browser.setDownloadBehavior",[{name:"behavior",type:"string",optional:!1,description:"Whether to allow all or deny all download requests, or use default Chrome behavior if available (otherwise deny). |allowAndName| allows download and names files according to their dowmload guids.",typeRef:null},{name:"browserContextId",type:"string",optional:!0,description:"BrowserContext to set download behavior. When omitted, default browser context is used.",typeRef:"BrowserContextID"},{name:"downloadPath",type:"string",optional:!0,description:"The default path to save downloaded files to. This is required if behavior is set to 'allow' or 'allowAndName'.",typeRef:null},{name:"eventsEnabled",type:"boolean",optional:!0,description:"Whether to emit download events (defaults to false).",typeRef:null}],[],"Set the behavior when downloading a file."),e.registerCommand("Browser.cancelDownload",[{name:"guid",type:"string",optional:!1,description:"Global unique identifier of the download.",typeRef:null},{name:"browserContextId",type:"string",optional:!0,description:"BrowserContext to perform the action in. When omitted, default browser context is used.",typeRef:"BrowserContextID"}],[],"Cancel a download if in progress"),e.registerCommand("Browser.close",[],[],"Close browser gracefully."),e.registerCommand("Browser.crash",[],[],"Crashes browser on the main thread."),e.registerCommand("Browser.crashGpuProcess",[],[],"Crashes GPU process."),e.registerCommand("Browser.getVersion",[],["protocolVersion","product","revision","userAgent","jsVersion"],"Returns version information."),e.registerCommand("Browser.getBrowserCommandLine",[],["arguments"],"Returns the command line switches for the browser process if, and only if --enable-automation is on the commandline."),e.registerCommand("Browser.getHistograms",[{name:"query",type:"string",optional:!0,description:"Requested substring in name. Only histograms which have query as a substring in their name are extracted. An empty or absent query returns all histograms.",typeRef:null},{name:"delta",type:"boolean",optional:!0,description:"If true, retrieve delta since last delta call.",typeRef:null}],["histograms"],"Get Chrome histograms."),e.registerCommand("Browser.getHistogram",[{name:"name",type:"string",optional:!1,description:"Requested histogram name.",typeRef:null},{name:"delta",type:"boolean",optional:!0,description:"If true, retrieve delta since last delta call.",typeRef:null}],["histogram"],"Get a Chrome histogram by name."),e.registerCommand("Browser.getWindowBounds",[{name:"windowId",type:"number",optional:!1,description:"Browser window id.",typeRef:"WindowID"}],["bounds"],"Get position and size of the browser window."),e.registerCommand("Browser.getWindowForTarget",[{name:"targetId",type:"string",optional:!0,description:"Devtools agent host id. If called as a part of the session, associated targetId is used.",typeRef:"Target.TargetID"}],["windowId","bounds"],"Get the browser window that contains the devtools target."),e.registerCommand("Browser.setWindowBounds",[{name:"windowId",type:"number",optional:!1,description:"Browser window id.",typeRef:"WindowID"},{name:"bounds",type:"object",optional:!1,description:"New window bounds. The 'minimized', 'maximized' and 'fullscreen' states cannot be combined with 'left', 'top', 'width' or 'height'. Leaves unspecified fields unchanged.",typeRef:"Browser.Bounds"}],[],"Set position and/or size of the browser window."),e.registerCommand("Browser.setDockTile",[{name:"badgeLabel",type:"string",optional:!0,description:"",typeRef:null},{name:"image",type:"string",optional:!0,description:"Png encoded image.",typeRef:null}],[],"Set dock tile details, platform-specific."),e.registerCommand("Browser.executeBrowserCommand",[{name:"commandId",type:"string",optional:!1,description:"",typeRef:"BrowserCommandId"}],[],"Invoke custom browser commands used by telemetry."),e.registerCommand("Browser.addPrivacySandboxEnrollmentOverride",[{name:"url",type:"string",optional:!1,description:"",typeRef:null}],[],"Allows a site to use privacy sandbox features that require enrollment without the site actually being enrolled. Only supported on page targets."),e.registerType("Browser.Bounds",[{name:"left",type:"number",optional:!0,description:"The offset from the left edge of the screen to the window in pixels.",typeRef:null},{name:"top",type:"number",optional:!0,description:"The offset from the top edge of the screen to the window in pixels.",typeRef:null},{name:"width